/* ============================================================
   DEED Vision — Careers page extras
============================================================ */

:root {
  --deed-accent: #5C9E9E; /* DEED teal, brightened for dark theme contrast */
}

/* nav active */
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: middle;
}

/* DEED brand mark — solid square + wordmark */
.deed-brand { gap: 10px; }
.deed-mark {
  width: 18px;
  height: 18px;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
}
.deed-mark::after {
  content: "";
  position: absolute;
  inset: 4px 4px 4px auto;
  width: 6px;
  background: var(--bg);
  border-radius: 1px;
}
.brand-sub {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* kicker dot variant */
.kicker .dot.deed { background: var(--deed-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--deed-accent) 22%, transparent); }

/* ====================== HERO ====================== */
.hero-careers .display {
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.94;
}
.hero-careers .lead { max-width: 720px; }

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  padding: 48px 0 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.hero-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero-strip b {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ====================== WORK ====================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px){ .work-grid { grid-template-columns: 1fr; } }
.work-card {
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card[href]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.work-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}
.work-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.55;
  flex: 1;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.work-meta .arrow {
  font-size: 18px;
  color: var(--ink);
}

/* ====================== WHY GRID ====================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 920px){ .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .why-grid { grid-template-columns: 1fr; } }
.why {
  padding: 36px 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why:nth-child(3n) { border-right: none; }
.why:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 920px){
  .why:nth-child(3n) { border-right: 1px solid var(--line); }
  .why:nth-child(2n) { border-right: none; }
  .why:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .why:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px){
  .why { border-right: none; border-bottom: 1px solid var(--line); }
  .why:last-child { border-bottom: none; }
}
.why-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.why h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.why p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ====================== HOW WE WORK ====================== */
.howwework {
  border-top: 1px solid var(--line);
}
.hw-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.hw-k {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hw-v {
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ====================== ROLE LIST ====================== */
.role-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.role {
  display: grid;
  grid-template-columns: 1.4fr 1.8fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding .2s ease, background .2s ease;
}
.role:hover {
  background: rgba(var(--ink-rgb),0.025);
  padding-left: 24px;
  padding-right: 24px;
}
.role-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rt {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  background: rgba(var(--ink-rgb),0.06);
  border-radius: 999px;
  color: var(--ink-mid);
  white-space: nowrap;
}
.rt.level-jr  { background: rgba(180,122,18,0.14); color: var(--warn); }
.rt.level-mid { background: color-mix(in srgb, var(--deed-accent) 14%, transparent); color: var(--deed-accent); }
.rt.level-sr  { background: var(--ink); color: var(--bg); }
.role-cta {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.role:hover .role-cta { text-decoration: underline; }

@media (max-width: 820px){
  .role { grid-template-columns: 1fr; gap: 10px; padding: 22px 8px; }
  .role:hover { padding-left: 16px; padding-right: 16px; }
  .role-cta { justify-self: start; }
}

/* ====================== FEATURED ROLE ====================== */
.featured-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.featured-side {
  position: sticky;
  top: 90px;
  align-self: start;
}
@media (max-width: 920px){
  /* Role detail sections — tighten the whole block on mobile so each role
     fits closer to a viewport and reads as one cohesive card. */
  section#featured-role,
  section#role-junior,
  section#role-product,
  section#role-ecom,
  section#role-marketplace {
    padding: clamp(40px, 7vw, 64px) 0;
  }
  .featured-wrap { grid-template-columns: 1fr; gap: 22px; }
  .featured-side { position: static; top: auto; }
  .featured-side .eyebrow { margin-bottom: 12px; }
  .featured-side .h-display {
    font-size: clamp(32px, 8vw, 42px);
    margin: 12px 0 18px;
    line-height: 0.96;
  }
  .role-meta-card { padding: 12px 16px; margin-bottom: 14px; }
  .rmc-row { padding: 8px 0; font-size: 13px; }
  .rmc-k { font-size: 10.5px; }
  .featured-side .btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
  .featured-side > p.muted { margin-top: 10px !important; font-size: 12px; }

  .featured-body { padding: 26px 22px; border-radius: 18px; }
  .featured-body .lede {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 18px;
    padding-bottom: 18px;
  }
  .featured-body p { font-size: 15.5px; line-height: 1.55; margin: 0 0 14px; }
  .featured-body h3 {
    font-size: 18px;
    margin: 26px 0 12px;
    padding-top: 20px;
  }
  .featured-body ul.tick li { font-size: 14.5px; padding: 6px 0 6px 22px; }
  .ready-block { margin-top: 28px; padding-top: 20px; }
  .ready-h { font-size: 18px; }
}
.featured-side .h-display {
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 0.94;
  margin: 22px 0 28px;
}
.role-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.rmc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.rmc-row:last-child { border-bottom: none; }
.rmc-k {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rmc-row span:last-child { color: var(--ink); text-align: right; }

.btn-dark.full { width: 100%; justify-content: center; }

.featured-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4.5vw, 60px) clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
}
.featured-body .lede {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
  color: var(--ink);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.featured-body p {
  color: var(--ink-mid);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.featured-body p em.serif-em { color: var(--ink); }
.featured-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.featured-body h3:first-of-type { padding-top: 0; border-top: none; margin-top: 24px; }
.featured-body .tick {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.featured-body .tick li {
  font-size: 15.5px;
  padding: 9px 0 9px 24px;
}
.ready-block {
  margin-top: 40px;
  padding: 28px 30px 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ready-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  padding: 0;
  border: none;
}
.ready-block p {
  margin: 0 0 18px;
  font-size: 15.5px;
}

/* ====================== TEAM PLACEHOLDERS ====================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 980px){ .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ph {
  aspect-ratio: 1/1.05;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(var(--ink-rgb),0.10) 1px, transparent 1.3px);
  background-size: 8px 8px;
}
.ph-1 { background: linear-gradient(135deg, #6B5A47, #B49A78); }
.ph-2 { background: linear-gradient(135deg, #3F5A55, #6F8F88); }
.ph-3 { background: linear-gradient(135deg, #5A4F6E, #8C7AAB); }
.ph-4 { background: linear-gradient(135deg, #8A3F2C, #C26F58); }
.ph-5 { background: linear-gradient(135deg, #3B4459, #6E7896); }
.ph-plus {
  background: var(--bg-alt);
  display: grid;
  place-items: center;
}
.ph-plus span {
  font-family: var(--f-sans);
  font-size: 64px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
}
.tc-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-meta b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.tc-meta span { font-size: 12px; color: var(--muted); }
.team-card.join { border-style: dashed; }

/* ====================== APPLY / OFFICE ====================== */
.apply-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 920px){ .apply-grid { grid-template-columns: 1fr; } }
.apply-grid .section-lead { color: rgba(255,255,255,0.72); margin: 22px 0 30px; max-width: 540px; }
.apply-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.muted-light { color: rgba(255,255,255,0.6); font-size: 14px; }
.under { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.office-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px 32px 28px;
  color: rgba(255,255,255,0.85);
}
.of-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.of-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: #fff;
}
.of-addr {
  font-style: normal;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
  font-family: var(--f-mono);
}
.of-map {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-dark);
}
.of-map svg,
.of-map img { width: 100%; height: 160px; object-fit: cover; display: block; }
.of-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}
.of-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.ofk {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

/* footer extras */
.foot-cols a.on { color: #fff; }
.foot-addr {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  font-style: normal;
  display: block;
  padding-top: 5px;
}

/* small util */
.muted.small { font-size: 12px; }

/* ── White mode (html[data-theme="light"]) overrides ── */
/* Restore the original deep DEED teal: the brightened #5C9E9E was chosen for
   contrast on the dark bg and washes out on white. Downstream rules
   (.rt.level-mid color-mix, links, etc.) pick this up automatically. */
html[data-theme="light"] {
  --deed-accent: #315C5C;
}
