/* GoLavoro: base, components and responsive layout. Ad placement rules are retained. */
:root {
  color-scheme: light;
  --blue: #146fa7;
  --blue-dark: #0e527d;
  --ink: #243440;
  --muted: #5c6b75;
  --line: #dce3e8;
  --paper: #fff;
  --soft: #f5f7f8;
  --error: #a51e19;
  --field-border: #7f8f9a;
  --success: #205d35;
  --success-bg: #f0f7f2;
  --success-line: #b9d9c3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-wrap: anywhere;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.validation-failure:focus-visible,
.golavoro-jobalert .message:focus-visible,
.go-apply-private [role=alert]:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

.search-toggle:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.btn,
.button,
.secondary,
.go-apply-submit,
input[type=submit] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--paper);
  border: 1px solid var(--blue);
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}

button:hover, .btn:hover, .button:hover {
  background: var(--blue-dark);
  color: var(--paper);
  text-decoration: none;
}

.button-outline {
  background: var(--paper);
  color: var(--blue);
}

.button-outline:hover {
  background: var(--soft);
  color: var(--blue-dark);
}

input[type=text],
input[type=email],
input[type=search],
input[type=file],
textarea,
select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 10px 12px;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  height: auto;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[type=file] {
  padding: 8px;
  font-size: 14px;
}

input[type=checkbox], input[type=radio] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}

.field {
  margin: 0 0 18px;
}

.job-source-note {
  display: inline-block;
  width: 0;
  height: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
  white-space: nowrap;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.018em;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 20px;
}

h6 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 24px;
}

pre {
  overflow: auto;
  background: var(--soft);
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  padding: 8px 0;
  vertical-align: top;
  text-align: left;
}

td+td, th+th {
  padding-left: 16px;
}

small, .suggestion {
  font-size: 14px;
  color: var(--muted);
}

.site-width {
  width: min(1160px,100% - 64px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  margin-bottom: 42px;
}

.search-toggle {
  display: none;
  list-style: none;
}

.search-toggle::-webkit-details-marker {
  display: none;
}

.header-row {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: 144px;
  height: 58px;
  object-fit: contain;
}

.header-row nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

.header-row .button {
  min-height: 42px;
  padding: 9px 18px;
}

.search-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--paper);
}

.search-band .site-width {
  max-width: 820px;
}

.site-search {
  width: 100%;
}

.site-search label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.search-controls {
  display: flex;
  gap: 12px;
}

.search-controls input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
}

.search-controls button {
  min-width: 168px;
}

.home-hero {
  padding: 34px 0 60px;
  text-align: center;
}

.home-hero h1 {
  font-size: 54px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.13;
  margin-bottom: 20px;
}

.home-hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

.home-search {
  max-width: 780px;
  margin: auto;
  text-align: left;
}

.home-search .search-controls input {
  min-height: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 23px;
  margin: 0;
  flex-shrink: 0;
}

