/* EXISTING WORK PAGE
   Shared layout, colours and fonts come from style.css.
   This file only adds what is unique to this page. */

/* LINKEDIN / HONEST MODE: only one set of words shows at a time */
.ew-page[data-mode="honest"] .say-linkedin,
.ew-page[data-mode="linkedin"] .say-honest { display: none !important; }

.ew-page .page-hero .intro { min-height: 3.2em; }
.ew-switch {
  display: inline-flex; margin-top: 22px; padding: 4px; gap: 4px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--background);
}
.ew-switch button {
  border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 13px; font-weight: 800; transition: background-color .25s, color .25s;
}
.ew-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ew-switch button:not([aria-pressed="true"]):hover { color: var(--text); }
.ew-switch-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-style: italic; }

/* Card headings on this page sit right above their content */
.ew-page .card > h2 { margin-bottom: 18px; }
.ew-page .card > h2 + .card-intro { margin-top: -10px; }

/* STATS */
.ew-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ew-stats li { background: var(--background); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.ew-stat-value { display: block; font-size: clamp(36px, 5vw, 52px); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: var(--accent); }
.ew-stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* WORK HISTORY */
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.job {
  display: flex; flex-direction: column; padding: 18px 20px; border-radius: 16px;
  background: var(--background); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.job:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; line-height: 1.25; }
.job-where { margin: 3px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.job-aside { color: var(--muted); font-weight: 500; }
.job-when { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 10px; white-space: nowrap; }
.job ul { margin: 14px 0 16px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.job li + li { margin-top: 5px; }
.job-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.job-pay { font-size: 12px; color: var(--muted); font-style: italic; }

/* INCIDENT REPORTS (styled like help desk tickets) */
.incident-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.incident { padding: 16px 18px; border-radius: 16px; background: var(--background); border: 1px solid var(--border); border-left: 3px solid var(--ok); }
.incident-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.incident-id { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.incident-status { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ok); }
.incident-status::before { content: "✓ "; }
.incident h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.02em; }
.incident dl { margin: 0; display: grid; gap: 7px; }
.incident dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.incident dt { color: var(--muted); }
.incident dd { margin: 0; }

/* REFERENCES + CALL TO ACTION */
.ew-cta { text-align: center; padding: 34px 26px; }
.ew-cta h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.ew-cta .btn { padding: 12px 22px; font-size: 14px; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  .job { transition: none; }
}

/* TABLET AND MOBILE */
@media (max-width: 960px) {
  .ew-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .job-list, .incident-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ew-switch button { padding: 8px 13px; font-size: 12px; }
  .incident dl > div { grid-template-columns: 1fr; gap: 1px; }
  .ew-stats { gap: 8px; }
  .ew-stats li { padding: 14px; }
}
