/* Extracted from legacy styles.css; keep in sync with modular structure. */

/* Intelatek Job Portal Styles - Tailwind-based design tokens */
/* This is a minimal CSS file. Run 'npm run build' in frontend/ to generate the full Tailwind build */

/* Helvetica Now loaded via CDN in base.html */

:root {
  --color-brand-primary: #001E3C;
  --color-brand-secondary: #0A2540;
  --color-brand-accent: #00D4FF;
  --color-brand-dark: #000A1F;
  --color-brand-light: #E8F0F7;
  --color-brand-muted: #869AAF;
  --color-off-white: #f8f9fa;
  --gradient-brand: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-dark) 100%);
  --gradient-brand-soft: linear-gradient(180deg, var(--color-off-white) 0%, rgba(248, 249, 250, 0) 100%);
  --gradient-hero-overlay: linear-gradient(90deg, rgba(0, 16, 32, 0.65) 0%, rgba(0, 30, 60, 0.35) 48%, rgba(0, 43, 86, 0.2) 100%);
  
  /* ========================================================================
     TYPOGRAPHY SYSTEM
     ======================================================================== */
  
  /* Font Family */
  --font-sans: 'Helvetica Now', 'Helvetica Now Text', 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Font Sizes - Scale based on 1rem = 16px
     Using a modular scale for visual harmony */
  --font-size-3xs: 0.625rem;   /* 10px - Tiny labels, badges */
  --font-size-2xs: 0.6875rem;  /* 11px - Very small text */
  --font-size-xs: 0.75rem;     /* 12px - Small labels, meta */
  --font-size-sm: 0.8125rem;   /* 13px - Captions, hints */
  --font-size-base-sm: 0.875rem; /* 14px - Small body text */
  --font-size-base: 1rem;      /* 16px - Base body text */
  --font-size-md: 1.0625rem;   /* 17px - Slightly larger body */
  --font-size-lg: 1.125rem;    /* 18px - Lead text */
  --font-size-xl: 1.25rem;     /* 20px - H6 equivalent */
  --font-size-2xl: 1.5rem;     /* 24px - H5 equivalent */
  --font-size-3xl: 1.75rem;    /* 28px - H4 equivalent */
  --font-size-4xl: 2rem;       /* 32px - H3 equivalent */
  --font-size-5xl: 2.5rem;     /* 40px - H2 equivalent */
  --font-size-6xl: 3rem;       /* 48px - H1 equivalent */
  --font-size-7xl: 3.5rem;     /* 56px - Display */
  --font-size-8xl: 4.5rem;     /* 72px - Large display */

  /* Responsive Font Sizes - Using clamp() for fluid typography */
  --font-size-display: clamp(3rem, 6vw, 4.5rem);     /* Hero h1 */
  --font-size-h1: clamp(2.25rem, 5vw, 3.5rem);       /* Page titles */
  --font-size-h2: clamp(1.75rem, 4vw, 2.75rem);      /* Section headings */
  --font-size-h3: clamp(1.5rem, 3.5vw, 2rem);        /* Sub-section headings */
  --font-size-h4: clamp(1.25rem, 3vw, 1.5rem);       /* Card titles */
  --font-size-h5: clamp(1.1rem, 2.5vw, 1.25rem);     /* Small headings */
  --font-size-h6: clamp(1rem, 2vw, 1.125rem);        /* Mini headings */
  --font-size-lead: clamp(1.05rem, 2.5vw, 1.2rem);   /* Lead paragraphs */

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.8;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;

  /* ========================================================================
     DIMENSION SYSTEM
     ======================================================================== */

  /* Icon Sizes - Consistent scale for all icons */
  --icon-size-xs: 14px;     /* Tiny icons, inline badges */
  --icon-size-sm: 16px;     /* Small icons, compact UI */
  --icon-size-md: 18px;     /* Medium icons, navigation */
  --icon-size-base: 24px;   /* Default icon size */
  --icon-size-lg: 32px;     /* Large icons, emphasis */
  --icon-size-xl: 48px;     /* Extra large icons, hero areas */

  /* Icon Frame - Background containers for icons */
  --icon-frame-xs: 32px;    /* Compact icon frames */
  --icon-frame-sm: 40px;    /* Small icon frames */
  --icon-frame-md: 48px;    /* Default icon frames (legacy support) */
  --icon-frame-lg: 56px;    /* Large icon frames */
  --icon-frame-xl: 68px;    /* Extra large icon frames */
  --icon-frame-size: 48px;  /* Legacy support */
  --icon-frame-radius: 1rem;

  /* Interactive Element Heights - Buttons, inputs, controls */
  --control-height-xs: 32px;    /* Extra small buttons */
  --control-height-sm: 36px;    /* Small buttons, compact inputs */
  --control-height-md: 44px;    /* Default buttons, inputs */
  --control-height-lg: 48px;    /* Large buttons, prominent inputs */
  --control-height-xl: 56px;    /* Extra large buttons, hero CTAs */

  /* Container Widths - Page layout containers */
  --container-xs: 480px;        /* Very narrow content (modals) */
  --container-sm: 560px;        /* Narrow content (forms) */
  --container-md: 720px;        /* Medium content (articles) */
  --container-lg: 880px;        /* Wide content */
  --container-xl: 1100px;       /* Full content area */
  --container-max-width: 1280px;     /* Standard max-width */
  --container-broad-max-width: 1440px; /* Broad layouts */
  --container-padding-x: 1rem;

  /* Card Dimensions */
  --card-min-width: 280px;      /* Minimum card width */
  --card-max-width: 400px;      /* Default card max-width */
  --card-width-sm: 320px;       /* Small cards */
  --card-width-md: 380px;       /* Medium cards */
  --card-width-lg: 480px;       /* Large cards */
  --card-padding: clamp(1.5rem, 3vw, 2rem);
  --card-padding-sm: clamp(1.25rem, 2.5vw, 1.6rem);
  --card-radius: 1rem;
  --card-radius-lg: 1.25rem;
  --card-radius-xl: 1.5rem;

  /* Component Heights */
  --header-height: 80px;        /* Fixed header height */
  --section-min-height: 60vh;   /* Minimum section height */
  --hero-min-height: 100vh;     /* Full viewport hero */
  --hero-min-height-sm: 60vh;   /* Smaller hero sections */

  /* Media/Image Constraints */
  --media-max-height-sm: 320px;   /* Small media containers */
  --media-max-height-md: 480px;   /* Medium media containers */
  --media-max-height-lg: 650px;   /* Large media containers */
  --media-max-height-xl: 800px;   /* Extra large media */
  --media-aspect-ratio-square: 1 / 1;
  --media-aspect-ratio-landscape: 16 / 9;
  --media-aspect-ratio-portrait: 3 / 4;

  /* Border Radius Scale */
  --radius-xs: 0.25rem;   /* 4px - Subtle rounding */
  --radius-sm: 0.5rem;    /* 8px - Small elements */
  --radius-md: 0.75rem;   /* 12px - Medium elements */
  --radius-lg: 1rem;      /* 16px - Cards, containers */
  --radius-xl: 1.25rem;   /* 20px - Large cards */
  --radius-2xl: 1.5rem;   /* 24px - Hero cards */
  --radius-full: 9999px;  /* Fully rounded (pills, circles) */

  /* Border Widths */
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 4px;

  /* Spacing System */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */
  --spacing-3xl: 6rem;    /* 96px */
  
  /* Section Spacing - Responsive */
  --section-padding-y: clamp(3rem, 6vw, 5rem);
  --section-padding-y-xs: clamp(1rem, 2vw, 2rem);
  --section-padding-y-sm: clamp(2rem, 4vw, 3rem);
  --section-padding-y-lg: clamp(4rem, 8vw, 6rem);
  --section-gap: clamp(2rem, 4vw, 4rem);
  /* Overview section specific padding */
  --overview-section-padding-top: clamp(3rem, 7vw, 5rem);
  --overview-section-padding-bottom: clamp(3.5rem, 7.5vw, 5.5rem);
  
  /* Mobile-specific adjustments for site-main and hero sections */
  --site-main-padding-mobile: 0;
  --hero-section-padding-mobile: 0;
}

