/* BEAMM theme additions: featured installs, job index, job posts. Tokens come from site.css. */

/* ---------- Featured installs ---------- */
.fj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); }
.fj-grid > .fj--lead { grid-column: 1 / -1; }
.fj-grid--even > .fj--lead { grid-column: auto; }
.fj-link { display: grid; gap: var(--sp-2); height: 100%; color: inherit; text-decoration: none; align-content: start; }
.fj-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border: 1px solid var(--rule-strong); }
.fj-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.fj-link:hover .fj-photo img { transform: scale(1.03); }
.fj-nophoto { display: block; width: 100%; height: 100%; background: var(--hatch), var(--paper); opacity: 0.35; }
.fj-body { display: grid; gap: 0.6rem; align-content: start; }
.fj-title { font-size: var(--fs-h3); font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase; line-height: 1.02; transition: color 0.2s; }
.fj-link:hover .fj-title { color: var(--blue-ink); }
.fj-excerpt { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.55; max-width: 52ch; }
.fj-quote { border-left: 3px solid var(--blue); padding: 2px 0 2px 12px; font-weight: 650; font-variation-settings: "wdth" 88; line-height: 1.35; }
.fj-quote span { display: block; margin-top: 4px; font-weight: 500; font-size: var(--fs-small); color: var(--ink-2); font-variation-settings: normal; }
.fj .link-arrow { margin-top: 0.25rem; }

/* The lead card runs photo-left, story-right. */
.fj--lead .fj-link { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--sp-4); align-items: center; }
.fj--lead .fj-photo { aspect-ratio: 16 / 10; }
.fj--lead .fj-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); }
.fj--lead .fj-excerpt { font-size: var(--fs-lead); }
.fj--lead .fj-quote { font-size: 1.2rem; }

/* ---------- Job index ---------- */
.ji-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.ji-filter button {
  font: inherit; font-size: var(--fs-small); font-weight: 650; padding: 8px 14px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 0;
}
.ji-filter button:hover { background: var(--paper); }
.ji-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ji-table td:first-child a { font-size: 1.02rem; }
.ji-type { font-weight: 500 !important; color: var(--ink-2); }
.ji-q { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); white-space: nowrap; }
.ji-table tr[hidden] { display: none; }

/* ---------- Home: recent installs list ---------- */
.schedule--jobs .schedule-head, .schedule--jobs .job { grid-template-columns: 148px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; }
.schedule--jobs .job img, .job-nophoto { width: 148px; height: 100px; object-fit: cover; }
.job-nophoto { display: block; background: var(--paper); }
.job-go { justify-self: end; color: var(--ink-2); }
.job-go svg { width: 22px; height: 22px; transition: transform 0.25s var(--ease-out); }
.job:hover .job-go { color: var(--blue-ink); }
.job:hover .job-go svg { transform: translateX(3px); }

/* ---------- Job post ---------- */
.pp-dek { margin-top: var(--sp-2); max-width: 52ch; }
.pp-body--text { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.pp-scope { display: grid; gap: 0.8rem; }
.pp-scope h2 { font-size: var(--fs-h3); }
.entry > * + * { margin-top: 1rem; }
.entry p { color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; max-width: 60ch; }
.entry ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.entry ul li { position: relative; padding-left: 26px; font-weight: 600; }
.entry ul li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; background: var(--blue); border: 1px solid var(--blue-deep); }
.entry h2 { font-size: var(--fs-h3); }
.entry h3 { font-size: 1.2rem; }
.entry a { color: var(--blue-ink); }
.entry img { max-width: 100%; height: auto; }

@media (max-width: 1000px) {
  .fj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj--lead .fj-link { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
}
@media (max-width: 700px) {
  .fj-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule--jobs .schedule-head { display: none; }
  .schedule--jobs .job { grid-template-columns: 96px minmax(0, 1fr); }
  .schedule--jobs .job img, .schedule--jobs .job-nophoto { width: 96px; height: 72px; }
  .schedule--jobs .job-scope, .schedule--jobs .job-go { display: none; }
}

/* "Our Work" is two words; keep nav items on one line. */
.nav a.navlink { white-space: nowrap; }
