#skills { --skill-ink: #526b7e; --skill-fill: #6f899d; }
.profile-record .overview-section#skills { grid-template-columns: 150px minmax(0, 1fr); column-gap: 32px; padding: 20px 0; }
.profile-record #skills .overview-section-title { border: 0; }
.skill-carousel { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; align-items: center; min-width: 0; }
.skill-carousel-viewport { min-width: 0; overflow: hidden; position: relative; height: 88px; }
.skill-carousel-track { display: flex; align-items: flex-start; width: 200%; transform: translateX(0); transition: transform .38s cubic-bezier(.22, .68, .2, 1); will-change: transform; }
.skill-carousel[data-page="1"] .skill-carousel-track { transform: translateX(-50%); }
.skill-slide { flex: 0 0 50%; min-width: 0; box-sizing: border-box; display: grid; align-items: start; column-gap: 28px; padding: 3px 6px; overflow: hidden; }
.skill-primary-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-support-slide { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; padding-left: 40px; }
.skill-support-slide > .skill-collection:first-child { grid-column: span 3; }
.profile-record #skills .skill-slide .skill-collection:nth-child(n) { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-record #skills .skill-slide .skill-collection h3 { margin: 0 0 7px; color: #7b8c99; font-size: 12px; font-weight: 500; line-height: 1.6; }
#skills .badge-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: none; align-items: start; }
#skills .skill-item { min-width: 0; }
#skills .tech-badge { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; width: calc(100% + 12px); min-width: 0; min-height: 56px; margin-inline: -6px; padding: 6px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: var(--skill-ink); text-align: left; cursor: pointer; --tech-ink: var(--skill-ink); --tech-tint: #f1f4f6; }
#skills .tech-badge::after { display: none; }
#skills .skill-label { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 21px; }
#skills .tech-name { font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
#skills .tech-badge .tech-mark { flex: none; width: 18px; height: 18px; }
#skills .tech-badge:not([data-skill="ai-skills"]):not([data-skill="harness"]) .tech-mark { background: var(--skill-ink); }
#skills .tech-badge:not([data-skill="ai-skills"]):not([data-skill="harness"]):hover { color: var(--skill-ink); }
.skill-toggle { display: inline-block; flex: none; width: 12px; height: 12px; color: #96a6b2; background: linear-gradient(currentColor, currentColor) center / 8px 1.3px no-repeat, linear-gradient(currentColor, currentColor) center / 1.3px 8px no-repeat; transform-origin: center; }
#skills [aria-expanded="true"] > .skill-toggle, #skills [aria-expanded="true"] .skill-label > .skill-toggle { background-size: 8px 1.3px, 0 0; }
#skills [aria-expanded="true"] .tech-name, #skills .skill-pair[aria-expanded="true"] { font-weight: 500; }
#skills :is(.tech-badge, .skill-pair):is(:hover, [aria-expanded="true"]) { background: transparent; box-shadow: none; }
#skills :is(.tech-badge, .skill-pair):focus-visible { outline: 2px solid #7596b0; outline-offset: 3px; }
.skill-meter { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 12px; margin-left: 26px; }
.skill-meter-track { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; flex: 1; height: 3px; min-width: 0; }
.skill-meter-track i { display: block; height: 3px; border-radius: 1.5px; background: #dce3e9; }
.skill-meter-track i.is-filled { background: var(--skill-fill); }
#skills :is([data-skill="ai-skills"], [data-skill="harness"]) { --skill-fill: #7c3c94; }
.skill-value { width: 25px; color: #8294a2; font-size: 10px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.skill-support-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-support-slide > .skill-collection:last-child .skill-support-shelf { grid-template-columns: 1fr; }
#skills .skill-support-slide .tech-name { white-space: normal; word-break: keep-all; }
#skills .skill-support-shelf .skill-pair { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin: 0; padding: 6px 0; border: 0; border-radius: 4px; background: transparent; color: var(--skill-ink); font: inherit; font-size: 13px; line-height: 1.6; text-align: left; cursor: pointer; }
.skill-pair-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.skill-pair-values { color: #8a9aa7; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
#skill-page-next { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8da1af; cursor: pointer; }
#skill-page-next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.skill-return-label { display: none; }
.skill-carousel[data-page="1"] #skill-page-next { height: 56px; align-self: end; margin-bottom: 3px; }
.skill-carousel[data-page="1"] #skill-page-next svg { display: none; }
.skill-carousel[data-page="1"] .skill-return-label { display: block; writing-mode: vertical-rl; text-orientation: upright; font-size: 11px; font-weight: 400; line-height: 1.2; letter-spacing: 2px; }
#skill-page-prev { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 30px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8da1af; cursor: pointer; }
#skill-page-prev[hidden] { display: none; }
#skill-page-prev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#skill-page-next:hover, #skill-page-prev:hover { color: #526b7e; }
#skill-page-next:focus-visible { outline: 1px solid #7596b0; outline-offset: 0; }
#skill-page-prev:focus-visible { outline: 1px solid #7596b0; outline-offset: -1px; }
#skills #skill-projects { position: fixed; inset: auto; z-index: 1000; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); min-width: 0; height: auto; min-height: 0; max-height: calc(100svh - 100px); margin: 0; padding: 14px 18px 18px; overflow: auto; border: 1px solid #dce4ea; border-radius: 7px; background: #fff; color: #526b7e; box-shadow: 0 8px 28px #20384916; outline: 0; }
#skills #skill-projects:not(:popover-open) { display: none; }
#skills #skill-projects::backdrop { background: transparent; pointer-events: none; }
.skill-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 6px; }
#skills .skill-detail-heading h3 { margin: 0; color: #526b7e; font-size: 14px; font-weight: 600; line-height: 1.7; }
#skill-detail-close { min-height: 32px; margin-right: -8px; padding: 4px 8px; border-radius: 3px; color: #748998; font-size: 11px; cursor: pointer; }
#skill-detail-close:hover { background: #e7edf2; color: #526b7e; }
#skill-detail-close:focus-visible { outline: 2px solid #7596b0; outline-offset: 2px; }
#skills #skill-projects .skill-experience { margin: 8px 0 12px; color: #5c7182; font-size: 13px; line-height: 1.85; word-break: keep-all; }
#skills #skill-project-links { gap: 6px 16px; }
#skills #skill-project-links a { padding: 2px 0; color: #526f87; font-size: 12px; line-height: 1.8; }
#skills #skill-project-links a:hover { color: #235f9a; }
.skill-detail-ratings { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; color: #8193a1; font-size: 11px; line-height: 1.7; }
.skill-detail-ratings strong { margin-left: 5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.skill-detail-ratings[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { #skills button:not([aria-expanded="true"]):hover .skill-toggle { color: #526b7e; animation: skill-plus-elastic 3s linear .35s infinite; } }
@media (max-width: 1179px) { .skill-primary-slide, .skill-support-slide { grid-template-columns: 1fr; row-gap: 18px; } .skill-support-slide > .skill-collection:first-child { grid-column: auto; } .skill-support-shelf { max-width: 640px; } .skill-carousel-viewport { height: 190px; } .skill-carousel[data-page="1"] #skill-page-next { align-self: center; margin-bottom: 0; } }
@media (max-width: 760px) {
 .profile-record .overview-section#skills { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
 .profile-record #skills .overview-section-title { margin-bottom: 14px; }
 .skill-carousel { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px; }
 #skill-page-next { width: 32px; }
 .skill-slide { column-gap: 20px; padding-inline: 6px; }
 .skill-support-slide { padding-left: 34px; }
 .skill-pair-values { white-space: normal; word-break: keep-all; }
 #skills #skill-projects { padding: 14px 16px 18px; }
 #skill-detail-close { min-height: 44px; }
 #skills #skill-projects .skill-experience { font-size: 12px; }
}
@media (max-width: 540px) {
 .skill-meter { margin-left: 0; }
 .skill-meter-track { gap: 1px; }
 #skills .badge-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
 .skill-support-shelf { grid-template-columns: 1fr; gap: 8px; }
 #skills .skill-support-shelf .skill-pair { min-height: 64px; }
 .skill-carousel-viewport { height: 300px; }
 .skill-pair-label { white-space: normal; word-break: keep-all; }
 #skills .tech-name { font-size: 13px; }
 #skills .skill-label { gap: 6px; }
 #skills .tech-badge .tech-mark { width: 16px; height: 16px; }
 .skill-primary-slide { row-gap: 16px; }
}
@media (max-width: 360px) { #skills .tech-name { font-size: 12px; } #skills .skill-label { gap: 3px; } #skills .tech-badge .tech-mark { width: 14px; height: 14px; } .skill-meter-track, .skill-meter-track i { height: 2px; } }
@media (prefers-reduced-motion: reduce) { .skill-carousel-track, #skill-page-next svg { transition: none; } #skills .skill-toggle { animation: none !important; } }