@media (min-width: 640px) {
  :root {
    --container-padding-x: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding-x: 4rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* Account for fixed header if present */
  /* Ensure html can scroll to show full content */
  height: 100%;
  overflow-y: auto;
}

/* Prevent mobile scroll bounce - only on mobile */
@media (max-width: 768px) {
  html {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }
}

/* Apply scroll snap only on landing page */
html.has-scroll-snap {
  scroll-snap-type: y mandatory;
}

/* Ensure footer is excluded from scroll snap */
html.has-scroll-snap .site-footer {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: #111827;
  /* line-height: 1.6; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Allow vertical scrolling - works for both mobile and desktop */
  overflow-y: auto;
  position: relative;
  min-height: var(--hero-min-height);
  height: auto;
}

/* Global text wrapping: never hyphenate or break words mid-line */
:where(body, body *) {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Default typography wrapping: no hyphenation, natural breaks only */
body,
p,
li,
blockquote,
dd,
dt,
figcaption {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Headings and UI labels: allow wrapping but never hyphenate */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-xs,
.heading-sm,
.heading-lg,
.section-heading,
.card__title,
.btn,
button,
label,
.sector-card__label,
.glance-strip__label,
.glance-strip__value {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Ensure mobile can scroll to bottom - add padding for safe areas */
@media (max-width: 1023px) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.icon svg {
  width: var(--icon-size-base);
  height: var(--icon-size-base);
  stroke: var(--color-brand-accent);
  fill: none;
}

.icon--sm svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.icon--md svg {
  width: var(--icon-size-base);
  height: var(--icon-size-base);
}

.icon--lg svg {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
}

.icon--xl svg {
  width: var(--icon-size-xl);
  height: var(--icon-size-xl);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  color: "red";
}

.container-broad {
  max-width: var(--container-broad-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  min-height: var(--control-height-md);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: white;
  transition: background-color 0.2s ease, transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-brand-secondary);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.btn-secondary {
  background-color: white;
  color: var(--color-brand-primary);
  border: var(--border-width-medium) solid var(--color-brand-primary);
}

.btn-secondary:hover {
  background-color: var(--color-brand-light);
}

.btn-link {
  background: transparent;
  color: var(--color-brand-primary);
  border: none;
  padding: 0;
  min-height: auto;
  font-weight: var(--font-weight-semibold);
}

.btn-link:hover,
.btn-link:focus-visible {
  color: var(--color-brand-secondary);
  text-decoration: underline;
}

.scroll-top-btn {
  --scroll-top-offset: 1.25rem;
  position: fixed;
  inset-inline-end: clamp(0.75rem, 4vw, 1.25rem);
  bottom: calc(var(--scroll-top-offset) + env(safe-area-inset-bottom, 0px));
  width: var(--icon-frame-sm);
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-brand-accent);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: none;
  padding: 0;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.2s ease;
  z-index: 9999;
  margin-top: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.scroll-top-btn .icon {
  color: inherit;
  display: inline-flex;
}

.scroll-top-btn .icon svg {
  width: calc(var(--icon-size-xl));
  height: calc(var(--icon-size-xl));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.scroll-top-btn__label {
  display: block;
  font-size: var(--font-size-xs);
  line-height: 1.1;
  color: var(--color-brand-accent);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: scrollTopPop 0.2s ease-out;
  pointer-events: auto;
}

.scroll-top-btn:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@media (min-width: 768px) {
  .scroll-top-btn {
    display: none !important;
  }
}

@keyframes scrollTopPop {
  0% { transform: translateY(10px) scale(0.9); opacity: 0; }
  60% { transform: translateY(-2px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.btn-hero-primary {
  background-color: var(--color-brand-primary);
  color: white;
  border: var(--border-width-medium) solid white;
  transition: all 0.2s ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
  background-color: white;
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  transform: translateY(-2px);
  outline: none;
}

/* Cards */

.card,
.card--muted,
.card--interactive,
.card--compact,
.card--stack,
.card__body,
.card__actions,
.job-section,
.job-callout,
.job-aside__card,
.upload-banner,
.cta-card,
.steps-list,
.rich-text {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: var(--border-width-thin) solid rgba(15, 31, 51, 0.08);
  box-shadow: 0 1px 6px rgba(0, 30, 60, 0.05);
  padding: var(--card-padding);
  display: grid;
  gap: var(--spacing-sm);
  font-family: var(--font-sans);
}

/* Override background for job cards */
.card--job-v2 {
  background: rgba(255, 255, 255, 0.5) !important;
}

.card--intelatek {
  position: relative;
  background: var(--gradient-brand);
  border-color: rgba(148, 214, 255, 0.35);
  box-shadow: 0 20px 48px rgba(2, 6, 25, 0.7);
  color: #f6fbff;
}

.card--intelatek::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--border-width-thin) solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.card--intelatek .job-section__header h2 {
  color: #f3f7ff;
}

.card--intelatek .job-section__content,
.card--intelatek .job-section__content li {
  color: rgba(247, 250, 255, 0.9);
}

.card--muted {
  background: #f8fafc;
  border-color: transparent;
  box-shadow: none;
}

.card--compact {
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
}

.card--stack {
  gap: 1.25rem;
}

.card--interactive {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card--interactive:hover,
.card--interactive:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 30, 60, 0.18);
  box-shadow: 0 12px 32px rgba(0, 30, 60, 0.12);
}

.card__header {
  display: grid;
  gap: 0.4rem;
}

.card__title {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-primary);
  margin: 0;
}

.card__subtitle {
  font-size: var(--font-size-base);
  color: #6b7280;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__body {
  display: grid;
  gap: var(--spacing-xs);
  color: #4b5563;
}

.card__summary {
  margin: 0;
  color: #374151;
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.card__meta {
  font-size: var(--font-size-base-sm);
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__meta-item .icon svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.card__meta-item--muted {
  color: #94a3b8;
}

.card__meta-item--highlight {
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-semibold);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.card__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-frame-md);
  height: var(--icon-frame-md);
  border-radius: var(--icon-frame-radius);
  background: rgba(0, 30, 60, 0.08);
  color: var(--color-brand-primary);
  margin-bottom: 0.75rem;
}

.card__icon .icon svg {
  width: var(--icon-size-base);
  height: var(--icon-size-base);
}

.card--center {
  text-align: center;
}

.card--center .card__actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .card__actions {
    flex-direction: column;
  }
}

/* Forms */
.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: var(--border-width-thin) solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  min-height: var(--control-height-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.5;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
  background-color: #ffffff;
}

/* Enhanced Input Field Styling */
.input {
  cursor: text;
}

.input:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.input:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
  background-color: #ffffff;
}

.input::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
}

.input:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.input:disabled::placeholder {
  color: #9ca3af;
  opacity: 0.5;
}

/* Input in filter form - enhanced styling */
.jobs-filters .input,
.jobs-filters .select {
  font-size: var(--font-size-base-sm); /* 0.875rem / 14px - matches filter form buttons */
  font-weight: 500;
  border-color: rgba(0, 30, 60, 0.12);
  background-color: #ffffff;
}

.jobs-filters .input:hover {
  border-color: var(--color-brand-primary);
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 30, 60, 0.08);
}

.jobs-filters .input:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
  background-color: #ffffff;
}

.jobs-filters .input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* Enhanced Select/Dropdown Styling */
.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23001E3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.select:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
  background-color: #ffffff;
}

