/* Neofetch-style skills */
.neofetch {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.neofetch-logo {
  color: var(--blue);
  font-size: 10px;
  line-height: 1.15;
  white-space: pre;
  flex-shrink: 0;
}

.neofetch-info {
  flex: 1;
  min-width: 0;
}

.neofetch-separator {
  color: var(--surface2);
  margin: 4px 0;
  overflow: hidden;
  white-space: nowrap;
}

.neofetch-row {
  display: flex;
  gap: 8px;
  margin: 3px 0;
  flex-wrap: wrap;
}

.neofetch-row .label {
  color: var(--pink);
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}

.neofetch-row .value {
  color: var(--subtext1);
}

.neofetch-colors {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.neofetch-colors span {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Skill ratings ─────────────────────────────────────────────────
   Seven categories, each holding a rated Skills block and (where it has one) a
   rated Tools block. 75 rows in total, so everything below is chosen to keep a
   long list scannable rather than decorative. */

.skill-grid {
  display: grid;
  /* Two columns only from 900px, matching .mission-grid, .project-group-inner
     and .hobbies-split. Between 769 and 899px two columns left each skill name
     about 160px, which wrapped the longer ones to three lines. */
  grid-template-columns: 1fr;
  gap: 20px;
  /* No `align-items: start`. Cards stretch to the tallest in their own row, so
     the two sitting side by side always share a bottom edge even though one
     may hold fifteen rows and the other four. Rows still differ from each
     other -- only the pair on a line has to agree.

     Content stays top-aligned inside the stretched card (see .skill-category
     below); the surplus becomes trailing space rather than stretched gaps
     between the rows, which would break the scanning rhythm. */
}

/* A stretched grid item is only as tall as the row; its CONTENT still sits at
   the top and the surplus collects at the bottom. Declaring the card a column
   flex container makes that explicit rather than incidental, and stops any
   future `height: 100%` child from distributing the slack between the rows. */
.skill-category {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.skill-category-title {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  /* Long category names wrap rather than forcing the grid column wider. */
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.skill-category-title .icon { flex-shrink: 0; }

/* Skills / Tools divider inside a card.
   A rule with the label sitting on it, so the two blocks read as one list in
   two parts rather than two lists that happen to share a border. */
.skill-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  color: var(--overlay1);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sized against the label rather than left to the global .icon default, so the
   glyph reads as part of the word and not as a separate bullet. Colour comes
   from currentColor, which keeps it tied to the subhead in both themes. */
.skill-subhead .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* The first subhead sits directly under the category title and needs no extra
   air above it. */
.skill-category-title + .skill-subhead { margin-top: 0; }

.skill-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface0);
}

/* Extra categories ─────────────────────────────────────────────
   Hidden by a class rather than the `hidden` attribute so print.css can bring
   them back without !important, and so the reveal can be animated. Same
   JS-dependent disclosure as .project-group two sections down. */
.skill-category--extra { display: none; }

.skill-grid.is-expanded .skill-category--extra { display: block; }

@media (min-width: 900px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
}

.skills-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0;
  /* width: fit-content is what actually centres this. `display: flex` makes the
     button a block-level flex container, which fills its containing block, so
     `margin: auto` had nothing to distribute and the "pill" rendered as a
     full-width bar. justify-content only centred the label inside it. */
  width: fit-content;
  /* 12px vertical plus an explicit floor: padding alone landed on 43px,
     because the button's line box is shorter than the label's font-size. */
  padding: 12px 20px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--surface1);
  border-radius: 6px;
  color: var(--subtext0);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

/* Gated so a tap does not leave the control stuck in its hovered,
   transformed state until the next tap elsewhere on the page. */
@media (hover: hover) {
  .skills-more:hover {
    border-color: var(--teal);
    color: var(--text);
    background: var(--mantle);
  }
}

.skills-more:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skills-more .chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.skills-more[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Tighter than the 10px this used at 21 rows. At 75 the row rhythm is what
     makes the list feel like a table rather than a pile. */
  margin: 6px 0;
}

/* The name takes the slack and the rating is pinned right, so every icon row
   in a card starts at the same x. That single alignment is what lets the eye
   compare scores down a column instead of reading each row. */
.skill-name {
  color: var(--subtext1);
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
}

.skill-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

/* 17px, down from 20. Five bugs per row across 75 rows is 375 glyphs on the
   page; at the old size they read as the subject of the section rather than
   the measurement attached to each name. */
.skill-icons .icon {
  width: 17px;
  height: 17px;
}

.skill-icons .filled {
  color: var(--green);
}

.skill-icons .empty {
  color: var(--surface1);
}

.skill-value {
  color: var(--overlay1);
  font-size: 0.8rem;
  flex-shrink: 0;
  /* Lining figures so the "/5" column does not shimmer as the digit changes. */
  font-variant-numeric: tabular-nums;
}
