:root {
  --bg: #f8fafc;
  --ink: #172033;
  --muted: #5f6b7a;
  --card: #ffffff;
  --line: #dde5ee;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --gold: #d97706;
  --soft: #ecfdf5;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ccfbf1 0, transparent 32rem), var(--bg);
  line-height: 1.6;
}

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

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem 1rem;
  font-size: .92rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

nav a:hover { color: var(--teal); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0 2rem;
  max-width: 880px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -0.07em;
  margin: .5rem 0 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 25px rgba(15, 118, 110, .22);
}

.btn.primary:hover { background: var(--teal-dark); }

.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}

.trust-strip span {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .8rem 1rem;
  font-weight: 750;
  color: var(--muted);
  text-align: center;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.25rem 0;
}

.content-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 .75rem;
}

.content-card p { color: var(--muted); }

ul { padding-left: 1.2rem; }
li { margin: .4rem 0; }

.final-cta {
  background: linear-gradient(135deg, var(--teal), #0f9f8f);
  color: white;
}

.final-cta p { color: rgba(255,255,255,.88); }
.final-cta .btn.primary { background: white; color: var(--teal-dark); }
.final-cta .btn.secondary { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.3); }

.related-links {
  margin: 2rem 0;
}
.related-links h2 { font-size: 1.1rem; }
.related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.related-links a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .85rem;
  text-decoration: none;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.6);
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .trust-strip { grid-template-columns: 1fr; }
}

/* --- M3.1 additions: search, employer role guides, M3.3 jobs pages --- */
.search-box {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.result { padding: 10px 0; border-bottom: 1px solid var(--line); }
.result a { font-weight: 700; }
.result .kind { color: var(--muted); font-size: 13px; }
.no-results { color: var(--muted); display: none; }

.role-box .role-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.role-box .role-table th,
.role-box .role-table td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.role-box .role-table th { width: 9rem; color: var(--muted); font-size: .9rem; }
.role-disclaimer { color: var(--muted); font-size: .92rem; margin-top: .75rem; }
.role-disclaimer .btn { margin-top: .5rem; display: inline-block; }

/* M3.3 jobs renderers (seo/lib/render.mjs) */
.hub-cta {
  display: inline-block;
  margin: 1rem;
  padding: .8rem 1.1rem;
  background: var(--teal-dark);
  color: white !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
main.job-detail, main#job-listings { max-width: 760px; margin: 0 auto; padding: 1rem; }
main.job-detail h1 { margin-bottom: .25rem; }
main.job-detail .meta { color: var(--muted); }
.job { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.job h2 { margin: 0 0 .35rem; }
.job .meta { color: var(--muted); font-size: .92rem; }
.policy { color: var(--muted); font-size: .9rem; border-top: 1px dashed var(--line); padding-top: .75rem; }
.attribution { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .75rem; }
nav .nav-hub { font-weight: 700; }

/* M3.1 home tiles + link grid */
.home-tile {
  display: flex; flex-direction: column; gap: .3rem;
  border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
  text-decoration: none; background: white;
}
.home-tile span { color: var(--muted); font-size: .9rem; }
.link-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.link-grid a {
  background: white; border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem .95rem; text-decoration: none; font-weight: 600;
}
