/* Enhancement layer: new UI additions live here instead of inflating public/style.css. */

.selected-work {
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 219, 112, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.1), rgba(93, 172, 255, 0.045) 58%, rgba(255, 255, 255, 0.02));
}

.selected-work-intro { max-width: 720px; }
.selected-work-kicker { margin: 0 0 6px; color: var(--orange-yellow-crayola); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.selected-work h3 { margin: 0; color: var(--white-2); font-size: clamp(20px, 3vw, 27px); line-height: 1.15; }
.selected-work-intro > p:last-child { margin: 10px 0 0; color: var(--light-gray); line-height: 1.55; }
.selected-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.selected-work-card { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; color: var(--light-gray); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(17,17,19,.72); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.selected-work-card:hover, .selected-work-card:focus-visible { transform: translateY(-3px); border-color: rgba(255,219,112,.5); background: rgba(255,219,112,.09); outline: none; }
.selected-work-card span { color: var(--orange-yellow-crayola); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.selected-work-card strong { margin-top: 12px; color: var(--white-2); font-size: 18px; line-height: 1.12; }
.selected-work-card small { margin-top: 9px; color: var(--light-gray); font-size: 12px; line-height: 1.45; }
.selected-work-card b { margin-top: auto; padding-top: 14px; color: var(--orange-yellow-crayola); font-size: 12px; }

.sidebar-changelog {
  margin-top: 16px;
  border-top: 1px solid var(--jet);
  padding-top: 13px;
}

.sidebar-changelog summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--white-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.sidebar-changelog summary::-webkit-details-marker { display: none; }
.sidebar-changelog summary > span { display: inline-flex; align-items: center; gap: 7px; }
.sidebar-changelog summary ion-icon { color: var(--orange-yellow-crayola); font-size: 17px; }
.sidebar-changelog-chevron { transition: transform 160ms ease; }
.sidebar-changelog[open] .sidebar-changelog-chevron { transform: rotate(180deg); }
.sidebar-changelog summary:focus-visible { outline: 2px solid rgba(255, 219, 112, 0.55); outline-offset: 5px; border-radius: 4px; }
.sidebar-changelog-content { padding-top: 11px; }
.sidebar-changelog-intro { margin: 0; color: var(--light-gray); font-size: 11px; line-height: 1.5; }
.sidebar-changelog-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.sidebar-changelog-list li { display: grid; grid-template-columns: 67px minmax(0, 1fr); gap: 8px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.075); }
.sidebar-changelog-list time { color: var(--orange-yellow-crayola); font-size: 9px; font-weight: 800; }
.sidebar-changelog-list strong { color: var(--white-2); font-size: 11px; line-height: 1.25; }
.sidebar-changelog-list p { margin: 3px 0 0; color: var(--light-gray-70); font-size: 10px; line-height: 1.45; }

.sidebar-rail { display: grid; gap: 14px; align-self: flex-start; }
.release-sidebar { padding: 15px; border: 1px solid var(--jet); border-radius: 14px; background: var(--eerie-black-2); box-shadow: var(--shadow-1); }
.release-sidebar .sidebar-changelog { margin: 0; padding: 0; border: 0; }
.release-sidebar .sidebar-changelog summary {
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 219, 112, 0.26);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.release-sidebar .sidebar-changelog summary:hover,
.release-sidebar .sidebar-changelog summary:focus-visible {
  border-color: var(--orange-yellow-crayola);
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.19), rgba(255, 255, 255, 0.06));
  transform: translateY(-1px);
}
.release-sidebar .sidebar-changelog[open] summary {
  border-color: rgba(255, 219, 112, 0.55);
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  background: rgba(255, 219, 112, 0.13);
}
.release-sidebar .sidebar-changelog-content {
  margin-top: 8px;
  padding: 0 3px 2px;
}
.release-sidebar .sidebar-changelog summary > span::after {
  content: 'View updates';
  margin-left: 5px;
  color: var(--light-gray-70);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.release-sidebar .sidebar-changelog[open] summary > span::after { content: 'Hide updates'; }

@media (max-width: 1023px) {
  .sidebar-rail { width: min(520px, 100%); gap: 12px; margin-inline: auto; margin-bottom: 30px; }
  .sidebar-rail .sidebar { margin-bottom: 0; }
}

@media (max-width: 580px) {
  .navbar-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 0 4px;
  }

  .navbar-item { min-width: 0; }

  .navbar-link {
    width: 100%;
    min-height: 52px;
    padding: 8px 2px;
    font-size: 0;
  }

  .navbar-link::before {
    content: attr(data-mobile-label);
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .sidebar-rail { position: sticky; top: 32px; width: 250px; min-width: 250px; flex-shrink: 0; }
  .sidebar-rail .sidebar { position: static; width: 100%; min-width: 0; max-height: none; margin: 0; padding-top: 0; }
}

@media (min-width: 1250px) {
  .sidebar-rail { width: 280px; min-width: 280px; }
}

.project-proof { margin: 18px 0; padding: 16px; border: 1px solid rgba(255, 219, 112, .2); border-radius: 12px; background: rgba(255, 219, 112, .045); }
.project-proof h3 { margin: 0 0 12px; color: var(--orange-yellow-crayola); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.project-proof dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.project-proof dl div { min-width: 0; }
.project-proof dt { color: var(--light-gray-70); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.project-proof dd { margin: 4px 0 0; color: var(--white-2); font-size: 12px; line-height: 1.45; }
.project-proof-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.project-proof-links a { padding: 7px 9px; color: var(--orange-yellow-crayola); border: 1px solid rgba(255, 219, 112, .25); border-radius: 8px; font-size: 11px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5000; padding: 10px 14px; color: #171717; background: var(--orange-yellow-crayola); border-radius: 8px; font-weight: 800; transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 3px; }
.role-paths { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.role-paths a { padding: 8px 10px; color: var(--light-gray); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; font-size: 12px; }
.role-paths a:hover, .role-paths a:focus-visible { color: var(--orange-yellow-crayola); border-color: rgba(255,219,112,.46); outline: none; }
.role-path-brief { margin: 0 0 22px; padding: 18px; border: 1px solid rgba(93,172,255,.24); border-radius: 14px; background: linear-gradient(135deg, rgba(93,172,255,.09), rgba(255,219,112,.04)); }
.role-path-brief h3 { margin: 0; color: var(--white-2); font-size: 20px; }
.role-path-brief > p { margin: 9px 0; color: var(--light-gray); line-height: 1.5; }
.role-path-brief ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.role-path-brief button, .role-path-brief > a { padding: 8px 10px; color: var(--orange-yellow-crayola); border: 1px solid rgba(255,219,112,.25); border-radius: 8px; background: rgba(17,17,19,.45); font: inherit; font-size: 12px; cursor: pointer; }
.role-path-brief .role-path-evidence { font-size: 12px; }

.workflow-section { margin: 0 0 26px; padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(93,172,255,.18); border-radius: 14px; background: linear-gradient(135deg, rgba(93,172,255,.07), rgba(255,255,255,.018)); }
.workflow-heading { max-width: 720px; }
.workflow-heading h3 { margin: 0; color: var(--white-2); font-size: clamp(20px, 3vw, 26px); line-height: 1.2; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.workflow-grid li { min-height: 132px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(17,17,19,.56); }
.workflow-grid strong { display: block; color: var(--orange-yellow-crayola); font-size: 12px; }
.workflow-grid span { display: block; margin-top: 8px; color: var(--light-gray); font-size: 12px; line-height: 1.45; }
.workflow-pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.workflow-pill-grid span { padding: 8px 10px; color: var(--light-gray); border: 1px solid rgba(255,219,112,.18); border-radius: 999px; background: rgba(255,219,112,.05); font-size: 12px; }
@media (max-width: 760px) { .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.project-img {
  position: relative;
}

.project-placeholder-hidden {
  opacity: 0;
}

.project-preview-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  color: var(--white-2);
  background:
    linear-gradient(145deg, rgba(255, 219, 112, 0.14), transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(255, 219, 112, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(34, 34, 37, 0.98), rgba(16, 16, 18, 0.98));
  border: 1px solid rgba(255, 219, 112, 0.16);
  border-radius: inherit;
}

.project-img .project-item-icon-box {
  z-index: 2;
}

.project-preview-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 219, 112, 0.14);
  border-radius: 50%;
}

.project-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--light-gray-70);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-preview-topline strong {
  color: var(--orange-yellow-crayola);
  font-size: 10px;
}

.project-preview-name {
  max-width: 86%;
  color: var(--white-2);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
}

.project-preview-card p {
  max-width: 92%;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.42;
}

.project-preview-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-preview-tech span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 219, 112, 0.18);
  border-radius: 999px;
  color: var(--orange-yellow-crayola);
  background: rgba(255, 219, 112, 0.07);
  font-size: 10px;
  font-weight: 700;
}

.timeline-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-filter {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--light-gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.timeline-filter:hover,
.timeline-filter:focus-visible {
  color: var(--orange-yellow-crayola);
  border-color: rgba(255, 219, 112, 0.28);
}

.timeline-filter.active {
  color: var(--smoky-black);
  background: var(--orange-yellow-crayola);
  border-color: transparent;
}

.project-explorer,
.portfolio-changelog {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 219, 112, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.07), rgba(24, 24, 26, 0.72) 42%);
}

.project-explorer-heading,
.portfolio-changelog-heading,
.project-comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-explorer-heading > p,
.portfolio-changelog-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--light-gray);
  font-size: 13px;
  line-height: 1.55;
}

