.work-page .topbar { position: sticky; top: 0; }
.work-page .page-hero.compact-hero { display: block; padding: 32px 20px 24px; text-align: center; }
.work-page .page-hero .work-marketing-line { max-width: 880px; margin: 0 auto; color: var(--text); font: 500 28px/1.4 Arial,Helvetica,sans-serif; }
.work-page .work-skills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; list-style: none; color: #b9c2c8; font: 400 12px/1.6 Arial,Helvetica,sans-serif; }
.work-page .work-skills li { margin: 0; padding: 0; }
.work-page .portfolio-tabs > .tab-list {
  position: sticky;
  top: var(--portfolio-header-height, 72px);
  z-index: 15;
  width: 100%;
  max-width: none;
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.work-page .portfolio-sections .tab-list a.tab-button {
  position: relative;
  min-height: 48px;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #aeb5bb;
  font: 500 14px/1.4 Arial,Helvetica,sans-serif;
  text-transform: none;
}
.work-page .portfolio-sections .tab-list a.tab-button:hover,
.work-page .portfolio-sections .tab-list a.tab-button[aria-current="location"] {
  color: var(--text);
  background: none;
  box-shadow: none;
}
.work-page .portfolio-sections .tab-list a.tab-button[aria-current="location"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e9edf0;
}
@media(max-width:680px) {
  .work-page .page-hero.compact-hero { padding: 24px 4px 20px; }
  .work-page .page-hero .work-marketing-line { font-size: 21px; }
  .work-page .portfolio-sections .tab-list a.tab-button { font-size: 13px; }
}
.work-page .portfolio-category {
  scroll-margin-top: calc(var(--portfolio-header-height, 72px) + var(--portfolio-category-nav-height, 62px) + 12px);
}
.work-page .repo-description { position: static; display: block; }
.work-page .development-grid .project-card-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: -18px -18px 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--bevel-control);
}
.work-page .development-grid .project-card-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.work-page .development-grid .web-card > figure {
  margin-top: 0;
}
.work-page .development-grid .web-card > b {
  margin-bottom: 10px;
}
.work-page .development-grid .web-card .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}
.work-page .development-grid .actions .button-link {
  min-height: 26px;
  padding: 3px 6px;
  font-size: 9.5px;
  font-weight: 400;
  gap: 4px;
  color: var(--muted);
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 244, 220, .05), rgba(0, 0, 0, .1)), rgba(255, 255, 255, .018);
  box-shadow: var(--bevel-control);
}
.work-page .development-grid .actions .button-link:hover {
  color: var(--text);
  border-color: var(--muted);
  background: rgba(255, 255, 255, .07);
}
.work-page .development-grid .actions .external-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.work-page .external-page-icon {
  width: 12px;
  height: 12px;
  flex: none;
  filter: invert(1);
  opacity: .9;
}
.work-page .development-grid .actions .download-icon {
  width: 14px;
  height: 14px;
}
.work-page .development-grid .web-card .actions a.repo-link {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  margin: 0 0 0 auto;
  padding: 2px 0 2px 4px;
  color: var(--muted);
  font: 600 11px/1.4 Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.work-page .development-grid .web-card .actions a.repo-link:hover { color: var(--accent); text-decoration: underline; }
.work-page .repo-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work-page .repo-link img { width: 14px; height: 14px; filter: invert(1); opacity: .85; }
.work-page .development-grid .web-card > .project-technologies {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.work-page .project-technologies strong {
  display: inline;
  color: var(--text);
  font-size: inherit;
  font-weight: 600;
}
@media (min-width: 1000px) {
  .work-page #games-panel > .development-grid,
  .work-page #apps-panel > .development-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .work-page .portfolio-tabs > .tab-list { gap: 4px; padding-block: 6px; }
  .work-page .portfolio-tabs > .tab-list .tab-button { font-size: 11px; }
}
