/* style.css - One stylesheet for the whole site.
   Look: a surveyor's field book. Graph-paper background, thin ink outlines, IBM Plex type with mono labels,
   a ruler-tick divider, and a warm palette (cream paper, terracotta, green, butter, sage, peach and sky).
   To change the look, start with the colors and fonts just below. */

/* ---------- Colors and sizes (change the look here) ---------- */
:root {
  --paper: #f7efdf;       /* page background: warm cream */
  --surface: #fffaf0;     /* cards and panels */
  --ink: #2b2019;         /* main text and outlines */
  --ink2: #46372d;        /* softer main text */
  --muted: #7a6a5a;       /* secondary text */
  --rule: #e2d3b8;        /* light dividers */
  --rule2: #c4b08c;       /* stronger dividers and dashed outlines */
  --accent: #d8603a;      /* terracotta: emphasis and highlights */
  --accent-d: #a8421f;    /* darker terracotta: link hover, small accent text */
  --accent-btn: #c4502b;  /* filled buttons (dark enough for white text) */
  --deep: #3d5a49;        /* green: footer, logo, "Employers" panel */
  --deep-ink: #fbf3e2;    /* text on green */
  --deep-mute: #c4d4c0;   /* softer text on green */
  --soft1: #f6d98a;       /* butter */
  --soft2: #bfd8b3;       /* sage */
  --soft3: #f4c2ae;       /* peach */
  --soft4: #b8d3e0;       /* dusty sky */
  /* the US map's shading: l1 (fewest jobs) to l5 (most) */
  --l1: #fbe9b6; --l2: #f6c98e; --l3: #ee9d6c; --l4: #d8603a; --l5: #9b3a1f;
  --grid: rgba(43, 32, 25, 0.065);   /* the graph-paper lines */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 6px;
  --max: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; padding-top: 0.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.025em; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px;
  background: var(--deep); border: 1px solid var(--ink); transform: rotate(-1.75deg);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-left: auto; }
.site-header nav a {
  padding: 0.3rem 0.9rem; border: 1px solid transparent; border-radius: 4px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.site-header nav a:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.site-header nav a[aria-current="page"] { border-color: var(--ink); background: var(--surface); }
.header-cta {
  padding: 0.4rem 1rem; background: var(--accent-btn); color: #fff; border: 1px solid var(--ink); border-radius: 4px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
}
.header-cta:hover { background: var(--accent-d); color: #fff; }
/* On phones and small tablets the menu drops under the logo so every link fits */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 0.75rem; padding-bottom: 0.5rem; row-gap: 0.5rem; }
  .header-cta { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 0.2rem; }
  .site-header nav a { padding: 0.25rem 0.65rem; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.05rem; white-space: nowrap; }
  .header-cta { font-size: 0.85rem; padding: 0.35rem 0.75rem; }
  .site-header nav { gap: 0.1rem; }
  .site-header nav a { font-size: 0.9rem; padding: 0.25rem 0.42rem; }
}

/* ---------- Intro (the top of every inner page) ---------- */
.intro { padding: 2rem 0 1rem; max-width: 46rem; }
.intro h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin: 0 0 0.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.lede { color: var(--ink2); font-size: 1.1rem; margin: 0; }

/* ---------- Ad slots: fixed space so the page doesn't jump ---------- */
.ad-slot { margin: 1rem 0; min-height: 100px; }
.ad-sidebar { min-height: 250px; }
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--rule2); color: var(--muted); font: 400 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------- Board layout (the /jobs/ and /news/ pages): filters left, results right ---------- */
.board { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 860px) {
  .board { grid-template-columns: 260px 1fr; align-items: start; }
  .filters { position: sticky; top: 1rem; }
}

/* ---------- Filters ---------- */
.filters details { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 1rem; }
.filters summary { font-weight: 600; cursor: pointer; }
.filters label { display: block; font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin: 1rem 0 0.25rem; }
.filters input[type="search"], .filters select {
  width: 100%; padding: 0.55rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule2); border-radius: 4px;
}
.checks label { display: flex; gap: 0.5rem; align-items: center; margin: 0.6rem 0 0; font: 400 0.9rem var(--font); text-transform: none; letter-spacing: 0; }
.checks input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.reset {
  margin-top: 1rem; width: 100%; padding: 0.55rem; font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px;
}
.reset:hover { background: var(--ink); color: var(--paper); }

