:root {
  --blue: #3b5998;
  --blue-dark: #2c4678;
  --link: #0000cc;
  --text: #222;
  --muted: #777;
  --border: #b9b9b9;
  --border-soft: #ddd;
  --panel: #f7f7f7;
  --stripe: #f3f3f3;
  --green: #008000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1120px, calc(100% - 28px)); margin-inline: auto; }
.skip-link { position: fixed; top: -50px; left: 10px; z-index: 100; padding: 8px 12px; color: #fff; background: var(--blue); }
.skip-link:focus { top: 10px; }

.page-header { padding-top: 8px; }
.topline { display: flex; justify-content: space-between; color: #666; font-size: 11px; }
.topline nav { display: flex; gap: 5px; }
.identity { display: flex; align-items: flex-end; justify-content: space-between; min-height: 84px; padding: 13px 4px 14px; }
.identity > p { max-width: 410px; margin: 0 0 5px; color: #777; text-align: right; font-size: 12px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: #222; font-size: 31px; line-height: 1; letter-spacing: -1.6px; }
.wordmark:hover { text-decoration: none; }
.wordmark strong { color: var(--blue); }
.mark-bars { display: flex; align-items: flex-end; gap: 3px; height: 38px; }
.mark-bars i { display: block; width: 7px; background: var(--blue); }
.mark-bars i:nth-child(1) { height: 21px; }
.mark-bars i:nth-child(2) { height: 32px; background: #eeaa00; }
.mark-bars i:nth-child(3) { height: 38px; background: #cc3333; }

.nav-wrap { border: 1px solid #aaa; border-left: 0; border-right: 0; background: linear-gradient(#f9f9f9, #e5e5e5); box-shadow: inset 0 1px #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.primary-nav { display: flex; }
.primary-nav a, .resume-nav { display: block; padding: 10px 16px 9px; color: #222; border-right: 1px solid #ccc; font-size: 11px; font-weight: bold; letter-spacing: .2px; }
.primary-nav a:first-child { border-left: 1px solid #ccc; }
.primary-nav a:hover, .primary-nav a.active { color: #fff; background: var(--blue); text-decoration: none; }
.resume-nav { color: var(--blue-dark); border-left: 1px solid #ccc; }
.nav-toggle { display: none; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 18px; align-items: start; padding-top: 18px; padding-bottom: 40px; }
.main-column { min-width: 0; }
.box, .side-box { border: 1px solid var(--border); border-radius: 3px; background: #fff; }
.box-title, .side-box > h2 { margin: 0; padding: 6px 9px; color: #222; background: linear-gradient(#fff, #ededed); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: bold; }
.intro-content { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 20px; }
.initials { display: grid; place-items: center; width: 88px; height: 88px; color: #fff; background: var(--blue); border: 1px solid var(--blue-dark); font-size: 27px; font-weight: bold; }
.handle-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.handle-line h1 { margin: 0; font-size: 24px; }
.handle { color: #cc0000; font-size: 16px; font-weight: bold; }
.rank { margin: 2px 0 10px; color: #a00; font-weight: bold; }
.summary { max-width: 740px; margin: 0; font-size: 14px; line-height: 1.55; }
.profile-links { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.button { display: inline-block; padding: 5px 13px; color: #fff; background: linear-gradient(#6d85ba, var(--blue)); border: 1px solid var(--blue-dark); border-radius: 2px; font-weight: bold; }
.button:hover { background: var(--blue-dark); text-decoration: none; }

.section-block, .updates { margin-top: 22px; }
.section-block > h2, .updates > h2 { margin: 0 0 9px; padding-bottom: 4px; color: var(--blue-dark); border-bottom: 1px solid #888; font-size: 17px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { padding: 7px 8px; background: linear-gradient(#fff, #e8e8e8); border-bottom: 1px solid var(--border); border-right: 1px solid #d3d3d3; text-align: left; font-size: 11px; }
td { padding: 8px; border-bottom: 1px solid var(--border-soft); border-right: 1px solid #e8e8e8; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--stripe); }
tbody tr:hover { background: #fffde1; }
.experience-table th:first-child, .experience-table td:first-child { width: 34px; text-align: center; font-weight: bold; }
.experience-table th:nth-child(4), .experience-table td:nth-child(4) { white-space: nowrap; }
.verdict { color: var(--green); font-weight: bold; }
.active-verdict { color: #cc0000; }

.post { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 3px; }
.post header { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--border-soft); }
.post header h3 { margin: 0; font-size: 14px; }
.post header > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.post-body { padding: 11px 13px 10px; }
.post-body p { margin: 0 0 9px; font-size: 13px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tags span { color: #555; font-size: 11px; }
.tags span::before { content: "*"; color: #999; margin-right: 2px; }

.skills-grid { border: 1px solid var(--border); }
.skill-row { display: grid; grid-template-columns: 86px minmax(210px, .85fr) 1.4fr; align-items: center; gap: 12px; min-height: 54px; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.skill-row:last-child { border-bottom: 0; }
.skill-row:nth-child(even) { background: var(--stripe); }
.skill-row p { margin: 0; color: #555; }
.skill-level { font-weight: bold; }
.level-red { color: #aa0000; }.level-orange { color: #ff8c00; }.level-violet { color: #a0a; }.level-blue { color: #0000ff; }.level-cyan { color: #03a89e; }

.leadership-box { margin-top: 22px; }
.leadership-content { display: grid; grid-template-columns: 1fr 155px; gap: 25px; align-items: center; padding: 16px; }
.leadership-content h2 { margin: 0; font-size: 18px; }
.leadership-content p:last-child { margin-bottom: 0; }
.number-stat { padding-left: 22px; border-left: 1px solid var(--border-soft); text-align: center; }
.number-stat strong { display: block; color: var(--blue); font-size: 31px; }
.number-stat span { color: var(--muted); font-size: 11px; }

.education-row { display: grid; grid-template-columns: 1fr 135px 135px; border: 1px solid var(--border); }
.education-row > div { padding: 13px; border-right: 1px solid var(--border-soft); }
.education-row > div:last-child { border-right: 0; }
.education-row h3 { margin: 0 0 4px; font-size: 14px; }.education-row p { margin: 0; }
.education-row strong, .education-row span { display: block; }.education-row span { color: var(--muted); font-size: 11px; }

.sidebar { display: grid; gap: 14px; }
.side-box > h2 { font-size: 11px; }
.side-content { padding: 10px; }
.sidebar-handle { margin: 0 0 2px; color: #cc0000; font-size: 17px; font-weight: bold; }
.profile-card > p { margin-top: 0; }
.profile-card dl { margin: 10px 0 0; }
.profile-card dl div { display: grid; grid-template-columns: 55px 1fr; padding: 5px 0; border-top: 1px solid #eee; }
.profile-card dt { color: #777; }.profile-card dd { margin: 0; overflow-wrap: anywhere; }
.stats-list { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.stats-list div { padding: 11px 8px; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); text-align: center; }
.stats-list div:nth-child(even) { border-right: 0; }.stats-list div:nth-last-child(-n+2) { border-bottom: 0; }
.stats-list strong, .stats-list span { display: block; }.stats-list strong { color: var(--blue); font-size: 19px; }.stats-list span { color: var(--muted); font-size: 10px; }
.side-list { margin: 0; padding: 7px 10px 8px 26px; }.side-list li { padding: 4px 0; }

.site-footer { padding: 18px 0 30px; color: #777; background: #f5f5f5; border-top: 1px solid #bbb; font-size: 11px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, 1fr); }
  .identity > p { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 12px; }
  .shell { width: min(100% - 16px, 1120px); }
  .topline > span { display: none; }.topline { justify-content: flex-end; }
  .identity { min-height: 70px; padding-block: 10px; }.wordmark { font-size: 27px; }
  .nav-inner { position: relative; align-items: stretch; flex-direction: column; }
  .nav-toggle { display: block; padding: 9px 10px; border: 0; background: transparent; text-align: left; font-weight: bold; }
  .primary-nav { display: none; flex-direction: column; border-top: 1px solid #ccc; }.primary-nav.open { display: flex; }
  .primary-nav a, .primary-nav a:first-child { border: 0; border-bottom: 1px solid #d2d2d2; }
  .resume-nav { position: absolute; top: 0; right: 0; border-left: 1px solid #ccc; border-right: 0; }
  .intro-content { grid-template-columns: 1fr; padding: 14px; }.initials { width: 68px; height: 68px; }
  .summary { font-size: 13px; }
  .skill-row { grid-template-columns: 1fr; gap: 3px; padding: 10px; }
  .leadership-content { grid-template-columns: 1fr; }.number-stat { padding: 13px 0 0; border-top: 1px solid var(--border-soft); border-left: 0; }
  .education-row { grid-template-columns: 1fr 1fr; }.education-row > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border-soft); }.education-row > div:nth-child(2) { border-right: 1px solid var(--border-soft); }
  .sidebar { grid-template-columns: 1fr; }
  .site-footer .shell { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
