@charset "UTF-8";
@import "normalize.css";
@import url("https://cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css");
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
/* Georgia is a system font, no need to import from Google Fonts */
/* Global image constraints to prevent oversized images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Course content images - responsive sizing with both width and height constraints */
.course-page img,
.course-page .content img {
  max-width: 100% !important; /* Never wider than container */
  max-height: 60vh !important; /* Never taller than 60% of viewport */
  width: auto !important; /* Auto width maintains aspect ratio */
  height: auto !important; /* Auto height maintains aspect ratio */
  object-fit: contain !important; /* Scale down to fit within constraints */
  display: block;
  margin: 0 auto; /* Center the image */
}

/* Specific class for slide images that need controlled sizing */
.slide-image {
  max-width: 90%;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 1rem auto;
}

/* Google Calendar iframe styling */
.calendar-iframe,
iframe[src*="calendar.google.com"] {
  width: 80%;
  height: 80%;
  max-width: 700px;
  max-height: 800px;
}

.content1, .content2, .content3, .content4, .content5 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  padding: 0 10px;
  border-radius: 5px;
}

/*
 * fonts
 */
/* HappiHacking brand fonts as per new brand guide */
/* headings */
/* paragraphs */
/* buttons, menus */
/* quotes - system fonts */
/* code blocks */
/*
 * palette
 */
/* HappiHacking colors - refined for warmth and depth */
/* Primary Palette - Deep Teal (Light Mode) */
/* Mid teal for light mode - actionable elements */
/* Lighter teal for hover states */
/* Terminal Palette - Hacker Aesthetic (Dark Mode) */
/* Terminal green (muted) - primary accents, links, hover states */
/* Brighter green for light mode */
/* Terminal orange (muted) - CTAs, urgent actions */
/* Brighter orange for light mode */
/* Secondary Accent - Warm Balance for Highlights */
/* Muted amber - featured badges, waitlists, highlights */
/* Darker amber for dark mode highlights */
/* Surface Colors - Deep Terminal Background */
/* Very dark charcoal - terminal background */
/* Lifted surface - subtle component separation */
/* Light mode background */
/* Text Colors - Improved Contrast */
/* Light mode primary text */
/* Dark mode primary - 25% better contrast */
/* Dark mode secondary - visual hierarchy */
/* Legacy compatibility */
/* Deprecated - use $terminal-green for dark mode */
/* Unified with warm accent */
/* Base colors derived from brand colors */
/* Primary colors - Teal palette */
/* Secondary colors */
/* Neutral light grey, removed cyan tint */
/* Tertiary colors */
/* Light Mode Colors */
/* Neutral Colors (Used in both themes) */
/* Gradients for Light Mode */
/* Dark Mode Colors - Teal primary UI, terminal colors for micro-accents only */
/* Teal for primary UI */
/* Lighter teal for hover */
/* Teal for CTAs */
/* Gradients for Dark Mode */
/* transparent shadows and highlights
   (defined here because opacity cannot be separated from color in shadows)
 */
/*
 * css custom properties (css variables)
 */
/*
 * assignment to roles (defines a theme variant: day/night/high-contrast)
 */
/* =========================================
   LIGHT MODE MIXIN
   ========================================= */
/* =========================================
    DARK MODE MIXIN
    ========================================= */
/* common to all variants */
html {
  /* Typography Levels
     (note that we set root font size so that 1rem = 10px on most systems)

     NOTE: The font sizes supplied by Ad-Ida must first be scaled by
     72/96 to compensate for their configuration error, so: 30 -> 22.5,
     32 -> 24, 42 -> 31.5, 60 -> 45, 90 -> 67.5 (all in px, so divide by
     10 to get the rem size at base scale). These are sizes intended for
     full screen (1920 at 72 px/in or 1440 at 96 px/in), so we need to
     pull them down to the base scale in rem, which should be around 16px
     (1.6rem) for the body font instead of 22.5, etc. - see the html
     element font size scaling further below for details. This gives us
     30 -> 22.5 -> 1.57, 32 -> 24 -> 1.67, 42 -> 31.5 -> 2.19, 60 ->
     45 -> 3.13, 90 -> 67.5 -> 4.70.
  */
  /* display levels are for banner and similar, growing in numerical order */
  --default-font-display-2-size: 6.2rem;
  --default-font-display-family: 'Baloo 2', sans-serif;
  --default-font-display-weight: 600;
  --default-font-display-size: 5.8rem;
  /* headline corresponds to h1, default 2em/32px */
  --default-font-headline-family: 'Poppins', sans-serif;
  --default-font-headline-weight: 400;
  --default-font-headline-size: 3.8rem;
  /* title corresponds to h2, default 1.5em/24px */
  --default-font-title-family: 'Poppins', sans-serif;
  --default-font-title-weight: 400;
  --default-font-title-size: 3.3rem;
  --default-font-title-small-size: 3.4rem;
  /* subtitle corresponds to h3, default 1.17em/18.72px */
  --default-font-subtitle-family: 'Poppins', sans-serif;
  --default-font-subtitle-weight: 400;
  --default-font-subtitle-size: 2.4rem;
  /* subtitle-2 corresponds to h4, default 1em/16px */
  --default-font-subtitle-2-size: 1.8rem;
  /* subtitle-3 corresponds to h5, default 0.83em/13.28px */
  --default-font-subtitle-3-size: 1.5rem;
  /* subtitle-4 corresponds to h6, default 0.67em/10.72px */
  --default-font-subtitle-4-size: 2.0rem;
  --default-font-body-family: 'Poppins', sans-serif;
  --default-font-body-weight: 400;
  --default-font-body-large-size: 1.9rem;
  --default-font-body-size: 1.7rem;
  --default-font-body-small-size: 1.5rem;
  --default-font-caption-family: 'Baloo 2', sans-serif;
  --default-font-caption-weight: 600;
  --default-font-caption-size: 1.2rem;
  --default-font-button-family: 'Poppins', sans-serif;
  --default-font-button-weight: 600;
  --default-font-button-size: var(--default-font-subtitle-4-size);
  --default-font-quote-family: Georgia, 'Times New Roman', Times, serif;
  --default-font-quote-weight: 250;
  --default-font-code-family: 'Hack', monospace;
  --default-font-code-weight: 400;
  --default-font-quote-family: Georgia, 'Times New Roman', Times, serif;
  --default-font-quote-weight: 250;
  /* Default Prism Variables (Light Mode Fallback - PaperColor Light) */
  --code-bg: #f4f4f4;
  --code-text: #444444;
  --token-comment: #878787;
  --token-punctuation: #444444;
  --token-namespace: opacity: .7;
  --token-property: #005f87;
  --token-tag: #d7005f;
  --token-boolean: #d75f00;
  --token-number: #d75f00;
  --token-constant: #d75f00;
  --token-symbol: #d75f00;
  --token-deleted: #d7005f;
  --token-selector: #d7005f;
  --token-attr-name: #d75f00;
  --token-string: #718c00;
  --token-char: #718c00;
  --token-builtin: #d75f00;
  --token-url: #005f87;
  --token-inserted: #718c00;
  --token-operator: #005f87;
  --token-entity: #d75f00;
  --token-atrule: #d7005f;
  --token-attr-value: #718c00;
  --token-keyword: #d7005f;
  --token-function: #d75f00;
  --token-class-name: #d75f00;
  --token-regex: #718c00;
  --token-important: #d7005f;
  --token-variable: #d7005f;
  --token-prolog: #878787;
  --token-doctype: #878787;
  --token-cdata: #878787;
}

/* =========================================
   THEME APPLICATION LOGIC
   ========================================= */