.select:active {
  border-color: var(--color-brand-primary);
}

/* Select option styling */
.select option {
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: #111827;
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
}

.select option:checked {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  font-weight: 600;
}

.select option:hover {
  background-color: var(--color-brand-light);
}

/* Disabled select state */
.select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Select in filter form - enhanced styling (font-size set in combined rule above) */
.jobs-filters .select:hover {
  border-color: var(--color-brand-primary);
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 30, 60, 0.08);
}

.jobs-filters .select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
  background-color: #ffffff;
}

.textarea {
  min-height: 7.5rem; /* 120px - using rem for scalability */
  resize: vertical;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: var(--font-size-base-sm);
  font-weight: var(--font-weight-medium);
}

.badge-secondary {
  background-color: var(--color-brand-light);
  color: var(--color-brand-primary);
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

/* Skill Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-base-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s;
}

.skill-tag--primary {
  background-color: var(--color-brand-primary);
  color: white;
}

.skill-tag--secondary {
  background-color: var(--color-brand-light);
  color: var(--color-brand-primary);
}

/* Job Card Enhancements */
.job-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.job-card__badges .badge {
  gap: 0.375rem;
}

.job-card__badges svg {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
  flex-shrink: 0;
}

.job-card__salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  color: #059669;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.job-card__salary svg {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  flex-shrink: 0;
  stroke: currentColor;
}

