/* Grind City Jobs */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f5f1;
  --card: #ffffff;
  --navy: #13223f;
  --navy-2: #1d3461;
  --accent: #ee6016;
  --accent-2: #d4500c;
  --blue: #2a64ad;
  --green: #15803d;
  --green-bg: #ecfdf3;
  --red: #b42318;
  --red-bg: #fef3f2;
  --amber-bg: #fffaeb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 16px rgba(17, 24, 39, .05);
  --head: "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* header */
.site-head { background: var(--navy); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.logo img { height: 40px; width: auto; flex: none; }
.logo .pill { background: var(--accent); color: var(--ink); border-radius: 6px; padding: 1px 7px; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-head nav a { color: #dbe4f3; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.site-head nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-head nav a.btn { color: var(--ink); }
@media (max-width: 560px) { .site-head nav .hide-sm { display: none; } .logo { font-size: 1rem; } .logo img { height: 34px; } .site-head nav a { padding: 6px 8px; } .site-head .wrap { gap: 8px; } }
@media (max-width: 480px) { .logo .word { display: none; } }   /* phones: the GC mark stands in for the words, so the header stays on one line */

/* buttons + forms */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; background: var(--accent); color: var(--ink); }
.btn:hover { background: var(--accent-2); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: #f3f4f6; }
.btn.danger { background: var(--red); color: #fff; }
.btn.small { padding: 7px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
.field { margin-bottom: 16px; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(42, 100, 173, .25); border-color: var(--blue); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.err { color: var(--red); font-size: .9rem; margin-top: 4px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 6px; align-items: center; font-weight: 400; }

/* notices */
.notice { border-radius: 10px; padding: 12px 14px; margin: 16px 0; border: 1px solid; }
.notice.ok { background: var(--green-bg); border-color: #abefc6; color: #05603a; }
.notice.error { background: var(--red-bg); border-color: #fecdca; color: #912018; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.notice.warn { background: var(--amber-bg); border-color: #fedf89; color: #93370d; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* hero + search */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 44px 0 56px; }
.hero h1 { color: #fff; max-width: 680px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #cbd6ea; max-width: 600px; font-size: 1.08rem; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero-logo { height: 230px; width: auto; flex: none; margin-right: 32px; }
@media (max-width: 860px) { .hero-logo { display: none; } }
.search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow); margin-top: 20px; }
.search input { border: 0; background: #f4f5f7; }
@media (max-width: 640px) { .search { grid-template-columns: 1fr; } }
.stat-line { margin-top: 14px; color: #cbd6ea; font-size: .95rem; }
.stat-line b { color: #fff; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.section { padding: 28px 0; }
.list { display: grid; gap: 12px; }
.job-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.job-card:hover { border-color: #b8c3d6; transform: translateY(-1px); }
.job-card h3 { margin: 0 0 2px; color: var(--ink); }
.job-card .co { color: var(--ink-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f3f6; color: var(--ink-2); }
.chip.pay { background: #ecfdf3; color: #05603a; }
.chip.feat { background: #fff4d6; color: #7a4a00; }
.chip.st-live { background: var(--green-bg); color: #05603a; }
.chip.st-pending, .chip.st-hidden { background: var(--amber-bg); color: #93370d; }
.chip.st-needs_changes, .chip.st-rejected { background: var(--red-bg); color: #912018; }
.meta-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* filters */
.filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 8px; margin: 18px 0; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: 1 / -1; } }
.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0; align-items: center; }

/* job page */
.job-head { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 20px; }
.job-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.job-grid > * { min-width: 0; }
@media (max-width: 860px) { .job-grid { grid-template-columns: 1fr; } }
.desc p { margin: 0 0 .8em; }
.desc ul { margin: 0 0 1em; padding-left: 22px; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0 0 6px; font-weight: 600; }
.sticky { position: sticky; top: 16px; }
details.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details.report[open] { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
td form { display: inline; }

/* bands */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta { background: var(--accent); border-radius: 16px; padding: 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta .btn { background: var(--navy); color: #fff; }
.cta-alt { background: #fff; border: 1px solid var(--line); }
.cta-alt .btn { background: var(--accent); color: var(--ink); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi b { display: block; font-family: var(--head); font-size: 1.6rem; }

/* footer */
.site-foot { background: var(--navy); color: #b7c3d9; margin-top: 48px; padding: 32px 0; font-size: .92rem; }
.site-foot a { color: #fff; }
.site-foot .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
main { min-height: 50vh; }
.page { padding-top: 28px; padding-bottom: 28px; }   /* top and bottom only: .wrap owns the side gutters */

/* share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.share .lbl { font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.share a, .share button { font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; padding: 7px 13px; border: 1px solid #cfd4dc; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy-2); background: #f3f4f6; }
.share [hidden] { display: none; }
.share-pic { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 14px; }

/* areas we serve */
.areas { display: grid; gap: 8px 32px; grid-template-columns: 1fr 2.6fr 1fr; }
.areas h3 { margin-bottom: .3em; }
.areas p { margin: 0 0 .6em; line-height: 1.9; color: var(--muted); }
.areas a { white-space: nowrap; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* job templates (post-a-job form) */
.tpl { margin-bottom: 16px; }
.tpl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-row select { flex: 1; min-width: 220px; }
