/* Skills uses the same charcoal surfaces and mineral green as the content library. */
.store-hero {
  position:relative; isolation:isolate; overflow:hidden; border-bottom:1px solid var(--border);
  padding:clamp(48px,5vw,74px) 0 clamp(40px,4vw,58px);
}
.store-intro { position:relative; max-width:590px; margin:auto; text-align:center; }
.store-intro h1 { font-size:clamp(36px,4.7vw,66px); line-height:1.1; letter-spacing:-.035em; }
.store-intro h1 span { color:var(--accent); }
.store-intro p { margin:12px auto 23px; color:var(--secondary); }
.store-intro .search-form { margin:0 auto; max-width:530px; text-align:start; }
.store-intro .search-line { min-height:55px; background:var(--card); }
.keyword-field { position:absolute; z-index:-1; inset:0; display:flex; justify-content:space-between; overflow:hidden; pointer-events:none; }
.keyword-lane {
  width:calc((100% - 590px)/2); display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:12px; overflow:hidden; transform:rotate(-8deg);
  animation:keyword-drift 24s ease-in-out infinite alternate;
}
.lane-1 { animation-direction:alternate-reverse; }
.keyword-lane span {
  color:var(--muted); background:var(--card); border:1px solid var(--border); border-bottom-width:3px;
  border-radius:8px; padding:4px 16px; max-width:95%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:13px; font-family:var(--mono); opacity:.7;
}
.keyword-lane span:nth-child(even) { align-self:flex-start; margin-left:14%; }
@keyframes keyword-drift { from{transform:translateY(-8px) rotate(-8deg)} to{transform:translateY(8px) rotate(-8deg)} }