/* 1. System Preference: Light (Default) */
/* Only applies if user hasn't forced Dark Mode */
@media (prefers-color-scheme: light) {
  html:not([data-theme=dark]) {
    /* fallback page colors - no gradients */
    --default-paper: #e5e7eb;
    --default-ink: hsl(200, 12%, -0.0980392157%);
    --default-semitransparent-paper: rgba(255, 255, 255, 0.1);
    --default-highlight-ink: rgba(255, 255, 255, 0.2);
    --default-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
    /* area type 0: the page background */
    --area-0-paper: #f9fcff;
    --area-0-ink: hsl(200, 12%, -0.0980392157%);
    --area-0-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    /* area type 1: the light (white in orig mode) sections */
    --area-1-paper: #f1f5fb;
    --area-1-ink: hsl(200, 12%, -0.0980392157%);
    --area-1-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    --area-1-icon-ink: #3FA3A3;
    --area-1-accent: #3FA3A3;
    --area-1-icon-accent: #3FA3A3;
    --area-1-alert-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    /* area type 2: the dark (black in orig mode) sections */
    --area-2-paper: #0B0D0E;
    --area-2-ink: #F9F9F9;
    --area-2-link-ink: #F9F9F9;
    --area-2-icon-ink: #F9F9F9;
    --area-2-accent: #3FA3A3;
    /* area type 3: the light-ish (grey in orig mode) sections */
    --area-3-paper: var(--area-7-paper);
    /* area type 4: the nav menu bar */
    --area-4-paper: linear-gradient(to right, #9fd5f5, #ffffff);
    --area-4-ink: #333;
    --area-4-link-ink: #333;
    --area-4-edge-ink: rgba(0,0,0,0.1);
    --area-4-icon-ink: #333;
    --area-4-accent: #1a73a8;
    /* area type 5: the mobile nav menu */
    --area-5-paper: var(--area-4-paper);
    --area-5-ink: #F9F9F9;
    --area-5-hover-ink: hsl(200, 12%, -0.0980392157%);
    --area-5-icon-ink: #F9F9F9;
    --area-5-edge-ink: var(--area-5-paper);
    /* area type 6: the footer section - light background in light mode */
    --area-6-paper: #F9F9F9;
    --area-6-ink: #212121;
    --area-6-caption-ink: #212121;
    --area-6-link-ink: #212121;
    --area-6-icon-ink: #212121;
    /* area type 7: transparent sections on top of area type 0 */
    --area-7-paper: transparent;
    /* area type 8: dark semitransparent */
    --area-8-paper: rgba(0, 0, 0, 0.2);
    /* area type 9: opaque light sections (white in orig mode) */
    --area-9-paper: #F9F9F9;
    --area-9-paper-opaque: var(--area-9-paper);
    --area-9-ink: var(--area-1-ink);
    --area-9-link-ink: var(--area-1-link-ink);
    --area-9-icon-ink: var(--area-1-icon-ink);
    /* panel type 1: project description cards */
    --panel-1-paper: var(--area-1-paper);
    --panel-1-ink: var(--area-1-ink);
    --panel-1-border-top-ink: #d8d8d8;
    --panel-1-border-left-ink: #d8d8d8;
    --panel-1-border-right-ink: #d8d8d8;
    --panel-1-border-bottom-ink: #d8d8d8;
    --panel-1-shadow: var(--default-shadow);
    --panel-1-accent: var(--area-1-accent);
    --panel-1-title-ink: var(--panel-1-ink);
    --panel-1-subtitle-ink: #787878;
    /* panel type 2: team member cards */
    --panel-2-paper: var(--area-1-paper);
    --panel-2-ink: var(--area-1-ink);
    --panel-2-border-top-ink: var(--default-highlight-ink);
    --panel-2-border-left-ink: var(--default-highlight-ink);
    --panel-2-border-right-ink: none;
    --panel-2-border-bottom-ink: none;
    --panel-2-shadow: none;
    /* panel type 3: Blog articles */
    --panel-3-paper: var(--area-1-paper);
    --panel-3-ink: var(--area-1-ink);
    --panel-3-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    --panel-3-link-hover-ink: #4FC2C2;
    --inline-code-ink: #FFAA33;
    --panel-3-border-top-ink: #d8d8d8;
    --panel-3-border-left-ink: #d8d8d8;
    --panel-3-border-right-ink: #d8d8d8;
    --panel-3-border-bottom-ink: #d8d8d8;
    --panel-3-shadow: var(--default-shadow);
    --panel-3-accent: var(--area-1-accent);
    --panel-3-title-ink: var(--panel-3-ink);
    --panel-3-subtitle-ink: #787878;
    /* container type 1: scrollbar track */
    --container-1-paper: #f2f2f2;
    /* button type 1: generic button */
    --button-1-paper: #3FA3A3;
    --button-1-ink: #F9F9F9;
    --button-1-hover-paper: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    /* handle type 1: scrollbar handle */
    --handle-1-ink: #787878;
    --handle-1-hover-ink: #454545;
    /* Resources section - light mode colors */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --accent-primary: #4a5568;
    --accent-secondary: #718096;
    --content-body: #2d3748;
    /* Sidebar & Metaphor Map specific vars */
    --sidebar-bg: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    --sidebar-border: #e2e8f0;
    --sidebar-ink: #2d3748;
    --sidebar-title-ink: #1a202c;
    --sidebar-accent: #3FA3A3; /* Brand Teal */
    --sidebar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Logo & Navigation behavior in Light Mode */
    --logo-filter: none; /* Show original logo colors - picture element handles swapping */
    --nav-background: var(--area-4-paper); /* Use the light gradient */
    /* Prism Syntax Highlighting - Light Mode (PaperColor Light) */
    --code-bg: #f4f4f4;
    --code-text: #444444;
    --token-comment: #878787;
    --token-punctuation: #444444;
    --token-property: #005f87;
    --token-tag: #d7005f;
    --token-boolean: #d75f00;
    --token-number: #d75f00;
    --token-constant: #d75f00;
    --token-symbol: #d75f00;
    --token-deleted: #d7005f;
    --token-selector: #d7005f;
    --token-attr-name: #d75f00;
    --token-string: #718c00;
    --token-char: #718c00;
    --token-builtin: #d75f00;
    --token-url: #005f87;
    --token-inserted: #718c00;
    --token-operator: #005f87;
    --token-entity: #d75f00;
    --token-atrule: #d7005f;
    --token-attr-value: #718c00;
    --token-keyword: #d7005f;
    --token-function: #d75f00;
    --token-class-name: #d75f00;
    --token-regex: #718c00;
    --token-important: #d7005f;
    --token-variable: #d7005f;
    --token-prolog: #878787;
    --token-doctype: #878787;
    --token-cdata: #878787;
  }
}
/* 2. System Preference: Dark */
/* Only applies if user hasn't forced Light Mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme=light]) {
    /* fallback page colors - no gradients */
    --default-paper: #0B0D0E;
    --default-ink: #F9F9F9;
    --default-semitransparent-paper: rgba(0, 0, 0, 0.05);
    --default-highlight-ink: rgba(255, 255, 255, 0.2);
    --default-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
    /* area type 0: the page background */
    --area-0-paper: radial-gradient(at top left, #e5e7eb, rgb(55.88, 66.04, 71.12), #0B0D0E);
    --area-0-ink: #F9F9F9;
    --area-0-link-ink: #66D46B;
    /* area type 1: the light (white in orig mode) sections */
    --area-1-paper: rgb(55.88, 66.04, 71.12);
    --area-1-ink: #F9F9F9;
    --area-1-link-ink: #66D46B;
    --area-1-icon-ink: #66D46B;
    --area-1-accent: #66D46B;
    --area-1-icon-accent: #66D46B;
    --area-1-alert-ink: #D68C28;
    /* area type 2: the dark (black in orig mode) sections */
    --area-2-paper: hsl(200, 12%, -0.0980392157%);
    --area-2-ink: #F9F9F9;
    --area-2-link-ink: #66D46B;
    --area-2-icon-ink: #66D46B;
    --area-2-accent: #66D46B;
    /* area type 3: the light-ish (grey in orig mode) sections */
    --area-3-paper: var(--area-7-paper);
    /* area type 4: the nav menu bar */
    --area-4-paper: linear-gradient(to right, #0d3b66, #33415c);
    --area-4-ink: #f0f0f0;
    --area-4-link-ink: #f0f0f0;
    --area-4-edge-ink: rgba(255,255,255,0.1);
    --area-4-icon-ink: #f0f0f0;
    --area-4-accent: #ffffff;
    /* area type 5: the mobile nav menu */
    --area-5-paper: var(--area-4-paper);
    --area-5-ink: #F9F9F9;
    --area-5-hover-ink: #F9F9F9;
    --area-5-icon-ink: #F9F9F9;
    --area-5-edge-ink: var(--area-5-paper);
    /* area type 6: the dark-ish (dark blue in orig mode) sections */
    --area-6-paper: #0B0D0E;
    --area-6-ink: #F9F9F9;
    --area-6-caption-ink: #d8d8d8;
    --area-6-link-ink: #F9F9F9;
    --area-6-icon-ink: #F9F9F9;
    /* area type 7: transparent sections on top of area type 0 */
    --area-7-paper: transparent;
    /* area type 8: dark semitransparent */
    --area-8-paper: rgba(0, 0, 0, 0.2);
    /* area type 9: opaque light sections (white in orig mode) */
    --area-9-paper: radial-gradient(at top left, #0B0D0E, rgb(55.88, 66.04, 71.12));
    --area-9-paper-opaque: rgba(200, 200, 200, 0.4);
    --area-9-ink: var(--area-1-ink);
    --area-9-link-ink: var(--area-1-link-ink);
    --area-9-icon-ink: var(--area-1-icon-ink);
    /* panel type 1: project description cards */
    --panel-1-paper: #2d3748;
    --panel-1-ink: var(--area-1-ink);
    --panel-1-border-ink: var(--panel-1-paper);
    --panel-1-border-top-ink: var(--default-highlight-ink);
    --panel-1-border-left-ink: var(--default-highlight-ink);
    --panel-1-border-right-ink: none;
    --panel-1-border-bottom-ink: none;
    --panel-1-shadow: var(--default-shadow);
    --panel-1-accent: var(--area-1-accent);
    --panel-1-title-ink: var(--panel-1-ink);
    --panel-1-subtitle-ink: var(--panel-1-accent);
    /* panel type 2: team member cards */
    --panel-2-paper: #2d3748;
    --panel-2-ink: var(--area-1-ink);
    --panel-2-border-top-ink: var(--default-highlight-ink);
    --panel-2-border-left-ink: var(--default-highlight-ink);
    --panel-2-border-right-ink: none;
    --panel-2-border-bottom-ink: none;
    --panel-2-shadow: var(--default-shadow);
    /* panel type 3: Blog articles */
    --panel-3-paper: #2d3748;
    --panel-3-ink: var(--area-1-ink);
    --panel-3-link-hover-ink: #8FFF8A;
    --inline-code-ink: #D68C28;
    --panel-3-border-top-ink: var(--default-highlight-ink);
    --panel-3-border-left-ink: var(--default-highlight-ink);
    --panel-3-border-right-ink: var(--default-highlight-ink);
    --panel-3-border-bottom-ink: var(--default-highlight-ink);
    --panel-3-shadow: var(--default-shadow);
    --panel-3-accent: var(--area-1-accent);
    --panel-3-title-ink: var(--panel-3-ink);
    --panel-3-subtitle-ink: var(--default-highlight-ink);
    /* container type 1: scrollbar track on area type 7 */
    --container-1-paper: transparent;
    /* button type 1: generic button */
    --button-1-paper: #e5e7eb;
    --button-1-ink: #F9F9F9;
    --button-1-hover-paper: rgb(48.7831858407, 126.2168141593, 126.2168141593);
    /* handle type 1: scrollbar handle on container type 1 */
    --handle-1-ink: rgb(78.32, 92.56, 99.68);
    --handle-1-hover-ink: rgb(55.88, 66.04, 71.12);
    /* Resources section - dark mode colors */
    --card-bg: rgb(55.88, 66.04, 71.12);
    --card-border: rgb(78.32, 92.56, 99.68);
    --accent-primary: #e5e7eb;
    --accent-secondary: #D3D7DA;
    --content-body: #D3D7DA;
    /* Sidebar & Metaphor Map specific vars */
    --sidebar-bg: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --sidebar-border: #374151;
    --sidebar-ink: #d1d5db;
    --sidebar-title-ink: #f3f4f6;
    --sidebar-accent: #66D46B; /* Terminal Green */
    --sidebar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    /* Logo & Navigation behavior in Dark Mode */
    --logo-filter: none; /* Keep logo white (default) */
    --nav-background: var(--area-4-paper); /* Use the dark gradient */
    /* panel type 1: project description cards */
    --panel-1-paper: #2d3748;
    --panel-1-ink: var(--area-1-ink);
    --panel-1-border-ink: var(--panel-1-paper);
    --panel-1-border-top-ink: var(--default-highlight-ink);
    --panel-1-border-left-ink: var(--default-highlight-ink);
    --panel-1-border-right-ink: none;
    --panel-1-border-bottom-ink: none;
    --panel-1-shadow: var(--default-shadow);
    --panel-1-accent: var(--area-1-accent);
    --panel-1-title-ink: var(--panel-1-ink);
    --panel-1-subtitle-ink: var(--panel-1-accent);
    /* panel type 2: team member cards */
    --panel-2-paper: #2d3748;
    --panel-2-ink: var(--area-1-ink);
    --panel-2-border-top-ink: var(--default-highlight-ink);
    --panel-2-border-left-ink: var(--default-highlight-ink);
    --panel-2-border-right-ink: none;
    --panel-2-border-bottom-ink: none;
    --panel-2-shadow: var(--default-shadow);
    /* panel type 3: Blog articles */
    --panel-3-paper: #2d3748;
    --panel-3-ink: var(--area-1-ink);
    --panel-3-link-ink: #66D46B;
    --panel-3-link-hover-ink: #8FFF8A;
    --inline-code-ink: #D68C28;
    --panel-3-border-top-ink: var(--default-highlight-ink);
    --panel-3-border-left-ink: var(--default-highlight-ink);
    --panel-3-border-right-ink: var(--default-highlight-ink);
    --panel-3-border-bottom-ink: var(--default-highlight-ink);
    --panel-3-shadow: var(--default-shadow);
    --panel-3-accent: var(--area-1-accent);
    --panel-3-title-ink: var(--panel-3-ink);
    --panel-3-subtitle-ink: var(--default-highlight-ink);
    /* Project description cards - dark mode */
    --project-card-border-top-ink: var(--panel-1-border-top-ink);
    --project-card-border-left-ink: var(--panel-1-border-left-ink);
    --project-card-border-right-ink: var(--panel-1-border-right-ink);
    --project-card-border-bottom-ink: var(--panel-1-border-bottom-ink);
    --project-card-shadow: var(--default-shadow);
    --project-card-ink: var(--panel-1-ink);
    --project-card-paper: var(--panel-1-paper);
    --project-card-subtitle-font-size: var(--default-font-subtitle-2-size);
    --project-card-subtitle-font-weight: bold;
    --project-card-subtitle-ink: var(--panel-1-subtitle-ink);
    --project-card-title-font-size: var(--default-font-subtitle-size);
    --project-card-title-ink: var(--panel-1-title-ink);
    --project-card-quote-ink: var(--panel-1-ink);
    --project-card-quote-font-size: normal;
    --project-card-quote-font-style: normal;
    --project-card-quote-font-weight: normal;
    --project-card-quote-sig-font-size: var(--default-font-caption-size);
    --project-card-quote-sig-font-style: normal;
    --project-card-quote-sig-font-weight: bold;
    /* Prism Syntax Highlighting - Dark Mode (Monokai) */
    --code-bg: #272822;
    --code-text: #f8f8f2;
    --token-comment: #75715e;
    --token-punctuation: #f8f8f2;
    --token-property: #f92672;
    --token-tag: #f92672;
    --token-boolean: #ae81ff;
    --token-number: #ae81ff;
    --token-constant: #f92672;
    --token-symbol: #f92672;
    --token-deleted: #f92672;
    --token-selector: #a6e22e;
    --token-attr-name: #a6e22e;
    --token-string: #a6e22e;
    --token-char: #a6e22e;
    --token-builtin: #a6e22e;
    --token-url: #f8f8f2;
    --token-inserted: #a6e22e;
    --token-operator: #f8f8f2;
    --token-entity: #f8f8f2;
    --token-atrule: #e6db74;
    --token-attr-value: #e6db74;
    --token-keyword: #66d9ef;
    --token-function: #e6db74;
    --token-class-name: #e6db74;
    --token-regex: #fd971f;
    --token-important: #fd971f;
    --token-variable: #f8f8f2;
    --token-prolog: #75715e;
    --token-doctype: #75715e;
    --token-cdata: #75715e;
  }
}
/* 3. User Force: Light */
html[data-theme=light] {
  /* fallback page colors - no gradients */
  --default-paper: #e5e7eb;
  --default-ink: hsl(200, 12%, -0.0980392157%);
  --default-semitransparent-paper: rgba(255, 255, 255, 0.1);
  --default-highlight-ink: rgba(255, 255, 255, 0.2);
  --default-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
  /* area type 0: the page background */
  --area-0-paper: #f9fcff;
  --area-0-ink: hsl(200, 12%, -0.0980392157%);
  --area-0-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  /* area type 1: the light (white in orig mode) sections */
  --area-1-paper: #f1f5fb;
  --area-1-ink: hsl(200, 12%, -0.0980392157%);
  --area-1-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  --area-1-icon-ink: #3FA3A3;
  --area-1-accent: #3FA3A3;
  --area-1-icon-accent: #3FA3A3;
  --area-1-alert-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  /* area type 2: the dark (black in orig mode) sections */
  --area-2-paper: #0B0D0E;
  --area-2-ink: #F9F9F9;
  --area-2-link-ink: #F9F9F9;
  --area-2-icon-ink: #F9F9F9;
  --area-2-accent: #3FA3A3;
  /* area type 3: the light-ish (grey in orig mode) sections */
  --area-3-paper: var(--area-7-paper);
  /* area type 4: the nav menu bar */
  --area-4-paper: linear-gradient(to right, #9fd5f5, #ffffff);
  --area-4-ink: #333;
  --area-4-link-ink: #333;
  --area-4-edge-ink: rgba(0,0,0,0.1);
  --area-4-icon-ink: #333;
  --area-4-accent: #1a73a8;
  /* area type 5: the mobile nav menu */
  --area-5-paper: var(--area-4-paper);
  --area-5-ink: #F9F9F9;
  --area-5-hover-ink: hsl(200, 12%, -0.0980392157%);
  --area-5-icon-ink: #F9F9F9;
  --area-5-edge-ink: var(--area-5-paper);
  /* area type 6: the footer section - light background in light mode */
  --area-6-paper: #F9F9F9;
  --area-6-ink: #212121;
  --area-6-caption-ink: #212121;
  --area-6-link-ink: #212121;
  --area-6-icon-ink: #212121;
  /* area type 7: transparent sections on top of area type 0 */
  --area-7-paper: transparent;
  /* area type 8: dark semitransparent */
  --area-8-paper: rgba(0, 0, 0, 0.2);
  /* area type 9: opaque light sections (white in orig mode) */
  --area-9-paper: #F9F9F9;
  --area-9-paper-opaque: var(--area-9-paper);
  --area-9-ink: var(--area-1-ink);
  --area-9-link-ink: var(--area-1-link-ink);
  --area-9-icon-ink: var(--area-1-icon-ink);
  /* panel type 1: project description cards */
  --panel-1-paper: var(--area-1-paper);
  --panel-1-ink: var(--area-1-ink);
  --panel-1-border-top-ink: #d8d8d8;
  --panel-1-border-left-ink: #d8d8d8;
  --panel-1-border-right-ink: #d8d8d8;
  --panel-1-border-bottom-ink: #d8d8d8;
  --panel-1-shadow: var(--default-shadow);
  --panel-1-accent: var(--area-1-accent);
  --panel-1-title-ink: var(--panel-1-ink);
  --panel-1-subtitle-ink: #787878;
  /* panel type 2: team member cards */
  --panel-2-paper: var(--area-1-paper);
  --panel-2-ink: var(--area-1-ink);
  --panel-2-border-top-ink: var(--default-highlight-ink);
  --panel-2-border-left-ink: var(--default-highlight-ink);
  --panel-2-border-right-ink: none;
  --panel-2-border-bottom-ink: none;
  --panel-2-shadow: none;
  /* panel type 3: Blog articles */
  --panel-3-paper: var(--area-1-paper);
  --panel-3-ink: var(--area-1-ink);
  --panel-3-link-ink: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  --panel-3-link-hover-ink: #4FC2C2;
  --inline-code-ink: #FFAA33;
  --panel-3-border-top-ink: #d8d8d8;
  --panel-3-border-left-ink: #d8d8d8;
  --panel-3-border-right-ink: #d8d8d8;
  --panel-3-border-bottom-ink: #d8d8d8;
  --panel-3-shadow: var(--default-shadow);
  --panel-3-accent: var(--area-1-accent);
  --panel-3-title-ink: var(--panel-3-ink);
  --panel-3-subtitle-ink: #787878;
  /* container type 1: scrollbar track */
  --container-1-paper: #f2f2f2;
  /* button type 1: generic button */
  --button-1-paper: #3FA3A3;
  --button-1-ink: #F9F9F9;
  --button-1-hover-paper: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  /* handle type 1: scrollbar handle */
  --handle-1-ink: #787878;
  --handle-1-hover-ink: #454545;
  /* Resources section - light mode colors */
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --accent-primary: #4a5568;
  --accent-secondary: #718096;
  --content-body: #2d3748;
  /* Sidebar & Metaphor Map specific vars */
  --sidebar-bg: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  --sidebar-border: #e2e8f0;
  --sidebar-ink: #2d3748;
  --sidebar-title-ink: #1a202c;
  --sidebar-accent: #3FA3A3; /* Brand Teal */
  --sidebar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Logo & Navigation behavior in Light Mode */
  --logo-filter: none; /* Show original logo colors - picture element handles swapping */
  --nav-background: var(--area-4-paper); /* Use the light gradient */
  /* Prism Syntax Highlighting - Light Mode (PaperColor Light) */
  --code-bg: #f4f4f4;
  --code-text: #444444;
  --token-comment: #878787;
  --token-punctuation: #444444;
  --token-property: #005f87;
  --token-tag: #d7005f;
  --token-boolean: #d75f00;
  --token-number: #d75f00;
  --token-constant: #d75f00;
  --token-symbol: #d75f00;
  --token-deleted: #d7005f;
  --token-selector: #d7005f;
  --token-attr-name: #d75f00;
  --token-string: #718c00;
  --token-char: #718c00;
  --token-builtin: #d75f00;
  --token-url: #005f87;
  --token-inserted: #718c00;
  --token-operator: #005f87;
  --token-entity: #d75f00;
  --token-atrule: #d7005f;
  --token-attr-value: #718c00;
  --token-keyword: #d7005f;
  --token-function: #d75f00;
  --token-class-name: #d75f00;
  --token-regex: #718c00;
  --token-important: #d7005f;
  --token-variable: #d7005f;
  --token-prolog: #878787;
  --token-doctype: #878787;
  --token-cdata: #878787;
}

/* 4. User Force: Dark */
html[data-theme=dark] {
  /* fallback page colors - no gradients */
  --default-paper: #0B0D0E;
  --default-ink: #F9F9F9;
  --default-semitransparent-paper: rgba(0, 0, 0, 0.05);
  --default-highlight-ink: rgba(255, 255, 255, 0.2);
  --default-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
  /* area type 0: the page background */
  --area-0-paper: radial-gradient(at top left, #e5e7eb, rgb(55.88, 66.04, 71.12), #0B0D0E);
  --area-0-ink: #F9F9F9;
  --area-0-link-ink: #66D46B;
  /* area type 1: the light (white in orig mode) sections */
  --area-1-paper: rgb(55.88, 66.04, 71.12);
  --area-1-ink: #F9F9F9;
  --area-1-link-ink: #66D46B;
  --area-1-icon-ink: #66D46B;
  --area-1-accent: #66D46B;
  --area-1-icon-accent: #66D46B;
  --area-1-alert-ink: #D68C28;
  /* area type 2: the dark (black in orig mode) sections */
  --area-2-paper: hsl(200, 12%, -0.0980392157%);
  --area-2-ink: #F9F9F9;
  --area-2-link-ink: #66D46B;
  --area-2-icon-ink: #66D46B;
  --area-2-accent: #66D46B;
  /* area type 3: the light-ish (grey in orig mode) sections */
  --area-3-paper: var(--area-7-paper);
  /* area type 4: the nav menu bar */
  --area-4-paper: linear-gradient(to right, #0d3b66, #33415c);
  --area-4-ink: #f0f0f0;
  --area-4-link-ink: #f0f0f0;
  --area-4-edge-ink: rgba(255,255,255,0.1);
  --area-4-icon-ink: #f0f0f0;
  --area-4-accent: #ffffff;
  /* area type 5: the mobile nav menu */
  --area-5-paper: var(--area-4-paper);
  --area-5-ink: #F9F9F9;
  --area-5-hover-ink: #F9F9F9;
  --area-5-icon-ink: #F9F9F9;
  --area-5-edge-ink: var(--area-5-paper);
  /* area type 6: the dark-ish (dark blue in orig mode) sections */
  --area-6-paper: #0B0D0E;
  --area-6-ink: #F9F9F9;
  --area-6-caption-ink: #d8d8d8;
  --area-6-link-ink: #F9F9F9;
  --area-6-icon-ink: #F9F9F9;
  /* area type 7: transparent sections on top of area type 0 */
  --area-7-paper: transparent;
  /* area type 8: dark semitransparent */
  --area-8-paper: rgba(0, 0, 0, 0.2);
  /* area type 9: opaque light sections (white in orig mode) */
  --area-9-paper: radial-gradient(at top left, #0B0D0E, rgb(55.88, 66.04, 71.12));
  --area-9-paper-opaque: rgba(200, 200, 200, 0.4);
  --area-9-ink: var(--area-1-ink);
  --area-9-link-ink: var(--area-1-link-ink);
  --area-9-icon-ink: var(--area-1-icon-ink);
  /* panel type 1: project description cards */
  --panel-1-paper: #2d3748;
  --panel-1-ink: var(--area-1-ink);
  --panel-1-border-ink: var(--panel-1-paper);
  --panel-1-border-top-ink: var(--default-highlight-ink);
  --panel-1-border-left-ink: var(--default-highlight-ink);
  --panel-1-border-right-ink: none;
  --panel-1-border-bottom-ink: none;
  --panel-1-shadow: var(--default-shadow);
  --panel-1-accent: var(--area-1-accent);
  --panel-1-title-ink: var(--panel-1-ink);
  --panel-1-subtitle-ink: var(--panel-1-accent);
  /* panel type 2: team member cards */
  --panel-2-paper: #2d3748;
  --panel-2-ink: var(--area-1-ink);
  --panel-2-border-top-ink: var(--default-highlight-ink);
  --panel-2-border-left-ink: var(--default-highlight-ink);
  --panel-2-border-right-ink: none;
  --panel-2-border-bottom-ink: none;
  --panel-2-shadow: var(--default-shadow);
  /* panel type 3: Blog articles */
  --panel-3-paper: #2d3748;
  --panel-3-ink: var(--area-1-ink);
  --panel-3-link-hover-ink: #8FFF8A;
  --inline-code-ink: #D68C28;
  --panel-3-border-top-ink: var(--default-highlight-ink);
  --panel-3-border-left-ink: var(--default-highlight-ink);
  --panel-3-border-right-ink: var(--default-highlight-ink);
  --panel-3-border-bottom-ink: var(--default-highlight-ink);
  --panel-3-shadow: var(--default-shadow);
  --panel-3-accent: var(--area-1-accent);
  --panel-3-title-ink: var(--panel-3-ink);
  --panel-3-subtitle-ink: var(--default-highlight-ink);
  /* container type 1: scrollbar track on area type 7 */
  --container-1-paper: transparent;
  /* button type 1: generic button */
  --button-1-paper: #e5e7eb;
  --button-1-ink: #F9F9F9;
  --button-1-hover-paper: rgb(48.7831858407, 126.2168141593, 126.2168141593);
  /* handle type 1: scrollbar handle on container type 1 */
  --handle-1-ink: rgb(78.32, 92.56, 99.68);
  --handle-1-hover-ink: rgb(55.88, 66.04, 71.12);
  /* Resources section - dark mode colors */
  --card-bg: rgb(55.88, 66.04, 71.12);
  --card-border: rgb(78.32, 92.56, 99.68);
  --accent-primary: #e5e7eb;
  --accent-secondary: #D3D7DA;
  --content-body: #D3D7DA;
  /* Sidebar & Metaphor Map specific vars */
  --sidebar-bg: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  --sidebar-border: #374151;
  --sidebar-ink: #d1d5db;
  --sidebar-title-ink: #f3f4f6;
  --sidebar-accent: #66D46B; /* Terminal Green */
  --sidebar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  /* Logo & Navigation behavior in Dark Mode */
  --logo-filter: none; /* Keep logo white (default) */
  --nav-background: var(--area-4-paper); /* Use the dark gradient */
  /* panel type 1: project description cards */
  --panel-1-paper: #2d3748;
  --panel-1-ink: var(--area-1-ink);
  --panel-1-border-ink: var(--panel-1-paper);
  --panel-1-border-top-ink: var(--default-highlight-ink);
  --panel-1-border-left-ink: var(--default-highlight-ink);
  --panel-1-border-right-ink: none;
  --panel-1-border-bottom-ink: none;
  --panel-1-shadow: var(--default-shadow);
  --panel-1-accent: var(--area-1-accent);
  --panel-1-title-ink: var(--panel-1-ink);
  --panel-1-subtitle-ink: var(--panel-1-accent);
  /* panel type 2: team member cards */
  --panel-2-paper: #2d3748;
  --panel-2-ink: var(--area-1-ink);
  --panel-2-border-top-ink: var(--default-highlight-ink);
  --panel-2-border-left-ink: var(--default-highlight-ink);
  --panel-2-border-right-ink: none;
  --panel-2-border-bottom-ink: none;
  --panel-2-shadow: var(--default-shadow);
  /* panel type 3: Blog articles */
  --panel-3-paper: #2d3748;
  --panel-3-ink: var(--area-1-ink);
  --panel-3-link-ink: #66D46B;
  --panel-3-link-hover-ink: #8FFF8A;
  --inline-code-ink: #D68C28;
  --panel-3-border-top-ink: var(--default-highlight-ink);
  --panel-3-border-left-ink: var(--default-highlight-ink);
  --panel-3-border-right-ink: var(--default-highlight-ink);
  --panel-3-border-bottom-ink: var(--default-highlight-ink);
  --panel-3-shadow: var(--default-shadow);
  --panel-3-accent: var(--area-1-accent);
  --panel-3-title-ink: var(--panel-3-ink);
  --panel-3-subtitle-ink: var(--default-highlight-ink);
  /* Project description cards - dark mode */
  --project-card-border-top-ink: var(--panel-1-border-top-ink);
  --project-card-border-left-ink: var(--panel-1-border-left-ink);
  --project-card-border-right-ink: var(--panel-1-border-right-ink);
  --project-card-border-bottom-ink: var(--panel-1-border-bottom-ink);
  --project-card-shadow: var(--default-shadow);
  --project-card-ink: var(--panel-1-ink);
  --project-card-paper: var(--panel-1-paper);
  --project-card-subtitle-font-size: var(--default-font-subtitle-2-size);
  --project-card-subtitle-font-weight: bold;
  --project-card-subtitle-ink: var(--panel-1-subtitle-ink);
  --project-card-title-font-size: var(--default-font-subtitle-size);
  --project-card-title-ink: var(--panel-1-title-ink);
  --project-card-quote-ink: var(--panel-1-ink);
  --project-card-quote-font-size: normal;
  --project-card-quote-font-style: normal;
  --project-card-quote-font-weight: normal;
  --project-card-quote-sig-font-size: var(--default-font-caption-size);
  --project-card-quote-sig-font-style: normal;
  --project-card-quote-sig-font-weight: bold;
  /* Prism Syntax Highlighting - Dark Mode (Monokai) */
  --code-bg: #272822;
  --code-text: #f8f8f2;
  --token-comment: #75715e;
  --token-punctuation: #f8f8f2;
  --token-property: #f92672;
  --token-tag: #f92672;
  --token-boolean: #ae81ff;
  --token-number: #ae81ff;
  --token-constant: #f92672;
  --token-symbol: #f92672;
  --token-deleted: #f92672;
  --token-selector: #a6e22e;
  --token-attr-name: #a6e22e;
  --token-string: #a6e22e;
  --token-char: #a6e22e;
  --token-builtin: #a6e22e;
  --token-url: #f8f8f2;
  --token-inserted: #a6e22e;
  --token-operator: #f8f8f2;
  --token-entity: #f8f8f2;
  --token-atrule: #e6db74;
  --token-attr-value: #e6db74;
  --token-keyword: #66d9ef;
  --token-function: #e6db74;
  --token-class-name: #e6db74;
  --token-regex: #fd971f;
  --token-important: #fd971f;
  --token-variable: #f8f8f2;
  --token-prolog: #75715e;
  --token-doctype: #75715e;
  --token-cdata: #75715e;
}

/*
 * Note: prefer not to use sass variables ($foo) below this point, and use
 * mainly css custom properties instead since these can be changed
 * dynamically at the css level itself through checkbox :checked, or media
 * queries like prefers-color-scheme. In contrast, all $-variables are
 * expanded away at sass preprocessing time.
 */
/*
 * mapping from roles to concrete element properties
 */
html {
  /* font defaults */
  --body-font-family: var(--default-font-body-family);
  --body-font-large-size: var(--default-font-body-large-size);
  --body-font-size: var(--default-font-body-size);
  --body-font-weight: var(--default-font-body-weight);
  --caption-font-family: var(--default-font-caption-family);
  --caption-font-weight: var(--default-font-caption-weight);
  --h1-font-size: var(--default-font-headline-size);
  --h2-font-size: var(--default-font-title-size);
  --h3-font-size: var(--default-font-subtitle-size);
  --h4-font-size: var(--default-font-subtitle-2-size);
  --h5-font-size: var(--default-font-subtitle-3-size);
  --h6-font-size: var(--default-font-subtitle-4-size);
  --headline-font-family: var(--default-font-headline-family);
  --headline-font-weight: var(--default-font-headline-weight);
  --subtitle-font-family: var(--default-font-subtitle-family);
  --subtitle-font-weight: var(--default-font-subtitle-weight);
  --title-font-family: var(--default-font-title-family);
  --title-font-weight: var(--default-font-title-weight);
  /* global colour defaults (TODO: should mostly be part of area designs instead) */
  --body-ink: var(--default-ink);
  --body-paper: var(--default-paper);
  --alert-icon-ink: var(--area-1-alert-ink);
  --anchor-ink: var(--area-0-link-ink);
  --hr-line-accent-paper: var(--area-1-accent);
  /* the page background, area type 0 */
  --main-ink: var(--area-0-ink);
  --main-paper: var(--area-0-paper);
  /* transparent sections on top of page background, area type 7 */
  --section-bg-transp-paper: var(--area-7-paper);
  /* dark semitransparent section */
  --section-bg-smoke-paper: var(--area-8-paper);
  /* scrollbar on top of page background */
  --scrollbar-track-paper: var(--container-1-paper);
  --scrollbar-thumb-ink: var(--handle-1-ink);
  --scrollbar-thumb-hover-ink: var(--handle-1-hover-ink);
  /* icons (relate icon sizes to headings) */
  --alert-icon-font-size: var(--h1-font-size);
  --contact-icon-size: var(--h3-font-size);
  --icon-accent-size: var(--h3-font-size);
  --footer-icon-size: var(--h2-font-size);
  --team-member-icon-size: var(--h4-font-size);
  /* generic button */
  --button-font-family: var(--default-font-button-family);
  --button-font-size: var(--default-font-button-size);
  --button-font-weight: var(--default-font-button-weight);
  --button-hover-paper: var(--button-1-hover-paper);
  --button-ink: var(--button-1-ink);
  --button-paper: var(--button-1-paper);
  /* call to action text */
  --call-to-action-font-size: var(--default-font-subtitle-size);
  /* the light (white in orig mode) sections, area type 1 */
  --icon-accent-ink: var(--area-1-icon-accent);
  --bullet-accent-ink: var(--area-1-accent);
  /* the opaque light sections (white in orig mode), area type 9 */
  --section-bg-white-paper: var(--area-9-paper);
  /* news section (based on light section) */
  --news-border-ink: var(--area-1-accent);
  --news-content-font-size: var(--default-font-body-small-size);
  --news-content-font-weight: normal;
  --news-date-font-size: var(--default-font-subtitle-4-size);
  --news-date-font-style: italic;
  --news-date-font-weight: normal;
  --news-title-font-size: var(--default-font-subtitle-2-size);
  /* contact section (based on opaque light section) */
  --contact-font-family: var(--default-font-subtitle-family);
  --contact-font-size: var(--default-font-subtitle-3-size);
  --contact-font-small-size: calc(var(--contact-font-size) * 0.9); /* shrunken for multiline texts */
  --contact-font-weight: bold;
  --contact-icon-box-border-ink: var(--area-9-icon-ink);
  --contact-ink: var(--area-9-ink);
  --contact-icon-ink: var(--area-9-icon-ink);
  --contact-link-ink: var(--area-9-link-ink);
  --contact-triangle-fill: var(--area-9-paper-opaque); /* cannot be a gradient or null */
  /* the light-ish (grey in orig mode) sections, area type 3 */
  --section-bg-light-paper: var(--area-3-paper);
  /* the dark (black in orig mode) sections, area type 2 */
  --section-bg-black-paper: var(--area-2-paper);
  --section-bg-black-ink: var(--area-2-ink);
  /* banner at top of about page (based on dark section) */
  --page-banner-bg-border-ink: var(--area-2-accent);
  --page-banner-bg-paper: var(--area-2-paper);
  /* banner with headline at top of home page (based on dark section) */
  --home-banner-paper: var(--area-2-paper);
  --home-banner-ink: var(--area-2-ink);
  /* footer (based on dark blue section) */
  --footer-icon-ink: var(--area-6-icon-ink);
  --footer-link-font-size: var(--default-font-subtitle-2-size);
  --footer-link-ink: var(--area-6-link-ink);
  --footer-copyright-font-size: var(--default-font-caption-size);
  --footer-copyright-ink: var(--area-6-caption-ink);
  /* the top nav menu bar, area type 4 */
  --topnav-burger-icon-ink: var(--area-4-icon-ink);
  --topnav-ink: var(--area-4-ink);
  --topnav-paper: var(--area-4-paper);
  --topnav-active-font-weight: bold;
  --topnav-font-size: var(--button-font-size); /* relate nav item font to button font */
  --topnav-font-weight: var(--button-font-weight); /* relate nav item font to button font */
  --topnav-link-active-ink: var(--area-4-accent);
  --topnav-link-hover-ink: var(--area-4-accent);
  --topnav-link-ink: var(--area-4-link-ink);
  --topnav-link-underline-ink: var(--area-4-accent);
  --topnav-border-ink: var(--area-4-edge-ink);
  /* the mobile nav menu, area type 5 (and inheriting from top nav menu) */
  --mobilenav-border-accent-ink: var(--area-5-edge-ink);
  --mobilenav-burger-close-icon-ink: var(--area-5-icon-ink);
  --mobilenav-font-size: var(--default-font-title-size);
  --mobilenav-hover-font-weight: bold;
  --mobilenav-hover-ink: var(--area-5-hover-ink);
  --mobilenav-ink: var(--area-5-ink);
  --mobilenav-paper: var(--area-5-paper);
  /* the dark-ish (dark blue in orig mode) sections, area type 6 */
  --section-bg-blue-paper: var(--area-6-paper);
  --section-bg-blue-ink: var(--area-6-ink);
  --section-bg-darkcode-paper: var(--area-6-paper);
  --section-bg-darkcode-ink: var(--area-6-ink);
  /* project description cards, panel type 1 */
  --project-card-border-top-ink: var(--panel-1-border-top-ink);
  --project-card-border-left-ink: var(--panel-1-border-left-ink);
  --project-card-border-right-ink: var(--panel-1-border-right-ink);
  --project-card-border-bottom-ink: var(--panel-1-border-bottom-ink);
  --project-card-shadow: var(--default-shadow);
  --project-card-ink: var(--panel-1-ink);
  --project-card-paper: var(--panel-1-paper);
  --project-card-subtitle-font-size: var(--default-font-subtitle-2-size);
  --project-card-subtitle-font-weight: bold;
  --project-card-subtitle-ink: var(--panel-1-subtitle-ink);
  --project-card-title-font-size: var(--default-font-subtitle-size);
  --project-card-title-ink: var(--panel-1-title-ink);
  --project-card-quote-ink: var(--panel-1-ink);
  --project-card-quote-font-size: normal;
  --project-card-quote-font-style: normal;
  --project-card-quote-font-weight: normal;
  --project-card-quote-sig-font-size: var(--default-font-caption-size);
  --project-card-quote-sig-font-style: normal;
  --project-card-quote-sig-font-weight: bold;
  /* team member cards, panel type 2 */
  --team-member-border-top-ink: var(--panel-2-border-top-ink);
  --team-member-border-left-ink: var(--panel-2-border-left-ink);
  --team-member-border-right-ink: var(--panel-2-border-right-ink);
  --team-member-border-bottom-ink: var(--panel-2-border-bottom-ink);
  --team-member-shadow: var(--panel-2-shadow);
  --team-member-paper: var(--panel-2-paper);
  --team-member-ink: var(--panel-2-ink);
  --team-member-icon-ink: var(--panel-2-ink);
  --team-member-quote-ink: var(--team-member-ink);
  --team-member-quote-font-style: normal;
  --team-member-quote-font-weight: normal;
  --team-member-quote-font-size: larger;
  /* Blog articles, panel type 3 */
  --blog-article-border-top-ink: var(--panel-3-border-top-ink);
  --blog-article-border-left-ink: var(--panel-3-border-left-ink);
  --blog-article-border-right-ink: var(--panel-3-border-right-ink);
  --blog-article-border-bottom-ink: var(--panel-3-border-bottom-ink);
  --blog-article-shadow: var(--default-shadow);
  --blog-article-ink: var(--panel-3-ink);
  --blog-article-paper: var(--panel-3-paper);
  --blog-article-link-ink: var(--panel-3-link-ink);
  --blog-article-link-hover-ink: var(--panel-3-link-hover-ink);
  --blog-article-subtitle-font-size: var(--default-font-subtitle-2-size);
  --blog-article-subtitle-font-weight: bold;
  --blog-article-subtitle-ink: var(--panel-3-subtitle-ink);
  --blog-article-title-font-size: var(--default-font-subtitle-size);
  --blog-article-title-ink: var(--panel-3-title-ink);
  --blog-article-quote-ink: var(--panel-3-ink);
  --blog-article-quote-font-size: var(--default-font-body-large-size);
  --blog-article-quote-font-style: normal;
  --blog-article-quote-font-weight: normal;
  --blog-article-quote-sig-font-size: var(--default-font-caption-size);
  --blog-article-quote-sig-font-style: normal;
  --blog-article-quote-sig-font-weight: bold;
  --blog-category-font-size: var(--default-font-caption-size);
  /* what-sparks-our-interest cards */
  --txt-career-subtitle-font-size: var(--default-font-title-size);
  --career-core-title-font-size: var(--default-font-subtitle-size);
}

/*
 * css element implementations
 */
html {
  /* do not set size of html element itself - leave it as auto
  */
  /* Rem and px: Most browsers use 16px as the default root font size, and
     scaling this by 62.5% (10/16) results in a root font size such that
     1rem equals 10px, which makes it easy to relate default rems and px
     while still being responsive when a user has changed the base font
     setting.

     Font scaling: 10px is equal to 1vw at 1000px width, so 1vw is a good
     basis for scaling the font with the browser window size. With body
     text no smaller than 14px (11pt) for legibility on a small device,
     and at most 23px (17pt) on a laptop display, we should be at 14/16 =
     87.5% on a 320px screen (1vw=3.2), and at 23/16 = 143.75% on a
     1440px screen (1vw=14.4). This yields the base size 100% at a screen
     width of 320 + (1440-320)*(16-14)/(23-14) = 569px, corresponding to
     lines of about 50-80 characters depending on the font and the
     margins - just what we want for readability.

     Ideally we would like to scale the font by 14/16 + (23-14)/16 *
     (100vw-320)/(1440-320) for varying viewport widths. However, we need
     to express the size as a percentage of the inherited root font size,
     thus: 87.5% + (143.75% - 87.5%) * (100vw-320)/1120. But because 1vw
     is a length, and CSS calc() does not allow lengths to be divided or
     multiplied, we cannot use vw to compute a unitless scale factor to
     apply to a percentage. Instead we use percent (of the inherited
     size) for the low end only, and add a term that scales with the
     width but not with the setting for the root font: 87.5% +
     (23-14)*(100vw-320px)/1120, which simplifies to 87.5% + 0.8036vw -
     2.571px.

     Finally, scaling this by 10/16 to make 1rem = 10px at 569px, we get
     the formula 54.69% + 0.5022vw - 1.607px.

     With this scaling of the root font size, a 1.6rem font will be 23px
     at 1440px viewport width. Hence, if you want a font to have size F
     px at 1440px width, its unscaled size should be 1.6*F/23; for
     example, 60px @1440 implies a 4.174rem font (41.74 px @569).

     Assuming an 'ideal' aspect of 16:9, we can substitute vh*(16/9) for
     vw in the scale factor, or 0.8929vh after rem scaling. To handle
     extreme proportions like ultrawide screens (around 21:9), we can
     then calculate sizes both for vw and vh and take the smallest, to
     effectively limit the proportions to 16:9 in landscape mode.
  */
  /* Fixed font-size - no viewport scaling to preserve zoom behavior */
  font-size: 62.5%; /* 1rem=10px */
}

/* Increase font sizes on larger screens */
@media (min-width: 1440px) {
  html {
    --default-font-body-size: 1.8rem;
    --default-font-body-large-size: 2.0rem;
    --default-font-headline-size: 4.0rem;
    --default-font-title-size: 3.5rem;
    --default-font-subtitle-size: 2.6rem;
    --default-font-subtitle-2-size: 2.0rem;
    --default-font-subtitle-4-size: 2.2rem;
  }
}
/* Further increase on ultra-wide screens */
@media (min-width: 1800px) {
  html {
    --default-font-body-size: 1.9rem;
    --default-font-body-large-size: 2.1rem;
    --default-font-headline-size: 4.2rem;
    --default-font-title-size: 3.7rem;
    --default-font-subtitle-size: 2.8rem;
    --default-font-subtitle-2-size: 2.2rem;
    --default-font-subtitle-4-size: 2.4rem;
  }
}
body {
  /* note: it's best to leave a default solid colour on the body
     and use a sub-element like main for the actual background
  */
  min-height: 100vh; /* ensure body covers whole viewport */
  background: var(--body-paper); /* just a fallback background */
  margin: 0;
  padding: 0;
  color: var(--body-ink);
  /* note: line heights should be unitless - the inheritance behaviour of
     line height using em/rem, %, or px, is almost never what you want!
     (the default is typically about 1.2, but around 1.5 is recommended
     for general readability and accessibility)
  */
  line-height: 1.4;
  font-family: var(--body-font-family);
  font-weight: var(--body-font-weight);
  font-size: var(--body-font-size);
}

main {
  padding-top: 6rem; /* make room for navbar at the top */
  background: var(--main-paper);
  color: var(--main-ink);
}

.banner-title {
  font-family: var(--default-font-display-family);
  font-weight: var(--default-font-display-weight);
  font-size: var(--default-font-display-size);
  color: inherit;
  margin: 0;
  padding: 0;
  text-align: center;
}

a {
  color: var(--anchor-ink);
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

h1, .txt-headline {
  font-family: var(--headline-font-family);
  font-weight: var(--headline-font-weight);
}

h2, .txt-title {
  font-family: var(--title-font-family);
  font-weight: var(--title-font-weight);
}

h3, h4, h5, h6, .txt-subtitle {
  font-family: var(--subtitle-font-family);
  font-weight: var(--subtitle-font-weight);
}

.txt-secondary {
  font-family: var(--caption-font-family);
  font-weight: var(--caption-font-weight);
}

code, pre {
  font-family: var(--default-font-code-family);
  font-weight: var(--default-font-code-weight);
}

.markdown-body pre,
.markdown-body code {
  font-family: var(--default-font-code-family);
  font-size: 0.95em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

blockquote {
  font-family: var(--default-font-quote-family);
  font-weight: var(--default-font-quote-weight);
  font-style: italic;
  border-left: 4px solid var(--area-1-accent);
  padding-left: 1.5rem;
  margin-left: 0;
  color: inherit;
  font-size: calc(1em * var(--content-font-scale, 1));
}

h1 {
  font-size: var(--h1-font-size);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  margin-left: auto;
  margin-right: auto;
  font-size: calc(1em * var(--content-font-scale, 1));
}

ul, ol {
  margin: 0;
  padding: 0 0 0 2rem;
  font-size: calc(1em * var(--content-font-scale, 1));
}

ul > li, ol > li {
  margin: 0.3em 0;
}

.extra-indent {
  margin-left: 0.75rem;
}

.text-medium {
  font-size: var(--body-font-large-size);
}

.txt-copyright {
  font-size: var(--footer-copyright-font-size);
  color: var(--footer-copyright-ink);
}

.txt-career-subtitle {
  font-size: var(--txt-career-subtitle-font-size);
}

span.desc {
  border-bottom: 1px dotted;
}

span.desc:hover {
  border-bottom: 1px solid;
}

.bx-viewport,
.bx-wrapper { /* jquery */
  clear: both;
}

.bx-wrapper .bx-viewport { /* jquery */
  border: none !important;
}

a.anchor {
  display: block;
  position: relative;
  top: -110px;
  visibility: hidden;
}

.button {
  display: inline-block;
  cursor: default;
  font-size: var(--button-font-size);
  color: var(--button-ink);
  background: var(--button-paper);
  margin-top: 2rem;
  padding: 1rem 3rem;
  text-decoration: none;
  border-radius: 1.2rem;
  border: none;
  transition: background-color 200ms linear;
  font-family: var(--button-font-family);
  font-weight: var(--button-font-weight);
  text-align: left;
}

.button:hover {
  cursor: pointer;
  cursor: hand;
  background-color: var(--button-hover-paper);
}

hr.line-accent {
  border: none;
  height: 4px;
  background: var(--hr-line-accent-paper);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  max-width: 8rem;
}

hr.line-accent.tight {
  margin-bottom: 0;
  margin-top: 0.8rem;
}

.grid {
  /* combine with halves/thirds/fourths to set width and gap right */
  display: flex;
  flex-wrap: wrap;
}

.column {
  box-sizing: border-box;
  flex: 1;
}

.halves {
  column-gap: 2%; /* =< 100 - 2*column */
  row-gap: 2rem; /* not percent since height is not fixed */
}

.halves .column {
  flex: 0 0 49%;
}

.thirds {
  column-gap: 2%; /* =< 100 - 3*column */
  row-gap: 2rem; /* not percent since height is not fixed */
}

.thirds .column {
  flex: 0 0 32%;
}

.fourths {
  column-gap: 1%; /* =< 100 - 4*column */
  row-gap: 2rem; /* not percent since height is not fixed */
}

.fourths .column {
  flex: 0 0 24%;
}

.section {
  display: block;
  width: 100%;
  padding: 3rem 0;
  position: relative;
}

.section.home-banner,
.section.section-bg-blue,
.section.section-bg-white,
.section.section-bg-black {
  z-index: 200; /* Above fixed sidebars so they scroll behind */
}

.section-tight {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
}

.section-content {
  width: 90%; /* Always 90% of viewport width */
  margin: 0 auto;
  padding: 0 4rem;
  box-sizing: border-box;
}

/* Blog layout needs full width for multi-column expansion */
.section-content:has(.blog-layout) {
  width: 100%;
  max-width: none;
  padding: 0 2rem;
}

.section-content-full {
  max-width: 101rem; /* typically yields 100% width on a 1440px screen */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.section-half-left-content {
  margin: 0 auto;
  padding: 3rem 0 3rem 4rem;
  box-sizing: border-box;
}

.section-bg-transp {
  background: #F9F9F9; /* Light mode background */
}

.section-bg-smoke {
  background: #f0f2f5; /* Slightly darker gray for contrast */
  color: #212121; /* Dark text in light mode */
}

.section-bg-white {
  background: #ffffff; /* Pure white */
  color: #212121; /* Dark text in light mode */
}

.section-bg-light {
  background: #F9F9F9; /* Consistent light background */
  color: #212121; /* Dark text in light mode */
}

@media (prefers-color-scheme: dark) {
  .section-bg-transp {
    background: #0B0D0E !important; /* Terminal dark background */
  }
  .section-bg-smoke {
    background: #111416 !important; /* Slightly lifted surface */
    color: #D3D7DA !important; /* Light text in dark mode */
  }
  .section-bg-white {
    background: #111416 !important; /* Dark surface in dark mode */
    color: #D3D7DA !important; /* Light text in dark mode */
  }
  .section-bg-light {
    background: #0B0D0E !important; /* Terminal dark in dark mode */
    color: #D3D7DA !important; /* Light text in dark mode */
  }
}
.desktop-center,
.text-align-center {
  text-align: center;
}

.center-desktop,
.center-all {
  margin-left: auto;
  margin-right: auto;
}

.size-half {
  width: 50%;
}

.home-banner {
  background: var(--home-banner-paper) url("/images/code_blue.jpg") no-repeat center;
  background-size: cover;
  color: var(--home-banner-ink);
  position: relative;
  z-index: 200; /* Above fixed sidebars so they scroll behind */
}

.align-left {
  margin-left: 0;
}

.section-bg-darkcode {
  background: var(--section-bg-darkcode-paper);
  color: var(--section-bg-darkcode-ink);
}

/* Dark mode: show code background image */
@media (prefers-color-scheme: dark) {
  .section-bg-darkcode {
    background: var(--section-bg-darkcode-paper) url("/images/bg_code.jpg") no-repeat center;
    background-size: cover;
  }
}
/* Force dark theme: show code background image */
html[data-theme=dark] .section-bg-darkcode {
  background: var(--section-bg-darkcode-paper) url("/images/bg_code.jpg") no-repeat center;
  background-size: cover;
}

.list-competences {
  font-size: var(--body-font-large-size);
  max-width: 45%;
}

.section-big {
  padding: 8rem 0 8rem 0;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-align-center {
  align-items: center;
}

.flex-align-self-end {
  align-self: flex-end;
}

.flex-justify-start {
  justify-content: start;
}

.project-card {
  background: var(--project-card-paper);
  color: var(--project-card-ink);
  border-top: 1px solid var(--project-card-border-top-ink);
  border-left: 1px solid var(--project-card-border-left-ink);
  border-right: 1px solid var(--project-card-border-right-ink);
  border-bottom: 1px solid var(--project-card-border-bottom-ink);
  box-shadow: var(--project-card-shadow);
  width: 100%;
  height: fit-content;
  margin-bottom: 2rem;
}

/* Blog layout wrapper - mobile first: stacked */
.blog-layout {
  width: 100%;
  margin: 0 auto;
  padding: 0; /* section-content handles padding */
  display: flex;
  flex-direction: column;
}

.blog-layout-left {
  margin-bottom: 2rem;
  order: 1;
}

.blog-layout-right {
  margin-bottom: 2rem;
  order: 2;
}

.blog-layout-main {
  margin-bottom: 2rem;
  order: 3;
}

/* Desktop / wide layout - fixed sidebars, flexible centre */
@media (min-width: 1100px) {
  .blog-layout {
    display: grid;
    /* left 260px | center at least 50rem (500px) and growing | right 260px */
    grid-template-columns: 260px minmax(50rem, 1fr) 260px;
    column-gap: 3rem;
    align-items: start;
  }
  .blog-layout-left,
  .blog-layout-right,
  .blog-layout-main {
    order: unset; /* Reset order for grid layout */
  }
  .blog-layout-left,
  .blog-layout-right {
    position: sticky;
    top: 7rem;
    max-height: calc(100vh - 8rem);
    overflow: auto;
    max-width: 260px;
  }
  /* Make sure the article really occupies the centre track */
  .blog-layout-main {
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
  }
}
/* Optional: on mid-size screens, drop the right sidebar if not enough space */
/* Only hide right sidebar below 1700px where there isn't room for all 3 columns */
/* REMOVED as per request to keep sidebars visible */
.blog-article {
  background: var(--blog-article-paper) !important; /* Override .card background */
  color: var(--blog-article-ink);
  border-top: 1px solid var(--blog-article-border-top-ink);
  border-left: 1px solid var(--blog-article-border-left-ink);
  border-right: 1px solid var(--blog-article-border-right-ink);
  border-bottom: 1px solid var(--blog-article-border-bottom-ink);
  box-shadow: var(--blog-article-shadow);
  width: 100%;
  max-width: none; /* let it expand to fill the center track */
  height: fit-content;
  margin-bottom: 2rem;
  /* Body text slightly smaller for better readability */
  /* Links in blog content (excluding word cloud) */
  /* Article title - largest, centered */
  /* Article subtitle styling - centered, italic */
  /* Further compact the header in horizontal mode */
  /* Content headings from markdown */
  /* Inline code styling - terminal-like without heavy box */
  /* Ensure code blocks don't overflow the article container */
}
.blog-article p, .blog-article li, .blog-article td {
  font-size: calc(1.65rem * var(--content-font-scale, 1));
  line-height: 1.7;
}
.blog-article a:not(.wc-word) {
  color: var(--blog-article-link-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.blog-article a:not(.wc-word):hover {
  color: var(--blog-article-link-hover-ink);
  text-decoration-thickness: 2px;
}
.blog-article a:not(.wc-word):focus {
  outline: 2px solid var(--blog-article-link-ink);
  outline-offset: 2px;
}
.blog-article a:not(.wc-word):visited {
  color: var(--blog-article-link-ink);
  opacity: 0.8;
}
.blog-article .blog-title {
  font-size: 4.4rem;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.blog-article .blog-subtitle {
  font-size: 1.7rem;
  font-style: italic;
  text-align: center;
  color: var(--blog-article-ink);
  opacity: 0.85;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: normal;
}
.blog-article body.horizontal-read-mode .blog-article-header {
  padding-bottom: 0.5rem; /* Reduce overall header bottom padding */
}
.blog-article body.horizontal-read-mode .blog-article-header .txt-categories {
  margin-top: 0.2rem; /* Reduce space above categories */
  margin-bottom: 0.2rem; /* Reduce space below categories */
}
.blog-article h1 {
  font-size: 2.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.blog-article h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: bold;
  color: var(--blog-article-ink);
  border-bottom: 2px solid var(--blog-article-border-bottom-ink);
  padding-bottom: 0.3rem;
  opacity: 0.95;
}
.blog-article h3 {
  font-size: 1.7rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-weight: bold;
}
.blog-article h4 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.blog-article h5, .blog-article h6 {
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.blog-article code:not(pre code) {
  font-family: var(--default-font-code-family);
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--inline-code-ink);
  font-size: calc(0.9em * var(--content-font-scale, 1));
  font-weight: 400;
}
.blog-article pre {
  max-width: 100%;
  overflow-x: auto;
}
.blog-article pre code {
  max-width: 100%;
}

/* Wide screens: allow metaphor maps to extend into left margin */
@media (min-width: 1200px) {
  .blog-article {
    overflow-x: visible;
    position: relative;
  }
}
/* Default: single column on mobile screens */
.blog-article-body {
  column-gap: 2.5rem;
}

/* =========================================
   DEFAULT DESKTOP LAYOUT (Vertical with Sidebars)
   ========================================= */
/* Default Desktop (800px+) - Standard vertical text */
@media (min-width: 800px) {
  .blog-article-body {
    /* No fixed height, no columns by default */
    display: block;
    width: 100%;
    /* Limit line length for readability on wide screens */
    max-width: 75rem;
    margin: 0 auto; /* Center the content if it hits max-width */
    overflow-x: hidden;
    overflow-y: visible;
  }
}
/* Intermediate Wide Screens (1200px - 1799px) */
@media (min-width: 1200px) and (max-width: 1799px) {
  /* DEFAULT VERTICAL MODE: Keep the grid tight and centered */
  .blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    column-gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }
  /* Constrain article width for readable line length */
  .blog-article {
    max-width: 100%;
  }
  /* Only expand to full width if HORIZONTAL mode is active */
  body.horizontal-read-mode .section-content:has(.blog-layout) {
    width: 98%;
    max-width: none;
    padding: 0 1rem;
  }
  body.horizontal-read-mode .blog-article {
    width: 100%;
    max-width: none;
  }
  body.horizontal-read-mode .blog-article-body {
    height: 70vh;
    min-height: 600px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    column-fill: auto;
  }
}
/* =========================================
   OPT-IN: HORIZONTAL READER MODE (Magazine Layout)
   ========================================= */
/* Viewport Lock & Flex Chain */
body.horizontal-read-mode {
  height: 100vh;
  overflow: hidden; /* Prevent body scroll */
}

/* Ensure Main acts as a Flex Container filling the body */
body.horizontal-read-mode main {
  height: 100%;
  overflow: hidden; /* Prevent main scroll */
  display: flex;
  flex-direction: column;
}

/* Banner shouldn't grow */
body.horizontal-read-mode .home-banner {
  flex: 0 0 auto;
}

/* The wrapper section for the blog needs to grow */
body.horizontal-read-mode main > .section:not(.home-banner) {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 0;
}

/* Propagate height down the chain */
body.horizontal-read-mode main > .section:not(.home-banner) > .section-content,
body.horizontal-read-mode .blog-layout,
body.horizontal-read-mode .blog-layout-main {
  flex: 1;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Ensure Article handles Header/Footer/Body correctly */
body.horizontal-read-mode .blog-article {
  flex: 1;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  /* Allow card to shrink if content is small */
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* The scrolling container */
body.horizontal-read-mode .blog-article-body {
  flex: 0 0 auto; /* Don't grow, use fixed height */
  /* Explicit calculated height to force column breaks */
  /* Aggressively reduced to ensure no clipping with headers/footers */
  height: calc(100vh - 32rem) !important; /* Significant reduction to guarantee space */
  min-height: 400px; /* Sanity check for very small screens */
  max-height: none;
  /* Column behavior */
  overflow-x: auto;
  overflow-y: hidden;
  column-width: var(--reader-col-width, 30rem);
  column-gap: 3rem;
  column-fill: auto;
  column-rule: 1px solid var(--blog-article-border-left-ink);
  display: block;
  width: fit-content; /* Shrink to fit columns */
  max-width: 100%;
  padding-top: 1rem; /* Add some space above text */
  padding-bottom: 5rem; /* Increased from 3.5rem - more room to see bottom content */
}

/* Fix "Back to blog" link container height/padding */
body.horizontal-read-mode main > .section-content {
  flex: 0 0 auto; /* Don't grow */
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0;
}

/* Prevent elements from breaking across columns in horizontal mode, but allow scrolling if too tall */
body.horizontal-read-mode .blog-article-body pre {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  max-width: 100%;
  max-height: 100%; /* Constrain to column height */
  overflow: auto; /* Scroll if too tall or wide */
  height: auto;
  /* Visual separation for Dark Mode */
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 6px;
  background-color: #272822; /* Force Monokai background consistency */
}

body.horizontal-read-mode .blog-article-body h2,
body.horizontal-read-mode .blog-article-body h3,
body.horizontal-read-mode .blog-article-body figure,
body.horizontal-read-mode .blog-article-body img,
body.horizontal-read-mode .blog-article-body blockquote,
body.horizontal-read-mode .blog-article-body .metaphor-map {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  max-width: 100%;
  height: auto;
}

/* Hide sidebars in horizontal mode to give full focus to magazine layout */
/* REMOVED: Sidebars should remain visible in horizontal mode */
/* Global fallback for narrow screens: Stack sidebars at top */
body.horizontal-read-mode .blog-layout {
  display: flex;
  flex-direction: column;
}

body.horizontal-read-mode .blog-layout-left,
body.horizontal-read-mode .blog-layout-right {
  display: block !important;
  width: 100%;
  margin-bottom: 2rem;
  order: -1;
}

/* Wide screens (1100px+): Keep sidebars on the sides! */
@media (min-width: 1100px) {
  body.horizontal-read-mode .blog-layout {
    display: grid;
    grid-template-columns: 260px minmax(30rem, 1fr) 260px; /* Ensure center has room */
    column-gap: 3rem;
    align-items: start;
  }
  body.horizontal-read-mode .blog-layout-left {
    position: sticky;
    top: 7rem;
    width: 260px;
    max-width: 260px;
    height: auto;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    order: unset;
    margin-bottom: 0;
    /* Center content within the left sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.horizontal-read-mode .blog-layout-right {
    position: sticky;
    top: 7rem;
    width: 260px;
    max-width: 260px;
    height: auto;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    order: unset;
    margin-bottom: 0;
    /* Align content to the left (closer to main text) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  /* Series Nav in the right margin */
  body.horizontal-read-mode .series-nav-sticky {
    width: 240px !important; /* Constrain width to leave space on right */
    max-width: 100%;
    margin: 0 !important; /* Remove auto centering */
    display: block !important;
  }
  body.horizontal-read-mode .series-nav-sticky .series-nav {
    font-size: 1.4rem; /* Significant increase */
  }
  body.horizontal-read-mode .series-nav-sticky .series-nav h4 {
    font-size: 1.6rem;
  }
  body.horizontal-read-mode .blog-layout-main {
    order: unset;
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden; /* Main container hides overflow */
  }
  /* The scrolling happens INSIDE blog-article-body */
  body.horizontal-read-mode .blog-article {
    width: 100%;
    max-width: none;
    overflow: visible; /* Let the body scroll */
  }
}
/* Fix image sizes for horizontal mode */
body.horizontal-read-mode .blog-article-body img {
  max-height: 60vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hide contact sidebar on normal screens */
.contact-sidebar {
  display: none;
}

/* Ultra-Wide Dashboard Layout - Move header/footer to sides */
@media (min-width: 1800px) {
  /* Lock viewport to prevent scroll issues */
  html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  /* Create 3-column grid layout */
  body {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    grid-template-rows: 100%;
    grid-template-areas: "sidebar-left main-content sidebar-right";
    gap: 0;
  }
  /* Left Sidebar: Navigation */
  #top-nav {
    grid-area: sidebar-left;
    position: relative !important;
    top: auto;
    left: auto;
    height: auto; /* Allow it to take natural height, footer sits below */
    width: 100% !important;
    border-right: 1px solid var(--topnav-border-ink);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    padding: 4rem 1rem; /* Balanced padding */
    overflow-y: visible; /* Allow footer to flow */
    overflow-x: hidden;
    align-self: start; /* Stick to top */
    z-index: 10;
    /* THE MAGIC: Use the variable we set in the mixin */
    background: var(--nav-background);
    /* Ensure text colors update too */
    color: var(--area-4-ink);
  }
  /* Stack nav items vertically */
  .top-nav-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    padding: 0;
    align-items: flex-start;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .nav-top-page {
    width: 100%;
    text-align: left;
  }
  .nav-top-page a {
    display: block;
    width: fit-content; /* Only span the text width */
    min-width: 80%; /* Uniform width feel */
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600; /* Make top level bolder to indicate clickability */
    font-size: var(--topnav-font-size);
    letter-spacing: 0.02em;
    /* Ensure links use the variable color and underline */
    color: var(--area-4-link-ink);
    text-decoration: underline;
    text-decoration-color: var(--area-4-link-ink);
  }
  .nav-top-page a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: var(--area-4-accent);
  }
  /* Remove the default horizontal underline effect for the sidebar */
  .nav-top-page a::before {
    display: none !important;
  }
  /* Active state if applicable */
  .nav-top-page a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--area-4-accent);
    font-weight: 700;
  }
  /* Submenu Styling for Sidebar */
  ul.nav-submenu {
    display: block !important; /* Always show submenus in sidebar */
    position: static !important; /* Flow naturally, no flyout */
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 1.5rem;
    margin-top: 0.2rem;
    min-width: auto;
    width: fit-content; /* Ensure container fits content */
  }
  ul.nav-submenu li {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
  }
  ul.nav-submenu li a {
    padding: 0.5rem 1rem;
    font-size: 1.4rem; /* Significant increase (14px) */
    color: var(--area-4-link-ink);
    opacity: 0.8;
    width: fit-content;
    min-width: 80%; /* Consistent width */
    border-radius: 6px;
  }
  ul.nav-submenu li a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--area-4-accent);
  }
  ul.nav-submenu li.active a,
  ul.nav-submenu li a.active {
    opacity: 1;
    color: var(--area-4-accent);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
  }
  /* Center: Main content area - VERTICAL SCROLL BY DEFAULT */
  main {
    grid-area: main-content;
    height: 100%;
    width: 100%;
    padding: 0;
    /* ENABLE VERTICAL SCROLL BY DEFAULT */
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    background: var(--body-bg);
  }
  /* The Inner Grid (Word Cloud | Article | Nav) */
  /* This puts the blog sidebars inside the center dashboard column */
  main .blog-layout {
    display: grid;
    grid-template-columns: 260px minmax(800px, 1100px) 260px;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    width: 100%;
  }
  /* Article styling */
  main .blog-article {
    max-width: 100%;
  }
  /* Article body - no columns by default */
  main .blog-article-body {
    display: block;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 2rem;
  }
  /* Constrain the card SIZE in vertical mode to fit viewport and show rounded corners */
  /* Only apply when NOT in horizontal-read-mode */
  body:not(.horizontal-read-mode) .blog-article {
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding-bottom: 2rem !important;
  }
  /* If Horizontal Mode is toggled ON in ultra-wide */
  body.horizontal-read-mode main {
    overflow-y: auto; /* Allow vertical scroll for sidebars if needed */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top to prevent clipping */
  }
  body.horizontal-read-mode main .blog-layout {
    display: grid;
    grid-template-columns: 260px minmax(30rem, 1fr) 260px;
    column-gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 0 2rem; /* Adjusted for full width with minimal side padding */
  }
  body.horizontal-read-mode .blog-article {
    max-width: none !important; /* Allow full width in horizontal mode */
    width: 100% !important;
    overflow-y: visible !important; /* Override the overflow-y: auto from vertical mode */
    overflow-x: visible !important; /* Card itself should not scroll in horizontal mode */
    padding-bottom: 2rem !important;
  }
  /* REMOVED: body.horizontal-read-mode main .blog-article-body override to allow global calc() to work */
  /* Banner height constraints for default vertical mode */
  /* Aggressively squash the banner to prevent viewport filling */
  .home-banner,
  .section.home-banner,
  main > .section:first-child,
  main > div:first-child {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
  }
  /* Shrink banner title */
  .banner-title,
  main > :first-child h1 {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }
  /* Fix banner internal padding */
  .home-banner .section-content {
    padding-bottom: 1rem !important; /* Override the 150px padding */
  }
  /* Center the article with appropriate spacing */
  main .section-content {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 150px;
    display: block !important;
  }
  body:not(.horizontal-read-mode) .blog-article {
    max-width: 900px !important;
    margin: 2rem auto 4rem auto !important;
    width: 90% !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }
  /* Constrain image sizes */
  .blog-article-body img {
    max-width: 100% !important;
    max-height: 500px !important;
    width: auto !important;
    display: block;
    margin: 2rem auto;
    object-fit: contain;
  }
  /* Right Sidebar: Footer sections */
  /* Reset to default, specific overrides below */
  main ~ .section,
  main ~ .flex-row.triangle-wrap {
    /* Reset */
  }
  /* Hide the Black (CTA) and White (Contact) sections to prevent clutter */
  main ~ .section:nth-of-type(1),
  main ~ .section:nth-of-type(2),
  main ~ .flex-row.triangle-wrap {
    display: none !important;
  }
  /* Show only the Blue footer section (Links & Copyright) */
  /* MOVE TO LEFT SIDEBAR BOTTOM */
  main ~ .section.section-bg-blue {
    grid-area: sidebar-left; /* Move to Left Sidebar */
    align-self: end; /* Stick to bottom */
    display: block !important;
    height: auto; /* Natural height */
    max-height: 50vh;
    width: 100%;
    border-right: 1px solid var(--topnav-border-ink); /* Match nav border */
    border-left: none;
    /* Use default section-bg-blue background from area-6 variables */
    z-index: 10;
    overflow: hidden;
  }
  /* Adjust section styling for sidebar display */
  main ~ .section .section-content {
    padding: 2rem;
  }
  /* Adjust footer container for vertical sidebar */
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    align-items: flex-start; /* Left align */
  }
  .footer-logo-img {
    max-width: 120px;
    margin-bottom: 1rem;
  }
  /* HIDE REDUNDANT MENU LINKS IN FOOTER */
  .footer-container > div:nth-child(2).desktop {
    display: none !important;
  }
  .footer-link {
    display: none;
  }
  /* Social Icons Row */
  .footer-container > div:last-child {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: flex-start; /* Left align */
    margin-top: 1rem;
  }
  .footer-icon {
    font-size: var(--footer-icon-size); /* Use variable instead of hardcoded 1.5rem */
    color: var(--area-4-link-ink);
    transition: color 0.2s;
  }
  .footer-icon:hover {
    color: var(--area-4-accent);
  }
  .txt-copyright {
    color: var(--area-4-ink);
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: left;
    font-size: var(--footer-copyright-font-size); /* Use variable for consistent sizing */
  }
  /* Contact boxes - hide in right sidebar for simplicity */
  main ~ .section .section-content .contact-box {
    display: none;
  }
  /* Right Sidebar: Contact Info */
  .contact-sidebar {
    display: block; /* Show in ultra-wide mode */
    grid-area: sidebar-right;
    padding: 4rem 1.5rem;
    background: var(--nav-background);
    border-left: 1px solid var(--topnav-border-ink);
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--area-4-ink);
  }
  .contact-info {
    font-size: 1.3rem; /* Increased from 0.9rem for better readability on large screens */
    line-height: 1.6;
  }
  .contact-info h4 {
    font-size: 1.5rem; /* Increased from 1.1rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 1.5rem 0;
    color: var(--area-4-ink);
    border-bottom: 2px solid var(--area-4-accent);
    padding-bottom: 0.5rem;
  }
  .contact-info p {
    margin: 0 0 1.5rem 0;
    color: var(--area-4-ink);
  }
  .contact-info strong {
    font-weight: 600;
  }
  .contact-info a {
    color: var(--area-4-link-ink);
    text-decoration: none;
    transition: color 0.2s;
  }
  .contact-info a:hover {
    color: var(--area-4-accent);
    text-decoration: underline;
  }
  /* Sticky CTA button adjustments for dashboard layout */
  .sticky-cta {
    right: 270px;
  }
  /* Booking modal positioning for dashboard */
  .booking-modal {
    left: 250px;
    width: calc(100vw - 500px);
  }
}
/* =========================================
   NAVBAR CONFIG MENU
   ========================================= */
/* 1. Container Item in Nav */
.config-item {
  position: relative;
  display: inline-block;
}

/* 2. The Button itself */
.config-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--area-4-link-ink);
  font-family: var(--default-font-button-family);
  font-weight: var(--default-font-button-weight);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-transform: uppercase;
  /* Hover state matching nav links */
  /* Hide text label on narrow screens */
}
.config-toggle .icon {
  font-size: 1.4rem;
}
.config-toggle:hover, .config-toggle.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--area-4-accent);
}
@media (max-width: 900px) {
  .config-toggle {
    padding: 0.5rem;
  }
  .config-toggle .label {
    display: none;
  }
}

/* 3. The Dropdown Menu */
.config-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 240px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Active State */
  /* Triangle/Arrow at top */
}
.config-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.config-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  transform: rotate(45deg);
}

.reader-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.reader-control-row:last-child {
  margin-bottom: 0;
}
.reader-control-row.stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.reader-label {
  font-family: var(--default-font-body-family);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--content-body);
}

.reader-value {
  font-family: var(--default-font-code-family);
  font-size: 0.8rem;
  color: var(--brand-primary);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.reader-label-group {
  display: flex;
  justify-content: space-between;
}

.reader-btn-small {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--content-body);
  border-radius: 6px;
  width: 40px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.reader-btn-small:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(63, 163, 163, 0.1);
}

/* =========================================
   SLIDER (RANGE INPUT) STYLING
   ========================================= */
/* 1. The Track */
input[type=range] {
  -webkit-appearance: none; /* Required to override default browser look */
  width: 100%;
  height: 6px;
  background: #d8d8d8; /* Fallback */
  background: var(--card-border);
  border-radius: 3px;
  outline: none;
  margin: 10px 0; /* Add spacing so thumb doesn't get cut off */
  cursor: pointer;
}

/* 2. The Thumb (Chrome, Safari, Edge) */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Required */
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3FA3A3; /* Fallback */
  background: var(--brand-primary);
  cursor: pointer;
  /* CRITICAL ALIGNMENT FIX */
  /* Calculation: (Track Height - Thumb Height) / 2 */
  /* (6px - 20px) / 2 = -7px */
  margin-top: -7px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Makes it pop out */
  border: 2px solid var(--card-bg); /* Adds a small ring for contrast */
  transition: transform 0.1s ease;
}

/* 3. The Thumb (Firefox) */
input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #3FA3A3; /* Fallback */
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--card-bg);
  transition: transform 0.1s ease;
}

