/* ==========================================================================
   Components — reusable UI building blocks
   ========================================================================== */

/* ---------- Placeholder ---------- */
.ph {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--faint);
  letter-spacing: 0.02em;
  border-bottom: 1px dashed var(--line-strong);
  white-space: normal;
}
body.show-ph .ph,
body.show-ph [data-ph] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  outline: 1.5px dashed var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.ph-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: var(--fs-xs);
  box-shadow: var(--shadow-2);
  opacity: 0.75; transition: opacity var(--t-fast);
}
.ph-toggle:hover, body.show-ph .ph-toggle { opacity: 1; }
body.nav-open .ph-toggle { display: none; }
body.show-ph .ph-toggle { background: var(--accent); }
.ph-toggle__n { background: rgba(255,255,255,0.18); padding: 1px 7px; border-radius: var(--r-pill); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border-radius: var(--r-md);
  font-weight: 500; font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--sm { --h: 36px; padding: 0 14px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 4px 14px -6px var(--accent); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn .btn__end { transition: transform var(--t-fast); }
.btn:hover .btn__end { transform: translateX(3px); }
.btn.is-disabled {
  cursor: not-allowed; box-shadow: none; transform: none;
  background: transparent; color: var(--faint); border: 1px dashed var(--line-strong);
}

/* Text link */
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--fs-sm); color: var(--accent); }
.tlink .i { transition: transform var(--t-fast); }
.tlink:hover { color: var(--accent-strong); }
.tlink:hover .i { transform: translateX(3px); }
.inline-link { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }
.inline-link:hover { border-color: var(--accent); }

/* ---------- Eyebrow + section header ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow__idx { color: var(--muted); }
.eyebrow__idx::after { content: " —"; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5);
  margin-bottom: var(--s-7);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.sec-head__title { font-size: var(--fs-2xl); line-height: var(--lh-tight); letter-spacing: -0.02em; font-weight: 600; margin-top: var(--s-3); max-width: 22ch; }
.sec-head__lead { margin-top: var(--s-3); color: var(--muted); max-width: 60ch; }
.sec-head__action { flex-shrink: 0; padding-bottom: 6px; }
@media (max-width: 600px) {
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--s-6); }
}

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500;
  background: var(--bg-alt); color: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
a.tag:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.tag--sm { height: 22px; padding: 0 8px; font-size: 0.6875rem; }
.tag--lg { height: 32px; padding: 0 14px; font-size: var(--fs-sm); }
.tag--domain { background: var(--accent-soft); border-color: var(--accent-tint); color: var(--accent-deep); }
.tag--more { background: transparent; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 6px 0 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.chip:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.chip__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin: 0 4px; transform: rotate(45deg); }
.chip__count {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-sm);
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
}
.chip__count.is-zero { background: var(--bg-alt); color: var(--faint); }
.chip > .chip__name:last-child { padding-right: 6px; }

/* ---------- Logos (monochrome, monogram fallback) ---------- */
.logo {
  --sz: 28px;
  position: relative; flex-shrink: 0;
  width: var(--sz); height: var(--sz);
  display: inline-grid; place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
}
.logo img { width: 62%; height: 62%; object-fit: contain; }
.logo.is-mono::after {
  content: attr(data-mono);
  font-family: var(--font-mono); font-weight: 500;
  font-size: calc(var(--sz) * 0.32); letter-spacing: -0.02em;
  color: var(--accent-deep);
}
.logo--xs { --sz: 18px; border-radius: 4px; }
.logo--sm { --sz: 24px; border-radius: 5px; }
.logo--lg { --sz: 48px; border-radius: 10px; }
.logo--xl { --sz: 56px; border-radius: 12px; }

/* ---------- Status (LED indicators, one hue) ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px 0 9px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status--compact { height: 22px; padding: 0 8px 0 7px; }
.led { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; }
.status--completed .led   { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.status--completed        { color: var(--accent-deep); }
.status--in-progress .led { background: var(--accent); animation: led-pulse 1.8s ease-in-out infinite; }
.status--prototype .led   { border: 2px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.status--research .led    { border: 2px dotted var(--accent); }
.status--planned .led     { border: 1.5px solid var(--faint); }
.status--planned          { color: var(--muted); }
.status--unknown .led     { border: 1.5px dashed var(--line-strong); }
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px rgba(21, 86, 240, 0); opacity: .65; }
}

/* ---------- Glyph tile ---------- */
.glyph {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-tint);
}
.glyph--sm { width: 30px; height: 30px; border-radius: 7px; }
.glyph--sm .i { width: 17px; height: 17px; }
.glyph--lg { width: 60px; height: 60px; }