.job-card__salary strong {
  color: #047857;
  font-weight: var(--font-weight-semibold);
}

.job-card__salary span {
  color: #6b7280;
  font-size: var(--font-size-base-sm);
}

.job-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--border-width-thin) solid rgba(15, 31, 51, 0.08);
  flex-shrink: 0;
}

/* Hero */
.hero {
  background: var(--gradient-brand);
  color: white;
  padding: 4rem 0;
}

/* Navigation */
.nav-link {
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-brand-accent);
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.flex { display: flex; }
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Mobile-first responsive utilities */
@media (max-width: 640px) {
  /* Container padding handled by variable */
}

/* Tablet-specific optimizations (iPad, Android tablets) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  /* Better spacing for tablet */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* iPad-specific (portrait and landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Comfortable reading width for tablet */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Better form layout on tablet */
  form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1025px) {
  /* Desktop adjustments */
  /* Container padding handled by variable (4rem) */
}

/* Touch-friendly tap targets (min 44x44px) */
.btn, button, a.btn {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 30, 60, 0.1);
}

/* Tablet-specific touch enhancements */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Slightly larger touch targets on tablet */
  .btn, button {
    min-height: 48px;
  }
  
  /* Better card hover states for tablet */
  .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  /* Optimize input fields for tablet */
  input, select, textarea {
    padding: 0.875rem 1rem;
  }
  
  /* Better spacing for badges on tablet */
  .badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
  }
  
  /* Comfortable line height for reading on tablet */
  p, li {
    line-height: 1.7;
  }
}