.store-featured { margin:38px 0 48px; }
.store-section-head, .store-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.store-section-head { margin-bottom:24px; }
.store-section-head h2 { font-size:26px; }
.store-section-head p { color:var(--secondary); font-size:14px; margin-top:3px; }
.jump-directory { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:14px; color:var(--secondary); white-space:nowrap; }
.jump-directory .icon { width:15px; }
.featured-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.feature-card,.store-card {
  position:relative; isolation:isolate; min-width:0; background:var(--card);
  border:1px solid var(--border); border-radius:16px;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 2%);
  transition:background-color 200ms,border-color 200ms,box-shadow 200ms;
}
.feature-card::before,.store-card::before {
  content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; opacity:0;
  background:radial-gradient(ellipse at 50% 0,rgb(255 255 255 / 6%),transparent 75%);
  transition:opacity 200ms; pointer-events:none;
}
.feature-card { display:flex; flex-direction:column; min-height:390px; text-align:center; padding:30px 24px 18px; }
.card-detail::after { content:""; position:absolute; inset:0; border-radius:16px; z-index:1; }
.card-detail:hover { text-decoration:none; }
.feature-card:has(.card-detail:focus-visible),.store-card:has(.card-detail:focus-visible) {
  outline:2px solid var(--accent); outline-offset:3px;
}
.card-detail:focus-visible { outline:0; }
.feature-visual {
  display:grid; place-items:center; height:116px; width:100%; max-width:230px; margin:0 auto 18px;
  border-radius:12px; overflow:hidden;
}
.feature-visual.with-art img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.skill-key {
  width:38px; height:38px; display:inline-grid; place-items:center; flex:0 0 auto;
  color:var(--accent); background:rgb(62 207 142 / 9%); border:1px solid rgb(62 207 142 / 18%); border-radius:10px;
}
.skill-key .icon { width:23px; height:23px; }
.feature-visual .skill-key {
  width:92px; height:92px; border-radius:24px;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 7%),0 6px 20px rgb(0 0 0 / 12%);
}
.feature-visual .skill-key .icon { width:47px; height:47px; stroke-width:1.45; }
.feature-copy { flex:1; display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
.feature-type { font-size:11px; color:var(--muted); }
.feature-copy h3 { font-size:22px; margin:5px 0 8px; line-height:1.4; }
.feature-summary { font-size:14px; color:var(--secondary); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feature-author { font-size:12px; color:var(--muted); margin-top:auto; padding-top:20px; }
.feature-download { position:relative; z-index:2; align-self:center; margin-top:24px; }
.feature-stats { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:10px; font-size:12px; color:var(--muted); }
.store-download,.format-set,.download-count { display:inline-flex; align-items:center; }
.store-download {
  position:relative; z-index:2; justify-content:center; gap:5px; min-height:40px; padding:6px 12px;
  border:1px solid #505050; border-radius:10px; color:var(--text); background:rgb(255 255 255 / 4%);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 5%);
  font-weight:550; font-size:14px; text-decoration:none; transition:background-color 180ms,border-color 180ms,box-shadow 180ms;
}
.feature-download>.store-download { min-width:152px; }
.store-download .icon { width:16px; height:16px; }
.feature-stats .bookmark,.store-card-meta .bookmark { position:relative; z-index:2; min-width:36px; min-height:36px; gap:5px; padding:6px; font-size:12px; }
.feature-stats .bookmark .icon,.store-card-meta .bookmark .icon { width:17px; height:17px; }
.download-count { color:var(--muted); font-size:12px; gap:5px; white-space:nowrap; }
.download-count .icon { width:17px; height:17px; }
.download-count span,.store-total b,.store-pages { font-variant-numeric:tabular-nums; }
.format-set { gap:5px; font-size:13px; color:var(--secondary); }
.format-link { padding:6px 8px; font-size:12px; }
#skill-directory { margin:30px 0 0; scroll-margin-top:14px; }
#skill-directory:focus:not(:focus-visible) { outline:none; }
.store-toolbar { gap:16px; margin-bottom:26px; }
.store-toolbar nav {
  display:flex; padding:6px; border:1px solid var(--border); border-radius:999px;
  background:var(--inset); box-shadow:inset 0 1px 0 rgb(255 255 255 / 4%);
}
.store-toolbar a {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  min-height:42px; padding:6px 18px; border:1px solid transparent; border-radius:999px;
  color:var(--secondary); font-size:14px; white-space:nowrap;
  transition:color 180ms,background-color 180ms,border-color 180ms,box-shadow 180ms;
}
.store-toolbar a[aria-current] {
  color:var(--text); border-color:#3d3d3d; font-weight:600; background:#272727;
  background-image:radial-gradient(ellipse at 50% 0,rgb(255 255 255 / 15%),transparent 70%);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 7%),0 2px 6px rgb(0 0 0 / 15%);
}
.store-total { font-size:13px; color:var(--secondary); white-space:nowrap; }
.store-total b { font-weight:500; color:var(--text); }
.store-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.store-card { display:flex; flex-direction:column; }
.store-card-body { flex:1; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px 14px; padding:26px 28px 20px; align-content:start; }
.store-card-heading { display:flex; align-items:center; gap:13px; min-width:0; }
.store-card h3 { font-size:18px; line-height:1.45; }
.store-card-summary { grid-column:1/-1; color:var(--secondary); font-size:14px; line-height:1.6; min-height:45px; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.store-card-meta { grid-column:1/-1; display:flex; align-items:center; gap:12px; min-width:0; }
.store-author { display:inline-flex; align-items:center; gap:7px; min-width:0; color:var(--muted); font-size:12px; }
.store-author>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.store-author .icon { width:18px; height:18px; }
@media (hover:hover) {
  .feature-card:hover,.store-card:hover { background-color:#262626; border-color:#454545; box-shadow:inset 0 1px 0 rgb(255 255 255 / 5%),0 8px 24px rgb(0 0 0 / 8%); }
  .feature-card:hover::before,.store-card:hover::before { opacity:1; }
  .store-download:hover { background-color:#383838; border-color:#858585; box-shadow:inset 0 1px 0 rgb(255 255 255 / 10%),0 2px 8px rgb(0 0 0 / 10%); text-decoration:none; }
  .feature-stats .bookmark:hover,.store-card-meta .bookmark:hover { background:rgb(255 255 255 / 7%); color:var(--text); }
  .store-toolbar a:hover { color:var(--text); background-color:#252525; text-decoration:none; }
}
.store-download:active,.store-toolbar a:active { background-color:#363636; }
.store-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px; margin:28px 0 0; }
.store-pages a,.store-pages span { min-width:44px; height:44px; display:grid; place-items:center; border-radius:8px; font-size:14px; }
.store-pages [aria-current] { color:var(--accent); border:1px solid var(--accent); }
.store-pages [aria-disabled] { color:var(--control); }
.store-pages .icon { width:16px; }
.store-foot { margin-top:54px; border-top:1px solid var(--border); }
.store-foot .wrap { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; padding-block:28px 40px; }
.store-foot h2 { font-size:15px; }
.store-foot p { font-size:13px; color:var(--secondary); margin-top:6px; line-height:1.7; }
@media (max-width:700px) {
  .store-hero { padding:55px 0 29px; }
  .store-intro h1 { font-size:40px; }
  .store-intro p { font-size:14px; margin:9px 0 18px; }
  .store-intro .search-line { min-height:50px; }
  .keyword-field { inset:0 0 auto; height:41px; gap:10px; }
  .keyword-lane { flex-direction:row; justify-content:flex-start; gap:8px; width:50%; overflow:hidden; }
  .keyword-lane span { flex:none; padding:1px 9px; font-size:11px; }
  .keyword-lane span:nth-child(even) { align-self:center; margin-left:0; }
  .lane-1 { justify-content:flex-end; }
  .store-featured { margin:24px 0; }
  .store-section-head h2 { font-size:23px; }
  .featured-grid,.store-grid,.store-foot .wrap { grid-template-columns:minmax(0,1fr); }
  .feature-card { min-height:350px; padding:24px 20px 16px; }
  .feature-visual { height:106px; }
  .feature-copy h3 { font-size:21px; }
  .feature-author { margin-top:14px; padding-top:0; }
  .feature-download { margin-top:18px; }
  .store-download,.feature-stats .bookmark,.store-card-meta .bookmark { min-height:44px; }
  .format-link { min-width:44px; }
  .store-toolbar { flex-wrap:wrap; gap:10px; margin-bottom:18px; }
  .store-toolbar nav { flex:1; padding:4px; }
  .store-toolbar a { flex:1; padding:5px 10px; font-size:13px; }
  .store-total { margin-left:auto; font-size:12px; }
  .store-grid { gap:16px; }
  .store-card-body { gap:14px 10px; padding:20px 18px 14px; }
  .store-card h3 { font-size:16px; }
  .store-card-heading { gap:10px; }
  .store-card-meta { gap:10px; }
  .store-foot { margin-top:36px; }
  .store-foot .wrap { gap:19px; }
}
@media (prefers-reduced-motion:reduce) { .keyword-lane { animation:none; } }
