:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #5b6b7a;
  --accent: #5b8def;
  --accent-2: #9dd6df;
  --surface: #f7fafc;
  --border: #e5e7eb;
  --badge: #eef2ff;
}
@media (prefers-color-scheme: dark){
  :root{ /* fixed light palette */ }
}
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; line-height:1.5; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.skip-link{ position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left:1rem; top:1rem; width:auto; height:auto; padding:.5rem 1rem; background:#fff; border:2px solid var(--accent); border-radius:12px; z-index:1000; }

.site-header{ background: var(--surface); border-bottom:1px solid var(--border); }
.profile{ display:flex; gap:1.25rem; align-items:center; padding: 1.25rem 0; }
.headshot{
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  background: #fff;
}
.profile-meta .name{ margin:.25rem 0 0; font-size: 1.75rem; }
.profile-meta .title{ margin:.25rem 0 .5rem; color: var(--muted); }
.actions{ display:flex; gap:.5rem; flex-wrap: wrap; margin:.5rem 0; }
.contacts{ display:flex; gap:.75rem; flex-wrap: wrap; color:var(--muted); }
.icon{ padding:.15rem .4rem; background:var(--surface); border:1px solid var(--border); border-radius:8px; }

.btn{ display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .8rem; border-radius:10px; background: var(--accent-2); color:#0b3343; border:1px solid var(--border); cursor:pointer; }
.btn.secondary{ background:#fff; color:var(--text); }
.btn:hover{ filter: brightness(.97); }

.tabs{ position: sticky; top:0; z-index: 20; display:flex; gap:.5rem; flex-wrap: wrap; background: var(--bg); border-bottom:1px solid var(--border); padding:.5rem 1rem; }
.tab{ appearance:none; border:none; background:#fff; color:var(--text); padding:.5rem .75rem; border-radius:999px; border:1px solid var(--border); cursor:pointer; }
.tab.active, .tab:focus{ outline: none; border-color: var(--accent); }
.tab.hidden{ display:none; }

.container .section-header{ display:flex; align-items:center; justify-content: space-between; gap:1rem; margin: 1rem 0 .5rem; }
.section-header h2{ margin:0; }
.tools{ display:flex; gap:.5rem; flex-wrap: wrap; }
.search{ width: min(420px, 100%); padding:.5rem .75rem; border:1px solid var(--border); border-radius:10px; background:#fff; }

.cards{ list-style:none; padding:0; margin:0; display:grid; gap:.75rem; }
.card{ background:#fff; border:1px solid var(--border); border-radius:14px; padding: .8rem 1rem; }
.grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: .75rem; }
.stack{ display:grid; gap:.75rem; }

.badges{ display:flex; gap:.35rem; flex-wrap: wrap; margin-top:.25rem; }
.badge{ display:inline-block; padding:.15rem .5rem; font-size:.8rem; border-radius:999px; background:var(--badge); border:1px solid var(--border); }

.external-link{ margin:.25rem 0 .75rem; }
.site-footer{ margin-top: 3rem; border-top:1px solid var(--border); padding: 1.25rem 0; color: var(--muted); }
.footer-links{ display:flex; gap:.75rem; flex-wrap: wrap; }

.panel{ display:none; }
.panel.active{ display:block; }

/* Focus states */
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* Added consistent side padding for all main sections */
main, .tabs, .panel {
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

main,
.panel,
.tabs,
.site-header .container,
.site-footer .container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Panels inherit horizontal padding; keep visibility rules */
.panel { display: none; }
.panel.active { display: block; }
/* === Adjusted global margins with smaller gutters and headshot alignment === */
main,
.panel,
.tabs,
.site-header,
.site-footer {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

/* Profile header section above tabs (headshot, name, bio) */
.profile-header {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

.panel { display: none; }
.panel.active { display: block; }

/* === Larger headshot in profile header === */
.profile-header img {
  max-width: 220px;
  height: auto;
  border-radius: 50%;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  .profile-header img {
    max-width: 150px;
  }
}

@media (max-width: 600px){
  .headshot{
    width: 150px;
    height: 150px;
  }
}

/* Increased font size for tabs */
.tabs .tab, [role='tab'] {
    font-size: 1.1em;
}


.logo{ max-height:65px; width:auto; object-fit:contain; align-self:flex-start; margin-top:-4px; margin-left:.5rem; margin-left:auto; }

/* Enforce dark orange bold inside tab panels (high specificity) */
.panel b, .panel strong,
.tab-content b, .tab-content strong,
[role="tabpanel"] b, [role="tabpanel"] strong {
  color: darkorange !important;
}
