/* Credo Careers, richer version for Ashby hosted pages */
/* Adds color, depth, motion and polish only. */
/* It never changes layout, display, sizing or padding, so forms stay intact. */

/* Page background and smooth behavior */
html {
  scroll-behavior: smooth;
}

html,
body {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fa 45%, #e6eff8 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Brand accent bar across the top of every page */
body {
  border-top: 6px solid #0a5ca8;
  border-image: linear-gradient(90deg, #07457f, #0a5ca8, #3a9ad9, #8ccbee) 1;
}

/* Soft fade in when a page loads */
@keyframes credoFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main,
form {
  animation: credoFadeUp 0.5s ease both;
}

/* Text selection in brand color */
::selection {
  background: #8ccbee;
  color: #07304f;
}

/* Headings */
h1 {
  color: #07457f;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2,
h3 {
  color: #0a4f8f;
  letter-spacing: -0.005em;
}

/* Links */
a {
  color: #0a5ca8;
  transition: color 0.15s ease;
}

a:hover {
  color: #07457f;
}

/* Job cards on the list page */
.ashby-job-posting-brief,
a[class*="_job_"] {
  background: linear-gradient(135deg, #ffffff 0%, #f6fafe 100%);
  border: 1px solid #d3e2f0;
  border-left: 5px solid #8ccbee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 8px 22px rgba(16, 42, 67, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ashby-job-posting-brief:hover,
a[class*="_job_"]:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffffff 0%, #eaf4fc 100%);
  border-color: #8ccbee;
  border-left-color: #0a5ca8;
  box-shadow: 0 2px 4px rgba(16, 42, 67, 0.08), 0 18px 38px rgba(10, 92, 168, 0.2);
}

.ashby-job-posting-brief-title {
  color: #0a5ca8;
  font-weight: 700;
  transition: color 0.15s ease;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: #07457f;
}

.ashby-job-posting-brief-details {
  color: #4f5d6d;
}

/* Native select boxes */
select {
  background-color: #ffffff;
  border: 1px solid #cfdeed;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:hover {
  border-color: #8ccbee;
}

select:focus {
  outline: none;
  border-color: #0a5ca8;
  box-shadow: 0 0 0 4px rgba(10, 92, 168, 0.16);
}

/* Text fields on the application form (color, border and glow only) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea {
  background-color: #ffffff;
  border: 1px solid #cfdeed;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: #8ccbee;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #0a5ca8;
  background-color: #fbfdff;
  box-shadow: 0 0 0 4px rgba(10, 92, 168, 0.16);
}

::placeholder {
  color: #93a3b5;
}

/* Radio buttons and checkboxes pick up the brand color */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #0a5ca8;
}

/* Buttons get depth and a hover lift, colors stay as Ashby sets them */
button,
[role="button"] {
  box-shadow: 0 2px 6px rgba(10, 92, 168, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button:hover,
[role="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 92, 168, 0.3);
  filter: brightness(1.06);
}

button:active,
[role="button"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(10, 92, 168, 0.22);
}

/* Keyboard focus ring */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(10, 92, 168, 0.4);
  outline-offset: 3px;
}

/* Footer links */
footer a {
  text-decoration: none;
}

footer a:hover {
  color: #0a5ca8;
  text-decoration: underline;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #eef4fa;
}

::-webkit-scrollbar-thumb {
  background: #b8d3ea;
  border-radius: 8px;
  border: 3px solid #eef4fa;
}

::-webkit-scrollbar-thumb:hover {
  background: #8ccbee;
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
