/* Fingertip job board — the board, one advert, the homepage strip, and the
   employer posting page. Same tokens as site.css: brick, charcoal, sand. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: 0.9rem; color: var(--muted); }
.btn.sm { padding: 0.5rem 1rem; font-size: 0.9rem; min-height: 2.75rem; }
.btn.block { display: flex; justify-content: center; width: 100%; }
.btn.is-off { opacity: 0.4; pointer-events: none; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 1.6rem; }

/* ------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  font-family: "Archivo", sans-serif; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 3px; border: 1px solid var(--line-strong); color: var(--body); background: var(--paper);
  white-space: nowrap;
}
.badge.mode-remote { color: #14543a; border-color: #9fd1bb; background: #eaf6f0; }
.badge.mode-local  { color: #1f2933; border-color: #c3ccd5; background: #eef1f4; }
.badge.mode-any    { color: var(--muted); }
.badge.feat { color: #fff; background: var(--brand); border-color: var(--brand); }
.badge.feat::before { content: "★"; font-size: 0.8rem; }
.badge.new  { color: var(--brand); border-color: var(--brand); background: var(--brand-wash); }
.badge.call { color: var(--muted); border-style: dashed; }

/* -------------------------------------------------------- open-to-all bar */
.open-bar { background: var(--deep); color: #dfe3e7; }
.open-bar .wrap { padding-block: 1.05rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; }
.open-bar p { margin: 0; font-size: 0.97rem; }
.open-bar strong { color: #fff; font-family: "Archivo", sans-serif; font-weight: 600; }

/* ------------------------------------------------------------ search bar */
.job-search {
  display: grid; gap: 0.9rem 1rem;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  padding: 1.2rem 1.3rem; margin-bottom: 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--lift);
}
.job-search .field { margin: 0; }
.job-search .btn { min-height: 2.9rem; }
.home-search { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto; box-shadow: none; }
@media (max-width: 1040px) { .job-search { grid-template-columns: 1fr 1fr; } .job-search .q, .job-search .go { grid-column: 1 / -1; } }
@media (max-width: 560px)  { .job-search, .home-search { grid-template-columns: 1fr; } }

.job-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.1rem; }
.job-bar h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.job-bar h2:focus { outline: none; }
.job-bar .tools { display: flex; align-items: center; gap: 1.2rem; }
.job-bar .field { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.job-bar .field label { margin: 0; white-space: nowrap; }
.saved-link { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.saved-link[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.job-note { margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; background: #eaf6f0; border-left: 4px solid #2f8f67; border-radius: 4px; color: #14543a; }

/* ---------------------------------------------------------------- cards */
.job-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.job-grid.cols { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.2rem; }
.job-grid[aria-busy="true"] { opacity: 0.55; transition: opacity var(--bounce); }

.job-card, .talent-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.35rem 1.5rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color var(--bounce), box-shadow var(--bounce);
}
.job-card:hover, .job-card:focus-within { border-color: var(--line-strong); box-shadow: var(--lift); }
.job-card.is-featured { border-color: var(--brand); border-left-width: 5px; background: linear-gradient(180deg, var(--brand-wash), var(--paper) 55%); }
.talent-card { border-style: dashed; background: var(--sand); }
.job-flags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.7rem; }
.job-title { margin: 0 0 0.35rem; font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a::after { content: ""; position: absolute; inset: 0; }           /* the whole card opens the advert */
.job-title a:hover { color: var(--brand); }
.job-meta { margin: 0 0 0.6rem; font-family: "Archivo", sans-serif; font-size: 0.93rem; color: var(--muted); }
.job-sum { margin: 0 0 1rem; font-size: 0.99rem; }
.job-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: auto 0 0; }
.job-age { margin-right: auto; font-family: "Archivo", sans-serif; font-size: 0.85rem; color: var(--muted); }
.save-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0 0.4rem;
  border: 0; background: none; cursor: pointer; font-family: "Archivo", sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.save-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.save-btn[aria-pressed="true"] { color: var(--brand); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.job-empty { padding: 2rem 1.6rem; background: var(--sand); border: 1px dashed var(--line-strong); border-radius: 6px; }
.job-empty p:first-child { margin-top: 0; max-width: 60ch; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.pager-at { font-family: "Archivo", sans-serif; font-size: 0.93rem; color: var(--muted); }

.talent-head { margin: 3rem 0 1.2rem; max-width: 68ch; }
.talent-head h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

/* The board's own copy is replaced once live roles arrive. */
.board-live .board-fallback { display: none; }

/* -------------------------------------------------------- homepage strip */
.home-jobs .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.home-jobs .head p { margin: 0.5rem 0 0; color: var(--muted); }
.home-jobs .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; margin-top: 1.8rem; }
.home-jobs:not(.is-live) .live-only { display: none; }
.home-jobs.is-live .fallback-only { display: none; }
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; }
.promise-grid li { padding: 1.2rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 4px; }
.promise-grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.promise-grid p { margin: 0; font-size: 0.97rem; }

/* ------------------------------------------------------------ one advert */
.job-head .wrap { padding-block: clamp(2rem, 4vw, 3.2rem); }
.job-head .back { display: inline-block; margin-bottom: 1rem; font-family: "Archivo", sans-serif; font-size: 0.93rem; font-weight: 600; text-decoration: none; }
.job-head h1 { margin: 0.6rem 0 0; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.12; }
.job-head .lede { margin-top: 0.9rem; max-width: 60ch; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.job-body h2, .job-skills h2 { margin: 2rem 0 0.7rem; font-size: 1.3rem; font-weight: 600; }
.job-body h2:first-child { margin-top: 0; }
.job-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.job-body li { margin-bottom: 0.45em; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-list li { padding: 0.25rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 99px; font-family: "Archivo", sans-serif; font-size: 0.88rem; }
.tag-list li.must { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }
.job-where { max-width: none; }
.job-where h2 { margin-top: 1.4rem; }
.job-where h2:first-child { margin-top: 0; }
.job-side { position: sticky; top: 6.4rem; }
.job-apply { padding: 1.4rem 1.4rem 1.2rem; background: var(--paper); border: 1px solid var(--line-strong); border-top: 4px solid var(--brand); border-radius: 6px; box-shadow: var(--lift); }
.job-apply .small { margin: 0.6rem 0 0; text-align: center; }
.job-facts { margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.95rem; }
.job-facts dt { font-family: "Archivo", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.job-facts dd { margin: 0; color: var(--ink); }
.job-tools { margin: 0.8rem 0 0; }
.side-h { margin: 0.9rem 0 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.share a, .share .linklike { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: "Archivo", sans-serif; font-size: 0.93rem; font-weight: 600; }
.job-loading { min-height: 14rem; color: var(--muted); }
@media (max-width: 900px) {
  .job-layout { grid-template-columns: 1fr; }
  .job-side { position: static; order: -1; }
}

/* --------------------------------------------- "you are applying for" */
.apply-banner { margin: 0 0 1.4rem; padding: 1.1rem 1.3rem; background: var(--brand-wash); border: 1px solid var(--brand); border-left-width: 5px; border-radius: 4px; }
.apply-banner p { margin: 0 0 0.4rem; }
.apply-banner p:last-child { margin-bottom: 0; }
.apply-banner .apply-role { font-family: "Archivo", sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.25; }

/* ------------------------------------------------- job alerts, posting */
.alert-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.alert-card .form-card { margin: 0; }
@media (max-width: 800px) { .alert-card { grid-template-columns: 1fr; } }
#alerts, #post { scroll-margin-top: 6rem; }
.price-tag { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.9rem; background: var(--brand-wash); border: 1px solid var(--brand); border-radius: 4px; font-family: "Archivo", sans-serif; }
.price-tag strong { font-size: 1.4rem; color: var(--brand); }
.check-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.check-list li { position: relative; padding: 0.35rem 0 0.35rem 1.7rem; }
.check-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.85rem; width: 0.75rem; height: 0.4rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.check-list.no li::before { width: 0.8rem; height: 0; border-left: 0; transform: none; top: 1.05rem; border-color: var(--muted); }