/* 4. Interaction States */
input[type=range]:focus {
  outline: none;
}

/* Grow slightly on hover to indicate interactivity */
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--brand-primary-hover);
}

input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--brand-primary-hover);
}

/* Hide Scroll/Width controls on Mobile (<800px) */
@media (max-width: 799px) {
  .desktop-only-control {
    display: none;
  }
}
/* =========================================
   ULTRA-WIDE DASHBOARD ADJUSTMENTS (>1800px)
   ========================================= */
@media (min-width: 1800px) {
  /* 1. Sidebar Layout - Flex Column */
  #top-nav {
    /* Ensure z-index is higher than main content so shadows render */
    z-index: 50;
    /* Allow overflow only if content is huge, but 'visible' allows popups */
    overflow: visible;
    padding-bottom: 0;
  }
  /* 2. Pin Config to Bottom */
  .config-item {
    /* This pushes the item to the very bottom of the flex container */
    margin-top: auto;
    width: fit-content; /* Only span text width */
    min-width: 80%; /* Match nav item width consistency */
    /* Add a separator line above it */
    border-top: 1px solid var(--card-border);
    padding: 1rem 0.5rem;
    background: var(--nav-background); /* Match nav background */
    /* Make it stick to bottom even if scrolling happens */
    position: sticky;
    bottom: 0;
  }
  /* 3. Style the Toggle Button for Sidebar */
  .config-toggle {
    width: 100%;
    justify-content: flex-start; /* Align text left */
    padding: 0.8rem 1rem;
    font-size: var(--topnav-font-size); /* Use same size as nav links */
    /* Make it look like a primary action area */
  }
  .config-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
  }
  /* 4. The Dropdown Menu - Pop UPWARDS */
  .config-dropdown {
    /* Position relative to the button */
    top: auto; /* Ignore top */
    bottom: 100%; /* Sit exactly on top of the button */
    left: 10px; /* Align left */
    right: auto; /* Ignore right */
    width: 230px; /* Slightly smaller to fit sidebar width */
    margin-bottom: 10px; /* Gap between button and menu */
    transform-origin: bottom left;
    /* Different shadow for upward pop */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    /* Reset the arrow to point down */
    /* Animation: Slide UP */
  }
  .config-dropdown::before {
    top: auto;
    bottom: -6px; /* Move to bottom */
    left: 20px; /* Align left */
    right: auto;
    transform: rotate(225deg); /* Point down */
    border-color: transparent transparent var(--card-border) var(--card-border);
  }
  .config-dropdown.open {
    transform: translateY(0) scale(1);
  }
  .config-dropdown:not(.open) {
    transform: translateY(10px) scale(0.95);
  }
}
/* Reading mode toggle button */
.reading-mode-toggle {
  display: block;
  margin: 0 auto 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--blog-article-paper);
  color: var(--blog-article-ink);
  border: 2px solid var(--blog-article-border-left-ink);
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.reading-mode-toggle:hover {
  background: var(--blog-article-link-ink);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.reading-mode-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.reading-mode-toggle:focus {
  outline: 2px solid var(--blog-article-link-ink);
  outline-offset: 2px;
}
.reading-mode-toggle[aria-pressed=true] {
  background: var(--blog-article-link-ink);
  color: white;
}

.blog-sidebar {
  background-color: var(--area-1-paper); /* light section background */
  border-left: 4px solid var(--area-1-accent); /* turquoise accent */
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: var(--body-font-size);
  font-family: var(--default-font-body-family);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  color: var(--area-1-ink);
}

.txt-categories {
  font-size: var(--blog-category-font-size);
}

.section-bg-blue {
  background: var(--section-bg-blue-paper);
  color: var(--section-bg-blue-ink);
  position: relative;
  z-index: 200; /* Above fixed sidebars so they scroll behind */
}

.section-bg-black {
  background: var(--section-bg-black-paper);
  color: var(--section-bg-black-ink);
}

.contact-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: var(--contact-font-size);
}