.project-explorer-kicker,
.portfolio-changelog-kicker {
  margin: 0 0 5px;
  color: var(--orange-yellow-crayola);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-explorer h3,
.portfolio-changelog h3,
.project-comparison h4 {
  margin: 0;
  color: var(--white-2);
}

.project-explorer-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.project-explorer-filters label {
  display: grid;
  gap: 5px;
  color: var(--light-gray-70);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-explorer-filters select {
  min-width: 0;
  min-height: 39px;
  padding: 8px 30px 8px 10px;
  color: var(--white-2);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(8, 8, 10, 0.55);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.project-explorer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 14px 0 0;
  color: var(--light-gray);
  font-size: 12px;
}

.project-explorer-status strong { color: var(--orange-yellow-crayola); }

.project-explorer button,
.project-comparison button {
  color: var(--orange-yellow-crayola);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.project-explorer button:hover,
.project-explorer button:focus-visible,
.project-comparison button:hover,
.project-comparison button:focus-visible {
  color: var(--white-2);
  outline: none;
}

.project-explorer-timeline {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.project-explorer-timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.project-explorer-year { color: var(--orange-yellow-crayola); font-size: 11px; font-weight: 800; }
.project-explorer-timeline strong,
.project-explorer-timeline small,
.project-explorer-timeline p { display: block; }
.project-explorer-timeline strong { color: var(--white-2); font-size: 13px; }
.project-explorer-timeline small { margin-top: 3px; color: var(--light-gray); font-size: 11px; }
.project-explorer-timeline p { margin: 4px 0 0; color: var(--light-gray-70); font-size: 10px; }
.project-explorer-actions { display: flex; gap: 8px; }
.project-explorer-actions button:last-child { padding: 6px 8px; border: 1px solid rgba(255, 219, 112, 0.24); border-radius: 7px; background: rgba(255, 219, 112, 0.06); }
.project-explorer-empty { display: block !important; color: var(--light-gray); font-size: 13px; }

.project-comparison { margin-top: 17px; padding-top: 16px; border-top: 1px solid rgba(255, 219, 112, 0.18); }
.project-comparison-heading button { padding: 7px 9px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 7px; }
.project-comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.project-comparison-grid article { display: flex; flex-direction: column; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; background: rgba(10, 10, 12, 0.34); }
.project-comparison-grid h5 { margin: 0; color: var(--orange-yellow-crayola); font-size: 14px; }
.project-comparison-grid dl { display: grid; gap: 9px; margin: 13px 0; }
.project-comparison-grid dt { color: var(--light-gray-70); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-comparison-grid dd { margin: 3px 0 0; color: var(--light-gray); font-size: 11px; line-height: 1.48; }
.project-comparison-grid button { margin-top: auto; text-align: left; }
.project-comparison-empty { margin: 12px 0 0; color: var(--light-gray); font-size: 12px; }

.project-explorer-hidden { display: none !important; }

.portfolio-changelog-list { display: grid; gap: 13px; margin: 17px 0 0; padding: 0; list-style: none; }
.portfolio-changelog-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.08); }
.portfolio-changelog-list time { color: var(--orange-yellow-crayola); font-size: 11px; font-weight: 800; }
.portfolio-changelog-list h4 { margin: 0; color: var(--white-2); font-size: 14px; }
.portfolio-changelog-list p { margin: 5px 0 0; color: var(--light-gray); font-size: 12px; line-height: 1.55; }

@media (max-width: 760px) {
  .project-explorer,
  .portfolio-changelog { padding: 14px; }
  .project-explorer-heading,
  .portfolio-changelog-heading,
  .project-comparison-heading { display: grid; gap: 8px; }
  .project-explorer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-explorer-timeline li { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .project-explorer-actions { grid-column: 2; }
  .project-comparison-grid { grid-template-columns: 1fr; }
  .portfolio-changelog-list li { grid-template-columns: 1fr; gap: 5px; }
}

.contact-flow-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-flow-input {
  min-height: 38px;
  width: 100%;
  padding: 9px 10px;
  color: var(--white-2);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12px;
  outline: none;
}

.contact-flow-input:focus {
  border-color: rgba(255, 219, 112, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 219, 112, 0.08);
}

.contact-flow-send[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.contact-flow-card .contact-flow-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-flow-card .contact-flow-message {
  width: 100%;
}

.analytics-remote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--light-gray-70);
  font-size: 11px;
}

.analytics-remote-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-yellow-crayola);
}

.public-analytics-section {
  margin: 30px 0;
}

.public-analytics-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.public-analytics-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--orange-yellow-crayola);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-analytics-freshness {
  flex: none;
  color: var(--light-gray-70);
  font-size: 12px;
}

