@media (max-width: 900px) {
  .portal-hero-inner { min-height: 380px; padding: 44px 30px; }
  .hero-copy h1 { font-size: 41px; }
  .hero-art { height: 240px; }
  .opportunities { padding-top: 42px; }
}
@media (max-width: 650px) {
  .portal-hero-inner { min-height: 0; padding: 39px 18px 28px; }
  .hero-copy h1 { max-width: 100%; font-size: 35px; }
  .hero-description { max-width: 95%; margin: 12px 0 18px; }
  .hero-art { display: none; }
  .job-grid { grid-template-columns: 1fr; gap: 9px; }
  .job-card { min-height: 0; padding: 15px; }
  .job-card h3 { margin: 13px 0 9px; font-size: 15px; }
  .job-card-bottom { margin-top: 12px; }
  .section-top { gap: 8px; }
  .section-top h2 { max-width: 255px; font-size: 21px; }
  .section-subtitle { max-width: 245px; font-size: 10px; }
  .results-count { gap: 6px; padding: 6px 8px; }
  .results-count strong { font-size: 20px; }
  .results-count span { font-size: 8px; }
  .active-filters { font-size: 9px; }
  .active-filters > a { margin-left: 0; }
}

/* Clearer visual hierarchy for public vacancy cards. */
.job-grid { gap: 18px; }
.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 23px 24px 18px;
  overflow: hidden;
  border: 1px solid #d9e3d6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 14px #173e2e08;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.job-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #628a48 0 34%, #dce9d2 34% 100%);
  content: '';
}
.job-card:hover {
  border-color: #aac39b;
  box-shadow: 0 12px 26px #173e2e14;
  transform: translateY(-3px);
}
.job-card-top { gap: 13px; }
.company-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border: 0;
  border-radius: 5px;
  background: #edf4e8;
  color: #477438;
  font-size: 19px;
  font-weight: 700;
}
.job-company { color: #506457; font-size: 11px; letter-spacing: .15px; }
.job-age { font-size: 10px; }
.job-open-label {
  padding: 6px 9px;
  border: 1px solid #dcead5;
  border-radius: 20px;
  background: #f4f8f1;
  font-size: 9px;
}
.job-card h3 {
  min-height: 52px;
  margin: 18px 0 12px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}
.job-card h3 a { color: #183e2d; text-decoration: none; }
.job-card h3 a:hover { color: #56813e; }
.job-meta-line { gap: 8px 10px; font-size: 11px; }
.job-meta-line span {
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #e5ebe2;
  border-radius: 3px;
  background: #f8faf7;
  color: #53675a;
}
.job-card-bottom {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e7ede4;
  align-items: center;
}
.job-card-bottom > div { gap: 4px 8px; }
.salary-label { font-size: 9px; letter-spacing: .8px; }
.job-card-bottom strong { color: #234d34; font-size: 14px; }
.job-contract { font-size: 10px; }
.job-detail-link {
  padding: 9px 12px;
  border-color: #315c3d;
  border-radius: 3px;
  background: #315c3d;
  color: #fff;
  font-size: 11px;
  flex: 0 0 auto;
  transition: background .18s, border-color .18s;
}
.job-card-bottom .job-detail-link {
  display: inline-flex;
  width: auto;
  height: auto;
  border-radius: 3px;
  color: #fff;
}
.job-detail-link:hover { border-color: #244a31; background: #244a31; color: #fff; }
.job-detail-link span { color: #c6e79a; }

@media (max-width: 650px) {
  .job-grid { gap: 12px; }
  .job-card { min-height: 0; padding: 20px 17px 15px; }
  .job-card h3 { min-height: 0; margin: 15px 0 11px; font-size: 19px; }
  .job-card-bottom { gap: 10px; padding-top: 12px; }
  .job-card-bottom strong { font-size: 13px; }
  .job-detail-link { padding: 8px 10px; }
}

/* Search-and-browse composition for the public vacancy page. */
.portal-hero-inner {
  display: block;
  min-height: 0;
  padding: 38px 38px 28px;
}
.hero-copy { max-width: none; }
.hero-copy h1 { max-width: 820px; font-size: 40px; }
.hero-description { margin: 8px 0 20px; }
.hero-art { display: none; }
.job-search {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(150px, 1.15fr) minmax(130px, .9fr) minmax(145px, 1fr) auto;
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
}
.hero-meta { margin-top: 11px; }
.opportunities { max-width: 1250px; margin: 0 auto; padding: 32px 30px 58px; }
.section-top { margin-bottom: 16px; }
.section-top h2 { font-size: 25px; }
.section-top .results-count { display: none; }
.opportunity-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 19px; align-items: start; }
.vacancy-filters,
.vacancy-results {
  border: 1px solid #e1e8df;
  border-radius: 5px;
  background: #fff;
}
.vacancy-filters { padding: 17px 16px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e8eee6; }
.filter-heading h3 { margin: 0; color: #1b3027; font: 700 15px/1.3 var(--display); }
.filter-heading a { color: #547b3c; font-size: 10px; font-weight: 700; white-space: nowrap; }
.vacancy-filters form { display: grid; }
.vacancy-filters fieldset { display: grid; gap: 9px; margin: 0; padding: 15px 0; border: 0; border-bottom: 1px solid #e8eee6; }
.vacancy-filters legend,
.filter-city > span { display: block; margin-bottom: 10px; color: #304438; font-size: 11px; font-weight: 700; }
.vacancy-filters fieldset label { display: flex; align-items: center; gap: 9px; color: #53675a; font-size: 11px; cursor: pointer; }
.vacancy-filters input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: #628a48; }
.filter-city { display: block; padding: 15px 0; border-bottom: 1px solid #e8eee6; }
.filter-city input { width: 100%; min-height: 36px; padding: 0 9px; border: 1px solid #dfe7dc; border-radius: 3px; background: #fff; color: #1b3027; font: 11px var(--body); }
.filter-city button { width: 100%; min-height: 33px; margin-top: 7px; border: 0; border-radius: 3px; background: #315c3d; color: #fff; font: 700 10px var(--body); cursor: pointer; }
.filter-city button:hover { background: #244a31; }
.filter-search-context { display: grid; gap: 6px; padding-top: 13px; color: #68786c; font-size: 10px; overflow-wrap: anywhere; }
.filter-search-context strong { color: #304438; }
.vacancy-results { min-width: 0; padding: 0 13px 13px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid #e8eee6; color: #617166; font-size: 11px; }
.results-toolbar strong { color: #1b3027; font: 800 17px var(--display); }
.sort-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #dfe7dc; border-radius: 3px; color: #526457; font-size: 10px; }
.sort-label span { color: #547b3c; font-size: 13px; }
.active-filters { margin: 10px 0; }
.job-list { display: grid; gap: 9px; padding-top: 11px; }
.job-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 15px;
  min-height: 130px;
  padding: 13px 14px;
  overflow: visible;
  border: 1px solid #e5ebe2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 12px #173e2e06;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.job-card::before { display: none; }
.job-card:hover { border-color: #b9cdae; box-shadow: 0 8px 20px #173e2e10; transform: translateY(-1px); }
.company-mark { width: 78px; height: 78px; flex-basis: 78px; border: 1px solid #e2e9df; border-radius: 5px; background: #fbfcfa; font-size: 25px; }
.job-list-content { min-width: 0; }
.job-list-title-row { display: grid; justify-items: start; gap: 2px; }
.job-new-label { padding: 2px 8px; border-radius: 3px; background: #e8f2df; color: #477438; font-size: 9px; font-weight: 700; }
.job-card h3 { min-height: 0; margin: 0; font-size: 16px; line-height: 1.35; }
.job-company { color: #728077; font-size: 11px; font-weight: 500; }
.job-meta-line { gap: 7px 16px; margin-top: 8px; font-size: 10px; }
.job-meta-line span { gap: 5px; padding: 0; border: 0; background: transparent; color: #596c5e; white-space: nowrap; }
.job-meta-line i { color: #628a48; font-size: 12px; }
.job-meta-line .job-salary { color: #294934; font-weight: 700; }
.job-salary i { font-size: 9px; font-style: normal; font-weight: 700; }
.job-list-action { display: grid; justify-items: end; gap: 11px; }
.job-list-action .job-age { color: #839086; font-size: 10px; white-space: nowrap; }
.job-card-bottom .job-detail-link,
.job-list-action .job-detail-link { display: inline-flex; width: auto; height: auto; min-height: 36px; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border: 1px solid #315c3d; border-radius: 4px; background: #315c3d; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.job-list-action .job-detail-link:hover { border-color: #244a31; background: #244a31; color: #fff; }
.job-list-action .job-detail-link span { color: #c6e79a; font-size: 14px; }

@media (max-width: 900px) {
  .portal-hero-inner { padding: 34px 28px 25px; }
  .hero-copy h1 { font-size: 35px; }
  .job-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-search .search-submit { min-height: 44px; }
  .opportunities { padding: 28px 22px 48px; }
  .opportunity-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 13px; }
  .job-card { grid-template-columns: 64px minmax(0, 1fr) 108px; gap: 11px; padding: 12px; }
  .company-mark { width: 64px; height: 64px; flex-basis: 64px; }
  .job-meta-line { gap: 6px 10px; }
}
@media (max-width: 700px) {
  .portal-hero-inner { padding: 31px 18px 22px; }
  .hero-copy h1 { max-width: 560px; font-size: 31px; }
  .hero-description { max-width: 95%; margin: 9px 0 16px; font-size: 12px; }
  .job-search { gap: 0; grid-template-columns: 1fr 1fr; }
  .job-search label:first-child { grid-column: 1 / -1; }
  .job-search select { min-width: 0; }
  .job-search .search-submit { grid-column: 1 / -1; }
  .opportunities { padding: 25px 15px 42px; }
  .section-top h2 { font-size: 22px; }
  .opportunity-layout { grid-template-columns: 1fr; }
  .vacancy-filters { padding: 13px; }
  .vacancy-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; }
  .filter-city { grid-column: 1 / -1; }
  .vacancy-filters fieldset { align-content: start; }
  .job-card { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 13px; }
  .company-mark { width: 54px; height: 58px; flex-basis: 54px; font-size: 21px; }
  .job-card h3 { font-size: 15px; }
  .job-meta-line { gap: 6px 10px; margin-top: 7px; }
  .job-list-action { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .job-list-action .job-age { font-size: 9px; }
  .job-card-bottom .job-detail-link,
  .job-list-action .job-detail-link { min-height: 32px; padding: 7px 9px; }
}
@media (max-width: 390px) {
  .job-meta-line { gap: 5px 8px; font-size: 9px; }
  .results-toolbar { font-size: 10px; }
  .sort-label { padding: 6px; font-size: 9px; }
  .job-list-action { flex-wrap: wrap; }
}

.candidate-profile-wrap { align-items: start; }
.candidate-profile-wrap .account-intro { padding-top: 18px; }
.candidate-profile-wrap .account-intro h1 { max-width: 390px; }
.candidate-profile-wrap .profile-back-link { display: inline-flex; margin-top: 18px; color: #547b3c; font-size: 11px; font-weight: 700; }
.candidate-profile-wrap .profile-back-link:hover { color: #315c3d; }
.candidate-profile-form { display: grid; gap: 0; }
.candidate-profile-form .candidate-profile-section > h2 { margin-bottom: 16px; }
.candidate-profile-form .candidate-experiences { border-top: 0; padding-top: 0; }
.candidate-profile-form .experience-title { align-items: flex-start; margin-bottom: 13px; }
.candidate-profile-form .experience-title h2 { margin: 0; }
.candidate-profile-form .experience-title p { margin: 5px 0 0; color: #7b887e; font-size: 11px; line-height: 1.5; }
.candidate-profile-form .experience-add { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #d6e3d0; border-radius: 3px; background: #f6f9f3; }
.candidate-profile-form .experience-add:hover { border-color: #afc79f; background: #edf4e8; }
.candidate-profile-form .portal-experience { padding: 19px 15px 14px; border-color: #e1e8df; background: #fbfcfa; }
.candidate-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #e8eee6; }
.candidate-profile-actions > a { color: #65756a; font-size: 11px; font-weight: 600; }
.candidate-profile-actions .account-submit { width: auto; min-width: 175px; margin: 0; }
@media (max-width: 650px) {
  .candidate-profile-wrap .account-intro h1 { font-size: 31px; }
  .candidate-profile-form .portal-form-grid { grid-template-columns: 1fr; }
  .candidate-profile-form .portal-form-wide { grid-column: auto; }
  .candidate-profile-actions { justify-content: space-between; gap: 10px; }
  .candidate-profile-actions .account-submit { min-width: 0; padding: 0 12px; }
}

/* Footer-only layout polish. */
.portal-footer {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 14px 26px;
  padding: 22px max(5.5vw, 22px);
  border-top: 1px solid var(--line);
}
.portal-footer > a { display: inline-flex; align-items: center; }
.portal-footer > a img { width: 138px; height: auto; }
.portal-footer > p { margin: 0; color: #758278; font-size: 11px; }
.portal-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 0;
  color: #7b887e;
  font-size: 10px;
}
.portal-footer > div > a { color: #53675a; font-weight: 600; }
.portal-footer > div > a:hover { color: var(--moss); }
@media (max-width: 900px) {
  .portal-footer { grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; }
  .portal-footer > div { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 600px) {
  .portal-footer { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 22px 18px; text-align: center; }
  .portal-footer > p { font-size: 11px; }
  .portal-footer > div { grid-column: auto; justify-content: center; gap: 10px 16px; margin-top: 5px; }
}