/* ---------- Segmented control + filter chips ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); }
.seg__btn { padding: 6px 12px; border-radius: 7px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  transition: all var(--t-fast);
}
.fchip span { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faint); }
.fchip:hover { border-color: var(--accent); color: var(--accent-strong); }
.fchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.is-active span { color: rgba(255,255,255,.6); }
.schip { border-radius: var(--r-pill); border: 1px solid transparent; padding: 2px; transition: border-color var(--t-fast); }
.schip:not(:has(.status)) { height: 30px; padding: 0 12px; font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--muted); border-color: var(--line); background: var(--surface); }
.schip .status { pointer-events: none; }
.schip.is-active { border-color: var(--ink); }
.schip.is-active:not(:has(.status)) { background: var(--ink); color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- Empty state ---------- */
.empty {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: var(--s-7) var(--s-5);
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  color: var(--faint); background: var(--surface-2);
}
.empty__title { color: var(--ink-2); font-weight: 500; }
.empty__text { font-size: var(--fs-sm); color: var(--muted); max-width: 46ch; }
.empty code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

/* ---------- Evidence count ---------- */
.evc { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.evc b { color: var(--accent); }
.evc.is-zero { color: var(--faint); }

.dash { color: var(--faint); }
.sx-k { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }

/* ==========================================================================
   Cards
   ========================================================================== */

/* ---------- Project visual ---------- */
.pv { position: relative; width: 100%; height: 100%; }
.pv--photo {
  padding: 12px 12px 0;
  background-color: #f2f6fd;
  background-image: linear-gradient(rgba(21,86,240,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(21,86,240,.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.pv__img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface);
  transition: transform var(--t-slow) var(--ease);
}
.pcard:hover .pv__img { transform: translateY(-4px) scale(1.02); }
.pv--photo:has(.is-banner) { display: grid; place-items: center; padding: 16px; }
.pv__img.is-banner { width: 100%; height: auto; object-fit: contain; border: 0; border-radius: 8px; background: none; box-shadow: 0 10px 28px -12px rgba(10, 26, 51, .45); }
.pv__svg { width: 92%; height: auto; overflow: visible; transition: transform var(--t-slow) var(--ease); }
.pcard:hover .pv__svg { transform: scale(1.03); }
.pv__block { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; }
.pv__block.is-first { fill: var(--ink); }
.pv__btxt { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .04em; fill: var(--ink); }
.pv__block.is-first + .pv__btxt, .pv__block.is-first + .pv__btxt + .pv__btxt { fill: #fff; }
.pv__wire { stroke: var(--ink-2); stroke-width: 1.3; }
.pv__head { fill: var(--ink-2); }
.pv__pulse { fill: var(--accent); opacity: .85; }
.pv__blueprint {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
  background-color: #f2f6fd;
  background-image:
    linear-gradient(rgba(21,86,240,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,86,240,.08) 1px, transparent 1px),
    linear-gradient(rgba(21,86,240,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,86,240,.04) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  overflow: hidden;
}
.pv__glyph { color: var(--accent); opacity: .85; transition: transform var(--t-slow) var(--ease); }
.pv__glyph .i { stroke-width: 1.1; }
.pv__label { position: absolute; left: 14px; bottom: 10px; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.625rem; letter-spacing: .08em; color: var(--accent-deep); opacity: .7; }
.pv__ph { position: absolute; right: 14px; bottom: 12px; font-size: 0.625rem; color: var(--faint); }
.pv__corner { position: absolute; width: 12px; height: 12px; border-color: var(--accent); opacity: .5; }
.pv__corner--tl { top: 10px; left: 10px; border-top: 1.5px solid; border-left: 1.5px solid; }
.pv__corner--tr { top: 10px; right: 10px; border-top: 1.5px solid; border-right: 1.5px solid; }
.pv__corner--bl { bottom: 10px; left: 10px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.pv__corner--br { bottom: 10px; right: 10px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ---------- Project card (whole card = one link) ---------- */
.pcard {
  display: flex; flex-direction: column; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease), opacity var(--t-slow) var(--ease);
}
.pcard:hover { border-color: var(--accent-tint); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard__body { padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard__domain { font-size: 0.6875rem; letter-spacing: .08em; color: var(--accent); }
.pcard__title { display: block; font-size: var(--fs-md); line-height: var(--lh-snug); font-weight: 600; letter-spacing: -0.01em; }
.pcard__desc { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-sm); font-weight: 500; color: var(--accent); }
.pcard__cta .i { transition: transform var(--t-fast); }
.pcard:hover .pcard__cta .i { transform: translate(2px, -2px); }
.pcard:hover .pcard__title { color: var(--accent-strong); }

/* ---------- Domain card ---------- */
.dcard {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); min-height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
  overflow: hidden;
}
.dcard::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--accent); transition: width var(--t-slow) var(--ease);
}
.dcard:hover { border-color: var(--accent-tint); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.dcard:hover::before { width: 100%; }
.dcard__title { font-size: var(--fs-md); font-weight: 600; margin-top: var(--s-2); }
.dcard__desc { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard__foot { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; }
.dcard__count { font-size: var(--fs-sm); color: var(--muted); }
.dcard__count b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); margin-right: 2px; }
.dcard__arrow { color: var(--faint); transition: color var(--t-fast), transform var(--t-fast); }
.dcard:hover .dcard__arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- Hardware platform card — image first ---------- */
.hwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.hwcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.hwcard:hover { border-color: var(--accent-tint); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.hwcard__media {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: var(--s-4);
  background-color: #f3f7fe;
  background-image: linear-gradient(rgba(21,86,240,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(21,86,240,.06) 1px, transparent 1px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--line);
}
.hwcard__media .hw-art, .hwcard__media .hw-photo { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-slow) var(--ease); }
.hwcard:hover .hw-art, .hwcard:hover .hw-photo { transform: scale(1.04); }
.hwcard__body { display: grid; gap: 4px; padding: var(--s-4) var(--s-5) var(--s-5); text-align: center; justify-items: center; }
.hwcard__name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.hwcard__count { font-size: var(--fs-xs); color: var(--muted); }
.hwcard__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: 500; color: var(--accent); }
.hwcard__cta .i { transition: transform var(--t-fast); }
.hwcard:hover .hwcard__cta .i { transform: translateX(3px); }
@media (max-width: 600px) {
  .hwgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .hwcard__media { padding: var(--s-3); }
  .hwcard__body { padding: var(--s-3) var(--s-3) var(--s-4); }
  .hwcard__name { font-size: var(--fs-md); }
}

/* Board illustrations */
.hw-art { display: block; overflow: visible; }
.hw-pcb { fill: #e4ecfb; stroke: var(--accent-deep); stroke-width: 1.3; }
.hw-hole { fill: var(--surface); stroke: #9fb2d3; stroke-width: 1; }
.hw-pin { fill: #c3cee0; stroke: #8fa0bb; stroke-width: .6; }
.hw-sock { fill: #4b5c78; }
.hw-leg { fill: #c9d2e0; stroke: #8fa0bb; stroke-width: .6; }
.hw-dark { fill: var(--ink); }
.hw-part { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1; }
.hw-metal { fill: #eef2f8; stroke: #7d8ea9; stroke-width: 1.1; }
.hw-module { fill: #d7e3f8; stroke: var(--accent-deep); stroke-width: 1; }
.hw-antenna { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.hw-fin { stroke: #9aa9c2; stroke-width: 1.2; }
.hw-notch { fill: var(--bg); stroke: #3a4a63; stroke-width: 1; }
.hw-dot { fill: rgba(255,255,255,.5); }
.hw-txt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--ink-2); letter-spacing: .08em; }
.hw-txt--light { fill: rgba(255,255,255,.85); font-size: 14px; }
.hw-led { fill: var(--accent); animation: hw-led 2.4s ease-in-out infinite; }
@keyframes hw-led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Evidence card ---------- */
.evcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.evcard::after { /* folded corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--bg-alt) 50%, var(--line-strong) 50%);
}
a.evcard:hover { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.evcard.is-pending { border-style: dashed; background: var(--surface-2); }
.evcard__band { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-tint); }
.evcard.is-pending .evcard__band { background: var(--bg-alt); border-color: var(--line); }
.evcard__icon { color: var(--accent); display: inline-flex; }
.evcard__type { font-size: 0.6875rem; letter-spacing: .08em; color: var(--accent-deep); flex: 1; }
.evcard__id { font-size: 0.625rem; color: var(--muted); }
.evcard__body { padding: 14px; flex: 1; }
.evcard__title { font-size: var(--fs-base); font-weight: 500; }
.evcard__src { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.evcard__foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 28px 10px 14px; border-top: 1px dashed var(--line); font-size: 0.6875rem; color: var(--muted); }
.evcard__open { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }

/* ---------- Latest work rows ---------- */
.lrows { border-top: 1px solid var(--line); }
.lrow {
  display: grid; grid-template-columns: 110px 1fr 24px; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast), padding var(--t-med) var(--ease);
}
.lrow:hover { background: var(--accent-soft); padding-left: var(--s-4); }
.lrow__date { font-size: var(--fs-xs); color: var(--muted); }
.lrow__main { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; min-width: 0; }
.lrow__title { font-weight: 500; font-size: var(--fs-md); }
.lrow__domain { font-size: 0.6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lrow__arrow { color: var(--faint); transition: color var(--t-fast), transform var(--t-fast); }
.lrow:hover .lrow__arrow { color: var(--accent); transform: translateX(3px); }
@media (max-width: 600px) {
  .lrow { grid-template-columns: 1fr; gap: 4px; }
  .lrow__date { grid-row: 1; }
  .lrow__main { grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 2px; }
  .lrow__arrow { display: none; }
}

/* ---------- Course card ---------- */
.ccard { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ccard__head { display: flex; justify-content: space-between; align-items: center; }
.ccard__code { font-size: var(--fs-xs); color: var(--muted); }
.ccard__title { font-size: var(--fs-md); font-weight: 600; margin-top: var(--s-3); }
.ccard__flow { margin-top: var(--s-4); position: relative; }
.ccard__flow li {
  position: relative; display: grid; gap: 2px;
  padding: 0 0 var(--s-3) 20px; font-size: var(--fs-sm); color: var(--ink-2);
}
.ccard__flow li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 2px; background: var(--surface); z-index: 1; }
.ccard__flow li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1.5px; background: var(--accent-tint); }
.ccard__k { font-size: 0.625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ccard__chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Credential ---------- */
.credcol__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: var(--fs-md); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.credcol__head .mono { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.credcol__note { font-size: 0.6875rem; color: var(--muted); margin: 8px 0 var(--s-3); text-transform: uppercase; letter-spacing: .06em; }
.cred { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cred__icon { color: var(--accent); display: inline-flex; }
.cred--secondary .cred__icon { color: var(--faint); }
.cred--secondary .cred__title { font-size: var(--fs-sm); font-weight: 400; }
.cred__main { display: grid; flex: 1; min-width: 0; }
.cred__title { font-weight: 500; }
.cred__meta { font-size: 0.6875rem; color: var(--muted); }
.cred__link { color: var(--muted); }
.cred__link:hover { color: var(--accent); }

/* ---------- Mini project row ---------- */
.mproj {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.mproj:hover { border-color: var(--accent); background: var(--accent-soft); }
.mproj__title { flex: 1; font-size: var(--fs-sm); font-weight: 500; min-width: 0; }
.mproj__arrow { color: var(--faint); }
.mproj:hover .mproj__arrow { color: var(--accent); }

.repo {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 500;
  background: var(--surface);
}
.repo span { flex: 1; }
.repo:hover { border-color: var(--accent); color: var(--accent-strong); }

.panel { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ticks li { position: relative; padding: 6px 0 6px 22px; color: var(--ink-2); font-size: var(--fs-sm); border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 1.5px; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 10px; top: 10px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); }

.pcard:hover .pv__glyph { transform: scale(1.06); }
