/* Up Top Acres careers site. Ported from apps-script/Styles.html and Apply.html. */
@font-face { font-family: 'Roca'; src: url('https://uptopacres.github.io/harvest/RocaOne-Rg.otf') format('opentype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Filson Soft'; src: url('https://uptopacres.github.io/harvest/FilsonSoftBook.otf') format('opentype'); font-weight: 400 700; font-display: swap; }
:root {
  --moss: #004D40;
  --moss-deep: #003A30;
  --clover: #54864C;
  --cream: #E5EADE;
  --chartreuse: #E8EFC5;
  --dirt: #333132;
  --white: #FFFFFF;
  --serif: 'Roca', Georgia, 'Times New Roman', serif;
  --sans: 'Filson Soft', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--dirt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--moss); }

a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--clover);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* Top band: matches the chartreuse hero on uptopacres.com */
.band {
  background: var(--chartreuse);
  color: var(--moss);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.005em;
  color: var(--moss);
  text-decoration: none;
}

.topbar-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 77, 64, 0.35);
}

.topbar-link:hover { border-bottom-color: var(--moss); }

.hero {
  padding-top: 36px;
  padding-bottom: 56px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--moss);
  margin: 0;
  max-width: 22ch;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: 19px;
  max-width: 52ch;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
}

/* Job page body */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  padding-top: 56px;
  padding-bottom: 88px;
}

.jd { max-width: 68ch; }

.jd section + section { margin-top: 44px; }

.jd h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.2;
  color: var(--clover);
  margin: 0 0 12px;
}

.jd p { margin: 0 0 16px; }

.jd .intro p:first-child {
  font-size: 20px;
  line-height: 1.65;
  color: var(--moss);
}

.jd ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.jd li { margin: 0 0 12px; padding-left: 0.2em; }

.jd li::marker { color: var(--clover); }

.jd li ul { margin: 12px 0 0; }

.jd li li { margin-bottom: 8px; }

.jd strong {
  font-weight: 600;
  color: var(--moss);
}

.jd-end {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--cream);
}

/* Details panel */
.panel {
  align-self: start;
  position: sticky;
  top: 28px;
  background: var(--cream);
  border-radius: 6px;
  padding: 30px 28px 32px;
}

.panel h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--moss);
  margin: 0 0 18px;
}

.panel dl { margin: 0 0 24px; }

.panel dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--moss);
  line-height: 1.4;
}

.panel dd {
  margin: 2px 0 16px;
  font-size: 16px;
  line-height: 1.55;
}

.panel dd:last-child { margin-bottom: 0; }

/* Call to action: brand spec, Filson Soft medium in caps with tracking, moss pill */
.cta {
  display: inline-block;
  background: var(--moss);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 17px 28px;
  border-radius: 999px;
}

.cta:hover { background: var(--moss-deep); }

.panel .cta {
  display: block;
  text-align: center;
}

.notice {
  margin: 0;
  background: var(--white);
  color: var(--moss);
  border-left: 3px solid var(--clover);
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
}

/* Roles index */
.roles {
  list-style: none;
  margin: 0;
  padding: 40px 0 88px;
}

.roles li { border-bottom: 1px solid var(--cream); }

.role-link {
  display: block;
  padding: 28px 0;
  text-decoration: none;
  color: var(--dirt);
}

.role-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: var(--moss);
}

.role-link:hover .role-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.role-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 8px;
  font-size: 16px;
}

.empty {
  padding: 48px 0 96px;
  max-width: 56ch;
}

/* Message pages */
.message {
  padding-top: 48px;
  padding-bottom: 96px;
  max-width: 60ch;
}

.message p { margin: 0 0 28px; font-size: 18px; }

footer {
  background: var(--moss);
  color: var(--cream);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-tag {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}

footer a { color: var(--cream); }

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 36px;
  }
  .panel { position: static; order: -1; }
  .hero { padding-bottom: 40px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .jd h2 { font-size: 27px; }
  .role-title { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Application form (from Apply.html) */
.hero-back { margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.hero-back a { color: var(--moss); }

.apply { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }

.apply fieldset { border: 0; margin: 0 0 52px; padding: 0; min-width: 0; }

.section-legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.2;
  color: var(--clover);
  padding: 0;
  margin: 0 0 22px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.field { margin-bottom: 24px; }

.field-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--moss);
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: #5b595a; }

.hint { margin: -2px 0 8px; font-size: 14px; line-height: 1.5; color: #5b595a; }

.apply input[type="text"],
.apply input[type="email"],
.apply input[type="tel"],
.apply textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dirt);
  background: var(--white);
  border: 1px solid #B9C2AD;
  border-radius: 4px;
  padding: 12px 14px;
}

.apply textarea { min-height: 160px; resize: vertical; }

.apply input:focus,
.apply textarea:focus {
  outline: 3px solid rgba(84, 134, 76, 0.3);
  outline-offset: 0;
  border-color: var(--clover);
}

.apply input[aria-invalid="true"],
.apply textarea[aria-invalid="true"] { border-color: #D14549; }

.apply input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }

.apply input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--moss);
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  margin-right: 14px;
  cursor: pointer;
}

.yn { border-top: 1px solid var(--cream); padding: 18px 0; }
.yn:last-of-type { border-bottom: 1px solid var(--cream); }

.yn-question { font-size: 17px; line-height: 1.55; margin: 0; }

.yn-options { display: flex; gap: 32px; margin-top: 10px; }

.yn-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  cursor: pointer;
}

.yn-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--moss); }

.yn.invalid .yn-question { color: #A2282C; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: #FBECEC;
  border-left: 3px solid #D14549;
  border-radius: 3px;
  color: #7A1F22;
  padding: 14px 18px;
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.55;
}

.form-error ul { margin: 6px 0 0; padding-left: 1.2em; }

.preview-notice { margin: 0 0 36px; }

button.cta { border: 0; cursor: pointer; }
button.cta[disabled] { opacity: 0.55; cursor: not-allowed; }

.done h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  color: var(--moss);
  margin: 0 0 16px;
}

.done p { font-size: 18px; margin: 0 0 28px; max-width: 56ch; }

@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  .yn-options { gap: 28px; }
}

/* Shown on a first visit while the API answers */
.loading { padding: 56px 0 96px; color: #5b595a; }
