/* bet365 Careers Design System - Authentic Design Tokens */

:root {
  /* Colors - bet365 Green Scale (canonical numeric names) */
  --bet365-green-700: #126E51;
  --bet365-green-500: #189970;
  --bet365-green-400: #00BB89;
  --bet365-green-300: #48DBAC;

  /* Colors - bet365 Semantic Green Aliases (deprecated; prefer numeric names) */
  --bet365-green-primary: var(--bet365-green-500);
  --bet365-green-dark: var(--bet365-green-700);
  --bet365-green-darker: var(--bet365-green-700);
  --bet365-green-light: var(--bet365-green-300);
  --bet365-green-bg: #E0FFF5;
  --bet365-yellow-cta: #FCE454;
  
  /* Colors - Neutral Palette */
  --bet365-white: #ffffff;
  --bet365-black: #000000;
  --bet365-gray-light: #f7f7f7;
  --bet365-gray-lighter: #f0f0f0;
  --bet365-gray-medium: #e4e4e4;
  --bet365-gray-text: #545454;
  --bet365-gray-light-text: #666666;
  --bet365-gray-lighter-text: #888888;
  --bet365-gray-lightest-text: #999999;
  --bet365-dark-text: #282828;
  
  /* Colors - Legacy Support */
  --color-primary: var(--bet365-green-500);
  --color-primary-dark: var(--bet365-green-700);
  --color-white: var(--bet365-white);
  --color-black: var(--bet365-black);
  --color-gray-50: var(--bet365-gray-light);
  --color-gray-100: var(--bet365-gray-lighter);
  --color-gray-200: #f0f0f0;
  --color-gray-300: #e4e4e4;
  --color-gray-400: var(--bet365-gray-lighter-text);
  --color-gray-500: var(--bet365-gray-light-text);
  --color-gray-600: #888888;
  --color-gray-700: var(--bet365-gray-text);
  --color-gray-800: #545454;
  --color-gray-900: var(--bet365-gray-text);
  
  /* Colors - Interactive */
  --color-link: var(--bet365-green-500);
  --color-focus: var(--bet365-green-500);
  
  /* Typography - bet365 Font System */
  --font-family-futura: 'futura_365regular', 'Futura', 'Arial', sans-serif;
  --font-family-futura-medium: 'futura_365medium', 'Futura', 'Arial', sans-serif;
  --font-family-base: var(--font-family-futura);
  /* Font Sizes - bet365 Scale */
  --font-size-xs: 13px;
  --font-size-sm: 15px;
  --font-size-base: 17px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 25px;
  --font-size-3xl: 28px;
  --font-size-4xl: 35px;
  --font-size-5xl: 42px;
  
  /* Line Heights - bet365 Scale */
  --line-height-xs: 20px;
  --line-height-sm: 20px;
  --line-height-base: 25px;
  --line-height-lg: 25px;
  --line-height-xl: 25px;
  --line-height-2xl: 35px;
  --line-height-3xl: 35px;
  --line-height-4xl: 40px;
  --line-height-5xl: 50px;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.47; /* 25px / 17px */
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index — stacking layer scale (Phase 5 WP3; replaces the previous
     unused 1000-1070 scale and the dropdown-footer-zindex-fix.css patch).
     Lowest to highest:
       - decor/background: -1 (pseudo-elements behind their parent)
       - --z-footer   50:    page footer
       - --z-main     100:   main content container + .ns-ViewMaxWidthWrapper
       - --z-header   200:   fixed/sticky header; its dropdowns render inside
                             this stacking context
       - --z-overlay  999:   modal click-mask / mobile nav drawer
       - --z-modal-panel 1001: filter modal panel (inside modal context)
       - --z-modal    2000:  filter modal. NOTE: the modal renders inside
                             <main>, whose stacking context (--z-main 100)
                             caps it — its 2000 only competes WITHIN main,
                             so the fixed header (root-level 200) paints
                             above it. This is pre-consolidation behaviour,
                             preserved as-is (see follow-up: portal the modal
                             or drop z-index from main to change this).
       - --z-nav-toggle 999999: burger icon, above everything in the header
     Content z-index: 1 values (gradients, sticky labels, scroll menus) are
     local to their component's stacking context and stay raw. */
  --z-footer: 50;
  --z-main: 100;
  --z-header: 200;
  --z-overlay: 999;
  --z-modal-panel: 1001;
  --z-modal: 2000;
  --z-nav-toggle: 999999;
  
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Components - bet365 Style */
  --button-height-cta: 45px;
  --button-height-sm: 2rem;
  --button-height-md: 2.5rem;
  --button-height-lg: 3rem;
  --button-padding-x-sm: var(--spacing-3);
  --button-padding-x-md: var(--spacing-4);
  --button-padding-x-lg: var(--spacing-6);
  --button-border-radius: 1px;
  
  --input-height-sm: 2rem;
  --input-height-md: 2.5rem;
  --input-height-lg: 3rem;
  --input-padding-x: var(--spacing-3);
  --input-border-width: 1px;
}

/* Colors - Base.css Legacy Aliases (DEPRECATED - do not use in new code) */
:root {
  --grey-28: var(--bet365-dark-text);
  --grey-F7: var(--bet365-gray-light);
  --white: var(--bet365-white);
  --green-126: var(--bet365-green-700);
}

/* Global base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  /* NOTE: no line-height here - --line-height-base (25px) is far too small
     for large display headings (pc-Heading etc.) and Base.css already sets
     the body defaults this site actually uses. */
  color: var(--bet365-gray-text);
  background-color: var(--bet365-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Reset and base typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-5xl);
  font-family: var(--font-family-futura-medium);
}
h2 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-4xl);
  font-family: var(--font-family-futura-medium);
}
h3 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-3xl);
  font-family: var(--font-family-futura);
}
h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-2xl);
  font-family: var(--font-family-futura);
}
h5 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-xl);
}
h6 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-lg);
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus states */
:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}