.contact-box p {
  font-size: var(--contact-font-small-size);
}

.contact-icon-box {
  width: calc(var(--contact-icon-size) * 2.5);
  height: calc(var(--contact-icon-size) * 2.5);
  border: 1px solid var(--contact-icon-box-border-ink);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-icon {
  color: var(--contact-icon-ink);
  font-size: var(--contact-icon-size);
}

.contact-content {
  max-height: calc(var(--contact-icon-size) * 2.5);
  width: 100%;
  font-family: var(--contact-font-family);
  font-weight: var(--contact-font-weight);
  color: var(--contact-ink);
}

h2.call-to-action {
  font-size: var(--call-to-action-font-size);
}

.contact-content p {
  margin-top: 0;
}

ul.bullets {
  list-style-type: none;
}

ul.bullets > li {
  text-indent: -0.6em; /* em, not rem; compensates for li::before */
}

ul.bullets > li::before {
  content: "• ";
  color: var(--bullet-accent-ink);
  position: relative;
  top: 0.05em; /* em, not rem */
  left: -0.3em; /* em, not rem */
  font-size: 1.3em; /* larger than normal, related to current font size */
}

.assignment-title {
  margin-bottom: 1.2rem;
  font-size: var(--project-card-title-font-size);
  color: var(--project-card-title-ink);
}

.assignment-subtitle {
  margin-bottom: 12px;
  font-weight: var(--project-card-subtitle-font-weight);
  font-size: var(--project-card-subtitle-font-size);
  color: var(--project-card-subtitle-ink);
}

.assignment-img {
  max-width: 190px;
  max-height: 80px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.assignment-quote {
  color: var(--project-card-quote-ink);
  font-style: var(--project-card-quote-font-style);
  font-weight: var(--project-card-quote-font-weight);
  font-size: var(--project-card-quote-font-size);
  font-family: var(--default-font-quote-family);
  font-style: italic;
  color: var(--project-card-quote-ink);
  margin: 1rem 0;
}

.assignment-quote-sig {
  color: var(--project-card-quote-ink);
  font-style: var(--project-card-quote-sig-font-style);
  font-weight: var(--project-card-quote-sig-font-weight);
  font-size: var(--project-card-quote-sig-font-size);
  font-family: var(--default-font-quote-family);
  text-align: right;
  margin-top: 0.5rem;
}

.text-description {
  max-width: 50%;
}

.img-slogan {
  width: 35rem;
  height: 100%;
}

ul.nav-links {
  list-style-type: none;
}

ul.nav-links li {
  display: inline-block;
  position: relative;
}

/* Dropdown submenu styles */
ul.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--topnav-paper);
  border: 1px solid var(--topnav-border-ink);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style-type: none;
  padding: 0.5rem 0;
  min-width: 200px;
  margin: 0;
  z-index: 10;
}

