/* Final readability and interface polish. Loaded after all legacy styles. */
html { font-size: 18px; scroll-behavior: smooth; }
body { min-width: 320px; font-size: 1rem; line-height: 1.65; }
p, li, input, select, textarea, button { font-size: 1rem; }
button, a, input, select, textarea { transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f1bf25; outline-offset: 3px; }

/* Typography and shared layout. */
.nav-links a, .nav-buttons a, .nav-container .nav-links a { font-size: .9rem; }
.logo a, .nav-container .logo { font-size: 1.05rem; }
.hero-label, .section-label { font-size: .76rem !important; }
.hero-description, .page-header p, .section-heading p:not(.section-label), .section-title p { font-size: 1.05rem; }
.section-heading h2, .section-title h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.view-all, .cta-button, .search-button, .auth-button, .add-row { font-size: .93rem; letter-spacing: .01em; }

/* Cards gain a subtle paper-like depth without becoming heavy. */
.job-card, .category-card, .search-job-card, .application-card, .profile-card, .application-stat, .filter-sidebar { position: relative; overflow: hidden; border-color: #c9ddd0; box-shadow: 0 2px 0 rgba(13, 64, 50, .035); }
.job-card::before, .category-card::before, .search-job-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #0d4032, #7ea78b); opacity: 0; transition: opacity .18s ease; }
.job-card:hover::before, .category-card:hover::before, .search-job-card:hover::before { opacity: 1; }
.job-card h3, .category-card h3, .search-job-information h3, .application-info h3 { font-size: 1.45rem; line-height: 1.16; }
.job-card p, .category-card p, .search-job-information p, .application-info p { font-size: .94rem; line-height: 1.65; }
.job-bottom a, .category-card a, .application-status a { font-size: .92rem; font-weight: 800; }
.company-logo, .application-card .company-logo { width: 56px; height: 56px; font-size: 1rem; }

/* Jobs search and filtering. */
.jobs-page-header, .applications-header, .profile-header { padding-top: 72px; padding-bottom: 64px; }
.jobs-page-header h1, .applications-header h1, .profile-heading h1 { font: 500 clamp(2.6rem, 5vw, 4.6rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; color: #082d23; }
.jobs-page-header p, .applications-header p, .profile-heading p { font-size: 1.05rem; }
.jobs-search { padding: 10px; background: #fff; border: 1px solid #c9ddd0; border-radius: 4px 18px 4px 4px; box-shadow: 10px 10px 0 #f1bf25; }
.jobs-search-field input, .jobs-search-field select, .filter-sidebar select { font-size: .95rem; }
.filter-sidebar { padding: 24px; }
.filter-header h3, .results-header h2 { font: 500 1.65rem Georgia, serif; color: #082d23; }
.filter-group h4 { color: #0d4032; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.filter-option { font-size: .92rem; }

/* Authentication and forms. */
.auth-container { max-width: 560px; }
.auth-header h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.auth-header p { font-size: 1.02rem; }
.form-group { margin-bottom: 23px; }
.form-group label { font-size: .92rem; }
.form-group input, .form-group select, .form-group textarea { min-height: 51px; padding: 13px 14px; font-size: 1rem; }
.auth-button { min-height: 52px; font-size: 1rem; }
.terms-group, .form-options, .auth-register { font-size: .9rem; }

/* Application form gets the same HR-ready presentation. */
.employment-application { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.application-intro { margin: 0 0 38px; padding: 55px 48px; background: linear-gradient(112deg, #f8faf7 0 58%, #e6f0e8 58%); border-left: 5px solid #0d4032; }
.application-intro h1 { margin: 8px 0 16px; color: #082d23; font: 500 clamp(2.6rem, 5vw, 4.8rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.application-intro p:not(.section-label) { max-width: 600px; color: #62736b; font-size: 1.03rem; }
.form-section { padding: 32px; border: 1px solid #c9ddd0; border-radius: 3px; background: #fff; box-shadow: 0 2px 0 rgba(13, 64, 50, .035); }
.form-section h2, .form-section .section-heading h2 { color: #082d23; font: 500 1.75rem Georgia, serif; }
.form-section label { color: #0d4032; font-size: .88rem; font-weight: 800; }
.form-section input, .form-section select, .form-section textarea { min-height: 48px; border-color: #b9cfc0; font-size: 1rem; }
.form-section textarea { min-height: 110px; }
.form-section input:focus, .form-section select:focus, .form-section textarea:focus { border-color: #0d4032; box-shadow: 0 0 0 3px #dcece0; }
.form-actions { padding-top: 12px; }

/* Dashboard and profile keep data easy to scan. */
.application-stat { padding: 26px; }
.stat-number { font: 500 2.15rem Georgia, serif; }
.stat-label, .application-details, .application-date { font-size: .9rem; }
.profile-card { padding: 30px; }
.profile-card > p, .completion-card p, .profile-item p { font-size: .95rem; }
.profile-links a { font-size: .95rem; }

/* A calmer, more legible footer. */
.footer-content, .footer-grid { gap: 40px; }
.footer-brand p, .footer-column a, .footer-grid p, .footer-grid a { font-size: .92rem; line-height: 1.7; }
.footer-column h3, .footer-grid h3, .footer-grid h4 { font-size: 1.05rem; }

/* Job details and saved-job empty state. */
.detail-page { width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.detail-hero { padding: 52px 48px; background: linear-gradient(112deg, #f8faf7 0 58%, #e6f0e8 58%); border-left: 5px solid #0d4032; }
.back-link { display: inline-block; margin-bottom: 32px; color: #0d4032; font-size: .93rem; font-weight: 800; text-decoration: none; }
.detail-hero h1 { max-width: 700px; margin: 8px 0 15px; color: #082d23; font: 500 clamp(2.6rem, 5vw, 4.8rem)/.98 Georgia, serif; letter-spacing: -.05em; }
.detail-hero p:not(.section-label) { max-width: 590px; color: #62736b; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; margin-top: 28px; }
.detail-card, .detail-sidebar { padding: 34px; background: #fff; border: 1px solid #c9ddd0; }
.detail-title { display: flex; align-items: center; gap: 18px; padding-bottom: 25px; border-bottom: 1px solid #d7e2da; }
.detail-title h2, .detail-sidebar h2 { margin: 7px 0; color: #082d23; font: 500 1.85rem Georgia, serif; }
.detail-title p, .detail-sidebar p, .detail-body { color: #62736b; }
.detail-body { line-height: 1.75; }
.detail-body h3 { margin: 32px 0 10px; color: #0d4032; font: 500 1.4rem Georgia, serif; }
.detail-body li { margin-bottom: 8px; }
.detail-sidebar { align-self: start; background: #082d23; }
.detail-sidebar h2, .detail-sidebar p { color: #fff; }
.detail-sidebar .section-label { color: #b8ddc4 !important; }
.detail-sidebar .cta-button { width: 100%; justify-content: center; margin-top: 15px; }
.detail-secondary-link { display: block; margin-top: 18px; color: #d6e8dd; text-align: center; font-size: .92rem; }
.saved-empty { width: min(700px, calc(100% - 40px)); margin: 80px auto 110px; padding: 64px 32px; text-align: center; background: #fff; border: 1px solid #c9ddd0; box-shadow: 12px 12px 0 #f1bf25; }
.saved-empty span { display: grid; width: 58px; height: 58px; margin: 0 auto 22px; place-items: center; background: #e6f0e8; color: #0d4032; font-size: 2rem; }
.saved-empty h2 { color: #082d23; font: 500 2.1rem Georgia, serif; }
.saved-empty p { max-width: 440px; margin: 0 auto 26px; color: #62736b; }

@media (max-width: 850px) {
  html { font-size: 17px; }
  .employment-application { width: min(100% - 30px, 1180px); padding-top: 48px; }
  .application-intro { padding: 40px 28px; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .page-header { padding: 58px 20px 50px; }
  .page-header h1 { font-size: 3rem; }
  .application-intro { padding: 32px 22px; }
  .detail-page { width: min(100% - 28px, 1140px); padding-top: 42px; }
  .detail-hero, .detail-card, .detail-sidebar { padding: 28px 22px; }
  .form-section { padding: 23px 18px; }
  .jobs-search { box-shadow: 7px 7px 0 #f1bf25; }
}

/* Updated editorial direction: readable Calibri and a fuller home-page hero. */
body, button, input, select, textarea, .auth-button, .cta-button { font-family: Calibri, "Segoe UI", Arial, sans-serif !important; }
h1, h2, h3, h4, .hero h1, .section-heading h2, .section-title h2, .page-header h1, .auth-header h1, .application-intro h1, .detail-hero h1, .about-story h2, .about-values h2 { font-family: Calibri, "Segoe UI", Arial, sans-serif !important; font-weight: 700 !important; letter-spacing: -.025em !important; }

.hero { position: relative; min-height: 650px; padding: 82px clamp(38px, 7vw, 150px); grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(36px, 6vw, 110px); background: linear-gradient(112deg, #fbfcfa 0 57%, #e4f0e8 57%); }
.hero-content { width: 100%; max-width: none; }
.hero h1 { max-width: 930px; margin: 16px 0 26px; font-size: clamp(3.35rem, 4.6vw, 5.2rem); line-height: .98; }
.hero-description { max-width: 760px; font-size: 1.17rem; }
.hero-support { align-self: center; padding: 32px; background: #082d23; color: #fff; border-radius: 4px 26px 4px 4px; box-shadow: 14px 14px 0 #f1bf25; }
.hero-support-label { margin: 0 0 36px; color: #b8ddc4; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-support h2 { margin: 0 0 32px; color: #fff; font-size: 2rem; line-height: 1.06; }
.hero-support-stat { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid #376451; }
.hero-support-stat strong { color: #fff; font-size: 1.45rem; }
.hero-support-stat span { color: #c7d9cf; font-size: .92rem; }
.hero-support a { display: flex; justify-content: space-between; margin-top: 26px; color: #fff; font-weight: 800; text-decoration: none; }
.hero-support a span { color: #f1bf25; }

/* Full-size, unified job search. */
.search-box { width: 100%; max-width: none; min-height: 104px; margin-top: 38px; padding: 0; grid-template-columns: 1.35fr 1fr 1fr 190px; align-items: stretch; overflow: hidden; border: 1px solid #b8cec0; border-radius: 10px; box-shadow: 0 10px 28px rgba(8, 45, 35, .10); }
.search-field { display: flex; flex-direction: column; justify-content: center; min-height: 104px; padding: 17px 23px; border-right: 1px solid #d7e2da; }
.search-field label { margin-bottom: 7px; font-size: .75rem; }
.search-field input, .search-field select { padding: 0; color: #182721; font-size: 1.05rem; font-weight: 600; }
.search-field input::placeholder { color: #7a8b82; font-weight: 400; }
.search-button { display: flex; align-items: center; justify-content: center; width: auto; min-height: auto; margin: 12px; padding: 0 22px; border-radius: 6px; font-size: 1.03rem; }
.popular-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 25px; font-size: .96rem; }
.popular-searches p { margin: 0 2px 0 0; }
.popular-searches a { padding: 7px 12px; border: 1px solid #c9ddd0; border-radius: 999px; background: #fff; text-decoration: none; }

/* Replace colorful emoji with simple monochrome category glyphs. */
.category-icon { display: grid; place-items: center; color: #111; background: #f2f4f2 !important; font-family: Arial, sans-serif; font-size: 0 !important; }
.category-icon::before { color: #111; font-size: 1.55rem; font-weight: 700; line-height: 1; }
.category-card:nth-child(1) .category-icon::before { content: "</>"; font-size: 1.05rem; }
.category-card:nth-child(2) .category-icon::before { content: "▦"; }
.category-card:nth-child(3) .category-icon::before { content: "◉"; }
.category-card:nth-child(4) .category-icon::before { content: "✦"; }
.category-card:nth-child(5) .category-icon::before { content: "▤"; }
.category-card:nth-child(6) .category-icon::before { content: "+"; font-size: 2rem; }
.category-card:nth-child(7) .category-icon::before { content: "⚙"; }
.category-card:nth-child(8) .category-icon::before { content: "↗"; font-size: 2rem; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 72px clamp(28px, 6vw, 80px); }
  .hero-support { width: min(100%, 640px); }
  .search-box { grid-template-columns: 1.25fr 1fr 1fr 165px; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 62px 24px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.2rem); }
  .search-box { grid-template-columns: 1fr; border-radius: 8px; }
  .search-field { min-height: 78px; border-right: 0; border-bottom: 1px solid #d7e2da; }
  .search-button { min-height: 52px; margin: 10px; }
}

/* One navigation component across the entire portal. */
header > nav, nav.navbar .nav-container {
  width: min(1440px, calc(100% - 64px)) !important;
  min-height: 82px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
}
nav.navbar { min-height: 82px; }
header > nav .logo a, nav.navbar .logo {
  color: #0d4032 !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
}
header > nav .nav-links, nav.navbar .nav-links { display: flex !important; align-items: center !important; gap: 28px !important; margin-left: auto !important; }
header > nav .nav-links a, header > nav .nav-buttons a, nav.navbar .nav-links a {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: #496257 !important;
  font-size: .96rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
header > nav .nav-links a:hover, header > nav .nav-links a.active, nav.navbar .nav-links a:hover, nav.navbar .nav-links a.active { color: #082d23 !important; border-bottom-color: #f1bf25 !important; }
header > nav .nav-buttons a:first-child.active { color: #082d23 !important; border-bottom-color: #f1bf25 !important; }
header > nav .nav-buttons { display: flex !important; align-items: center !important; gap: 20px !important; }
header > nav .nav-buttons a:last-child, nav.navbar .nav-links .signup-btn {
  min-height: 48px !important;
  padding: 0 23px !important;
  border: 1px solid #0d4032 !important;
  border-radius: 999px !important;
  background: #0d4032 !important;
  color: #fff !important;
  font-weight: 800 !important;
}
header > nav .nav-buttons a:last-child:hover, nav.navbar .nav-links .signup-btn:hover { background: #082d23 !important; border-color: #082d23 !important; }
nav.navbar .nav-links .signup-btn.active { border-bottom-color: #0d4032 !important; }

@media (max-width: 850px) {
  header > nav, nav.navbar .nav-container { width: min(100% - 32px, 1440px) !important; min-height: auto !important; padding: 15px 0 !important; gap: 14px !important; flex-wrap: wrap !important; }
  header > nav .nav-links, nav.navbar .nav-links { order: 3; width: 100%; margin-left: 0 !important; gap: 20px !important; overflow-x: auto; }
  header > nav .nav-buttons { margin-left: auto; }
}