/* ---------- Job list: each job is a bordered card ---------- */
.count { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.95rem; }
.job-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}
.job-list .ad-row { grid-column: 1 / -1; }
.job-row {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag . time" "main main main";
  gap: 0.6rem 0.8rem; align-items: center; padding: 1rem 1.15rem 1.1rem;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius);
}
.job-row:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.job-row[hidden], .ad-row[hidden] { display: none; }
.job-row > .state-tag { grid-area: tag; }
.job-row > .job-main { grid-area: main; }
.job-row > .posted { grid-area: time; }
/* The state code in a box, like a field bag tag; the box color cycles so a long list isn't one flat block */
.state-tag {
  display: inline-block; min-width: 2.75rem; padding: 0.02rem 0.6rem; text-align: center;
  font: 500 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--soft4); border: 1px solid var(--ink); border-radius: 4px;
}
.job-row:nth-child(3n+1) .state-tag, .news-row:nth-child(3n+1) .state-tag { background: var(--soft1); }
.job-row:nth-child(3n+2) .state-tag, .news-row:nth-child(3n+2) .state-tag { background: var(--soft2); }
.job-row:nth-child(3n) .state-tag, .news-row:nth-child(3n) .state-tag { background: var(--soft3); }
.state-tag.fed { background: var(--soft2) !important; }
.job-main h2, .job-main h3 { font-size: 1.16rem; margin: 0; font-weight: 600; line-height: 1.25; }
.job-main h2 a, .job-main h3 a { text-decoration: none; }
.job-main h2 a:hover, .job-main h3 a:hover { text-decoration: underline; }
.employer { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.facts { margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.chip {
  padding: 0 0.6rem; background: var(--paper); border: 1px solid var(--ink); border-radius: 4px;
  font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.chip-federal { background: var(--soft2); }
.chip-pi { background: var(--soft3); }
.chip-perdiem { background: var(--soft1); }
.chip-lodging { background: var(--soft4); }
.pay { flex: 0 0 100%; margin-top: 0.2rem; font: 500 0.98rem var(--mono); }
.posted { color: var(--muted); font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.empty { padding: 1.5rem; background: var(--surface); border: 1px dashed var(--rule2); border-radius: var(--radius); }

/* ---------- News list: same cards, one per row because of the excerpts ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.news-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem 1rem; align-items: start;
  padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius);
}
.news-row:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.news-row[hidden] { display: none; }
.news-main h2 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.news-main h2 a { text-decoration: none; }
.news-main h2 a:hover { text-decoration: underline; }
.news-meta { margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9rem; color: var(--muted); }
.outlet { font-weight: 600; }
/* Profession and policy stories get an accent underline; digs and discoveries stay plain */
.topic-profession { border-bottom: 2px solid var(--accent); color: var(--ink); }
.news-excerpt { margin: 0.4rem 0 0; font-size: 0.95rem; }

@media (max-width: 560px) {
  .news-row { grid-template-columns: auto 1fr; }
  .news-row .posted { grid-column: 2; }
}

/* ---------- Job detail page ---------- */
.crumbs { margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.job-detail { padding-bottom: 3rem; }
/* "Similar open jobs" on a job page: a plain list, each with its employer, place and pay underneath */
.similar-jobs { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.similar-jobs li { margin: 0 0 0.7rem; }
.similar-meta { display: block; color: var(--muted); font-size: 0.9rem; }
.job-detail h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; margin: 0.5rem 0 0.25rem; letter-spacing: -0.03em; }
.job-detail .employer { font-size: 1.1rem; }
.detail-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: 1fr 300px; } }
.detail-body { max-width: 44rem; }
.facts-table {
  display: grid; grid-template-columns: 8rem 1fr; margin: 0;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius);
}
.facts-table dt, .facts-table dd { padding: 0.6rem 0.9rem; margin: 0; border-bottom: 1px solid var(--rule); }
.facts-table dt { font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 0.75rem; }
.facts-table dt:last-of-type, .facts-table dd:last-of-type { border-bottom: 0; }
.detail-body h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.summary { margin: 0; }
.apply {
  display: inline-block; margin-top: 1.5rem; padding: 0.8rem 1.2rem; font-weight: 600;
  background: var(--accent-btn); color: #fff; text-decoration: none; border: 1px solid var(--ink); border-radius: 4px;
}
.apply:hover { background: var(--accent-d); color: #fff; }
.fine-print { color: var(--muted); font-size: 0.85rem; margin-top: 1.5rem; }
.closed-notice {
  margin: 1rem 0 0; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--ink);
  border-left: 6px solid var(--accent); border-radius: var(--radius); font-weight: 600;
}

/* ---------- Text pages (About, Contact, Privacy) ---------- */
.prose { max-width: 44rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.prose p, .prose ul { margin: 0.75rem 0; }
.prose li { margin: 0.4rem 0; }
.prose code { font: 0.88em var(--mono); background: var(--surface); border: 1px solid var(--rule2); border-radius: 4px; padding: 0.05em 0.35em; }

/* ---------- Grouped pages (/archaeology-jobs/...) ---------- */
.browse-link { margin: 0.75rem 0 0; font-weight: 600; }
.why {
  max-width: 46rem; margin: 0.5rem 0 1rem; padding: 0.8rem 1rem; background: var(--surface);
  border: 1px solid var(--ink); border-left: 6px solid var(--accent); border-radius: var(--radius);
}
.why h2 { font-size: 1rem; margin: 0 0 0.25rem; }
.why p { margin: 0; }
.group-about { margin-top: 2rem; }
.group-about .facts-table { margin-top: 0.5rem; }
/* Category links as little tags with a count. The home page colors them by group (see .bgroup below) */
.browse-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.browse-list li {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.35rem 0.2rem 0.9rem;
  background: var(--c, var(--surface)); border: 1px solid var(--ink); border-radius: 4px; font-weight: 500;
}
.browse-list li:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.browse-list a { text-decoration: none; }
.count-note {
  display: inline-block; min-width: 1.7rem; padding: 0 0.45rem; text-align: center;
  background: var(--ink); color: var(--paper); border-radius: 3px; font-size: 0.78rem; font-weight: 700;
}

/* ---------- Advertised pay page (/archaeology-pay/) and the home page's pay cards ---------- */
.pay-page { padding-bottom: 3rem; }
.pay-page section { margin-top: 2.5rem; }
.pay-page section.intro { margin-top: 0; }
.pay-page h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.pay-page h3 { font-size: 1.2rem; margin: 2rem 0 0.25rem; }
.pay-page h4, .pay-page h5 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.pay-page p, .pay-page ul { max-width: 46rem; }
.pay-page li { margin: 0.5rem 0; }
.jump { margin: 0.5rem 0 1.5rem; color: var(--muted); font-size: 0.95rem; }
.pay-cards { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0 0 1rem; }
.pay-card { background: var(--c, var(--soft1)); border: 1px solid var(--ink); border-radius: 8px; padding: 1.4rem; box-shadow: 0 0 0 1px var(--accent); }
.pay-card:nth-child(3n+1) { --c: var(--soft1); }
.pay-card:nth-child(3n+2) { --c: var(--soft2); }
.pay-card:nth-child(3n) { --c: var(--soft3); }
.pay-card p { margin: 0; }
.pay-card-title { font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.pay-big { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 0.6rem !important; }
.pay-big small { font-size: 0.36em; letter-spacing: -0.01em; }
.pay-card-note { font-weight: 600; font-size: 0.95rem; }
.pay-card .fine-print { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--ink); color: var(--ink); font: 400 0.78rem var(--mono); }
.pay-page .empty { padding: 0.8rem 1rem; max-width: 46rem; }
.scale-note { margin: 0.25rem 0 0; }

.pay-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--ink); font-size: 0.95rem; }
.pay-table th, .pay-table td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.pay-table thead th { color: var(--muted); font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--ink); }
.pay-table tbody th { font-weight: 600; }
.pay-table tbody tr:last-child th, .pay-table tbody tr:last-child td { border-bottom: 0; }
.bar-cell { width: 26%; min-width: 9rem; }