.nav-top-page:hover ul.nav-submenu {
  display: block;
}

ul.nav-submenu li {
  display: block;
}

ul.nav-submenu li a {
  padding: 0.75rem 1.25rem;
  display: block;
  text-transform: none;
  font-size: 1.4rem; /* Increased from 0.9rem for better readability */
  font-weight: normal;
}

ul.nav-submenu li a:hover {
  background: var(--accent-paper);
}

/* Parent item in submenu */
ul.nav-submenu li.nav-parent-item {
  border-bottom: 1px solid var(--topnav-border-ink);
  margin-bottom: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Mobile submenu styles */
ul.nav-submenu-mobile {
  list-style-type: none;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

ul.nav-submenu-mobile li {
  display: block;
}

ul.nav-submenu-mobile li a {
  font-size: 1.3rem; /* Increased from 0.9em for better readability */
  opacity: 0.8;
  padding: 0.5rem 0;
}

ul.nav-links-mobile {
  margin-top: 8rem;
  list-style-type: none;
  text-align: center;
}

#top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500; /* Above sidebars and other fixed elements */
  box-sizing: border-box;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--topnav-border-ink);
  color: var(--area-4-link-ink); /* Use theme-aware color */
  background: var(--nav-background, #ffffff); /* Solid fallback */
  transform: translateZ(0); /* Hardware acceleration */
}

.top-nav-container {
  max-width: 101rem; /* typically yields 100% width on a 1440px screen */
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.nav-top-page a {
  position: relative;
  color: var(--area-4-link-ink);
  text-decoration: none;
  padding: 1rem 1.25rem;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600; /* Better readability */
  font-size: var(--topnav-font-size);
}

.nav-links-mobile .nav-top-page,
.nav-links-mobile .nav-top-page a {
  color: var(--mobilenav-ink);
  font-size: var(--mobilenav-font-size);
}

.nav-top-page {
  font-weight: var(--topnav-font-weight);
  font-size: var(--topnav-font-size);
}

.nav-top-page.active {
  font-weight: var(--topnav-active-font-weight);
}

.nav-top-page.active a {
  color: var(--topnav-link-active-ink);
}

.nav-top-page a:hover {
  color: var(--topnav-link-hover-ink);
}

.nav-links-mobile .nav-top-page a:hover {
  color: var(--mobilenav-hover-ink);
  font-weight: var(--mobilenav-hover-font-weight);
}

.nav-top-page a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  border-radius: 2px;
  background: var(--topnav-link-underline-ink);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out 0s;
}

.nav-top-page a:hover::before,
.nav-top-page.active a::before {
  visibility: visible;
  transform: scaleX(1);
}

.icon-accent {
  color: var(--icon-accent-ink); /* NOTE: management icon is an image, not affected */
  font-size: var(--icon-accent-size);
  float: left;
  margin-right: 1rem;
}

.services-title {
  display: flex;
}

.service-link {
  color: var(--area-1-ink);
}

.service-link:hover {
  color: var(--area-1-ink);
  text-decoration: underline;
}

img.icon-accent {
  width: 3rem;
}

.triangle {
  fill: var(--contact-triangle-fill);
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 12px;
  top: -46px;
}

.triangle-wrap {
  position: absolute;
  flex: inherit;
  width: 100%;
}

.footer-container {
  max-width: 101rem; /* typically yields 100% width on a 1440px screen */
  margin: 0 auto;
  padding: 0 3rem;
  box-sizing: border-box;
}

.footer-link,
.footer-link:visited,
.footer-link:hover {
  color: var(--footer-link-ink);
  font-size: var(--footer-link-font-size);
  text-decoration: none;
  display: inline-block;
  display: block;
  padding: 0.5rem 0.25rem;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-icon {
  font-size: var(--footer-icon-size);
  color: var(--footer-icon-ink);
}

.card {
  background: var(--card-bg);
  color: var(--content-body);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 1.2rem;
  box-sizing: border-box;
}

.main_card {
  background-color: var(--panel-1-paper);
  color: var(--area-1-ink);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Hero Section - Tighter Rhythm */
.section-content.desktop-center {
  margin-bottom: 1rem; /* Reduced from default to tighten spacing to proof logos */
}

.section-content.desktop-center h2 {
  margin-bottom: 0.5rem; /* Minimal gap before credibility strip */
}

/* Credibility Strip */
.credibility-strip {
  padding: 1.5rem 0 2rem; /* Reduced top padding for tighter hero rhythm */
  margin: 0 auto;
  background-color: var(--area-7-paper);
}

.credibility-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* Single line on desktop */
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

.credibility-item {
  flex: 1 1 0; /* Equal width distribution */
  min-width: 0; /* Allow shrinking */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.credibility-logo {
  height: 48px; /* Increased and consistent height */
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.credibility-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fix for light-colored logos in light mode - credibility strip */
.credibility-logo[src*="laya.svg"] {
  filter: grayscale(100%) brightness(0) saturate(100%) invert(60%) sepia(8%) saturate(872%) hue-rotate(169deg) brightness(99%) contrast(86%);
}

.credibility-logo[src*="laya.svg"]:hover {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

[data-theme=dark] .credibility-logo[src*="laya.svg"] {
  filter: grayscale(100%);
}

[data-theme=dark] .credibility-logo[src*="laya.svg"]:hover {
  filter: grayscale(0%);
}

.credibility-win {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--area-1-ink);
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .credibility-content {
    flex-wrap: wrap; /* Two lines on mobile */
    justify-content: center;
    gap: 1.5rem;
  }
  .credibility-item {
    flex: 1 1 40%; /* Two items per row on mobile */
    min-width: 150px;
  }
}
/* Service Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.package-card {
  background: var(--panel-1-paper);
  border: 2px solid var(--area-1-accent);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
  border-color: var(--brand-highlight);
  border-width: 3px;
}

.package-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-highlight);
  color: var(--brand-dark);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.package-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--area-1-accent);
  padding-top: 1.2rem;
}

.package-header h3 {
  margin: 0 0 0.5rem 0;
  color: var(--area-1-ink);
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--area-1-accent);
  margin: 0.5rem 0;
}

.package-duration {
  font-size: 1rem;
  color: var(--area-1-ink);
  opacity: 0.8;
}

.package-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--area-1-ink);
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex: 1;
}

.package-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--area-1-ink);
}

.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--area-1-accent);
  font-weight: bold;
}

.package-cta {
  display: inline-block;
  background: var(--area-1-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.package-cta:hover {
  background: var(--button-1-hover-paper);
  transform: translateX(4px);
}

/* Package Detail Pages */
.package-detail-hero {
  text-align: center;
  position: relative;
  padding: 2rem 0;
}

.package-detail-hero .badge-popular {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  background: var(--brand-highlight);
  color: var(--brand-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
}

.package-tagline {
  font-size: 1.25rem;
  color: var(--area-1-accent);
  margin: 1rem 0;
  font-weight: 600;
}

.problem-content {
  max-width: 800px;
  margin: 0 auto;
}

.problem-content ul {
  list-style: none;
  padding: 0;
}

.problem-content li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.problem-content li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.deliverable-item {
  background: var(--panel-1-paper);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--area-1-accent);
}

.deliverable-item h3 {
  margin: 0 0 1rem 0;
  color: var(--area-1-accent);
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.timeline-week {
  background: var(--panel-1-paper);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--area-1-accent);
}

.timeline-week h3 {
  margin: 0 0 1rem 0;
  color: var(--area-1-accent);
}

.timeline-week ul {
  margin: 0;
  padding-left: 1.5rem;
}

.package-pricing-section {
  text-align: center;
}

.pricing-box {
  background: var(--panel-1-paper);
  border: 2px solid var(--area-1-accent);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
}

.pricing-box.featured {
  border-color: var(--brand-highlight);
  border-width: 3px;
}

.price-main {
  font-size: 3rem;
  font-weight: 700;
  color: var(--area-1-accent);
  margin-bottom: 0.5rem;
}

.price-details {
  font-size: 1.1rem;
  color: var(--area-1-ink);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.price-includes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.price-includes li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--area-1-accent);
  font-weight: bold;
}

.price-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--area-1-ink);
  opacity: 0.8;
  margin-top: 1rem;
}

.value-comparison {
  background: var(--area-7-paper);
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.cta-section {
  margin-top: 3rem;
}

.cta-section h3 {
  margin-bottom: 1.5rem;
}

.cta-subtext {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--area-1-ink);
  opacity: 0.8;
}

.availability-note {
  background: var(--area-7-paper);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.team-member {
  color: var(--team-member-ink);
  background: var(--team-member-paper);
  border-top: 1px solid var(--team-member-border-top-ink);
  border-left: 1px solid var(--team-member-border-left-ink);
  border-right: 1px solid var(--team-member-border-right-ink);
  border-bottom: 1px solid var(--team-member-border-bottom-ink);
  box-shadow: var(--team-member-shadow);
}

.team-member-img {
  height: 12rem;
  background-size: cover;
  border-radius: 0.6rem;
}

.team-member-icon {
  font-size: var(--team-member-icon-size);
  color: var(--team-member-icon-ink);
}

.team-member .line-accent {
  height: 4px;
}

.team-member-stats {
  margin-top: 1rem;
}

.team-member-quote {
  color: var(--team-member-quote-ink);
  font-size: var(--team-member-quote-font-size);
  font-weight: var(--team-member-quote-font-weight);
  font-style: var(--team-member-quote-font-style);
}

.section-news {
  border-left: 4px solid var(--news-border-ink);
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 30rem;
  min-height: 24rem;
}

.news-title {
  margin-bottom: 1rem;
  width: 100%;
}

.news-subtitle {
  font-size: var(--news-title-font-size);
}

.news-content,
.news-content p {
  font-size: var(--news-content-font-size);
  font-weight: var(--news-content-font-weight);
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: var(--news-date-font-size);
  font-weight: var(--news-date-font-weight);
  font-style: var(--news-date-font-style);
  margin-bottom: 0.5rem;
}

.news-entry {
  margin-bottom: 1rem;
}

.news-holder {
  max-height: 100%;
  overflow-y: auto;
}

.section-news ::-webkit-scrollbar {
  width: 1rem;
}

.section-news ::-webkit-scrollbar-track {
  background: var(--scrollbar-track-paper);
}

.section-news ::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-ink);
}

.section-news ::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-ink);
}

.fa-rotate-35 { /* custom fontawsome rotation */
  transform: rotate(-35deg);
}

.alert-icon {
  font-size: var(--alert-icon-font-size);
  color: var(--alert-icon-ink);
  margin-bottom: 1rem;
}

img.page-banner {
  width: 100%;
  background: var(--page-banner-bg-paper);
  border-bottom: 4px solid var(--page-banner-bg-border-ink);
}

.contact-link {
  text-decoration: none;
  color: var(--contact-link-ink);
}

.contact-link:hover {
  text-decoration: underline;
}

.mobile {
  display: none !important;
  visibility: hidden;
}

.desktop {
  visibility: visible;
}

.img-div {
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0;
  height: 100%;
}

.code-hand-bg {
  background-image: url("/images/code_hand_desktop.jpg");
}

.specialist-text {
  width: 55%;
}

.img-panel {
  height: 30rem;
  width: auto;
  border-radius: 1.2rem;
}

.img-blog {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
}

.img-blog-smaller {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 50%;
  height: auto;
  border-radius: 1.2rem;
}

/* This could ge generalized to some base stuff instead for another class */
.career-core-title {
  font-size: var(--career-core-title-font-size);
  margin-bottom: 1.6rem;
}

.line-accent-center {
  width: 60%;
}

#mobilenav {
  position: absolute;
  width: 100%;
  height: 100vh;
  background: var(--mobilenav-paper);
  top: 0;
  visibility: hidden;
  opacity: 0;
  left: 0;
  transition: all 0.1s ease-in 0s;
  overflow: scroll;
}

