/* Home page redesign (8 Nov 2026). Loaded last and scoped to the home view, so the other pages keep their look.
   Colours and spacing are tokens: change them here and the whole home page follows. */
:root {
  --hr-ink: #13201a;
  --hr-muted: #56645c;
  --hr-surface: #ffffff;
  --hr-soft: #f3f6f3;
  --hr-line: #e1e7e2;
  --hr-brand: #0c6b4e;
  --hr-brand-deep: #074d38;
  --hr-gold: #e2b24e;
  --hr-radius: 16px;
  --hr-shadow: 0 1px 2px rgba(19, 32, 26, .06), 0 8px 24px rgba(19, 32, 26, .08);
}

.view[data-view="home"] { color: var(--hr-ink); }
.view[data-view="home"] .sec { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.view[data-view="home"] .wrap { padding-left: 16px; padding-right: 16px; }
.view[data-view="home"] h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.2; letter-spacing: -.01em; }
.view[data-view="home"] .eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hr-brand); }
.view[data-view="home"] .muted, .view[data-view="home"] p.muted { color: var(--hr-muted); line-height: 1.65; }

/* Hero: a clear headline, readable text over the image, one primary action */
.view[data-view="home"] .hero { min-height: min(86vh, 720px); }
.view[data-view="home"] .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 36, 27, .86) 0%, rgba(7, 36, 27, .55) 55%, rgba(7, 36, 27, .25) 100%);
}
.view[data-view="home"] .slide .st { max-width: 620px; }
.view[data-view="home"] .slide h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: #fff;
  text-wrap: balance;
}
.view[data-view="home"] .slide .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 56ch; }
.view[data-view="home"] .slide .eyebrow { color: var(--hr-gold) !important; }
.view[data-view="home"] .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.view[data-view="home"] .ctas .btn { border-radius: 999px; padding: 12px 22px; font-weight: 600; min-height: 46px; }
.view[data-view="home"] .btn-gold { background: var(--hr-gold); color: #1d1500; border: 0; box-shadow: 0 6px 18px rgba(226, 178, 78, .35); }
.view[data-view="home"] .btn-ondeep { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.view[data-view="home"] .btn:focus-visible, .view[data-view="home"] a:focus-visible { outline: 3px solid var(--hr-gold); outline-offset: 3px; }

/* Cards: one radius, one shadow, comfortable padding */
.view[data-view="home"] .card {
  background: var(--hr-surface); border: 1px solid var(--hr-line); border-radius: var(--hr-radius);
  box-shadow: var(--hr-shadow); padding: clamp(18px, 2.4vw, 26px);
}
.view[data-view="home"] .card h3 { font-size: 1.15rem; line-height: 1.3; margin: 8px 0; }
.view[data-view="home"] .grid3, .view[data-view="home"] .grid2 { gap: 18px; }
.view[data-view="home"] .btn-primary { background: var(--hr-brand); border-color: var(--hr-brand); border-radius: 999px; font-weight: 600; }
.view[data-view="home"] .btn-primary:hover { background: var(--hr-brand-deep); }
.view[data-view="home"] .btn-ghost { border-radius: 999px; border-color: var(--hr-line); font-weight: 600; }

/* Phone: stack everything, keep the headline and actions large enough to tap */
@media (max-width: 640px) {
  .view[data-view="home"] .hero { min-height: 78vh; }
  .view[data-view="home"] .slide h1 { font-size: 2rem; }
  .view[data-view="home"] .ctas .btn { width: 100%; justify-content: center; }
  .view[data-view="home"] .card { padding: 18px; }
  .view[data-view="home"] .sec { padding-top: 36px; padding-bottom: 36px; }
}
/* Administration console: a professional green-and-white layout. The green gradient becomes a slim banner for
   the title only; the information itself (who is signed in, account shortcuts) sits in white cards, which is
   easier to read than white text on a green-to-teal gradient. */
html body .view[data-view="desk"] .phead{padding-top:clamp(14px,1.8vw,20px)!important;padding-bottom:clamp(14px,1.8vw,20px)!important;border-radius:0 0 20px 20px!important;background-image:radial-gradient(120% 100% at 100% 0%,rgba(223,145,55,.22) 0%,rgba(223,145,55,0) 45%),linear-gradient(120deg,var(--brand-primary,#307C48) 0%,var(--brand-primary,#307C48) 55%,var(--brand-deep,#235934) 100%)!important}
html body .view[data-view="desk"] .phead p{background:#FFFFFF!important;color:#1A1A1A!important;border-left:4px solid var(--brand-primary,#307C48)!important;box-shadow:0 10px 24px -16px rgba(0,30,15,.4)}
html body .view[data-view="desk"] .phead p b{color:#0b5a2f!important}
html body .view[data-view="desk"] .phead .acct-btn{background:#FFFFFF!important;border:1.5px solid #D8E2DB!important;color:#1A1A1A!important;box-shadow:0 10px 24px -16px rgba(0,30,15,.35)}
html body .view[data-view="desk"] .phead .acct-btn .at b,html body .view[data-view="desk"] .phead .acct-btn .at span{color:#1A1A1A!important}
html body .view[data-view="desk"] .phead .pill{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important}
html body .view[data-view="desk"] .phead a[href^="login.php?logout"]{background:#DF9137!important}

/* No social media links while inside a signed-in portal (staff desk, department review, applicant tracking):
   they belong on the public marketing pages, not inside a dashboard. */
body[data-view="desk"] .hd-social,
body[data-view="mgmt"] .hd-social,
body[data-view="track"] .hd-social { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .view[data-view="home"] * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Home page: only the slideshow (and the header above it) runs the full width of the screen. Everything below it sits in a centred column. */
@media (min-width:1100px){
  html body .view[data-view="home"] > :not(#idmSlider):not(#acHero):not(.sp):not(script):not(style) { width:100%; max-width:1240px; margin-left:auto; margin-right:auto; box-sizing:border-box; }
  html body .view[data-view="home"] > .wrap, html body .view[data-view="home"] > .sec > .wrap, html body .view[data-view="home"] > section > .wrap { max-width:100%; }
}

