@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-bold.woff2") format("woff2");
}

:root {
  --navy: #1b2d42;
  --navy-deep: #112235;
  --teal: #167f86;
  --teal-dark: #0f666c;
  --gold: #ffb000;
  --ink: #363636;
  --muted: #6c7378;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --mist: #f2f7f7;
  --line: #dedede;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--navy); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .6rem .9rem;
  color: #fff;
  background: var(--navy);
}
.skip-link:focus { top: 1rem; }

/* Header: intentionally close to the original DereKare look. */
.site-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand { flex: 0 0 auto; }
.brand img { width: 229px; height: auto; }

.menu-button {
  display: none;
  margin-left: auto;
  padding: .45rem .7rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.site-nav { margin-left: auto; }
.nav-list,
.subnav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list { display: flex; align-items: center; gap: 1.15rem; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }

.nav-link,
.subnav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.subnav-toggle:hover,
.subnav-toggle:focus-visible,
.nav-item.is-current > .nav-link,
.nav-item.is-current > .nav-row > .nav-link {
  color: var(--navy);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subnav-toggle {
  width: 20px;
  margin-left: .15rem;
  padding: .5rem 0;
}
.subnav-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.subnav {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  min-width: 240px;
  padding: .4rem 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: .15s ease;
}

.subnav li { display: block; width: 100%; }
.subnav a {
  display: block;
  width: 100%;
  padding: .55rem .9rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}
.subnav a:hover,
.subnav a:focus-visible,
.subnav a[aria-current="page"] {
  color: var(--navy);
  background: #f5f5f5;
}

.nav-item:hover > .subnav,
.nav-item:focus-within > .subnav,
.nav-item.submenu-open > .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Make Apply easy to spot without making the navigation bulky. */
.apply-link {
  margin-left: .15rem;
  min-height: 34px;
  padding: .4rem .8rem;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  font-weight: 400;
  text-decoration: none;
}
.apply-link:hover,
.apply-link:focus-visible,
.apply-link[aria-current="page"] {
  color: #fff;
  background: var(--teal-dark);
  text-decoration: none;
}

/* Home banner: light, restrained, and similar to the original builder-era site. */
.hero { background: var(--soft); color: var(--ink); }
.hero-inner {
  width: min(100%, var(--content));
  min-height: 500px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 3rem;
}
.hero-copy {
  width: 100%;
  margin: 0;
  padding: 0;
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--teal-dark);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0;
}
.hero h1 { color: var(--ink); max-width: 700px; }
.hero .lead { max-width: 660px; color: var(--ink); font-size: 1rem; }
.hero-media { min-height: 330px; overflow: hidden; border-radius: 10px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem 1rem;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover,
.button:focus-visible { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { color: var(--navy); background: transparent; border-color: #aeb6bc; }
.button.secondary:hover { color: var(--navy); background: #fff; }

/* Interior page headings are deliberately compact rather than oversized banners. */
.page-hero {
  padding: 2.6rem 1rem 2.3rem;
  color: var(--ink);
  background: var(--soft);
  border-bottom: 1px solid #ededed;
}
.page-hero-inner { width: min(100%, 850px); margin: 0 auto; text-align: center; }
.page-hero h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.55rem); }
.page-hero .lead { margin: 0 auto; max-width: 740px; color: var(--ink); font-size: 1rem; }


/* Compact subsection title bands and section-local navigation. */
.page-hero.subpage-hero {
  padding: 1.45rem 1rem 1.15rem;
}
.page-hero.subpage-hero .page-hero-inner {
  width: min(100%, 1100px);
}
.page-hero.subpage-hero h1 {
  margin-bottom: .65rem;
}
.page-hero.subpage-hero + .section {
  padding-top: 1.35rem;
}
.section-nav {
  margin-bottom: .45rem;
  line-height: 1.55;
}
.section-nav a {
  color: var(--teal-dark);
  text-decoration: none;
}
.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-nav-home {
  white-space: nowrap;
}
.section-nav-sep {
  margin: 0 .32rem;
  color: #9aa1a4;
}

.section { padding: 3rem 1rem; }
.section.tint { background: var(--soft); }
.container { width: min(100%, var(--content)); margin: 0 auto; }
.prose { width: min(100%, 840px); margin: 0 auto; }
.prose.wide { width: min(100%, 980px); }

h2 { margin: 0 0 .85rem; font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: 0; }
h3 { margin: 1.5rem 0 .45rem; font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.04rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section-gap { margin-top: 1.5rem; }
.follow-up-link { margin-top: 1.25rem; }
.heading-note { color: var(--muted); font-size: .6em; font-weight: 400; }
.partnership-image { max-width: 760px; margin: 1.5rem auto 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: #aeb8bd; background: #fafafa; }

.feature-list,
.content-list { margin: .85rem 0 1.25rem; padding-left: 1.35rem; }
.feature-list li,
.content-list li { margin: .28rem 0; padding-left: .15rem; }
.feature-list li::marker,
.content-list li::marker { color: var(--teal); }

.trait-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.trait-list li {
  padding: .5rem .65rem;
  background: var(--soft);
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-weight: 400;
  text-align: center;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #fffaf0;
  border-left: 4px solid var(--gold);
  border-radius: 0;
}
.callout p:last-child { margin-bottom: 0; }

.word-cloud {
  margin: 1.25rem 0 1.5rem;
  padding: .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qa-list { display: grid; gap: .6rem; }
.qa-list details { padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.qa-list summary { padding: .8rem 2.5rem .8rem .9rem; color: var(--navy); font-weight: 700; cursor: pointer; }
.qa-list details > div { padding: 0 .9rem .9rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-card { padding: 1.2rem; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.contact-card strong { display: block; color: var(--navy); font-size: 1.1rem; }
.contact-card:hover { border-color: #aeb8bd; background: #fafafa; }

.placeholder { padding: 1.5rem; color: var(--muted); background: var(--soft); border: 1px dashed #b8c0c4; border-radius: 4px; text-align: center; }

/* Keep the newer footer the user preferred. */
.site-footer { padding: 2.5rem 1rem; color: rgba(255,255,255,.82); background: var(--navy-deep); }
.footer-inner { width: min(100%, var(--content)); margin: 0 auto; display: block; }
.footer-logo { width: 205px; margin-bottom: .8rem; }
.footer-brand { max-width: 430px; }
.apply-actions { margin-top: 1.25rem; }
.apply-resource-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: .9rem; }
.apply-resource-links a { color: var(--navy); }

.site-footer h2 { margin: 0 0 .7rem; color: #fff; font-size: 1rem; }
.site-footer p { margin: .3rem 0; }
.site-footer a { color: #fff; }
.copyright { width: min(100%, var(--content)); margin: 1.8rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .86rem; text-align: center; }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 72px);
    overflow: auto;
    padding: .6rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(0,0,0,.1);
  }
  .site-nav.is-open { display: block; }
  .nav-list { display: block; }
  .nav-row { width: 100%; }
  .nav-link { flex: 1; width: 100%; justify-content: flex-start; }
  .subnav-toggle { flex: 0 0 40px; }
  .apply-link { margin: .25rem 0 0; }
  .subnav {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 .3rem .75rem;
    padding: .15rem 0 .15rem .65rem;
    border: 0;
    border-left: 1px solid #d6d6d6;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.submenu-open > .subnav { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 3rem 1rem; gap: 2rem; }
  .hero-media { max-height: 430px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .header-inner { min-height: 66px; }
  .brand img { width: 180px; }
  .site-nav { max-height: calc(100vh - 66px); }
  .section { padding: 2.4rem 1rem; }
  .page-hero { padding: 2.2rem 1rem 2rem; }
  .page-hero.subpage-hero { padding: 1.25rem .9rem 1rem; }
  .page-hero.subpage-hero + .section { padding-top: 1.1rem; }
  .cards,
  .cards.two,
  .contact-grid { grid-template-columns: 1fr; }
  .trait-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Consolidated page/component styles (formerly inline) */

/* From index.html */
/* Home-care carousel: rectangular feather with crisp corners. */
.hero-media.hero-carousel {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: visible;
  border-radius: 0 !important;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility 0s linear .65s;

  /* Fade the actual image to transparency along all four edges. */
  -webkit-mask-image:
    linear-gradient(to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%);
  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(to right,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%);
  mask-composite: intersect;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: .32rem .42rem;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: .62;
  transition: opacity .18s ease;
}

.hero-carousel:hover .hero-carousel-controls,
.hero-carousel:focus-within .hero-carousel-controls {
  opacity: .95;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(27,45,66,.68);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  cursor: pointer;
}

.hero-carousel-dot.is-active {
  background: var(--navy);
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.hero-media::after {
  content: none !important;
}

@media (max-width: 660px) {
  .hero-carousel-controls {
    right: 11%;
    bottom: 11%;
  }
}

/* From jobs-careers/perks-and-benefits.html */
.feature-list {
      line-height: 1.28;
    }

    .feature-list li {
      margin-bottom: 0.18rem;
    }

/* From jobs-careers/testimonials.html */
.testimonial-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }
    .testimonial-card {
      position: relative;
      margin: 0;
      padding: 1.35rem 1.4rem 1.15rem;
      border: 1px solid rgba(27, 54, 66, 0.14);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 3px 12px rgba(27, 54, 66, 0.06);
    }
    .testimonial-card::before {
      content: "“";
      position: absolute;
      top: 0.22rem;
      left: 0.75rem;
      font-size: 3.4rem;
      line-height: 1;
      font-family: Georgia, serif;
      color: rgba(27, 54, 66, 0.16);
    }
    .testimonial-card::after {
      content: "”";
      position: absolute;
      right: 0.75rem;
      bottom: 0.12rem;
      font-size: 3.4rem;
      line-height: 1;
      font-family: Georgia, serif;
      color: rgba(27, 54, 66, 0.16);
    }
    .testimonial-quote {
      position: relative;
      margin: 0;
      padding-top: 1rem;
      font-size: 1.02rem;
      line-height: 1.55;
    }
    .testimonial-attribution {
      margin: 0.8rem 0 0;
      font-size: 0.88rem;
      color: rgba(27, 54, 66, 0.72);
    }
    .testimonial-name {
      font-weight: 600;
      color: #1b3642;
    }
    @media (max-width: 760px) {
      .testimonial-grid { grid-template-columns: 1fr; }
    }

/* From jobs-careers/typical-duties.html */
.content-list {
      line-height: 1.28;
    }

    .content-list li {
      margin-bottom: 0.18rem;
    }

    .heading-note {
      font-size: 0.68em;
      font-style: italic;
      font-weight: 400;
    }

/* From jobs-careers/who-were-looking-for.html */
/* Compact the trait chips without changing their horizontal spacing. */
    .trait-list li {
      padding-top: 0.22rem !important;
      padding-bottom: 0.22rem !important;
    }

/* From working-at-derekare/our-team.html */
.team-bios { margin-top: 2rem; }
    .team-bios > h2 { margin-bottom: 1rem; }
    .team-card-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }
    .team-card {
      display: grid;
      grid-template-columns: 100px minmax(0, 1fr);
      gap: 0.75rem;
      align-items: stretch;
      min-height: 190px;
      padding: 0.9rem 0.6rem 0.9rem 0.9rem;
      line-height: 1.22;
      border: 1px solid rgba(27, 54, 66, 0.14);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 3px 12px rgba(27, 54, 66, 0.06);
    }
    .team-photo {
      min-height: 145px;
      position: relative;
      overflow: hidden;
      border-radius: 9px;
      background: rgba(27, 54, 66, 0.07);
      border: 1px dashed rgba(27, 54, 66, 0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(27, 54, 66, 0.45);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .team-photo img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      border: 0;
    }
    .team-photo-fallback {
      position: relative;
      z-index: 0;
    }
    .team-card-content { min-width: 0; }
    .team-card h3 { margin: 0 0 0.28rem; line-height: 1.12; }
    .team-blurb {
      min-height: 2.15em;
      margin: 0 0 0.35rem;
      line-height: 1.28;
    }
    .team-details {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.12rem 0.65rem;
      margin: 0;
      font-size: 0.82rem;
      line-height: 1.2;
    }
    .team-details div { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem; }
    .team-details dt { font-weight: 400; }
    .team-details dd { margin: 0; min-width: 1.4rem; }
    .team-details .team-detail-wide { grid-column: 1 / -1; }
    @media (max-width: 800px) {
      .team-card-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 480px) {
      .team-card { grid-template-columns: 80px minmax(0, 1fr); }
      .team-photo { min-height: 124px; }
      .team-details { grid-template-columns: 1fr; }
    }

/* From working-at-derekare/our-values.html */
.care-compact {
      padding: 0.35rem 0 0;
    }
    .care-compact .card {
      display: grid;
      grid-template-columns: auto auto;
      align-items: center;
      justify-content: center;
      column-gap: 1.25rem;
      padding: 0.45rem 1rem;
      text-align: left;
    }
    .care-compact .care-title {
      margin: 0;
      font-size: clamp(2.8rem, 5vw, 4.1rem);
      font-weight: 700;
      line-height: 0.95;
    }
    .care-compact .care-copy p {
      margin: 0.06rem 0;
      line-height: 1.3;
    }
    .care-compact + .section {
      padding-top: 0.15rem;
    }
    @media (max-width: 640px) {
      .care-compact .card {
        grid-template-columns: auto 1fr;
        column-gap: 0.8rem;
      }
      .care-compact .care-title {
        font-size: 2.45rem;
      }
      .care-compact .care-copy p {
        font-size: 0.95rem;
      }
    }

/* Job application multi-step form */
.application-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.application-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

.application-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  margin: 0 0 .85rem;
}

.application-progress button {
  min-width: 0;
  padding: .5rem .3rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: .72rem;
  line-height: 1.2;
  cursor: pointer;
}

.application-progress button:not(:disabled):hover,
.application-progress button:not(:disabled):focus-visible {
  color: var(--navy);
  border-color: #aeb8bd;
  background: #fafafa;
}

.application-progress button.is-current {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.application-progress button.is-complete {
  color: var(--navy);
  background: var(--mist);
  border-color: #cddede;
}

.application-progress button:disabled {
  cursor: default;
  opacity: .55;
}

.application-card {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.application-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.application-step > legend {
  width: 100%;
  margin: 0 0 .35rem;
  padding: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.application-step-intro {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.application-step .callout {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: .85rem 1rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: minmax(0, 1.35fr) minmax(90px, .45fr) minmax(0, 1.35fr);
}

.form-grid.job-overview-grid {
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .85fr) minmax(210px, 1fr);
}

.form-grid.job-date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.name-grid {
  grid-template-columns: minmax(130px, .75fr) minmax(120px, .65fr) minmax(220px, 1.6fr);
}

.nickname-suffix-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, .55fr);
}

.form-grid.location {
  grid-template-columns: minmax(0, 1.4fr) minmax(100px, .65fr) minmax(105px, .7fr);
}

.form-field {
  min-width: 0;
}

.contact-form-card {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(17, 34, 53, .08);
}

.contact-form-card > p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form textarea {
  min-height: 190px;
}

.contact-form-actions {
  display: flex;
  justify-content: center;
}

.contact-form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
  text-align: center;
}

.contact-form-status.is-error {
  color: #9c2f2f;
}

.contact-honeypot {
  display: none !important;
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.email-validation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .45rem;
  min-height: 1.35rem;
  margin-top: .25rem;
}

.email-validation-status {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.email-validation-status.is-valid {
  color: var(--teal-dark);
}

.email-validation-status.is-error {
  color: #9c2f2f;
}

.email-suggestion-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.form-field > label,
.form-label,
.form-question > legend {
  display: block;
  margin: 0 0 .28rem;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="date"],
.form-field select,
.form-field textarea,
.application-card input[type="text"],
.application-card input[type="email"],
.application-card input[type="tel"],
.application-card input[type="url"],
.application-card input[type="date"],
.application-card select,
.application-card textarea {
  width: 100%;
  min-height: 42px;
  padding: .55rem .65rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc5c8;
  border-radius: 4px;
  font: inherit;
  font-size: .95rem;
  line-height: 1.35;
}

.application-card select {
  min-height: 38px;
  margin-bottom: .18rem;
  padding-top: .36rem;
  padding-bottom: .36rem;
}

.application-card textarea {
  min-height: 108px;
  resize: vertical;
}

.application-card input:focus,
.application-card select:focus,
.application-card textarea:focus {
  outline: 2px solid rgba(22,127,134,.2);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-help {
  margin: .28rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.required-mark {
  color: #8b2e2e;
}

.form-question {
  margin: 0;
  padding: .15rem 0 .85rem;
  border: 0;
  border-bottom: 1px solid #eeeeee;
}

.form-question + .form-question {
  margin-top: .7rem;
}

.form-question:last-child {
  border-bottom: 0;
}

.form-question > legend {
  max-width: 860px;
  margin-bottom: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .9rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 27px;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.35;
}

.choice input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--teal);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem .8rem;
}

.conditional {
  margin-top: .65rem;
  padding: .75rem .85rem;
  background: var(--soft);
  border-left: 3px solid #cfd7da;
}

.repeat-list {
  display: grid;
  gap: .8rem;
  margin-top: .7rem;
}

.repeat-card {
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
}

.repeat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.repeat-card-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.small-button {
  min-height: 34px;
  padding: .4rem .65rem;
  font-size: .82rem;
}

.file-box {
  padding: 1rem;
  background: var(--mist);
  border: 1px dashed #aebfc2;
  border-radius: 5px;
}

.file-box input[type="file"] {
  display: block;
  width: 100%;
  margin-top: .55rem;
  font: inherit;
}

.selected-file {
  margin: .4rem 0 0;
  color: var(--teal-dark);
  font-size: .82rem;
}

.prototype-note {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-style: italic;
}

.profile-links {
  display: grid;
  gap: .55rem;
}

.profile-link-row {
  display: grid;
  grid-template-columns: minmax(260px, 315px) minmax(220px, 1fr) auto;
  gap: .55rem;
  align-items: end;
}

.resume-parser-status,
.ai-prefill-notice {
  margin: .65rem 0 0;
  padding: .65rem .75rem;
  color: var(--navy);
  background: #f5fbfb;
  border-left: 3px solid var(--teal);
  font-size: .84rem;
  line-height: 1.45;
}

.ai-prefill-notice {
  margin: 0 0 1rem;
}

.resume-parser-status.is-error {
  color: #78261f;
  background: #fff6f4;
  border-left-color: #b64b40;
}

.application-card [data-application-next][disabled] {
  color: #697277;
  background: #d8dddf;
  border-color: #c4cbce;
  opacity: 1;
}

.resume-robot-route {
  position: fixed;
  z-index: 20;
  width: 75px;
  height: 75px;
  overflow: hidden;
  pointer-events: none;
}

.resume-robot-route[hidden] {
  display: none;
}

.resume-robot-route span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 75px;
  height: 75px;
  will-change: transform;
}

.resume-robot-route.is-active span {
  animation: resume-robot-pace 8s linear infinite;
}

.resume-robot-route img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
  animation: resume-robot-step .32s ease-in-out infinite alternate;
}

@keyframes resume-robot-pace {
  0% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(var(--robot-distance, 0)) scaleX(1); }
  50% { transform: translateX(var(--robot-distance, 0)) scaleX(-1); }
  95% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes resume-robot-step {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-2px) rotate(2deg); }
}


.application-card .is-ai-prefilled {
  background: #fffdf2;
  border-color: #c8a94f;
  box-shadow: inset 3px 0 0 var(--gold);
}

.history-requirement {
  margin: -.25rem 0 .65rem;
}

.availability-wrap {
  overflow-x: auto;
  margin-top: .7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.availability-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.availability-table th,
.availability-table td {
  padding: .55rem .45rem;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  text-align: center;
  vertical-align: top;
}

.availability-table th:last-child,
.availability-table td:last-child {
  border-right: 0;
}

.availability-table tbody tr:last-child td {
  border-bottom: 0;
}

.availability-table th {
  color: var(--navy);
  background: var(--soft);
  font-size: .85rem;
}

.availability-table label {
  display: grid;
  justify-items: center;
  gap: .2rem;
  cursor: pointer;
  font-size: .75rem;
  line-height: 1.2;
}

.availability-table input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--teal);
}

.application-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeeee;
}

.application-actions .button-row {
  margin: 0;
}

.application-status {
  min-height: 1.35em;
  margin: 0;
  color: #8b2e2e;
  font-size: .82rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: .9rem 0 1rem;
}

.review-card {
  position: relative;
  padding: .8rem .9rem;
  background: var(--soft);
  border: 1px solid #e7e7e7;
  border-radius: 4px;
}

.review-card h3 {
  margin: 0 3.25rem .35rem 0;
  font-size: 1rem;
}

.review-edit {
  position: absolute;
  top: .68rem;
  right: .8rem;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.review-edit:hover,
.review-edit:focus-visible {
  color: var(--navy);
}

.review-card p {
  margin: .12rem 0;
  font-size: .84rem;
  line-height: 1.45;
}

.acknowledgement-placeholder {
  margin: 1rem 0;
  padding: .9rem 1rem;
  color: var(--muted);
  background: #fffaf0;
  border-left: 4px solid var(--gold);
  font-size: .88rem;
}

.application-submit-note {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.application-card .button[disabled] {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 800px) {
  .application-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .application-card {
    padding: 1rem;
  }

  .application-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.two,
  .form-grid.three,
  .form-grid.job-overview-grid,
  .form-grid.job-date-grid,
  .form-grid.location {
    grid-template-columns: 1fr;
  }

  .profile-link-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .application-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .application-actions .button-row {
    width: 100%;
  }

  .application-actions .button {
    flex: 1;
  }
}


/* Job application refinements */
.application-step > legend {
  margin-bottom: 1.35rem;
}

.application-step-intro {
  margin-bottom: 1rem;
}

.application-copy {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.55;
}

.application-copy.compact {
  margin-top: -.1rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .84rem;
}

.resume-guidance {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.resume-followup {
  margin-top: 1.65rem;
}

.form-help-inline {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}

.application-final-section {
  margin: 0 0 1.65rem;
}

.application-final-section + .application-final-section {
  padding-top: 1.3rem;
  border-top: 1px solid #ececec;
}

.application-final-section > h2 {
  margin: 0 0 .85rem;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.3;
}

.form-question.is-gate-locked > .choice-row {
  pointer-events: none;
  opacity: .6;
}

.form-question.is-gate-locked > .choice-row label {
  cursor: not-allowed;
}

.application-modal-open {
  overflow: hidden;
}

.application-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 37, 46, .52);
}

.application-modal {
  position: relative;
  width: min(100%, 540px);
  max-height: min(88vh, 700px);
  overflow: auto;
  padding: 1.4rem 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(27, 54, 66, .18);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(13, 31, 39, .22);
  text-align: center;
}

.application-modal-x {
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.application-modal-x:hover,
.application-modal-x:focus-visible {
  color: var(--navy);
}

.application-modal-emoji {
  margin: .15rem 0 .6rem;
  font-size: clamp(3.2rem, 9vw, 5rem);
  line-height: 1;
}

.application-modal-message {
  max-width: 470px;
  margin: 0 auto 1.15rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.application-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}

.application-modal-actions .button {
  margin: 0;
}

@media (max-width: 560px) {
  .application-modal {
    padding: 1.25rem 1rem 1rem;
  }

  .application-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .application-modal-actions .button {
    width: 100%;
  }
}

/* Generated job postings and the compact Open Positions index. */
.open-job-list {
  display: grid;
  gap: .6rem;
}

.open-job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem .65rem .55rem .85rem;
  color: var(--ink);
  background: #fff9df;
  border: 1px solid #eadba5;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(17,34,53,.05);
}

.open-job-row:hover,
.open-job-row:focus-within {
  border-color: var(--teal);
  background: #fff5c7;
  box-shadow: 0 6px 18px rgba(17,34,53,.1);
}

.open-job-details {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(100px, .4fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.open-job-details:hover .open-job-title,
.open-job-details:focus-visible .open-job-title { color: var(--teal-dark); text-decoration: underline; }
.open-job-title { color: var(--navy); }
.open-job-pay { font-weight: 700; }
.open-job-notes { color: var(--muted); font-size: .9rem; }
.open-job-apply { min-width: 78px; min-height: 36px; padding: .4rem .7rem; }

.job-detail-layout {
  display: block;
}

.job-description-content {
  width: min(100%, 840px);
  min-width: 0;
  margin: 0 auto;
}
.job-description-content > :first-child { margin-top: 0; }
.job-description-content h2,
.job-description-content h3,
.job-description-content h4 { color: var(--navy); }
.job-description-content img { height: auto; }
.job-description-content table { width: 100%; border-collapse: collapse; }
.job-description-content th,
.job-description-content td { padding: .55rem; border: 1px solid var(--line); text-align: left; }

.job-page-hero {
  padding-top: 1.45rem !important;
}

.job-page-hero .page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.job-page-hero h1 {
  margin-bottom: 0 !important;
}

.job-info-pane {
  position: static;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: .8rem auto 0;
  padding: .32rem .5rem;
  overflow-x: auto;
  text-align: left;
  background: var(--mist);
  border: 1px solid #cddfdf;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(17,34,53,.06);
}

.job-info-status {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .12rem;
  min-height: 38px;
  padding-right: .5rem;
}

.job-info-status > span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  white-space: nowrap;
}

.job-status-pill {
  display: inline-block;
  padding: .16rem .55rem;
  color: #0f666c;
  background: #d7eeee;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.job-status-pill.job-status-closed { color: #8a2525; background: #ffe0e0; }
.job-info-pane dl {
  display: flex;
  min-height: 38px;
  align-items: stretch;
  margin: 0;
}
.job-info-pane dl > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.job-info-pane dt { color: var(--muted); font-size: .6rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.job-info-pane dd { margin: .04rem 0 0; color: var(--navy); font-size: .8rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.job-info-id,
.job-info-pay,
.job-info-schedule,
.job-info-pdf {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem !important;
  border-left: 1px solid #cddfdf;
}
.job-info-schedule dd { font-weight: 400; }
.job-info-pane > .job-apply-button { min-width: 84px; align-self: center; }
.job-apply-button { min-height: 34px; padding: .35rem .65rem; white-space: nowrap; text-align: center; }
.job-bottom-apply { display: flex; justify-content: center; margin-top: 2rem; }
.job-bottom-apply .job-apply-button { min-width: 220px; }
.job-pdf-link {
  position: relative;
  display: inline-flex;
  width: 25px;
  height: 29px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  color: #fff;
  background: #b42318;
  border-radius: 3px;
  font-size: .52rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
}
.job-pdf-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.job-pdf-link:hover,
.job-pdf-link:focus-visible { color: #fff; background: #8f1c14; transform: translateY(-1px); }

@media (max-width: 900px) {
  .job-info-pane { width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .open-job-row { grid-template-columns: 1fr auto; gap: .5rem; padding-left: .65rem; }
  .open-job-details { grid-template-columns: 1fr; gap: .12rem; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-bottom-apply .job-apply-button { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .job-info-pane { padding: .5rem; }
  .job-info-status { padding-right: .5rem; }
  .job-info-id,
  .job-info-pay,
  .job-info-schedule,
  .job-info-pdf { padding: 0 .5rem !important; }
}