#mobilenav.open {
  visibility: visible;
  opacity: 1;
  z-index: 9;
  transition: all 0.1s ease-in 0s;
  overflow: scroll;
}

.hidden {
  visibility: hidden;
  display: none;
}

.nav-logo {
  z-index: 20;
}

.nav-logo-img {
  width: 20rem;
  padding-top: 1rem;
  padding-left: 1.25rem;
  /* THE MAGIC: It just uses the variable.
     It doesn't care if it came from System or Toggle. */
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}

.footer-logo-img {
  width: 20rem;
}

.competences-wrap {
  max-width: 65rem;
}

.section-txt {
  max-width: 50rem;
}

.txt-centered {
  text-align: center;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
}

/* some tweaks for smaller widths not small enough to use mobile layout */
@media (max-width: 1023px) {
  .thirds .column {
    flex: 0 0 49%; /* behave like halves instead */
  }
  .thirds {
    column-gap: 2%; /* =< 100 - 2*column */
  }
}
@media (max-width: 768px) {
  .grid {
    display: block;
  }
  .competences-wrap {
    max-width: 100%;
  }
  .services-column {
    width: 100%;
    max-width: 100%;
  }
  .text-description {
    max-width: 100%;
    min-width: 100%;
  }
  .button {
    width: 100%;
    text-align: center;
  }
  .button-link {
    width: 100%;
  }
  .section-news {
    border-left: none;
    border-top: 2px solid var(--news-border-ink);
    border-bottom: 2px solid var(--news-border-ink);
    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .border-accent {
    background: var(--mobilenav-border-accent-ink);
    height: 5px;
    width: 100%;
  }
  .contact-box {
    width: 100%;
    min-width: 100%;
  }
  .img-div {
    height: 30rem;
    width: 100%;
  }
  .code-hand-bg {
    background: url("/images/code_hand_mobile.jpg") no-repeat cover;
  }
  .mobile {
    display: block !important;
    visibility: visible;
  }
  .desktop {
    display: none !important;
    visibility: hidden;
  }
  .desktop-center {
    text-align: left;
  }
  .size-half {
    width: 100%;
  }
  .list-competences {
    min-width: 100%; /* overrides max-width */
  }
  .center-desktop {
    margin-left: 0;
  }
  .img-slogan {
    width: 30rem;
  }
  .blog-article {
    background: var(--blog-article-paper);
    color: var(--blog-article-ink);
    border-top: 1px solid var(--blog-article-border-top-ink);
    border-left: 1px solid var(--blog-article-border-left-ink);
    border-right: 1px solid var(--blog-article-border-right-ink);
    border-bottom: 1px solid var(--blog-article-border-bottom-ink);
    box-shadow: var(--blog-article-shadow);
    width: 90%;
    height: fit-content;
    margin-bottom: 2rem;
  }
  .blog-article-title {
    color: var(--panel-3-subtitle-ink);
  }
  .blog-article-link {
    color: #ff1010;
  }
  .specialist-text {
    width: 100%;
  }
  .team-member {
    width: 100%;
    margin-top: 1.5rem;
  }
  .img-panel {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
  }
  .flex-center {
    align-items: start;
    justify-content: start;
  }
  .home-banner {
    background: var(--home-banner-paper) url("/images/code_blue_mobile.jpg") no-repeat center;
  }
  .section-big-desktop {
    padding: 5.4rem 0 5.4rem 0;
  }
  .section-half-left-content {
    padding: 3rem 4rem;
  }
  .line-accent-center {
    width: 30%;
  }
}
#ham-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 10;
}

#ham-icon span {
  display: block;
  position: absolute;
  height: 0.4rem;
  width: 100%;
  background: var(--topnav-burger-icon-ink);
  border-radius: 4px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

#ham-icon.open span {
  background: var(--mobilenav-burger-close-icon-ink);
}

#ham-icon span:nth-child(1) {
  top: 0px;
}

#ham-icon span:nth-child(2),
#ham-icon span:nth-child(3) {
  top: 8px;
}

#ham-icon span:nth-child(4) {
  top: 16px;
}

#ham-icon.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#ham-icon.open span:nth-child(2) {
  transform: rotate(45deg);
}

#ham-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

#ham-icon.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.orig-only {
  display: none;
}

.orig-theme .orig-only {
  display: revert;
}

/* Resources Page Styles */
.resource-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border); /* Subtle divider */
}
.resource-header h2 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  color: var(--content-heading);
}

.resource-subtitle {
  font-size: 1.2rem;
  color: var(--content-subheading);
  margin: 1rem 0 2rem 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

/* Category Filters */
.resource-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .resource-filters {
    gap: 0.4rem;
    margin: 1.5rem -0.5rem;
  }
}

.filter-btn {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--content-body);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
@media (max-width: 768px) {
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
.filter-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.filter-btn:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Search Bar */
.resource-search {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2rem;
}
.resource-search input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--card-border);
  border-radius: 25px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--card-bg);
  color: var(--content-body);
}
.resource-search input:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.resource-search i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--content-subheading);
}

/* Featured Resources Section - Larger Cards */
.featured-resources-section {
  margin-bottom: 3rem;
}
.featured-resources-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--content-heading);
}

.featured-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.featured-resources-grid .featured-card {
  transform: scale(1.05); /* Slightly larger than regular cards */
  border-width: 2px; /* Thicker border */
}
.featured-resources-grid .featured-card .resource-icon img {
  height: 80px; /* Larger icon */
}
.featured-resources-grid .featured-card h3 {
  font-size: 1.5rem; /* Larger title */
}
@media (max-width: 768px) {
  .featured-resources-grid {
    grid-template-columns: 1fr;
  }
  .featured-resources-grid .featured-card {
    transform: scale(1); /* Normal size on mobile */
  }
}

/* All Resources Grid - Tighter */
.resources-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--content-heading);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Strict 3-column grid */
  gap: 1.5rem; /* Tighter spacing */
  margin-bottom: 4rem;
  padding-top: 2rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid transparent;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--content-body);
  /* Depth styling for dark mode */
}
@media (prefers-color-scheme: dark) {
  .resource-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}
.resource-card h3 {
  font-family: "Baloo 2", sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.4rem;
  margin: 0.5rem 0 0.75rem 0;
  color: var(--content-body);
  line-height: 1.3;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left-color: #3FA3A3;
  z-index: 10;
}
.resource-card:focus-within {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* New/Popular Badges */
.badge-new, .badge-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.badge-new {
  background: #28a745;
  color: white;
}

.badge-popular {
  background: #ff6b6b;
  color: white;
  right: auto;
  left: 4rem; /* Move further right to avoid logo overlap */
}

/* Move badges to left when featured ribbon is present */
.resource-card .featured-ribbon ~ .badge-new {
  right: auto;
  left: 1rem;
}

/* Resource meta container for category and inline badges */
.resource-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Inline badges - styled consistently with category badge */
.badge-new-inline,
.badge-popular-inline {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  display: inline-block;
  vertical-align: baseline;
}

.badge-new-inline {
  background: #4caf50;
  color: white;
}

.badge-popular-inline {
  background: #ff6b6b;
  color: white;
}

/* Ensure category badge matches inline badges height */
.resource-category {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  display: inline-block;
  vertical-align: baseline;
}

/* FORCE DARK MODE COLORS FOR ALL SECTIONS - DISABLED (Use Mixins/Variables instead) */
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  /* Wrap all these overrides to exclude cases where data-theme="light" */
  html:not([data-theme=light]) {
    /* Fix section backgrounds */
    /* Fix all text in sections */
    /* Exception: blog article links should use their own colors (excluding word cloud) */
    /* Exception: inline code should use terminal green */
    /* Fix project cards specifically */
    /* Primary buttons use teal for primary UI */
    /* Fix featured ribbon text readability - keep dark text on yellow background */
    /* Make version text subtle in dark mode too */
    /* Outline buttons use teal for primary UI */
    /* Fix filter buttons (Books, Courses, Blog, etc.) */
    /* Fix category badges on resource cards - more subtle in dark mode */
    /* Inline badges in dark mode */
    /* Fix endorsements/testimonials section */
    /* Fix testimonials on resource detail pages */
    /* Resource cards with terminal green hover in dark mode */
    /* Category badges with terminal green in dark mode */
    /* CTA card in dark mode uses terminal orange */
    /* Blog cards with terminal green in dark mode */
  }
  html:not([data-theme=light]) .section-bg-transp {
    background: #1a1a1a !important;
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .section-bg-transp,
  html:not([data-theme=light]) .section-bg-transp *,
  html:not([data-theme=light]) .section-content,
  html:not([data-theme=light]) .section-content *,
  html:not([data-theme=light]) .section *,
  html:not([data-theme=light]) main *,
  html:not([data-theme=light]) p, html:not([data-theme=light]) h1, html:not([data-theme=light]) h2, html:not([data-theme=light]) h3, html:not([data-theme=light]) h4, html:not([data-theme=light]) h5, html:not([data-theme=light]) h6, html:not([data-theme=light]) li, html:not([data-theme=light]) div {
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .blog-article a:not(.wc-word),
  html:not([data-theme=light]) .blog-article a:not(.wc-word):visited,
  html:not([data-theme=light]) .blog-article a:not(.wc-word):hover,
  html:not([data-theme=light]) .blog-article a:not(.wc-word):focus {
    color: var(--blog-article-link-ink) !important;
  }
  html:not([data-theme=light]) .blog-article a:not(.wc-word):hover {
    color: var(--blog-article-link-hover-ink) !important;
  }
  html:not([data-theme=light]) .blog-article code:not(pre code) {
    color: var(--inline-code-ink) !important;
  }
  html:not([data-theme=light]) .card,
  html:not([data-theme=light]) .project-card,
  html:not([data-theme=light]) .section .card.project-card,
  html:not([data-theme=light]) .section-content .card.project-card,
  html:not([data-theme=light]) div.card.project-card {
    background: #2d3748 !important;
    color: #eaeaea !important;
    border-color: #4a5568 !important;
  }
  html:not([data-theme=light]) .card *,
  html:not([data-theme=light]) .project-card *,
  html:not([data-theme=light]) .card.project-card *,
  html:not([data-theme=light]) .section .card.project-card * {
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .btn-primary,
  html:not([data-theme=light]) a.btn-primary {
    background: #3FA3A3 !important;
    color: #ffffff !important;
    border-color: #3FA3A3 !important;
  }
  html:not([data-theme=light]) .btn-primary:hover,
  html:not([data-theme=light]) a.btn-primary:hover {
    background: #4FC2C2 !important;
    color: #ffffff !important;
    border-color: #4FC2C2 !important;
  }
  html:not([data-theme=light]) .featured-ribbon span {
    color: #333 !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
  }
  html:not([data-theme=light]) .txt-copyright span {
    color: #4a6077 !important;
  }
  html:not([data-theme=light]) .btn,
  html:not([data-theme=light]) .btn-secondary,
  html:not([data-theme=light]) .button,
  html:not([data-theme=light]) a.btn,
  html:not([data-theme=light]) a.btn-secondary {
    background: #4a5568 !important;
    color: #ffffff !important;
    border-color: #4a5568 !important;
  }
  html:not([data-theme=light]) .btn-outline {
    background: transparent !important;
    border: 2px solid #3FA3A3 !important;
    color: #3FA3A3 !important;
  }
  html:not([data-theme=light]) .btn-outline:hover {
    background: #3FA3A3 !important;
    color: white !important;
  }
  html:not([data-theme=light]) .btn:hover,
  html:not([data-theme=light]) .btn-secondary:hover,
  html:not([data-theme=light]) .button:hover,
  html:not([data-theme=light]) a.btn:hover,
  html:not([data-theme=light]) a.btn-secondary:hover {
    background: #2d3748 !important;
    color: #ffffff !important;
    border-color: #2d3748 !important;
  }
  html:not([data-theme=light]) .filter-btn,
  html:not([data-theme=light]) .resource-filters button,
  html:not([data-theme=light]) .resource-filters .filter-btn {
    background: #374151 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
  }
  html:not([data-theme=light]) .filter-btn:hover,
  html:not([data-theme=light]) .resource-filters button:hover,
  html:not([data-theme=light]) .resource-filters .filter-btn:hover {
    background: #4b5563 !important;
    color: #ffffff !important;
    border-color: #6b7280 !important;
  }
  html:not([data-theme=light]) .filter-btn.active,
  html:not([data-theme=light]) .resource-filters button.active,
  html:not([data-theme=light]) .resource-filters .filter-btn.active {
    background: #3FA3A3 !important;
    color: #ffffff !important;
    border-color: #3FA3A3 !important;
  }
  html:not([data-theme=light]) .resource-category,
  html:not([data-theme=light]) .badge,
  html:not([data-theme=light]) .badge-course,
  html:not([data-theme=light]) .badge-framework,
  html:not([data-theme=light]) .badge-book,
  html:not([data-theme=light]) .badge-blog,
  html:not([data-theme=light]) .badge-guide,
  html:not([data-theme=light]) span.resource-category {
    background: #4a6c7a !important;
    color: #e2e8f0 !important;
  }
  html:not([data-theme=light]) .badge-new-inline {
    background: #5a7a5a !important;
    color: #e0f0e0 !important;
  }
  html:not([data-theme=light]) .badge-popular-inline {
    background: #8b5a5a !important;
    color: #f0d0d0 !important;
  }
  html:not([data-theme=light]) .authority-block,
  html:not([data-theme=light]) .endorsements-section,
  html:not([data-theme=light]) .testimonials-section,
  html:not([data-theme=light]) .sponsors-section,
  html:not([data-theme=light]) .suggest-resource {
    background: #2d3748 !important;
    color: #eaeaea !important;
    border-color: #4a5568 !important;
  }
  html:not([data-theme=light]) .authority-block *,
  html:not([data-theme=light]) .endorsements-section *,
  html:not([data-theme=light]) .testimonials-section *,
  html:not([data-theme=light]) .sponsors-section *,
  html:not([data-theme=light]) .suggest-resource * {
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .resource-testimonials {
    background: #2d3748 !important;
    color: #eaeaea !important;
    border-color: #4a5568 !important;
  }
  html:not([data-theme=light]) .resource-testimonials h3 {
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .testimonial {
    background: #374151 !important;
    color: #eaeaea !important;
    border-left-color: #66D46B !important;
  }
  html:not([data-theme=light]) .testimonial p,
  html:not([data-theme=light]) .testimonial cite {
    color: #eaeaea !important;
  }
  html:not([data-theme=light]) .resource-card:hover {
    border-left-color: #66D46B !important;
    box-shadow: 0 8px 24px rgba(46, 194, 110, 0.15) !important;
  }
  html:not([data-theme=light]) .badge-new-inline {
    background: #66D46B !important;
    color: #000 !important;
  }
  html:not([data-theme=light]) .resource-category {
    border-color: #66D46B !important;
    color: #66D46B !important;
  }
  html:not([data-theme=light]) .cta-card {
    background: linear-gradient(135deg, rgba(214, 140, 40, 0.15), rgba(214, 140, 40, 0.08)) !important;
    border-left-color: #D68C28 !important;
  }
  html:not([data-theme=light]) .cta-card h3 {
    color: #FFAA33 !important;
  }
  html:not([data-theme=light]) .cta-card .cta-card-icon {
    color: #D68C28 !important;
  }
  html:not([data-theme=light]) .cta-card:hover {
    border-left-color: #FFAA33 !important;
    box-shadow: 0 8px 24px rgba(255, 170, 51, 0.25) !important;
  }
  html:not([data-theme=light]) .cta-card:hover .cta-card-icon {
    color: #FFAA33 !important;
  }
  html:not([data-theme=light]) .blog-cta-card {
    background: linear-gradient(135deg, rgba(46, 194, 110, 0.15), rgba(46, 194, 110, 0.08)) !important;
    border-left-color: #66D46B !important;
  }
  html:not([data-theme=light]) .blog-cta-card .blog-cta-content i {
    color: #66D46B !important;
  }
  html:not([data-theme=light]) .blog-cta-card .blog-cta-content h3 {
    color: #8FFF8A !important;
  }
  html:not([data-theme=light]) .blog-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
  }
  html:not([data-theme=light]) .blog-card .blog-category {
    background: #D68C28 !important;
    color: #000 !important;
  }
  html:not([data-theme=light]) .blog-card .blog-read-more {
    color: #3FA3A3 !important;
  }
  html:not([data-theme=light]) .blog-card .blog-read-more:hover {
    color: #4FC2C2 !important;
  }
  html:not([data-theme=light]) .blog-card:hover {
    border-left-color: #66D46B !important;
    box-shadow: 0 8px 24px rgba(46, 194, 110, 0.15) !important;
  }
  html:not([data-theme=light]) .blog-list-item:hover {
    background: #2d3748 !important;
    border-left-color: #66D46B !important;
  }
  html:not([data-theme=light]) .blog-list-item .blog-list-title:hover {
    color: #3FA3A3 !important;
  }
  /* End of html:not([data-theme="light"]) */
}
/* CTA Card - stands out with terminal orange accent */
.cta-card {
  background: linear-gradient(135deg, rgba(214, 140, 40, 0.08), rgba(214, 140, 40, 0.03));
  border-left-color: #D68C28;
  border-left-width: 4px;
}
.cta-card .cta-card-icon {
  font-size: 3rem;
  color: #D68C28;
  text-align: center;
  margin-bottom: 1rem;
}
.cta-card h3 {
  color: #D68C28;
}
.cta-card .cta-category {
  background: #D68C28;
  color: #fff;
  border: none;
}
.cta-card:hover {
  border-left-color: #FFAA33;
  box-shadow: 0 8px 24px rgba(214, 140, 40, 0.25);
}
.cta-card:hover .cta-card-icon {
  color: #FFAA33;
}

/* Blog Page Styles */
.blog-header {
  margin-bottom: 3rem;
}
.blog-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--content-body);
}
.blog-header .blog-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--content-body);
  margin-bottom: 1rem;
  max-width: 900px;
}

.blog-cta-card {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(46, 194, 110, 0.08), rgba(46, 194, 110, 0.03));
  border: 1px solid var(--card-border);
  border-left: 4px solid #66D46B;
  border-radius: 12px;
  text-align: center;
}
.blog-cta-card .blog-cta-content i {
  font-size: 3rem;
  color: #66D46B;
  margin-bottom: 1rem;
}
.blog-cta-card .blog-cta-content h3 {
  font-size: 1.8rem;
  color: #66D46B;
  margin-bottom: 1rem;
}
.blog-cta-card .blog-cta-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--content-body);
}

.blog-section {
  margin-bottom: 4rem;
}
.blog-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--content-body);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  /* Depth styling for dark mode */
}
@media (prefers-color-scheme: dark) {
  .blog-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}
.blog-card .blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--content-secondary);
  font-family: "'Hack', monospace";
  opacity: 0.7; /* Lighter weight for better scannability */
  font-weight: 400;
}
.blog-card .blog-category {
  padding: 0.3rem 0.875rem;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #FFAA33; /* Amber highlight color */
  color: #0B0D0E;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.blog-card .blog-title {
  font-size: 1.3rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}
