/* Faithful Oversight — career record page (/career/). Loaded after styles.css. */

:root {
  --p-i: #7A5A1C;    /* Serve: brass ink */
  --p-ii: #2F5D86;   /* Secure: steel blue */
  --p-iii: #5C4470;  /* Lead: deep plum */
  --p-iv: #2E6B57;   /* Build: forest */
  --p-i-dark: #D4AC5C;
  --p-ii-dark: #8DB6DD;
  --p-iii-dark: #C2A9D6;
  --p-iv-dark: #86C9B2;
}

/* ---------- Hero ---------- */
.career-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.career-shield { width: clamp(150px, 18vw, 210px); height: auto; }
@media (max-width: 700px) {
  .career-hero-grid { grid-template-columns: 1fr; }
  .career-shield { width: 140px; grid-row: 1; }
}

/* ---------- Pillar cards ---------- */
.pillar-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 960px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 2px; padding: 22px 20px 20px; min-width: 0;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14, 26, 34, .08); }
.pillar[aria-pressed="true"] { background: var(--paper-dim); box-shadow: inset 0 0 0 2px var(--accent); }
.p-i { --accent: var(--p-i); }
.p-ii { --accent: var(--p-ii); }
.p-iii { --accent: var(--p-iii); }
.p-iv { --accent: var(--p-iv); }
.pillar-name { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pillar-fig { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.3rem); line-height: 1.1; margin-top: 6px; }
.pillar-label { font-weight: 600; font-size: .98rem; }
.pillar-note { font-size: .9rem; line-height: 1.45; color: var(--slate); margin-top: 4px; }

/* ---------- Four threads ---------- */
.threads { margin-top: 40px; background: #fff; border: 1px solid var(--line); padding: 22px 22px 16px; overflow-x: auto; }
.threads svg { min-width: 560px; width: 100%; height: auto; }
.thread line { stroke-width: 3; stroke-linecap: round; }
.thread circle { stroke: #fff; stroke-width: 2; }
.t-i line, .t-i circle { stroke: var(--p-i); }  .t-i circle { fill: var(--p-i); }
.t-ii line, .t-ii circle { stroke: var(--p-ii); } .t-ii circle { fill: var(--p-ii); }
.t-iii line, .t-iii circle { stroke: var(--p-iii); } .t-iii circle { fill: var(--p-iii); }
.t-iv line, .t-iv circle { stroke: var(--p-iv); } .t-iv circle { fill: var(--p-iv); }
.thread circle { stroke: #fff; }
.thread-axis text { font-family: var(--mono); font-size: 15px; fill: var(--slate); }
.threads figcaption { margin-top: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--slate); }
.threads.is-focused .thread { opacity: .2; }
.threads.is-focused .thread.is-on { opacity: 1; }

/* ---------- Record layout ---------- */
.record-layout { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 64px); align-items: flex-start; }
.record-main { flex: 999 1 560px; min-width: 0; }
.record-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.record-status { min-height: 1.6em; margin-top: 16px; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--brass-ink); }

/* ---------- The woven thread ---------- */
.thread-list { list-style: none; margin-top: 20px; border-left: 2px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 16px; }
.ms {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 2px; padding: 20px 22px;
  transition: opacity .25s ease, box-shadow .25s ease;
}
.ms::before {
  content: ""; position: absolute; left: -36px; top: 26px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper-dim); border: 2px solid var(--brass);
}
.ms h3 { font-family: var(--display); font-weight: 500; font-size: 1.28rem; line-height: 1.25; margin: 4px 0 6px; }
.ms p { color: var(--slate); font-size: .98rem; }
.ms .ms-when { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-ink); margin-top: 10px; }
.ms-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--display); font-weight: 600; font-size: .78rem; line-height: 1;
  padding: 5px 9px; border-radius: 2px; color: #fff;
}
.tag-i { background: var(--p-i); }
.tag-ii { background: var(--p-ii); }
.tag-iii { background: var(--p-iii); }
.tag-iv { background: var(--p-iv); }
.ms.is-hidden { display: none; }
.thread-list.is-tracing .ms { opacity: .38; }
.thread-list.is-tracing .ms.is-traced { opacity: 1; box-shadow: inset 0 0 0 2px var(--brass); }
.thread-end { margin-top: 24px; padding-left: 30px; font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--slate); }

/* ---------- Side cards ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 22px; }
.side-title { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.side-intro { margin-top: 6px; font-size: .94rem; color: var(--slate); }
.tech-group { margin: 18px 0 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tech {
  font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
  min-height: 44px; padding: 8px 12px; border-radius: 2px;
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.tech:hover { border-color: var(--brass); }
.tech[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tech .count { font-family: var(--mono); font-size: .76rem; color: var(--brass-ink); }
.tech[aria-pressed="true"] .count { color: var(--brass-bright); }
.edu-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.edu-list li { font-size: .94rem; color: var(--slate); line-height: 1.45; }
.edu-list span { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--brass-ink); }
.side-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--slate); }

/* ---------- Close ---------- */
.career-close .hero-actions { margin-top: 32px; }

/* Without JavaScript the filters do nothing, so hide the hints that promise interaction. */
html:not(.js) .section-intro.filter-hint, html:not(.js) .side-intro { display: none; }

@media (forced-colors: active) {
  .pillar, .tech { border: 1px solid ButtonText; }
  .tag { border: 1px solid CanvasText; }
}

@media print {
  .pillar, .ms, .side-card, .threads { background: #fff !important; color: #000 !important; break-inside: avoid; }
  .ms.is-hidden { display: block !important; }
  .thread-list.is-tracing .ms { opacity: 1 !important; }
  .career-close .hero-actions, .tech-groups, .side-intro { display: none !important; }
}
.thread-keys text { font-family: var(--display); font-size: 17px; font-weight: 600; fill: var(--ink); }