/* Prevent text overflow on small screens */
@media (max-width: 768px) {
  h1 {
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    hyphens: none;
  }
  h2, h3 {
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    hyphens: none;
  }
  
  /* Improve readability on mobile */
  body {
    font-size: 16px; /* Prevent iOS zoom on input focus */
    -webkit-text-size-adjust: 100%;
  }
  
  /* Better mobile forms */
  input, select, textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  /* Ensure mobile can scroll to footer */
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .site-body {
    min-height: 100vh;
    height: auto;
  }
}

/* iPad and tablet orientation-specific styles */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* iPad Portrait - Single column with generous spacing */
  .container {
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Optimize hero sections for iPad portrait */
  .hero {
    padding: 3rem 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  /* iPad Landscape - Multi-column layouts work well */
  .container {
    max-width: 960px;
  }
  /* Compact hero on landscape to save vertical space */
  .hero {
    padding: 2.5rem 0 !important;
  }
  
  /* Two-column layout for job details in landscape */
  #job-detail-layout {
    grid-template-columns: 1fr 280px !important;
  }
}

/* Specific iPad Pro optimizations (larger tablets) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .container {
    max-width: 1100px;
  }
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  margin-top: var(--spacing-xs);
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Form Input Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  border: var(--border-width-thin) solid #d1d5db;
  border-radius: 0.375rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Keep textareas from resizing past their container */
textarea.form-input {
  font-family: inherit; /* Ensure textareas use the same font as other inputs */
  resize: vertical;
  min-height: 140px;
  min-width: 100%;
  max-width: 100%;
  overflow: auto;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.form-input.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* File input specific styles */
input[type="file"].form-input {
  padding: 0.5rem;
  cursor: pointer;
}

/* Style the "Choose File" button to match website button styles (without transitions) */
input[type="file"].form-input::-webkit-file-upload-button,
input[type="file"].form-input::file-selector-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-md);
  margin-right: var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  min-height: var(--control-height-md);
  color: white;
  background-color: var(--color-brand-primary);
  border: none;
  cursor: pointer;
  /* No transitions as per requirement */
}

input[type="file"].form-input::-webkit-file-upload-button:hover,
input[type="file"].form-input::file-selector-button:hover {
  background-color: var(--color-brand-secondary);
  /* No transitions as per requirement */
}

/* Date input styles */
input[type="date"].form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Number input styles */
input[type="number"].form-input {
  -moz-appearance: textfield;
}

input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].form-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive form inputs */
@media (max-width: 768px) {
  .form-input {
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 0.875rem 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .form-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* -------------------------------------------------------------------------- */