.blog-card .blog-title a {
  color: var(--content-body);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-card .blog-title a:hover {
  color: #3FA3A3;
}
.blog-card .blog-subtitle {
  font-size: 0.95rem;
  color: var(--content-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--content-secondary);
}
.blog-card .blog-meta .blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-card .blog-read-more {
  color: #3FA3A3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: all 0.2s ease;
}
.blog-card .blog-read-more:hover {
  gap: 0.75rem;
  color: #4FC2C2;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left-color: #3FA3A3;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.blog-list-item:hover {
  background: var(--card-bg);
  border-left-color: #3FA3A3;
}
.blog-list-item .blog-list-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--content-secondary);
  font-family: "'Hack', monospace";
  opacity: 0.7; /* Lighter weight for better scannability */
  font-weight: 400;
  min-width: 100px;
}
.blog-list-item .blog-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.blog-list-item .blog-list-title {
  color: var(--content-body);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.blog-list-item .blog-list-title:hover {
  color: #3FA3A3;
}
.blog-list-item .blog-list-author {
  font-size: 0.85rem;
  color: var(--content-secondary);
}

.blog-footer-links {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
  margin-top: 3rem;
}
.blog-footer-links p {
  color: var(--content-secondary);
}
.blog-footer-links p a {
  color: #3FA3A3;
  text-decoration: none;
}
.blog-footer-links p a:hover {
  text-decoration: underline;
}

/* Featured Ribbon */
.featured-ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  z-index: 2;
}
.featured-ribbon span {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  width: 120px;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Category Icon */
.category-icon {
  font-size: 3rem;
  display: block;
  text-align: center;
  line-height: 60px;
}

.resource-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.resource-icon i {
  font-size: 2rem;
  color: var(--accent-primary);
}

.resource-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resource-content h3 {
  margin: 0 0 0.5rem 0;
  font-family: "'Baloo 2', sans-serif";
  font-weight: 700;
  color: var(--content-heading);
}

.resource-category {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resource-description {
  color: var(--content-body);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  flex: 1;
}

.resource-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: center;
}

/* Hover Testimonial - Tooltip Style */
.hover-testimonial {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1f2937;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  max-width: 280px;
  width: max-content;
  margin-bottom: 0.5rem;
  /* Arrow pointing down */
}
.hover-testimonial::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #1f2937;
}
.hover-testimonial p {
  font-style: italic;
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.hover-testimonial cite {
  font-size: 0.75rem;
  opacity: 1;
  display: block;
  text-align: right;
  color: #d1d5db;
}

.resource-card:hover .hover-testimonial {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Copy URL Button */
.btn-icon {
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--content-body);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-icon:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.btn-icon i {
  font-size: 0.875rem;
}

.authority-block {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
  /* Fix outline button readability on dark background */
}
.authority-block .btn-outline {
  border-color: white;
  color: white;
}
.authority-block .btn-outline:hover {
  background: white;
  color: var(--accent-primary);
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.authority-text {
  font-size: 1.1rem;
  margin: 1rem 0;
  opacity: 0.9;
}

.authority-sponsors {
  font-size: 0.95rem;
  margin: 1rem 0;
  opacity: 0.8;
  font-style: italic;
}

/* Resource Detail Pages */
.resource-detail-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .resource-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.resource-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.resource-meta h1 {
  margin: 0.5rem 0 1rem 0;
  color: var(--content-heading);
}

.resource-shortdesc {
  font-size: 1.2rem;
  color: var(--content-subheading);
  margin-bottom: 1.5rem;
}

.resource-actions-hero {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.resource-testimonials {
  background: var(--testimonial-bg, #f8f9fa);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}
.resource-testimonials h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--content-heading);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin: 0;
  font-style: italic;
  color: var(--content-body);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resource-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.resource-badges .badge {
  background: var(--accent-primary);
  color: white;
}

/* Resource-specific badges on cards */
.resource-specific-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: auto 0 1rem 0;
  align-items: center;
}
.resource-specific-badges .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
}
.resource-specific-badges .badge.badge-amazon1 {
  background: #ff6b6b;
  color: white;
}
.resource-specific-badges .badge.badge-hackernews {
  background: #ff6600;
  color: white;
}
.resource-specific-badges .badge.badge-jose-valim-sponsor {
  background: #7c3aed;
  color: white;
}
.resource-specific-badges .badge.badge-classic {
  background: #8b5cf6;
  color: white;
}
.resource-specific-badges .badge.badge-opensource {
  background: #10b981;
  color: white;
}
.resource-specific-badges .badge.badge-free {
  background: #059669;
  color: white;
}
.resource-specific-badges .badge.badge-practical {
  background: #3b82f6;
  color: white;
}
.resource-specific-badges .badge.badge-hands-on {
  background: #0ea5e9;
  color: white;
}
.resource-specific-badges .badge.badge-certification {
  background: #8b5cf6;
  color: white;
}
.resource-specific-badges .badge.badge-systematic {
  background: #6366f1;
  color: white;
}
.resource-specific-badges .badge.badge-weekly {
  background: #ec4899;
  color: white;
}
.resource-specific-badges .badge.badge-coming-soon {
  background: #f59e0b;
  color: white;
}
.resource-specific-badges .badge.badge-in-progress {
  background: #3b82f6;
  color: white;
}
.resource-specific-badges .badge.badge-coming-2025 {
  background: #6b7280;
  color: white;
}
.resource-specific-badges .badge.badge-fintech {
  background: #059669;
  color: white;
}
.resource-specific-badges .badge.badge-klarna {
  background: #ffb3d9;
  color: #1f2937;
}
.resource-specific-badges .badge.badge-core-contributor {
  background: #7c3aed;
  color: white;
}
.resource-specific-badges .badge.badge-erlang {
  background: #dc2626;
  color: white;
}
.resource-specific-badges .badge.badge-premium {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1f2937;
  font-weight: bold;
}
.resource-specific-badges .badge.badge-login-required {
  background: #ef4444;
  color: white;
}
.resource-specific-badges .badge.badge-6-modules {
  background: #3b82f6;
  color: white;
}
.resource-specific-badges .badge.badge-coaching {
  background: #8b5cf6;
  color: white;
}
.resource-specific-badges .badge.badge-profit-first {
  background: #059669;
  color: white;
}
.resource-specific-badges .badge-image {
  height: 60px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.resource-specific-badges .badge-image:hover {
  transform: scale(1.05);
}

/* Badge caption styling */
.badge-caption {
  font-size: 0.85rem;
  color: var(--content-body);
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}
.badge-caption .badge-disclaimer {
  color: #888;
  font-size: 0.92em;
  font-style: italic;
}

.resource-back {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

/* Button variations for resources */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}
.btn-outline:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Ensure button consistency */
.resource-actions .btn {
  min-width: 100px;
  text-align: center;
}
@media (max-width: 768px) {
  .resource-actions .btn {
    min-width: auto;
    padding: 0.5rem 1rem;
  }
}

/* Suggest a Resource Section */
.suggest-resource {
  background: var(--card-bg);
  border: 2px dashed var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}
.suggest-resource h3 {
  color: var(--content-heading);
  margin-bottom: 1rem;
}
.suggest-resource p {
  color: var(--content-body);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.suggest-resource .suggest-tooltip {
  font-style: italic;
  color: var(--content-subheading);
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.suggest-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.suggest-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Upcoming Resources Section */
.upcoming-section {
  margin-top: 4rem;
}
.upcoming-section h3 {
  text-align: center;
  color: var(--content-heading);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.upcoming-grid .resource-card {
  opacity: 0.8;
  background: var(--card-bg);
  border-style: dashed;
}
.upcoming-grid .resource-card:hover {
  opacity: 1;
  border-style: solid;
}

/* External contributions styling */
.resource-card[data-category=external] {
  border-color: #6b46c1;
}
.resource-card[data-category=external] .resource-category {
  background: #6b46c1;
}

/* Button styles for resources section */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn:focus, .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 163, 163, 0.4);
}
@media (prefers-color-scheme: dark) {
  .btn:focus, .btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(102, 212, 107, 0.4);
  }
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.btn-primary:hover {
  background: rgb(52.797752809, 60.6460674157, 74.202247191);
  border-color: rgb(52.797752809, 60.6460674157, 74.202247191);
  color: white;
}
.btn-primary:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
}
.btn-secondary:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Rotating Endorsements */
.rotating-endorsements-container {
  position: relative;
  min-height: 150px;
  margin: 1rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.03); /* Neutral grey background */
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
}

.rotating-endorsement {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  font-style: italic;
  color: var(--content-body);
  padding: 0;
}
.rotating-endorsement.active {
  opacity: 1;
  transform: translateY(0);
}
.rotating-endorsement cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--accent-primary);
  font-style: normal;
  font-weight: 500;
}

/* Dark mode for rotating endorsements */
@media (prefers-color-scheme: dark) {
  .rotating-endorsements-container {
    background: rgba(46, 194, 110, 0.1);
  }
  .rotating-endorsement {
    color: #eaeaea;
  }
  .rotating-endorsement cite {
    color: #66D46B;
  }
  /* CTA buttons use teal in dark mode for primary UI */
  .cta-button-primary {
    background: #3FA3A3 !important;
    box-shadow: 0 4px 20px rgba(63, 163, 163, 0.3);
  }
  .cta-button-primary:hover {
    background: #4FC2C2 !important;
    box-shadow: 0 6px 25px rgba(79, 194, 194, 0.4);
  }
}
/* Sticky Schedule a Call Button */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-cta-button {
  background: #2c3e50 !important;
  color: #ffffff !important;
  border: 2px solid #34495e;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
  transition: all 0.3s ease;
  font-family: var(--font-tertiary-family);
  text-decoration: none !important;
}

.sticky-cta-button * {
  color: #ffffff !important;
}

.sticky-cta-button:hover {
  background: #34495e !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
  border-color: #3c5673;
}

.sticky-cta-button:hover * {
  color: #ffffff !important;
}

.sticky-cta-button:active {
  transform: translateY(0);
  background: #2c3e50 !important;
  color: #ffffff !important;
}

.sticky-cta-button:active * {
  color: #ffffff !important;
}

/* Hide sticky button on small screens where it might overlap content */
@media (max-width: 768px) {
  .sticky-cta {
    bottom: 15px;
    right: 15px;
  }
  .sticky-cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
/* Booking Modal */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.booking-modal-content {
  background: var(--panel-1-paper);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--area-1-accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendly-modal-header h3 {
  margin: 0;
  color: var(--area-1-ink);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--area-1-ink);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--area-1-accent);
}

/* Qualifying Form */
.qualifying-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--area-1-ink);
}

.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--area-1-accent);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--panel-1-paper);
  color: var(--area-1-ink);
}

.form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(63, 163, 163, 0.1);
}

.form-submit-btn {
  width: 100%;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--button-1-hover-paper);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Calendar Widget Container */
.calendar-widget-container {
  padding: 1rem;
}

.calendar-note {
  background: var(--area-7-paper);
  border-left: 4px solid var(--area-1-accent);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--area-1-ink);
  line-height: 1.5;
}

/* Qualification Info Display */
.qualification-info {
  background: var(--area-7-paper);
  border: 2px solid var(--area-1-accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--area-1-accent);
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.copy-text {
  flex: 1;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--area-1-accent);
  font-family: monospace;
}

.copy-btn {
  background: var(--area-1-accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--button-1-hover-paper);
}

.info-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--area-1-ink);
  opacity: 0.8;
  font-style: italic;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .booking-modal {
    padding: 10px;
  }
  .booking-modal-content {
    max-width: 100%;
    max-height: 95vh;
  }
  .booking-modal-header {
    padding: 1rem 1.5rem;
  }
  .qualifying-form {
    padding: 1.5rem;
  }
  .calendar-widget-container {
    padding: 0.5rem;
  }
  .calendar-widget-container iframe {
    height: 500px !important;
  }
}
/* Schedule CTA Section */
.schedule-cta-section {
  text-align: center;
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--area-1-ink);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--area-1-ink);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-button-primary {
  background: #3FA3A3 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(63, 163, 163, 0.3);
  transition: all 0.3s ease;
  font-family: var(--font-tertiary-family);
  text-decoration: none !important;
}

.cta-button-primary * {
  color: #ffffff !important;
}

.cta-button-primary:hover {
  background: #008fa3 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(63, 163, 163, 0.4);
}

.cta-button-primary:hover * {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 1.5rem;
  }
  .cta-subtitle {
    font-size: 1.1rem;
  }
  .cta-button-primary {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}
/* Process Summary Section */
.process-summary {
  background: var(--area-7-paper);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid var(--area-1-accent);
}

.process-link {
  color: var(--area-1-accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.process-link:hover {
  color: var(--button-1-hover-paper);
  transform: translateX(4px);
}

/* Calendar Redirect */
.calendar-redirect {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--area-7-paper);
  border-radius: 8px;
  border: 2px solid var(--area-1-accent);
}

.calendar-redirect h3 {
  margin: 0 0 1rem 0;
  color: var(--area-1-accent);
}

.calendar-redirect p {
  margin: 0 0 2rem 0;
  color: var(--area-1-ink);
  opacity: 0.8;
}

.calendar-redirect-btn {
  display: inline-block;
  background: var(--area-1-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.calendar-redirect-btn:hover {
  background: var(--button-1-hover-paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 163, 163, 0.3);
}

/* Mission Section */
.mission-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.mission-content h2 {
  margin-bottom: 1.5rem;
  color: var(--area-1-ink);
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mission-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .mission-image {
    order: -1;
  }
  .mission-image img {
    max-width: 250px;
    margin: 0 auto;
  }
}
/* Email Signup Form for Gated Resources */
.email-signup-form {
  background: var(--area-1-paper);
  border: 2px solid var(--area-1-accent);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  max-width: 500px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gated-resource-form .form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gated-resource-form .form-header h3 {
  color: var(--area-1-ink);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.gated-resource-form .form-header p {
  color: var(--area-1-ink-lighter);
  font-size: 1rem;
}

.gated-resource-form .form-group {
  margin-bottom: 1.5rem;
}

.gated-resource-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--area-1-ink);
}

.gated-resource-form input,
.gated-resource-form select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--area-1-border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--area-1-paper);
  color: var(--area-1-ink);
  transition: border-color 0.3s ease;
}

.gated-resource-form input:focus,
.gated-resource-form select:focus {
  outline: none;
  border-color: var(--area-1-accent);
  box-shadow: 0 0 0 3px rgba(63, 163, 163, 0.1);
}

.gated-resource-form .form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--button-1-paper);
  color: var(--button-1-ink);
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gated-resource-form .form-submit:hover {
  background: var(--button-1-hover-paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 163, 163, 0.3);
}

.gated-resource-form .form-disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--area-1-ink-lighter);
  text-align: center;
  line-height: 1.4;
}

.gated-resource-form .form-disclaimer a {
  color: var(--area-1-accent);
  text-decoration: none;
}

.gated-resource-form .form-disclaimer a:hover {
  text-decoration: underline;
}

.download-success {
  background: var(--area-1-paper);
  border: 2px solid #28a745;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.1);
}

.download-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-success h3 {
  color: #28a745;
  margin-bottom: 1rem;
}

.download-success p {
  color: var(--area-1-ink);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.download-success a {
  color: var(--area-1-accent);
  text-decoration: none;
  font-weight: 600;
}

.download-success a:hover {
  text-decoration: underline;
}

/* Featured Resource Highlight */
.featured-resource {
  margin-top: 2rem;
}

.resource-highlight {
  background: linear-gradient(135deg, var(--area-1-paper) 0%, var(--area-1-accent-lighter) 100%);
  border: 2px solid var(--area-1-accent);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(63, 163, 163, 0.1);
}

.resource-highlight h3 {
  color: var(--area-1-ink);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resource-highlight p {
  color: var(--area-1-ink);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.resource-cta {
  display: inline-block;
  background: var(--button-1-paper);
  color: var(--button-1-ink);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resource-cta:hover {
  background: var(--button-1-hover-paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 163, 163, 0.3);
  text-decoration: none;
}

/* Testimonial Carousel */
.testimonial-carousel {
  background: var(--area-1-paper);
  padding: 3rem 0;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: 150px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-in-out;
  padding: 0 2rem;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-content {
  text-align: center;
}

.testimonial-content blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--area-1-ink);
  margin: 0 0 1.5rem 0;
  border: none;
  padding: 0;
  line-height: 1.6;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-info strong {
  color: var(--area-1-ink);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-info span {
  color: var(--area-1-ink-lighter);
  font-size: 0.9rem;
}

.testimonial-logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

/* Fix for light-colored logos in light mode */
.testimonial-logo[src*="laya.svg"] {
  filter: brightness(0) saturate(100%) invert(60%) sepia(8%) saturate(872%) hue-rotate(169deg) brightness(99%) contrast(86%);
}

[data-theme=dark] .testimonial-logo[src*="laya.svg"] {
  filter: none;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--area-1-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: var(--area-1-accent);
}

.dot:hover {
  background: var(--area-1-accent);
}

@media (max-width: 768px) {
  .testimonial-carousel {
    padding: 2rem 0;
  }
  .testimonial-container {
    height: 180px;
  }
  .testimonial-slide {
    padding: 0 1rem;
  }
  .testimonial-content blockquote {
    font-size: 1.1rem;
  }
  .testimonial-author {
    flex-direction: column;
    gap: 0.5rem;
  }
  .author-info {
    text-align: center;
  }
}
/* ============================================
   Talks & Presentations Page Styles
   ============================================ */
.talk-overview {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid #3FA3A3;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
@media (prefers-color-scheme: dark) {
  .talk-overview {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}
.talk-overview h3 {
  color: var(--content-heading);
  margin-top: 0;
}

.talk-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .talk-actions {
    flex-direction: column;
  }
  .talk-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.talk-card {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  border-left: 4px solid #3FA3A3;
  background: #F9F9F9;
  border-radius: 8px;
  line-height: 1.6;
}
.talk-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #212121;
  font-weight: 600;
}
.talk-card .conference {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 1rem;
  font-style: italic;
}
.talk-card .talk-conference {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 0.75rem;
  font-style: italic;
  font-weight: 500;
}
.talk-card .talk-year {
  font-size: 0.85rem;
  color: #a0aec0;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  margin-left: 0.5rem;
}
.talk-card .description {
  margin: 1rem 0;
  color: #212121;
}
.talk-card .links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.talk-card .links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #3FA3A3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.talk-card .links a:hover {
  background: rgb(48.7831858407, 126.2168141593, 126.2168141593);
}

@media (prefers-color-scheme: dark) {
  .talk-card {
    background: #2d3748;
    border-left-color: #3FA3A3;
  }
  .talk-card h3 {
    color: #D3D7DA;
  }
  .talk-card .conference, .talk-card .talk-conference {
    color: #a0aec0;
  }
  .talk-card .talk-year {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
  }
  .talk-card .description {
    color: #D3D7DA;
  }
}
@media (max-width: 768px) {
  .talk-card {
    margin: 0 1rem 2rem 1rem;
    padding: 1rem;
  }
}
/* Enhanced Talks Page Styles */
.talks-page-content {
  max-width: 950px;
  margin: 0 auto;
}

.talks-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.talks-intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--content-body);
  max-width: 750px;
  margin: 0 auto;
}

/* Featured Talk Hero */
.featured-talk-hero {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-left: 6px solid #D68C28;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
@media (prefers-color-scheme: dark) {
  .featured-talk-hero {
    background: #161d1e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}
.featured-talk-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
  .featured-talk-hero:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 24px rgba(0, 0, 0, 0.5);
  }
}

.featured-talk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFAA33;
  color: #0B0D0E;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .featured-talk-badge {
    background: #D68C28;
    color: #fff;
  }
}

.featured-talk-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--content-heading);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .featured-talk-title {
    font-size: 1.4rem;
  }
}

.featured-talk-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.featured-talk-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--content-body);
  margin-bottom: 2rem;
}

.featured-talk-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .featured-talk-actions {
    flex-direction: column;
  }
  .featured-talk-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.all-talks-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--content-heading);
}

/* Enhanced Talk Card Styles */
.resource-card.talk-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid transparent;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}
@media (prefers-color-scheme: dark) {
  .resource-card.talk-card {
    background: #14191B;
  }
}
.resource-card.talk-card:hover {
  border-color: #66D46B;
  background: #161d1e;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
@media (prefers-color-scheme: dark) {
  .resource-card.talk-card:hover {
    border-color: #66D46B;
    background: #161d1e;
  }
}

.talk-event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.talk-event {
  color: #66D46B;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (prefers-color-scheme: dark) {
  .talk-event {
    color: #66D46B;
  }
}
.talk-event i {
  opacity: 0.8;
}

.talk-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--content-heading);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.talk-meta-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.talk-category {
  font-size: 0.75rem;
  color: var(--content-secondary);
  opacity: 0.8;
}

