:root { --navy:#003366; --gold:#daa520; --ink:#1e2933; --paper:#ffffff; --soft:#f6f8fb; }
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; color:var(--ink); background:#eef2f6; line-height:1.5; }
.cv-topbar { background:var(--navy); }
.cv-topbar-inner { max-width:1180px; margin:auto; padding:12px 24px; display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cv-topbar a { color:#fff; text-decoration:none; font-weight:700; }
.cv-page { max-width:1180px; margin:24px auto 40px; background:var(--paper); padding:34px 42px 46px; box-shadow:0 8px 28px rgba(0,0,0,.08); }
.cv-brand { display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:3px solid var(--gold); padding-bottom:18px; margin-bottom:24px; }
.cv-logo { width:210px; max-width:38vw; height:auto; }
.cv-person { display:grid; grid-template-columns:130px minmax(0,1fr); gap:22px; align-items:center; margin:8px 0 28px; }
.cv-person img { width:130px; height:155px; object-fit:cover; border-radius:5px; border:2px solid var(--gold); }
.cv-person h1 { margin:0 0 6px; color:var(--navy); font-size:2rem; line-height:1.15; }
.cv-person .role { margin:0 0 5px; color:#9a7214; font-weight:700; font-size:1.05rem; }
.cv-person .subrole { margin:0 0 10px; }
.cv-contact { font-size:.95rem; color:#4b5563; }
.cv-section-title { color:var(--navy); font-size:1.28rem; margin:26px 0 10px; padding-bottom:5px; border-bottom:2px solid var(--gold); }
.cv-subsection-title { color:var(--navy); font-size:1.08rem; margin:20px 0 7px; }
.cv-role { color:var(--navy); font-weight:700; margin:11px 0 0; }
.cv-meta { color:#68737d; margin:0 0 6px; font-size:.94rem; }
.cv-detail { margin:2px 0 8px; }
.cv-list { margin:6px 0 12px 22px; padding-left:10px; }
.cv-list li { margin:4px 0; }
.cv-content p { margin:7px 0; }
.back-buttons { display:flex; gap:10px; flex-wrap:wrap; margin:28px 0 6px; }
.back-buttons a { display:inline-block; padding:9px 15px; background:var(--navy); color:#fff; text-decoration:none; font-weight:700; border-radius:4px; }
.principal-technical-work { margin-top:36px; padding-top:24px; border-top:3px solid var(--gold); }
.gallery-heading { color:var(--navy); font-size:1.45rem; font-weight:800; margin-bottom:18px; }
.project-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gallery-card { margin:0; border:1px solid #dbe1e7; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.05); }
.gallery-image { background:#f7f9fb; padding:10px; height:210px; display:flex; align-items:center; justify-content:center; }
.gallery-image img { max-width:100%; max-height:100%; object-fit:contain; }
.gallery-card figcaption { padding:10px 12px; text-align:center; font-weight:700; color:var(--navy); }
@media (max-width:800px) {
  .cv-page { margin:0; padding:24px 18px 36px; }
  .cv-person { grid-template-columns:95px minmax(0,1fr); }
  .cv-person img { width:95px; height:118px; }
  .cv-person h1 { font-size:1.5rem; }
  .project-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px) { .project-gallery { grid-template-columns:1fr; } }
@media print {
  body { background:#fff; }
  .cv-topbar, .back-buttons { display:none; }
  .cv-page { margin:0; max-width:none; box-shadow:none; padding:0; }
  .project-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.related-buttons, .service-page-buttons, .cv-related-buttons {
  display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 6px;
}
.related-buttons a, .service-page-buttons a, .cv-related-buttons a {
  display:inline-block; padding:10px 17px; border-radius:5px;
  background:#003366; color:#fff !important; text-decoration:none;
  font-weight:700; border:2px solid #003366; line-height:1.2;
}
.related-buttons a:hover, .service-page-buttons a:hover, .cv-related-buttons a:hover,
.related-buttons a:focus, .service-page-buttons a:focus, .cv-related-buttons a:focus {
  background:#daa520; border-color:#daa520; color:#003366 !important;
}
.crossref-note {
  margin-top:22px; padding:16px 18px; background:#f7f9fb;
  border-left:4px solid #daa520; border-radius:3px;
}
.crossref-note strong { color:#003366; }

.cv-numbered { margin:8px 0 18px 24px; padding-left:20px; }
.cv-numbered > li { margin:7px 0; padding-left:4px; }
.cv-bullets { margin:8px 0 18px 22px; padding-left:14px; }
.cv-bullets > li { margin:5px 0; }