.public-analytics-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.2fr 1.2fr 0.82fr;
  gap: 10px;
}

.public-analytics-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.public-analytics-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--light-gray-70);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-analytics-card strong {
  display: block;
  color: var(--white-2);
  font-size: 16px;
  line-height: 1.25;
}

.public-analytics-card p {
  margin-top: 8px;
  color: var(--light-gray);
  font-size: 12px;
  line-height: 1.45;
}

.honor-project-link {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, auto) 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 10px;
  color: var(--light-gray);
  border: 1px solid rgba(255, 219, 112, 0.2);
  border-radius: 8px;
  background: rgba(255, 219, 112, 0.06);
  text-align: left;
}

.honor-project-link ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 18px;
}

.honor-project-link span {
  color: var(--light-gray-70);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.honor-project-link strong {
  min-width: 0;
  color: var(--white-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.honor-project-link:hover,
.honor-project-link:focus-visible {
  border-color: rgba(255, 219, 112, 0.48);
  background: rgba(255, 219, 112, 0.1);
}

.project-honor-links {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: 32px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.project-item {
  position: relative;
}

.project-honor-links-label,
.project-honor-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.project-honor-links-label {
  flex: 0 0 auto;
  justify-content: center;
  padding: 0 8px;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.22);
  background: rgba(10, 10, 12, 0.74);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-honor-links-label ion-icon {
  font-size: 15px;
}

.project-honor-link {
  max-width: min(190px, calc(100% - 68px));
  flex: 0 1 auto;
  padding: 6px 9px;
  color: var(--light-gray);
  border: 1px solid rgba(255, 219, 112, 0.2);
  background: rgba(22, 22, 24, 0.82);
  backdrop-filter: blur(8px);
  font-size: 11px;
  line-height: 1.25;
  pointer-events: auto;
}

.project-honor-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-honor-link:hover,
.project-honor-link:focus-visible {
  color: var(--white-2);
  border-color: rgba(255, 219, 112, 0.46);
  background: rgba(255, 219, 112, 0.1);
}

.bot-actions .bot-action-tool {
  border-color: rgba(255, 219, 112, 0.44);
  background: rgba(255, 219, 112, 0.1);
  color: var(--orange-yellow-crayola);
}

/* Guided entry point for visitors who want a quick, contextual portfolio tour. */
.adrai-guide {
  margin: 20px 0 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 219, 112, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.09), rgba(93, 172, 255, 0.045) 56%, rgba(255, 255, 255, 0.018));
}

.adrai-guide-heading {
  max-width: 680px;
}

.adrai-guide-eyebrow,
.achievement-evidence-kicker {
  margin: 0 0 7px;
  color: var(--orange-yellow-crayola);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adrai-guide h3 {
  margin-bottom: 8px;
  color: var(--white-2);
}

.adrai-guide-heading > p:last-child {
  margin: 0;
  color: var(--light-gray-70);
  line-height: 1.55;
}

.adrai-guide-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.adrai-guide-prompts button,
.adrai-guide-command {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--white-2);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(17, 17, 19, 0.52);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.adrai-guide-prompts button ion-icon,
.adrai-guide-command ion-icon {
  flex: none;
  color: var(--orange-yellow-crayola);
  font-size: 1.08rem;
}

.adrai-guide-prompts button:hover,
.adrai-guide-prompts button:focus-visible,
.adrai-guide-command:hover,
.adrai-guide-command:focus-visible {
  border-color: rgba(255, 219, 112, 0.55);
  background: rgba(255, 219, 112, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.adrai-guide-command {
  width: 100%;
  margin-top: 10px;
  color: var(--light-gray);
  font-size: 0.78rem;
}

.adrai-guide-command kbd,
.command-palette-trigger kbd {
  min-width: 20px;
  padding: 2px 5px;
  color: var(--white-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.68rem;
  line-height: 1.2;
}

/* Record-level evidence shown on each shareable honor route. */
.achievement-evidence {
  padding: 15px;
  border: 1px solid rgba(255, 219, 112, 0.18);
  border-radius: 11px;
  background: rgba(255, 219, 112, 0.045);
}

.achievement-evidence-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.achievement-evidence-heading h4 {
  margin: 0;
  color: var(--white-2);
  font-size: 0.95rem;
}

.achievement-evidence-kicker {
  margin: 0;
  font-size: 0.62rem;
}

.achievement-evidence-summary {
  margin: 9px 0;
  color: var(--light-gray);
  font-size: 0.8rem;
  line-height: 1.45;
}

.achievement-evidence-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--light-gray-70);
  font-size: 0.76rem;
  line-height: 1.4;
}

.achievement-evidence-list li::before {
  content: '•';
  margin-right: 7px;
  color: var(--orange-yellow-crayola);
}

.achievement-evidence-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.achievement-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.32);
  border-radius: 7px;
  background: rgba(255, 219, 112, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.achievement-copy-link:hover,
.achievement-copy-link:focus-visible {
  border-color: var(--orange-yellow-crayola);
  background: rgba(255, 219, 112, 0.15);
  outline: none;
}

.achievement-copy-status {
  min-height: 1.2em;
  color: #8fe3ae;
  font-size: 0.74rem;
}

.command-palette-trigger {
  position: fixed;
  left: calc(22px + env(safe-area-inset-left));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 1040;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.26);
  border-radius: 8px;
  background: rgba(26, 26, 28, 0.94);
  box-shadow: var(--shadow-2);
}

.command-palette-trigger ion-icon {
  font-size: 22px;
}

.command-palette-trigger span {
  font-size: 0.72rem;
  font-weight: 700;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(88px, calc(42px + env(safe-area-inset-top))) 16px 16px;
  background: rgba(4, 4, 6, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.command-palette.active {
  opacity: 1;
  pointer-events: auto;
}

.command-palette-panel {
  width: min(720px, 100%);
  max-height: min(680px, calc(100dvh - 120px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(24, 24, 26, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  transform: translateY(-8px);
  transition: transform 160ms ease;
}

.command-palette.active .command-palette-panel {
  transform: translateY(0);
}

.command-palette-search {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.command-palette-search ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 20px;
}

.command-palette-search input {
  min-width: 0;
  height: 42px;
  color: var(--white-2);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
}

.command-palette-search input::placeholder {
  color: var(--light-gray-70);
}

.command-palette-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--light-gray);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.command-palette-list {
  max-height: min(570px, calc(100dvh - 206px));
  overflow: auto;
  padding: 8px;
}

.command-palette-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--white-2);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.command-palette-item.active,
.command-palette-item:hover,
.command-palette-item:focus-visible {
  border-color: rgba(255, 219, 112, 0.22);
  background: rgba(255, 219, 112, 0.08);
}

.command-palette-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.command-palette-copy {
  min-width: 0;
}

.command-palette-copy strong,
.command-palette-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-palette-copy strong {
  color: var(--white-2);
  font-size: 14px;
  line-height: 1.25;
}

.command-palette-copy small {
  margin-top: 3px;
  color: var(--light-gray-70);
  font-size: 12px;
  line-height: 1.3;
}

.command-palette-group {
  color: var(--light-gray-70);
  font-size: 11px;
  font-weight: 700;
}

.command-palette-empty {
  padding: 28px 12px;
  color: var(--light-gray);
  text-align: center;
  font-size: 13px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(62px, calc(32px + env(safe-area-inset-top))) 16px 18px;
  background: rgba(4, 4, 6, 0.64);
}

.search-panel {
  width: min(860px, 100%);
  max-height: min(760px, calc(100dvh - 94px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(24, 24, 26, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.6);
}

.search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
}

.search-kicker {
  margin-bottom: 4px;
  color: var(--orange-yellow-crayola);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-header h2 {
  color: var(--white-2);
  font-size: 21px;
  line-height: 1.25;
}

.search-close {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--light-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.search-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 18px;
  padding: 0 12px;
  min-height: 48px;
  border: 1px solid rgba(255, 219, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.search-box ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 20px;
}

.search-input {
  min-width: 0;
  color: var(--white-2);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-input::placeholder {
  color: var(--light-gray-70);
}

.search-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 12px;
  color: var(--light-gray-70);
  font-size: 12px;
}

.search-results {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 8px 12px 14px;
}

.search-result {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  color: var(--white-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(255, 219, 112, 0.28);
  background: rgba(255, 219, 112, 0.07);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.search-result-icon ion-icon {
  font-size: 20px;
}

.search-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-result-copy strong,
.search-result-copy small,
.search-result-snippet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  color: var(--white-2);
  font-size: 14px;
}

.search-result-copy small,
.search-result-snippet {
  color: var(--light-gray-70);
  font-size: 12px;
}

.search-result-action {
  color: var(--orange-yellow-crayola);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-empty,
.project-empty-state,
.stack-empty,
.github-drilldown-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 26px 14px;
  color: var(--light-gray);
  text-align: center;
}

.search-empty ion-icon,
.project-empty-state ion-icon,
.stack-empty ion-icon,
.github-drilldown-empty ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 25px;
}

.search-empty strong,
.project-empty-state strong,
.stack-empty strong,
.github-drilldown-empty strong {
  color: var(--white-2);
  font-size: 14px;
}

.search-empty span,
.project-empty-state span,
.stack-empty span,
.github-drilldown-empty span {
  color: var(--light-gray-70);
  font-size: 12px;
  line-height: 1.45;
}

.search-empty button {
  margin-top: 8px;
  padding: 8px 11px;
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.24);
  border-radius: 8px;
  background: rgba(255, 219, 112, 0.08);
}

.search-highlight {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 4px;
  border-radius: 8px;
}

.project-empty-state[hidden] {
  display: none;
}

.stack-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  border: 1px dashed rgba(255, 219, 112, 0.22);
  border-radius: 8px;
  background: rgba(255, 219, 112, 0.04);
}

.github-heatmap-drilldown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.github-drilldown-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.github-drilldown-stat span {
  color: var(--light-gray-70);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.github-drilldown-stat strong {
  min-width: 0;
  overflow: hidden;
  color: var(--white-2);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-action-bar {
  display: none;
}

.gear-page {
  --gear-border: rgba(255, 255, 255, 0.1);
  --gear-border-strong: rgba(255, 219, 112, 0.26);
  --gear-surface: rgba(255, 255, 255, 0.035);
  --gear-surface-hover: rgba(255, 255, 255, 0.06);
}

.gear-intro {
  max-width: 700px;
  margin-bottom: 34px;
}

.gear-kicker,
.gear-section-title {
  color: var(--light-gray-70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gear-lead {
  margin-top: 10px;
  color: var(--light-gray);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
}

.gear-section + .gear-section {
  margin-top: 46px;
}

.gear-section-title {
  margin-bottom: 14px;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.gear-grid li {
  min-width: 0;
}

.gear-card {
  min-height: 342px;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--gear-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 219, 112, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), var(--gear-surface));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gear-card:hover,
.gear-card:focus-visible {
  border-color: var(--gear-border-strong);
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 219, 112, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), var(--gear-surface-hover));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

.gear-card:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 3px;
}

.gear-card-media {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
}

.gear-card-body {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 16px 44px 17px 16px;
}

.gear-card-title,
.gear-card-spec {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gear-card-title {
  color: var(--white-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.gear-card-spec {
  color: var(--light-gray-70);
  font-size: 13px;
  line-height: 1.45;
}

.gear-card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.44);
  transition: color 180ms ease, transform 180ms ease;
}

.gear-card-arrow ion-icon {
  font-size: 16px;
  transform: rotate(45deg);
}

.gear-card:hover .gear-card-arrow,
.gear-card:focus-visible .gear-card-arrow {
  color: var(--orange-yellow-crayola);
  transform: translate(2px, -2px);
}

.gear-visual {
  position: relative;
  width: min(180px, 78%);
  aspect-ratio: 1.35;
  display: block;
  color: rgba(235, 235, 238, 0.94);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
}

.gear-visual::before,
.gear-visual::after {
  content: "";
  position: absolute;
}

.gear-visual-mac-mini {
  width: min(150px, 70%);
  aspect-ratio: 1.2;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.42) 0 3px, transparent 4px),
    linear-gradient(145deg, #f1f1f2, #b9bcc2 48%, #7f838c);
}

.gear-visual-mac-mini::before {
  inset: 15% 13%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.gear-visual-monitor {
  width: min(200px, 86%);
  aspect-ratio: 1.4;
}

.gear-visual-monitor::before {
  inset: 0 0 26%;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 219, 112, 0.24), transparent 38%),
    linear-gradient(145deg, #232428, #090a0d);
  border: 6px solid #d8dadd;
}

.gear-visual-monitor::after {
  left: 39%;
  right: 39%;
  bottom: 3%;
  height: 28%;
  background:
    linear-gradient(#d7d9dd 0 62%, transparent 62%),
    linear-gradient(90deg, transparent 0 12%, #c2c5ca 12% 88%, transparent 88%);
  border-bottom: 8px solid #c2c5ca;
  border-radius: 0 0 10px 10px;
}

.gear-visual-laptop {
  width: min(200px, 86%);
  aspect-ratio: 1.45;
}

.gear-visual-laptop::before {
  left: 10%;
  right: 10%;
  top: 3%;
  bottom: 24%;
  border-radius: 10px 10px 4px 4px;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 219, 112, 0.26), transparent 21%),
    linear-gradient(145deg, #202126, #050507);
  border: 5px solid #c6c9cf;
}

.gear-visual-laptop::after {
  left: 0;
  right: 0;
  bottom: 12%;
  height: 13%;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #eceef1, #aeb3bc);
}

.gear-visual-lightbar {
  width: min(190px, 82%);
  aspect-ratio: 1.8;
}

.gear-visual-lightbar::before {
  left: 8%;
  right: 8%;
  top: 18%;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22252a, #7a8089 45%, #202328);
  transform: rotate(-18deg);
}

.gear-visual-lightbar::after {
  left: 45%;
  bottom: 12%;
  width: 44px;
  height: 58px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(155deg, #1b1c20, #525760);
  transform: rotate(10deg);
}

.gear-visual-phone {
  width: min(124px, 56%);
  aspect-ratio: 0.72;
  border-radius: 22px;
  background:
    radial-gradient(circle at 27% 18%, #1a1b20 0 8px, transparent 9px),
    radial-gradient(circle at 45% 18%, #1a1b20 0 8px, transparent 9px),
    radial-gradient(circle at 36% 34%, #1a1b20 0 8px, transparent 9px),
    linear-gradient(145deg, #434854, #121318 56%, #343841);
  border: 6px solid #202229;
}

.gear-visual-phone::before {
  left: 36%;
  top: 8%;
  width: 32%;
  height: 7%;
  border-radius: 999px;
  background: #08090b;
}

.gear-visual-ipad {
  width: min(142px, 62%);
  aspect-ratio: 0.74;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 219, 112, 0.2), transparent 34%),
    linear-gradient(145deg, #dfe2e7, #aeb3bd);
  border: 7px solid #22252a;
}

.gear-visual-ipad::before {
  left: 50%;
  bottom: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
}

.gear-visual-watch {
  width: min(138px, 60%);
  aspect-ratio: 0.72;
}

.gear-visual-watch::before {
  left: 29%;
  right: 29%;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #09090b, #2e3035 50%, #070708);
}

.gear-visual-watch::after {
  left: 18%;
  right: 18%;
  top: 31%;
  bottom: 31%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 219, 112, 0.46) 0 4px, transparent 5px),
    linear-gradient(145deg, #1f2024, #050506);
  border: 5px solid #4a4d54;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 580px) {
  main {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .navbar-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  .navbar-item,
  .navbar-link {
    width: 100%;
    min-width: 0;
  }

  .navbar-link {
    min-height: 52px;
    padding: 8px 2px;
    font-size: 0;
    text-align: center;
  }

  .navbar-link::before {
    content: attr(data-mobile-label);
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .gear-intro {
    margin-bottom: 26px;
  }

  .gear-lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .gear-section + .gear-section {
    margin-top: 34px;
  }

  .gear-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gear-card {
    min-height: 286px;
    grid-template-rows: 172px auto;
    border-radius: 10px;
  }

  .gear-card-media {
    min-height: 172px;
    padding: 20px;
    background-size: 24px 24px;
  }

  .gear-card-body {
    padding: 14px 42px 15px 14px;
  }

  .gear-card-title {
    font-size: 14px;
  }

  .gear-card-spec {
    font-size: 12.5px;
  }

  .project-preview-card {
    padding: 14px;
  }

  .project-preview-name {
    font-size: 19px;
  }

  .timeline-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-filter {
    width: 100%;
  }

  .contact-flow-card .contact-flow-actions {
    grid-template-columns: 1fr;
  }

  .public-analytics-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .public-analytics-grid {
    grid-template-columns: 1fr;
  }

  .command-palette-trigger {
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(132px + env(safe-area-inset-bottom));
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .command-palette-trigger span,
  .command-palette-trigger kbd {
    display: none;
  }

  .command-palette {
    padding: max(54px, calc(18px + env(safe-area-inset-top))) 10px 10px;
  }

  .command-palette-panel {
    max-height: calc(100dvh - 72px);
  }

  .command-palette-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .command-palette-icon {
    width: 34px;
    height: 34px;
  }

  .command-palette-group {
    display: none;
  }

  .search-overlay {
    padding: max(42px, calc(14px + env(safe-area-inset-top))) 10px calc(148px + env(safe-area-inset-bottom));
  }

  .search-panel {
    max-height: calc(100dvh - 118px);
    border-radius: 9px;
  }

  .search-header {
    padding: 14px 14px 10px;
  }

  .search-header h2 {
    font-size: 18px;
  }

  .search-box {
    margin-inline: 14px;
  }

  .search-meta {
    display: grid;
    gap: 5px;
    padding-inline: 14px;
  }

  .search-result {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 76px;
  }

  .search-result-icon {
    width: 34px;
    height: 34px;
  }

  .search-result-action {
    display: none;
  }

  .github-heatmap-drilldown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 20, 0.96);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.38);
  }

  .mobile-action-button {
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: var(--light-gray-70);
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 10px;
    line-height: 1.1;
  }

  .mobile-action-button ion-icon {
    color: currentColor;
    font-size: 20px;
  }

  .mobile-action-button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-button.active,
  .mobile-action-button:focus-visible,
  .mobile-action-button:hover {
    color: var(--orange-yellow-crayola);
    border-color: rgba(255, 219, 112, 0.2);
    background: rgba(255, 219, 112, 0.07);
  }
}

@media (min-width: 581px) and (max-width: 1100px) {
  .gear-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .selected-work { margin-bottom: 22px; padding: 16px; }
  .selected-work-grid { grid-template-columns: 1fr; }
  .selected-work-card { min-height: 150px; }
  .project-proof dl { grid-template-columns: 1fr; }
}