.section-rule {
  height: 1px;
  background: var(--line);
  flex: 1;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.job-card {
  display: block;
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: border-color .15s,background .15s;
}

.job-card:hover {
  border-color: var(--blue);
  background: var(--soft);
  text-decoration: none;
}

.job-card h2, .job-card h3 {
  font-size: 22px;
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: 10px;
  padding-right: 24px;
}

.job-card:hover h2, .job-card:hover h3 {
  text-decoration: underline;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.card-arrow {
  font-size: 22px;
  color: var(--blue);
  line-height: 1;
}

.job-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.job-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.home-jobs .job-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-publish {
  margin-top: 52px;
  padding: 32px 0 4px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-publish h2 {
  font-size: 23px;
  margin: 0;
}

.jobmain {
  max-width: 820px;
  margin-inline: auto;
}

.golavoro-jobalert {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 5px;
  padding: 26px;
  margin: 28px 0;
  background: var(--paper);
  text-align: left;
}

.jobalert-title {
  font-size: 21px;
  margin-bottom: 12px;
}

.golavoro-jobalert .message {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.golavoro-jobalert input[type=email] {
  margin: 6px 0 14px;
}

.golavoro-jobalert button {
  width: 100%;
}

.search-results>h1 {
  line-height: 1.25;
  margin: 0 0 28px;
}

.search-results>h1 strong {
  font-weight: 650;
}

.search-results>.job-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 25px 0;
}

.search-results>.job-card:first-of-type {
  padding-top: 0;
}

.search-results>.job-card:hover {
  background: transparent;
}

.search-results>.sponsored-label {
  margin: 28px 0 0;
}

.search-results>.sponsored-label + .job-card {
  padding-top: 12px;
}

.search-results>.job-card .card-top {
  margin-bottom: 10px;
}

.search-results>.job-card .card-arrow {
  position: absolute;
  right: 4px;
  top: 24px;
}

.search-results>.job-card:first-of-type .card-arrow {
  top: 4px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
}

.pagination a[rel=next] {
  margin-left: auto;
}

.empty-state {
  padding: 24px;
  background: var(--soft);
  border-radius: 4px;
}

.reading-layout {
  max-width: 780px;
  margin: 0 auto;
}

.reading-layout .page-content > :last-child {
  margin-bottom: 0;
}

.reading-layout h1 {
  font-size: 34px;
}

.details-page h1 {
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}

.detail-meta {
  line-height: 1.8;
}

.job-description {
  margin: 30px 0;
  font-size: 17px;
  line-height: 1.85;
}

.job-description p:last-child {
  margin-bottom: 0;
}

.job-description .row {
  margin: 0;
}

.related-jobs {
  margin-top: 48px;
}

.related-jobs>h2 {
  font-size: 25px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-bottom: 24px;
}

.related-jobs>.job-card, .recent-jobs>.job-card {
  margin: 14px 0;
  padding: 24px;
}

.recent-jobs>.job-card > :last-child {
  margin-bottom: 0;
}

.apply-toggle {
  width: 100%;
  margin: 16px 0;
}

.apply-now {
  margin: 24px 0;
}

.apply-now [type=submit] {
  width: 100%;
}

.apply-now .suggestion {
  margin-top: 8px;
}

.ad-top:has(.ad-fixture), .ad-top:has(ins) {
  min-height: 100px;
  margin-bottom: 38px;
}

.ad-description-top:has(.ad-fixture), .ad-description-top:has(ins) {
  min-height: 100px;
  margin: 28px 0;
}

.ad-description-bottom:has(.ad-fixture), .ad-description-bottom:has(ins) {
  min-height: 250px;
  margin: 28px 0;
}

.job_description_middle {
  min-height: 250px;
  max-width: 100%;
}

.ad-apply {
  min-height: 100px;
  margin: 20px 0;
}

.ad-fixture {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border: 1px dashed var(--line);
  color: var(--muted);
  font: 11px/1.4 system-ui;
  min-height: inherit;
  letter-spacing: .04em;
}

.ad-fixture[data-slot=job_description_middle], .ad-fixture[data-slot=job_description_bottom] {
  min-height: 250px;
}

.job_description_middle .ad-fixture {
  display: inline-flex;
  width: 100%;
}

.alert-message,
.validation-failure,
.go-apply-private > .go-apply-error,
.apply-status-ok,
#status,
.posted-pending,
.posted-ok {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-message > :last-child,
.validation-failure > :last-child,
.apply-status-ok > :last-child,
#status > :last-child,
.posted-pending > :last-child,
.posted-ok > :last-child {
  margin-bottom: 0;
}

.posted-pending > br:last-child {
  display: none;
}

.success, .apply-status-ok, .posted-ok {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success);
}

.validation-failure, .error, .go-apply-error {
  color: var(--error);
}

input.error, textarea.error, input[aria-invalid=true], textarea[aria-invalid=true] {
  border-color: var(--error);
}

label.error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.pills {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.pills li {
  padding-bottom: 14px;
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}

.pills li.active {
  border-bottom: 3px solid var(--blue);
  font-weight: 700;
  color: var(--blue);
}

#publish_form h2 {
  font-size: 22px;
  margin-top: 24px;
}

#publish_form textarea {
  min-height: 180px;
  height: 240px;
}

.inputs-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.inputs-list label {
  font-weight: 400;
  line-height: 1.6;
}

#textile-suggestions {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 16px 0;
}

.hidden {
  display: none;
}

#contact-form {
  max-width: 650px;
}

.contact-content > [role=alert], .contact-content > [role=status] {
  max-width: 650px;
}

.validation-failure, .go-apply-private > .go-apply-error {
  background: #fff5f4;
  border-color: #dca6a3;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-label input {
  flex: none;
  margin: 6px 0 0;
}

#contact-form textarea {
  min-height: 180px;
}

.cf-turnstile {
  margin-bottom: 18px;
}

.go-apply-private {
  max-width: 680px!important;
  margin: 0 auto!important;
  padding: 0 0 32px!important;
}

.go-apply-private h1 {
  font-size: 34px!important;
}

.go-apply-private .go-apply-submit {
  background: var(--blue)!important;
}

.go-apply-private input, .go-apply-private textarea {
  padding: 10px 12px!important;
}

.go-apply-private p {
  margin-top: 12px;
}

#no-ads {
  max-width: 760px;
  padding: 24px 0;
}

#no-ads h1 {
  font-size: 36px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-weight: 700;
  font-size: 19px;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
}

.footer-row nav a {
  color: var(--muted);
}

.sponsored-label {
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--muted);
  font-size: 12px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  background: var(--paper);
  padding: 12px;
  z-index: 10;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 12px;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg,transparent 50%,#5c6b75 50%),linear-gradient(135deg,#5c6b75 50%,transparent 50%);
  background-position: calc(100% - 18px) 20px,calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

