/* Styles for the role-detail page — hydrated by role-template.js from
   roles.json. Keep these tokens in sync with the rest of the site. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #000;
  --green:         #33E29A;
  --green-dim:     rgba(51, 226, 154, 0.1);
  --green-border:  rgba(51, 226, 154, 0.3);
  --text:          #eaeaea;
  --text-muted:    #B6B6B6;
  --border:        rgba(255,255,255,0.08);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Sofia Sans Semi Condensed', system-ui, 'Inter', sans-serif;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page-wrap {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 48px 32px 120px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--text); }

/* Hero */
.role-hero { margin-bottom: 56px; }
.role-hero-accent { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.role-hero-line { width: 32px; height: 2px; background: var(--text-muted); opacity: .4; border-radius: 2px; }
.role-hero-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.role-hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05; color: #fff; margin-bottom: 20px;
}
.role-comp { font-size: 20px; font-weight: 500; color: var(--green); }

/* Two-column layout */
.content-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 56px; align-items: start;
}

/* Main column */
.role-body { display: flex; flex-direction: column; gap: 48px; }
.section-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.section-head h2 span {
  display: block; width: 32px; height: 2px;
  background: var(--green); border-radius: 2px; margin-top: 8px;
}
.section p { font-size: 15px; line-height: 1.8; color: rgba(234,234,234,0.75); margin-bottom: 12px; }
.section p:last-child { margin-bottom: 0; }
.section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.section ul li {
  font-size: 15px; line-height: 1.65;
  color: rgba(234,234,234,0.75); padding-left: 20px; position: relative;
}
.section ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .7;
}

/* Tech stack */
.stack-grid { display: flex; flex-direction: column; gap: 12px; }
.stack-row  { display: flex; align-items: flex-start; gap: 16px; }
.stack-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  min-width: 76px; padding-top: 6px; flex-shrink: 0;
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tag {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; padding: 4px 12px; border-radius: 6px;
}

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  background: rgba(255,255,255,0.02); transition: border-color .2s;
}
.benefit-card:hover { border-color: var(--green-border); }
.benefit-icon { font-size: 18px; margin-bottom: 8px; }
.benefit-card h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.benefit-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Sidebar */
.sidebar { position: sticky; top: 94px; }
.apply-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.ac-header {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 24px 16px; font-size: 18px; font-weight: 600; color: #fff;
}
.ac-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ac-apply-btn {
  display: block; margin: 0 24px 20px; background: var(--green); color: #000;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 13px 24px; border-radius: 8px;
  text-decoration: none; transition: background .2s;
}
.ac-apply-btn:hover { background: #fff; }
.ac-divider { height: 1px; background: var(--border); margin: 0 24px; }
.ac-rows { padding: 16px 0 4px; }
.ac-row  { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; }
.ac-label { font-size: 13px; color: var(--text-muted); }
.ac-value { font-size: 13px; font-weight: 500; color: var(--text); text-align: right; }
.ac-comp { padding: 16px 24px 20px; }
.ac-comp-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ac-comp-value { font-size: 14px; font-weight: 600; color: var(--green); }

/* Other roles */
.other-roles { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.other-roles h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.other-role-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: padding-left .2s;
}
.other-role-row:first-of-type { border-top: 1px solid var(--border); }
.other-role-row:hover { padding-left: 8px; }
.other-role-row:hover .otr-title { color: var(--green); }
.otr-title { font-size: 16px; font-weight: 500; color: var(--text); transition: color .2s; }
.otr-loc   { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.otr-arrow { color: var(--green); font-size: 18px; opacity: .6; transition: opacity .2s, transform .2s; }
.other-role-row:hover .otr-arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .page-wrap     { padding: 32px 20px 80px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
