/* Design token mapping from uncomplicated-guide/src/index.css (Tailwind variables)
   Provides CSS variables and utility classes used by the imported sections
   so we don't need a Tailwind rebuild here. */

:root {
  --background: 0 0% 98%;
  --foreground: 220 25% 15%;

  --card: 0 0% 100%;
  --card-foreground: 220 25% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 25% 15%;

  --primary: 200 80% 45%;
  --primary-foreground: 0 0% 98%;
  --primary-light: 200 60% 70%;

  --secondary: 220 15% 96%;
  --secondary-foreground: 220 25% 15%;

  --muted: 220 13% 95%;
  --muted-foreground: 220 15% 55%;

  --accent: 40 95% 65%;
  --accent-foreground: 220 25% 15%;

  --cta-pink: 324 81% 57%;
  --cta-pink-foreground: 0 0% 98%;

  --nordic-blue: 210 85% 50%;
  --nordic-green: 150 70% 45%;
  --nordic-warm: 30 85% 70%;
  --nordic-grey: 220 10% 85%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 200 80% 45%;

  --radius: 0.5rem;
}

/* Basic token utility classes to mimic Tailwind color shortcuts used by the design */
.bg-background { background-color: hsl(var(--background)) !important; }
.text-foreground { color: hsl(var(--foreground)) !important; }
.bg-card { background-color: hsl(var(--card)) !important; }
.text-card-foreground { color: hsl(var(--card-foreground)) !important; }
.bg-popover { background-color: hsl(var(--popover)) !important; }
.text-popover-foreground { color: hsl(var(--popover-foreground)) !important; }
.bg-primary { background-color: hsl(var(--primary)) !important; }
.text-primary { color: hsl(var(--primary)) !important; }
.text-primary-foreground { color: hsl(var(--primary-foreground)) !important; }
.bg-secondary { background-color: hsl(var(--secondary)) !important; }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)) !important; }
.bg-muted { background-color: hsl(var(--muted)) !important; }
.text-muted-foreground { color: hsl(var(--muted-foreground)) !important; }
.bg-accent { background-color: hsl(var(--accent)) !important; }
.text-accent-foreground { color: hsl(var(--accent-foreground)) !important; }
.bg-cta-pink { background-color: hsl(var(--cta-pink)) !important; }
.text-cta-pink-foreground { color: hsl(var(--cta-pink-foreground)) !important; }
.border-border { border-color: hsl(var(--border)) !important; }

/* Gradient text helper from design */
.textcolor {
  background-image: linear-gradient(180deg, #f4f3f1, #ECE9E6);
  background-clip: text;              /* standard */
  -webkit-background-clip: text;      /* Safari/WebKit */
  color: transparent;                 /* standard */
  -webkit-text-fill-color: transparent; /* Safari/WebKit */
}

/* Home subheadline default style */
.subheadline {
  font-size: 1.25rem !important; /* text-xl */
  line-height: 1.6 !important;
  color: #6b7280 !important; /* neutral-500 */
}


/* === KA Navbar (non-Tailwind) === */
.ka-navbar { background: #ffffff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.ka-navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .ka-navbar-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px){ .ka-navbar-inner { padding-left: 2rem; padding-right: 2rem; } }

/* Desktop: keep navbar visible on scroll */
@media (min-width: 768px) {
  .ka-navbar { position: sticky; top: 0; z-index: 1000; }
}

.ka-logo { display: flex; align-items: center; }
.ka-logo img { height: 32px; width: auto; display: block; }
.ka-logo a { display: inline-flex; align-items: center; text-decoration: none; transition: opacity .2s ease; }
.ka-logo a:hover { opacity: .8; }

/* Desktop navigation */
.ka-nav { display: none; align-items: center; gap: 24px; }
@media (min-width: 1024px) { .ka-nav { display: flex; } }
.ka-nav-links { display: flex; align-items: baseline; gap: 16px; }
.ka-nav-link { color: #374151; text-decoration: none; padding: .5rem .75rem; font-size: .875rem; font-weight: 500; transition: color .2s ease; position: relative; }
/* Hover: brand color and bolder weight, no underline */
.ka-nav-link:hover { color: #ea3891; font-weight: 600; text-decoration: none; }

/* Disable legacy underline hover effect */
.ka-nav-underline { position: relative; transition: color .2s ease; }
.ka-nav-underline:hover::after { content: none; display: none; }

/* Language dropdown */
.ka-lang { position: relative; }
.ka-lang-button { display: inline-flex; align-items: center; gap: .25rem; color: #374151; background: transparent; border: 0; padding: .5rem .75rem; font-size: .875rem; font-weight: 500; cursor: pointer; }
.ka-lang-button:hover { color: #111827; }
.ka-lang-button svg { width: 16px; height: 16px; }
.ka-lang-dropdown { position: absolute; right: 0; top: 100%; margin-top: .5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: .375rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); display: none; z-index: 50; 
  /* width follows the longest entry; prevent line breaks */
  min-width: max-content; white-space: nowrap;
}
.ka-lang-item { display: block; padding: .5rem 1rem; font-size: .875rem; color: #374151; text-decoration: none; white-space: nowrap; }
.ka-lang-item:hover { background: #f9fafb; }

/* Make language dropdown scrollable within the viewport */
.ka-lang-dropdown {
  /* Fallback for older mobile browsers */
  max-height: calc(100vh - 120px);
  /* Prefer small-viewport unit when supported */
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Ensure dropdown opens when JS toggles `.is-open` on the container */
.ka-lang.is-open .ka-lang-dropdown { display: block; }

/* Defensive: make sure the dropdown can receive clicks */
.ka-lang-dropdown { pointer-events: auto; }

/* Mobile menu */
.ka-mobile-toggle { display: inline-flex; background: transparent; border: 0; padding: .25rem; color: #374151; cursor: pointer; }
.ka-mobile-toggle:hover { color: #111827; }
@media (min-width: 1024px) { .ka-mobile-toggle { display: none; } }

.ka-mobile-menu { display: none; background: #ffffff; border-top: 1px solid #e5e7eb; }
.ka-mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .ka-mobile-menu { display: none !important; } }
.ka-mobile-list { padding: .5rem; }
.ka-mobile-link { display: block; padding: .5rem .75rem; font-size: 1rem; font-weight: 500; color: #374151; text-decoration: none; border-radius: .25rem; }
/* Mobile hover: same brand color and weight; keep subtle bg */
.ka-mobile-link:hover { color: #ea3891; font-weight: 600; text-decoration: none; background: #f9fafb; }
.ka-mobile-section { border-top: 1px solid #e5e7eb; padding-top: .5rem; margin-top: .5rem; }
.ka-mobile-section-title { padding: .5rem .75rem; font-size: .875rem; font-weight: 600; color: #6b7280; }

/* On small screens, allow language section to scroll if it grows tall */
@media (max-width: 1023px) {
  /* Make the whole mobile menu scrollable within the viewport */
  .ka-mobile-menu {
    /* Fallback then small-viewport unit */
    max-height: calc(100vh - 88px);
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ka-mobile-section {
    /* Fallback for older mobile browsers */
    max-height: calc(100vh - 220px);
    /* Prefer small-viewport unit when supported */
    max-height: calc(100svh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