#frm-apply-online textarea {
  height: 220px;
  min-height: 160px;
}

.skip-link:not(:focus) {
  top: 10px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
}

#other_location_label {
  margin-top: 8px;
}

.page-content {
  min-width: 0;
}

.golavoro-jobalert .message[data-state=success] {
  color: var(--success);
  margin-bottom: 0;
}

.golavoro-jobalert .message[data-state=error] {
  color: var(--error);
}

/* Form feedback and native disclosure fallback. */
.validation-error { display: block; color: var(--error); font-size: 13px; margin-top: 6px; }
.application-panel { display: none; }
.application-panel:target { display: block; }

@media(min-width:701px) {
  .search-results>.golavoro-jobalert form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .search-results>.golavoro-jobalert .jobalert-title, .search-results>.golavoro-jobalert .message {
    grid-column: 1/-1;
  }

  .search-results>.golavoro-jobalert button {
    align-self: end;
    margin-bottom: 14px;
  }

  .search-results>.golavoro-jobalert .alert-email-label {
    margin: 0;
  }
}

@media(max-width:1100px) {
  .site-width {
    width: calc(100% - 48px);
  }

  .home-hero h1 {
    font-size: 48px;
  }

  .details-page h1 {
    font-size: 34px;
  }
}

@media(max-width:850px) {
  .home-hero {
    padding: 18px 0 48px;
  }

  .home-hero h1 {
    font-size: 46px;
  }

  .job-grid {
    gap: 16px;
  }

  .job-card {
    padding: 24px;
  }
}

@media(max-width:600px) {
  .site-width {
    width: calc(100% - 36px);
  }

  .site-header {
    margin-bottom: 28px;
  }

  .header-row {
    height: 84px;
    gap: 16px;
  }

  .search-toggle {
    position: absolute;
    top: 20px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--blue);
    cursor: pointer;
  }

  .header-search[open] .search-toggle {
    background: var(--soft);
    border-color: var(--blue);
  }

  .brand img {
    width: 124px;
    height: 50px;
  }

  .search-band {
    padding: 18px 0;
  }

  .site-search label {
    font-size: 12px;
  }

  .search-controls {
    gap: 8px;
    flex-wrap: wrap;
  }

  .search-controls input {
    min-width: 100%;
    min-height: 48px;
  }

  .search-controls button {
    width: 100%;
    min-height: 46px;
  }

  .home-hero {
    padding: 14px 0 42px;
    text-align: left;
  }

  .home-hero h1 {
    font-size: 40px;
    letter-spacing: -.04em;
    margin-bottom: 16px;
  }

  .home-hero p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .home-search .search-controls input {
    min-height: 52px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .job-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .job-card {
    padding: 24px 22px;
  }

  .card-top {
    margin-bottom: 14px;
  }

  .job-meta {
    font-size: 13px;
  }

  .golavoro-jobalert {
    padding: 24px 22px;
  }

  .golavoro-jobalert button {
    font-size: 15px;
  }

  .search-results>h1 {
    font-size: 28px;
    margin-bottom: 26px;
  }

  .details-page h1 {
    font-size: 32px;
  }

  .job-description {
    font-size: 16px;
    line-height: 1.8;
  }

  .related-jobs>.job-card, .recent-jobs>.job-card {
    padding: 22px;
  }

  .apply-now label {
    margin-top: 10px;
  }

  .apply-now .ad-apply {
    margin: 16px 0;
  }

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

  .pills li {
    font-size: 11px;
    min-width: 0;
    color: var(--muted);
  }

  .footer-row {
    display: block;
  }

  .footer-row nav {
    margin-top: 18px;
    gap: 12px 20px;
  }

  .site-footer {
    margin-top: 32px;
    padding: 28px 0;
  }

  h1, .reading-layout h1 {
    font-size: 28px;
  }

  #no-ads {
    padding-top: 24px;
  }

  #no-ads h1 {
    font-size: 30px;
  }

  .go-apply-private h1 {
    font-size: 28px!important;
  }

  .go-apply-private input[type=file] {
    font-size: 12px;
  }

  .publish-entry, .header-row nav {
    display: none;
  }

  #frm-apply-online textarea {
    height: 180px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .job-card {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .apply-now,
  .golavoro-jobalert,
  .ad-fixture,
  ins.adsbygoogle {
    display: none;
  }

  .site-width {
    width: 100%;
  }

  .jobmain {
    display: block;
  }

  a {
    color: #000;
  }

  .job-card {
    break-inside: avoid;
  }

  .job-grid {
    display: block;
  }
}

.cms-content { line-height: 1.8; margin-bottom: 28px; }
.cms-content > :last-child { margin-bottom: 0; }

/* Empty metadata fields do not leave orphan separators, including API updates. */
[data-related-card] .job-meta > span:empty {display: none;}
[data-related-card] .job-meta > span:not(:empty) ~ span:not(:empty)::before {content: " · ";}
