/**
 * @file theme.css
 * shadcn/ui-compatible theme variables for the CBEPDP theme.
 *
 * Colors follow the UC Berkeley brand palette:
 * https://brand.berkeley.edu/visual-identity/colors/
 *
 * Typography follows the UC Berkeley brand typefaces:
 * https://brand.berkeley.edu/visual-identity/typography/
 *
 * You can customize these values without rebuilding the compiled CSS.
 */

:root {
  /* Light scheme: white background, dark text (berkeley.edu style). */
  --background: #ffffff;
  --foreground: #1c1e23;
  --card: #f2f2f2; /* Berkeley Gray Light */
  --card-foreground: #1c1e23;
  --primary: #002676; /* Berkeley Blue */
  --primary-foreground: #ffffff;
  --secondary: #fdb515; /* California Gold */
  --secondary-foreground: #002676;
  --muted: #f2f2f2; /* Berkeley Gray Light */
  --muted-foreground: #4b4b4b;
  --accent: #004aae; /* Berkeley Blue Medium — links & interactive accents */
  --accent-foreground: #ffffff;
  --destructive: #e7115e; /* Berkeley Rose Medium */
  --destructive-foreground: #ffffff;
  --border: #d6d6d6;
  --input: #d6d6d6;
  --font-sans: "Inter", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-mono: "Fira Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --radius: 0.25rem;
  --shadow-x: 0;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.1;
  --shadow-color: oklch(0 0 0);
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);

  /* Set navbar height for hero billboard overlay */
  --navbar-height: calc(var(--spacing) * 15);

  @media (min-width: 768px) {
    --navbar-height: calc(var(--spacing) * 18);
  }
}

/* In-page anchor links: when a section, heading, or Anchor component is linked
   to via #id, keep the target clear of the sticky navbar instead of hiding
   under it. Only applies to the element the URL fragment points at. */
:target {
  scroll-margin-top: calc(var(--navbar-height, 4.5rem) + 1.5rem);
}