/* The range chart: thin line = lowest to highest, band = typical range, tick = median */
.rangebar { position: relative; display: block; height: 1.2rem; }
.rb-whisker { position: absolute; top: 50%; height: 2px; background: var(--ink2); transform: translateY(-50%); }
.rb-band { position: absolute; top: 15%; height: 70%; background: var(--accent); opacity: 0.5; border-radius: 2px; }
.rb-median { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--accent-d); }

@media (max-width: 640px) {
  .pay-table thead { position: absolute; left: -9999px; }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table th, .pay-table td { display: block; }
  .pay-table tr { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
  .pay-table th, .pay-table td { border: 0 !important; padding: 0.15rem 0; }
  .pay-table td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
  .pay-table td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .bar-cell { width: auto; min-width: 0; padding-top: 0.4rem !important; }
}

/* ---------- Home page ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding: 2.2rem 0 3rem; }
.hero-copy { position: relative; }
.upd {
  display: inline-block; margin: 0; padding: 0.15rem 0.6rem; border: 1px solid var(--rule2); border-radius: 4px;
  color: var(--muted); font: 500 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 600; margin: 1rem 0 0; line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 .accent { display: inline-block; color: var(--accent); transform: rotate(-0.7deg); }
.hero .lede { margin-top: 1.2rem; max-width: 33rem; font-size: 1.12rem; }

.qchips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.4rem; }
.qlabel { color: var(--muted); font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.15rem; }
.qc {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.85rem; background: var(--soft1);
  border: 1px solid var(--ink); border-radius: 4px; font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.qc:nth-of-type(2) { background: var(--soft2); }
.qc:nth-of-type(3) { background: var(--soft3); }
.qc:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.qc b { padding: 0 0.45rem; background: var(--ink); color: var(--paper); border-radius: 3px; font-size: 0.78rem; }

.stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.stat { padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px; }
.stat:nth-child(1) { transform: rotate(-0.56deg); }
.stat:nth-child(3) { transform: rotate(0.46deg); }
.stat b { display: block; font-size: 1.9rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.stat span { color: var(--muted); font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* The US tile map */
.mapcard {
  position: relative; padding: 1.3rem 1.3rem 1.1rem; background: var(--surface);
  border: 1px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 1px var(--accent);
}
.sticker {
  position: absolute; top: -16px; right: -8px; display: grid; place-items: center; width: 84px; height: 84px;
  border: 3px double var(--accent); border-radius: 50%; color: var(--accent-d); text-align: center; line-height: 1;
  transform: rotate(-10deg); background: var(--surface);
}
.sticker b { display: block; font-size: 1.9rem; font-weight: 500; letter-spacing: -0.05em; }
.sticker span { font: 500 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.fig { margin: 0 0 0.35rem; color: var(--accent-d); font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.mapcard h2 { margin: 0; font-size: 1.2rem; padding-right: 84px; }
.map-help { margin: 0 0 1rem; color: var(--muted); font-size: 0.82rem; padding-right: 84px; }
.tiles { display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(8, auto); gap: 5px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1;
  background: transparent; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: clamp(0.6rem, 1.05vw, 0.8rem); line-height: 1.05;
}
.tile em { font-style: normal; font-weight: 700; font-size: 0.8em; }
.tile.l0 { border: 1.5px dashed var(--rule2); color: var(--rule2); font-weight: 600; }
.tile.l1 { background: var(--l1); }
.tile.l2 { background: var(--l2); }
.tile.l3 { background: var(--l3); }
.tile.l4 { background: var(--l4); color: #fff; }
.tile.l5 { background: var(--l5); color: #fff; }
a.tile:hover { box-shadow: 0 0 0 2px var(--ink); color: inherit; }
a.tile.l4:hover, a.tile.l5:hover { color: #fff; }
.tile[aria-current="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.legend { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.9rem; color: var(--muted); font: 400 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.legend i { display: block; width: 18px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; }
.legend .l0 { background: none; border-style: dashed; border-color: var(--rule2); }
.legend .l1 { background: var(--l1); }
.legend .l2 { background: var(--l2); }
.legend .l3 { background: var(--l3); }
.legend .l4 { background: var(--l4); }
.legend .l5 { background: var(--l5); }
.minfo { margin: 0.8rem 0 0; padding: 0.55rem 0.85rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; font-size: 0.88rem; font-weight: 500; color: var(--ink2); }

/* A ruler-tick divider between the hero and the job list */
.tape {
  height: 12px; border-block: 1px solid var(--ink); background-color: var(--surface);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 100% 45%; background-repeat: no-repeat, repeat-x; background-position: 0 0, 0 100%;
}

/* The home page's job list */
.home-board { padding: 3rem 0 1rem; scroll-margin-top: 1rem; }
.bh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.bh h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.bh h2 small { padding: 0.05rem 0.75rem; border: 1px solid var(--rule2); border-radius: 4px; color: var(--muted); font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.fl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.fc {
  padding: 0.25rem 0.85rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px;
  font-size: 0.86rem; font-weight: 500; text-decoration: none;
}
.fc i { margin-left: 0.3rem; font-style: normal; opacity: 0.65; }
.fc:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.fc[aria-current="true"] { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }
.sel { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.4rem 0.2rem 0.8rem; background: var(--soft3); border: 1px solid var(--ink); border-radius: 4px; font-size: 0.86rem; font-weight: 600; }
.sel[hidden] { display: none; }
.sel button { width: 22px; height: 22px; padding: 0; background: #fff; border: 1px solid var(--ink); border-radius: 3px; font-weight: 800; line-height: 1; cursor: pointer; }
.bf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; color: var(--muted); font-size: 0.9rem; }
.bf p { margin: 0; }
.more { display: inline-block; padding: 0.5rem 1.2rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.more:hover { background: var(--ink); color: var(--paper); }
.more[hidden], .bf p[hidden] { display: none; }

.home-section { margin-top: 3.4rem; }
.home-section:first-child { margin-top: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; }
.section-head a { padding: 0.25rem 1rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.section-head a:hover { background: var(--ink); color: var(--paper); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.path-card { padding: 1.6rem; background: var(--soft1); border: 1px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 1px var(--accent); }
.path-card:nth-child(2) { background: var(--soft2); }
.path-card h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.path-card p { margin: 0.4rem 0 1.1rem; font-weight: 500; }
.path-card ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.path-card li { margin: 0; }
.path-card li a { display: inline-flex; gap: 0.4rem; padding: 0.35rem 0.8rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 4px; font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.path-card li a::after { content: "\2197"; font-weight: 600; }
.path-card li a:hover { background: var(--ink); color: var(--paper); }

.browse-groups { margin: 0; }
.bgroup { display: grid; grid-template-columns: 150px 1fr; gap: 0.8rem 1.4rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--ink); }
.bgroup:last-child { border-bottom: 1px solid var(--ink); }
.browse-label { margin: 0.4rem 0 0; color: var(--muted); font: 500 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.bgroup-1 { --c: var(--soft1); }
.bgroup-2 { --c: var(--soft2); }
.bgroup-3 { --c: var(--soft3); }
.bgroup-4 { --c: var(--soft4); }
.bgroup-5 { --c: var(--surface); }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; counter-reset: guide; }
.guide-card {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.2rem; counter-increment: guide;
  background: var(--soft1); border: 1px solid var(--ink); border-radius: var(--radius);
}
.guide-card:nth-child(4n+2) { background: var(--soft2); }
.guide-card:nth-child(4n+3) { background: var(--soft3); }
.guide-card:nth-child(4n) { background: var(--soft4); }
.guide-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.guide-card::before {
  content: counter(guide); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.8rem;
  background: var(--ink); color: var(--paper); border-radius: 3px; font-weight: 600;
}
.guide-card h3 { margin: 0 0 0.5rem; font-size: 1.35rem; line-height: 1.15; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::before { content: ""; position: absolute; inset: 0; }   /* makes the whole card clickable */
.guide-card p { margin: 0 0 0.9rem; font-size: 0.98rem; font-weight: 500; }
.guide-card::after { content: "Read guide \2192"; margin-top: auto; font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }

.home-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; margin-top: 3.4rem; }
.home-two > .home-section { margin-top: 0; }
.panel { padding: 1.4rem; background: var(--surface); border: 1px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 1px var(--accent); }
.panel h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.panel .section-head { margin-bottom: 0.6rem; }
.panel .section-head h2 { margin: 0; font-size: 1.5rem; }
.panel .section-head a { font-size: 0.85rem; padding: 0.15rem 0.8rem; }
.news-brief { list-style: none; margin: 0; padding: 0; }
.news-brief li { display: grid; gap: 0.15rem; padding: 0.8rem 0; border-top: 1px dashed var(--rule2); }
.news-brief li:first-child { border-top: 0; padding-top: 0.1rem; }
.news-brief a { font-weight: 600; font-size: 1.04rem; line-height: 1.28; text-decoration: none; }
.news-brief a:hover { text-decoration: underline; }
.news-brief span { color: var(--muted); font: 500 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.about-strip { display: grid; gap: 1.4rem; }
.panel.who { display: flex; align-items: flex-start; gap: 1rem; }
.panel.who h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.panel.who p { margin: 0 0 0.7rem; font-size: 0.97rem; }
.avatar { flex: none; display: grid; place-items: center; width: 54px; height: 54px; background: var(--accent-btn); color: #fff; border: 1px solid var(--ink); border-radius: 6px; font-size: 1.5rem; font-weight: 700; }
.panel.hire { background: var(--deep); color: var(--deep-ink); }
.panel.hire h2 { font-size: 1.6rem; }
.panel.hire p { margin: 0.5rem 0 1rem; color: var(--deep-mute); }
.panel.hire a:not(.btn) { color: inherit; }
.btn {
  display: inline-block; padding: 0.6rem 1.1rem; background: var(--soft1); color: var(--ink); border: 1px solid var(--ink);
  border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--soft1); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2.4rem; }
  .mapcard { margin-top: 0.8rem; }
  .paths, .card-grid, .home-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bgroup { grid-template-columns: 1fr; }
  .tile em { display: none; }
  .tiles { gap: 3px; }
  .legend { display: none; }
}

/* ---------- Guides (/guides/...) ---------- */
.guide { padding-bottom: 3rem; }
.guide-meta { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }
.notice {
  max-width: 46rem; margin: 0.5rem 0 1rem; padding: 0.8rem 1rem; background: var(--surface);
  border: 1px solid var(--ink); border-left: 6px solid var(--soft1); border-radius: var(--radius);
}
.notice p { margin: 0; }
.guide-toc {
  max-width: 46rem; margin: 1rem 0; padding: 0.8rem 1rem 0.8rem 1.25rem; background: var(--surface);
  border: 1px solid var(--ink); border-radius: var(--radius);
}
.guide-toc h2 { font-size: 1rem; margin: 0 0 0.4rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; }
.guide-toc li { margin: 0.25rem 0; }
.guide-body { padding-bottom: 1rem; }
.guide-body h2 { font-size: 1.5rem; margin: 2.25rem 0 0.5rem; scroll-margin-top: 1rem; }
.guide-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.guide-body blockquote {
  margin: 1rem 0; padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--ink);
  border-left: 6px solid var(--accent); border-radius: var(--radius);
}
.guide-body blockquote p { margin: 0.3rem 0; }
.guide-body table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--ink); font-size: 0.95rem; margin: 1rem 0; }
.guide-body th, .guide-body td { padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.guide-body thead th { color: var(--muted); font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--ink); }
.guide-related { max-width: 46rem; margin: 1.5rem 0; }
.guide-related h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.guide-related ul { margin: 0; padding-left: 1.2rem; }
.guide-disclaimer { max-width: 46rem; }
.guide-list { list-style: none; margin: 0; padding: 0 0 3rem; max-width: 46rem; }
.guide-list li { margin: 0 0 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); }
.guide-list li:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.guide-list h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.guide-list p { margin: 0.25rem 0 0; }
@media (max-width: 640px) {
  .guide-body table { display: block; overflow-x: auto; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 3.5rem; padding: 2.2rem 0 2.5rem; background: var(--deep); color: var(--deep-mute); border-top: 1px solid var(--ink); font-size: 0.9rem; }
.site-footer p { margin: 0.3rem 0; max-width: 48rem; }
.site-footer a:hover { color: var(--soft1); }
.footer-brand { color: var(--deep-ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 1rem !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem !important; }
.footer-links a { padding: 0.1rem 0.8rem; border: 1px solid rgba(196, 212, 192, 0.5); border-radius: 4px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { border-color: var(--soft1); }

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