.talk-year-detail {
  color: #D68C28;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
@media (prefers-color-scheme: dark) {
  .talk-year-detail {
    color: #D68C28;
  }
}
.talk-year-detail i {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .talks-page-content {
    max-width: 100%;
    padding: 0 1rem;
  }
  .featured-talk-hero {
    padding: 1.5rem;
  }
  .talk-event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* ============================================
   Endorsements Page Styles
   ============================================ */
.endorsement-card {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  border-left: 4px solid #3FA3A3;
  background: #F9F9F9;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
}
.endorsement-card p {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #212121;
}
.endorsement-card footer {
  text-align: right;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3FA3A3;
  margin-top: 1rem;
}
.endorsement-card footer a {
  color: #3FA3A3;
  text-decoration: none;
}
.endorsement-card footer a:hover {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .endorsement-card {
    background: #2d3748;
    border-left-color: #3FA3A3;
  }
  .endorsement-card p {
    color: #D3D7DA;
  }
  .endorsement-card footer {
    color: #3FA3A3;
  }
  .endorsement-card footer a {
    color: #3FA3A3;
  }
}
@media (max-width: 768px) {
  .endorsement-card {
    margin: 0 1rem 2rem 1rem;
    padding: 1rem;
  }
}
.achievement-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #F9F9F9;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3FA3A3;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.achievement-section h3 {
  color: #3FA3A3;
  margin-bottom: 1rem;
  font-weight: 600;
}
.achievement-section ul {
  margin: 0;
  padding-left: 1.5rem;
}
.achievement-section li {
  margin-bottom: 0.5rem;
  color: #212121;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .achievement-section {
    background: #2d3748;
    border-color: #4a5568;
    border-left-color: #3FA3A3;
  }
  .achievement-section li {
    color: #D3D7DA;
  }
}
.category-section {
  margin: 3rem 0;
}
.category-section h2 {
  color: #3FA3A3;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Metaphor mapping sidebar - scrolls with content, left margin on wide screens */
/* =========================================
   SIDEBAR WIDGETS (Metaphor Map & Word Cloud)
   ========================================= */
/* 1. The Metaphor Map Box */
.metaphor-map {
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.25rem;
  /* Use Variables */
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-left: 4px solid var(--sidebar-accent); /* Thick colored line on left */
  color: var(--sidebar-ink);
  box-shadow: var(--sidebar-shadow);
  border-radius: 8px;
  font-size: 0.9rem;
}
.metaphor-map h4 {
  margin: 0 0 1rem 0;
  color: var(--sidebar-title-ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--sidebar-border);
  padding-bottom: 0.5rem;
}
.metaphor-map p, .metaphor-map li {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: var(--sidebar-ink);
}
.metaphor-map p strong, .metaphor-map li strong {
  color: var(--sidebar-title-ink);
  font-weight: 600;
}
.metaphor-map ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* 2. Responsive Positioning for Metaphor Map */
@media (min-width: 769px) {
  .metaphor-map {
    float: left;
    width: 260px;
    margin: 0.5rem 2rem 1rem 0; /* More breathing room */
  }
}
/* 3. The Word Cloud Sidebar */
.word-cloud-sidebar {
  display: none; /* Hidden on narrow screens by default */
}

@media (min-width: 1200px) {
  .word-cloud-sidebar {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 1.25rem;
    /* Use Variables */
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    box-shadow: var(--sidebar-shadow);
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .word-cloud-sidebar h4 {
    margin: 0 0 1rem 0;
    color: var(--sidebar-title-ink);
    font-size: 1.2rem; /* Increased from 0.75rem for better readability on large screens */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--sidebar-border);
    padding-bottom: 0.5rem;
  }
}
/* Pre-rendered word cloud scatter layout */
.word-cloud-scatter {
  position: relative;
  height: 260px;
  overflow: hidden;
  max-width: 100%;
}

/* Ensure any iframes or canvases in word cloud fit */
.word-cloud-sidebar iframe,
.word-cloud-sidebar canvas {
  max-width: 100%;
}

.wc-word {
  position: absolute;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.wc-word:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Size classes - increased for better readability on large screens */
.wc-xl {
  font-size: 1.8rem;
  font-weight: 700;
}

.wc-lg {
  font-size: 1.5rem;
  font-weight: 600;
}

.wc-md {
  font-size: 1.3rem;
  font-weight: 500;
}

.wc-sm {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.85;
} /* Minimum 12px */
/* Position and color classes - Happi Hacking brand palette with scatter pattern */
.wc-pos-0 {
  color: #3FA3A3 !important;
  top: 5%;
  left: 10%;
  transform: rotate(-8deg);
}

.wc-pos-1 {
  color: #FFAA33 !important;
  top: 12%;
  left: 55%;
  transform: rotate(5deg);
}

.wc-pos-2 {
  color: #2E7E89 !important;
  top: 22%;
  left: 25%;
  transform: rotate(-3deg);
}

.wc-pos-3 {
  color: #D68C28 !important;
  top: 30%;
  left: 60%;
  transform: rotate(12deg);
}

.wc-pos-4 {
  color: #4FC2C2 !important;
  top: 40%;
  left: 8%;
  transform: rotate(-5deg);
}

.wc-pos-5 {
  color: #C2A05D !important;
  top: 48%;
  left: 45%;
  transform: rotate(8deg);
}

.wc-pos-6 {
  color: #3FA3A3 !important;
  top: 58%;
  left: 18%;
  transform: rotate(-10deg);
}

.wc-pos-7 {
  color: #D68C28 !important;
  top: 65%;
  left: 55%;
  transform: rotate(3deg);
}

/* Additional positions for words beyond first 8 */
.wc-word:nth-child(n+9).wc-pos-0 {
  top: 75%;
  left: 30%;
}

.wc-word:nth-child(n+9).wc-pos-1 {
  top: 82%;
  left: 5%;
}

.wc-word:nth-child(n+9).wc-pos-2 {
  top: 88%;
  left: 50%;
}

.wc-word:nth-child(n+9).wc-pos-3 {
  top: 35%;
  left: 35%;
}

.wc-word:nth-child(n+9).wc-pos-4 {
  top: 52%;
  left: 70%;
}

.wc-word:nth-child(n+9).wc-pos-5 {
  top: 18%;
  left: 5%;
}

.wc-word:nth-child(n+9).wc-pos-6 {
  top: 72%;
  left: 65%;
}

.wc-word:nth-child(n+9).wc-pos-7 {
  top: 45%;
  left: 25%;
}

/* Third row positions */
.wc-word:nth-child(n+17).wc-pos-0 {
  top: 8%;
  left: 70%;
}

.wc-word:nth-child(n+17).wc-pos-1 {
  top: 92%;
  left: 25%;
}

.wc-word:nth-child(n+17).wc-pos-2 {
  top: 62%;
  left: 40%;
}

.wc-word:nth-child(n+17).wc-pos-3 {
  top: 28%;
  left: 5%;
}

/* =========================================
   WORD CLOUD DARK MODE FIX
   ========================================= */
/* System Preference Dark Mode (unless forced light) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme=light]) .wc-pos-0 {
    color: #66D46B !important;
  }
  html:not([data-theme=light]) .wc-pos-1 {
    color: #FFAA33 !important;
  }
  html:not([data-theme=light]) .wc-pos-2 {
    color: #4FC2C2 !important;
  }
  html:not([data-theme=light]) .wc-pos-3 {
    color: #FFB84D !important;
  }
  html:not([data-theme=light]) .wc-pos-4 {
    color: #66D46B !important;
  }
  html:not([data-theme=light]) .wc-pos-5 {
    color: #E0C080 !important;
  }
  html:not([data-theme=light]) .wc-pos-6 {
    color: #5DCFCF !important;
  }
  html:not([data-theme=light]) .wc-pos-7 {
    color: #FFC966 !important;
  }
}
/* Force override for manual dark mode toggle */
html[data-theme=dark] .wc-pos-0 {
  color: #66D46B !important;
}

html[data-theme=dark] .wc-pos-1 {
  color: #FFAA33 !important;
}

html[data-theme=dark] .wc-pos-2 {
  color: #4FC2C2 !important;
}

html[data-theme=dark] .wc-pos-3 {
  color: #FFB84D !important;
}

html[data-theme=dark] .wc-pos-4 {
  color: #66D46B !important;
}

html[data-theme=dark] .wc-pos-5 {
  color: #E0C080 !important;
}

html[data-theme=dark] .wc-pos-6 {
  color: #5DCFCF !important;
}

html[data-theme=dark] .wc-pos-7 {
  color: #FFC966 !important;
}

/* Word index page styles */
.word-cloud-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: center;
  padding: 1rem 0;
}

.word-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  /* Cycle through brand colors based on position */
}
.word-tag:nth-child(8n+1) {
  color: #3FA3A3;
}
.word-tag:nth-child(8n+2) {
  color: #FFAA33;
}
.word-tag:nth-child(8n+3) {
  color: #2E7E89;
}
.word-tag:nth-child(8n+4) {
  color: #D68C28;
}
.word-tag:nth-child(8n+5) {
  color: #4FC2C2;
}
.word-tag:nth-child(8n+6) {
  color: #C2A05D;
}
.word-tag:nth-child(8n+7) {
  color: #3FA3A3;
}
.word-tag:nth-child(8n) {
  color: #D68C28;
}
.word-tag:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  .word-tag:nth-child(8n+1) {
    color: #66D46B;
  }
  .word-tag:nth-child(8n+2) {
    color: #FFAA33;
  }
  .word-tag:nth-child(8n+3) {
    color: #4FC2C2;
  }
  .word-tag:nth-child(8n+4) {
    color: #FFB84D;
  }
  .word-tag:nth-child(8n+5) {
    color: #66D46B;
  }
  .word-tag:nth-child(8n+6) {
    color: #E0C080;
  }
  .word-tag:nth-child(8n+7) {
    color: #5DCFCF;
  }
  .word-tag:nth-child(8n) {
    color: #FFC966;
  }
}
.word-articles-list {
  list-style: disc;
  padding-left: 1.5rem;
}
.word-articles-list li {
  margin: 0.5rem 0;
}
.word-articles-list .word-count {
  color: #6b7280;
  font-size: 1.85em;
}

.word-cloud-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 1.8rem;
}

/* Series navigation sidebar for blog post series */
.series-nav {
  background-color: var(--area-1-paper);
  border-left: 4px solid var(--area-1-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem 0;
  border-radius: 6px;
  font-size: 1.5rem;
}
.series-nav h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--area-1-ink);
}
.series-nav ol {
  margin: 0;
  padding-left: 1.25rem;
}
.series-nav ol li {
  margin: 0.35rem 0;
  line-height: 1.4;
}
.series-nav ol li.current {
  font-weight: 600;
}
.series-nav ol li.current::marker {
  color: var(--area-1-accent);
}
.series-nav a {
  color: var(--area-1-link-ink);
  text-decoration: underline;
}
.series-nav a:hover {
  text-decoration: underline;
  color: var(--area-1-accent);
}

/* Series nav - hidden on narrow screens by default */
.series-nav-sticky {
  display: none;
}

/* Series nav in margin ONLY when sidebar is actually visible (1700px+) */
@media (min-width: 1700px) {
  .series-nav-container {
    display: none; /* Hide inline version when sidebar is visible */
  }
  .series-nav-sticky {
    display: block;
    position: static; /* Let grid control positioning */
    width: 100%;
    max-width: none;
  }
  .series-nav-sticky .series-nav {
    margin: 0 0 1rem 0;
    font-size: 1.4rem; /* Increased from 1.2rem for better readability */
    padding: 1rem 1.25rem;
  }
  .series-nav-sticky .series-nav h4 {
    font-size: 1.3rem; /* Increased from 0.9rem - minimum 12px */
    margin-bottom: 0.6rem;
  }
  .series-nav-sticky .series-nav ol {
    padding-left: 1.1rem;
  }
  .series-nav-sticky .series-nav ol li {
    margin: 0.3rem 0;
    line-height: 1.35;
  }
}
/* Series prev/next navigation at bottom of posts */
.series-prevnext {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--blog-article-border-top-ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
}
.series-prevnext .series-prev, .series-prevnext .series-next {
  flex: 1;
  max-width: 45%;
}
.series-prevnext .series-prev {
  text-align: left;
}
.series-prevnext .series-next {
  text-align: right;
}
.series-prevnext .series-label {
  display: block;
  font-size: 0.8rem;
  color: var(--blog-article-ink);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.series-prevnext a {
  color: var(--blog-article-link-ink);
  text-decoration: underline;
}
.series-prevnext a:hover {
  text-decoration: underline;
  color: var(--blog-article-link-hover-ink);
}

/* =========================================
   PRISM SYNTAX HIGHLIGHTING OVERRIDES
   ========================================= */
/* Force Theme colors with !important using CSS Variables */
pre[class*=language-], code[class*=language-] {
  color: var(--code-text) !important;
  background: var(--code-bg) !important;
  text-shadow: none !important; /* Remove shadow for cleaner look in light mode */
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
  font-size: calc(1em * var(--content-font-scale, 1)) !important;
  text-align: left !important;
  white-space: pre !important;
  word-spacing: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
  line-height: 1.5 !important;
}

/* Token Colors Mapped to Variables */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--token-comment) !important;
}

.token.punctuation {
  color: var(--token-punctuation) !important;
}

.token.namespace {
  opacity: 0.7 !important;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--token-property) !important;
}

.token.boolean,
.token.number {
  color: var(--token-number) !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--token-string) !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: var(--token-operator) !important;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: var(--token-function) !important;
}

.token.keyword {
  color: var(--token-keyword) !important;
}

.token.regex,
.token.important {
  color: var(--token-regex) !important;
}

.token.important,
.token.bold {
  font-weight: bold !important;
}

.token.italic {
  font-style: italic !important;
}

.token.entity {
  cursor: help !important;
}

/* Explicit Light Mode Variable Overrides */
html[data-theme=light] {
  --code-bg: #f5f2f0;
  --code-text: black;
  --token-comment: slategray;
  --token-punctuation: #999;
  --token-property: #905;
  --token-tag: #905;
  --token-boolean: #905;
  --token-number: #905;
  --token-constant: #905;
  --token-symbol: #905;
  --token-deleted: #905;
  --token-selector: #690;
  --token-attr-name: #690;
  --token-string: #690;
  --token-char: #690;
  --token-builtin: #690;
  --token-url: #9a6e3a;
  --token-inserted: #690;
  --token-operator: #9a6e3a;
  --token-entity: #9a6e3a;
  --token-atrule: #07a;
  --token-attr-value: #07a;
  --token-keyword: #07a;
  --token-function: #DD4A68;
  --token-class-name: #DD4A68;
  --token-regex: #e90;
  --token-important: #e90;
  --token-variable: #e90;
  --token-prolog: slategray;
  --token-doctype: slategray;
  --token-cdata: slategray;
}

/* BRUTE FORCE SELECTOR OVERRIDE for Light Mode Prism */
html[data-theme=light] pre[class*=language-],
html[data-theme=light] code[class*=language-] {
  background: #f5f2f0 !important;
  color: black !important;
  text-shadow: none !important;
}

html[data-theme=light] .token.comment,
html[data-theme=light] .token.prolog,
html[data-theme=light] .token.doctype,
html[data-theme=light] .token.cdata {
  color: slategray !important;
}

html[data-theme=light] .token.punctuation {
  color: #999 !important;
}

html[data-theme=light] .token.namespace {
  opacity: 0.7 !important;
}

html[data-theme=light] .token.property,
html[data-theme=light] .token.tag,
html[data-theme=light] .token.boolean,
html[data-theme=light] .token.number,
html[data-theme=light] .token.constant,
html[data-theme=light] .token.symbol,
html[data-theme=light] .token.deleted {
  color: #905 !important;
}

html[data-theme=light] .token.selector,
html[data-theme=light] .token.attr-name,
html[data-theme=light] .token.string,
html[data-theme=light] .token.char,
html[data-theme=light] .token.builtin,
html[data-theme=light] .token.inserted {
  color: #690 !important;
}

html[data-theme=light] .token.operator,
html[data-theme=light] .token.entity,
html[data-theme=light] .token.url,
html[data-theme=light] .language-css .token.string,
html[data-theme=light] .style .token.string,
html[data-theme=light] .token.variable {
  color: #9a6e3a !important;
}

html[data-theme=light] .token.atrule,
html[data-theme=light] .token.attr-value,
html[data-theme=light] .token.keyword {
  color: #07a !important;
}

html[data-theme=light] .token.function,
html[data-theme=light] .token.class-name {
  color: #DD4A68 !important;
}

html[data-theme=light] .token.regex,
html[data-theme=light] .token.important {
  color: #e90 !important;
}

html[data-theme=light] .token.important,
html[data-theme=light] .token.bold {
  font-weight: bold !important;
}

html[data-theme=light] .token.italic {
  font-style: italic !important;
}

/* Brute Force Auto-Light Mode (OS Light + Default) */
@media (prefers-color-scheme: light) {
  html:not([data-theme=dark]) pre[class*=language-],
  html:not([data-theme=dark]) code[class*=language-] {
    background: #f5f2f0 !important;
    color: black !important;
    text-shadow: none !important;
  }
  html:not([data-theme=dark]) .token.comment,
  html:not([data-theme=dark]) .token.prolog,
  html:not([data-theme=dark]) .token.doctype,
  html:not([data-theme=dark]) .token.cdata {
    color: slategray !important;
  }
  html:not([data-theme=dark]) .token.punctuation {
    color: #999 !important;
  }
  html:not([data-theme=dark]) .token.namespace {
    opacity: 0.7 !important;
  }
  html:not([data-theme=dark]) .token.property,
  html:not([data-theme=dark]) .token.tag,
  html:not([data-theme=dark]) .token.boolean,
  html:not([data-theme=dark]) .token.number,
  html:not([data-theme=dark]) .token.constant,
  html:not([data-theme=dark]) .token.symbol,
  html:not([data-theme=dark]) .token.deleted {
    color: #905 !important;
  }
  html:not([data-theme=dark]) .token.selector,
  html:not([data-theme=dark]) .token.attr-name,
  html:not([data-theme=dark]) .token.string,
  html:not([data-theme=dark]) .token.char,
  html:not([data-theme=dark]) .token.builtin,
  html:not([data-theme=dark]) .token.inserted {
    color: #690 !important;
  }
  html:not([data-theme=dark]) .token.operator,
  html:not([data-theme=dark]) .token.entity,
  html:not([data-theme=dark]) .token.url,
  html:not([data-theme=dark]) .language-css .token.string,
  html:not([data-theme=dark]) .style .token.string,
  html:not([data-theme=dark]) .token.variable {
    color: #9a6e3a !important;
  }
  html:not([data-theme=dark]) .token.atrule,
  html:not([data-theme=dark]) .token.attr-value,
  html:not([data-theme=dark]) .token.keyword {
    color: #07a !important;
  }
  html:not([data-theme=dark]) .token.function,
  html:not([data-theme=dark]) .token.class-name {
    color: #DD4A68 !important;
  }
  html:not([data-theme=dark]) .token.regex,
  html:not([data-theme=dark]) .token.important {
    color: #e90 !important;
  }
  html:not([data-theme=dark]) .token.important,
  html:not([data-theme=dark]) .token.bold {
    font-weight: bold !important;
  }
  html:not([data-theme=dark]) .token.italic {
    font-style: italic !important;
  }
}
/* =========================================
   CODE BLOCK ENHANCEMENTS
   ========================================= */
.code-block-wrapper {
  position: relative;
  margin: 1rem 0;
}

.code-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--code-bg);
  border: 1px solid var(--blog-article-border-top-ink);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  align-items: center;
}

.code-btn {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--code-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.code-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.code-btn-small {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.code-font-controls {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.code-block-wrapper pre {
  margin-top: 0 !important;
  border-radius: 0 0 4px 4px !important;
}

/* No syntax highlighting state - override all Prism token colors */
pre.no-syntax .token,
pre.no-syntax .token.comment,
pre.no-syntax .token.prolog,
pre.no-syntax .token.doctype,
pre.no-syntax .token.cdata,
pre.no-syntax .token.punctuation,
pre.no-syntax .token.property,
pre.no-syntax .token.tag,
pre.no-syntax .token.boolean,
pre.no-syntax .token.number,
pre.no-syntax .token.constant,
pre.no-syntax .token.symbol,
pre.no-syntax .token.deleted,
pre.no-syntax .token.selector,
pre.no-syntax .token.attr-name,
pre.no-syntax .token.string,
pre.no-syntax .token.char,
pre.no-syntax .token.builtin,
pre.no-syntax .token.inserted,
pre.no-syntax .token.operator,
pre.no-syntax .token.entity,
pre.no-syntax .token.url,
pre.no-syntax .token.atrule,
pre.no-syntax .token.attr-value,
pre.no-syntax .token.keyword,
pre.no-syntax .token.function,
pre.no-syntax .token.class-name,
pre.no-syntax .token.regex,
pre.no-syntax .token.important,
pre.no-syntax .token.variable {
  color: var(--code-text) !important;
  background: transparent !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

/* Account Dropdown Navigation */
.account-dropdown {
  position: relative;
  display: inline-block;
}

.account-toggle {
  color: inherit !important;
  text-decoration: none;
  cursor: pointer;
  font-weight: var(--default-font-caption-weight, 600);
  font-family: var(--default-font-caption-family, "Baloo 2", sans-serif);
  transition: color 0.3s ease;
}

.account-toggle:hover {
  color: var(--area-1-accent, #4285f4) !important;
}

.account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--area-4-paper, white);
  border: 1px solid var(--area-1-border, #d8d8d8);
  border-radius: 8px;
  box-shadow: var(--default-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.account-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--area-4-ink, #333) !important;
  text-decoration: none;
  font-family: var(--default-font-body-family, "Poppins", sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--area-1-border-lighter, #f0f0f0);
  transition: background-color 0.2s ease;
}

.account-menu a:last-child {
  border-bottom: none;
}

.account-menu a:hover {
  background: var(--area-0-paper, #f8f9fa);
  color: var(--area-1-accent, #4285f4) !important;
}

/* Mobile navigation account dropdown */
@media (max-width: 768px) {
  .account-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 10px;
  }
  .account-menu a {
    color: inherit !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
  }
  .account-menu a:hover {
    background: transparent;
    color: var(--area-1-accent, #4285f4) !important;
  }
}

/*# sourceMappingURL=styles.css.map */
