/* DESIGN.md page: the ui-skills catalog layout (narrow column, two cards, skill rows) in the site's sticker style */
.design-page .top { background: rgba(253, 243, 225, .96); border-bottom-color: var(--ink); }
.nav a.is-active { background: var(--ink); color: var(--paper); }
.dk { width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 48px 0 120px; }
.dk__h1 { margin: 0 0 34px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.02em; font-weight: 460; font-variation-settings: "opsz" 144, "SOFT" 100; }

.dk__duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dk__card { min-width: 0; }
.dk__card { position: relative; padding: 16px 16px 14px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-hi); box-shadow: 3px 3px 0 var(--ink); }
.dk__card h2 { margin: 0 0 3px; font-size: 17px; font-weight: 620; }
.dk__card p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.dk__card-go { position: absolute; right: 12px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; }
.dk__card-go:hover { background: var(--paper-2); }
.dk__cmd { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); min-width: 0; }
.dk__cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.dk__copy { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.dk__copy:hover { background: var(--paper-2); }
.dk__copy.is-ok { background: #cfe8d3; }
.dk__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dk__cats button { padding: 9px 6px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 580; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .12s; }
.dk__cats button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.dk__cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.dk__sec { margin-top: 38px; scroll-margin-top: calc(var(--header-h) + 16px); }
.dk__sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink-3); }
.dk__clear { margin-left: auto; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-hi); font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.dk__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dk__row { border-bottom: 1.5px dashed rgba(26, 20, 16, .28); }
.dk__hit { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 13px 4px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; transition: background-color .12s; }
.dk__hit:hover { background: rgba(255, 250, 241, .9); }
.dk__hit:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; }
.dk__av { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-hi); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; }
.dk__av img { width: 100%; height: 100%; object-fit: cover; }
.dk__av-ph { font-weight: 700; font-size: 18px; }
.dk__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk__name { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.dk__org { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 450; color: var(--ink-3); }
.dk__badge, .dk__new { padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 650; }
.dk__desc { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk__stars { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 560; color: var(--ink-3); white-space: nowrap; }
.dk__row--ours .dk__hit { background: color-mix(in srgb, #ffc93c 22%, var(--paper-hi)); }
.dk__row--ours .dk__av { background: #ff5a3c; }
.dk__more { padding: 2px 4px 16px 62px; }
.dk__more p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dk__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.dk__btn { display: inline-flex; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-hi); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.dk__btn--main { background: var(--accent); }
.dk__cat { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }

@media (max-width: 640px) {
  .dk { padding-top: 26px; }
  .dk__duo { grid-template-columns: minmax(0, 1fr); }
  .dk__hit { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .dk__av { width: 40px; height: 40px; }
  .dk__more { padding-left: 4px; }
}

/* phones */
@media (max-width: 640px) {
  .dk { padding: 18px 0 80px; }
  .dk__h1 { font-size: 34px; margin-bottom: 20px; }
  .dk__card p { font-size: 15px; }
  .dk__cats { gap: 6px; }
  .dk__cats button { min-height: 44px; font-size: 15px; }
  .dk__copy { width: 44px; height: 44px; margin: -8px -8px -8px 0; }
  .dk__card-go { width: 44px; height: 44px; right: 4px; top: 2px; }
  .dk__sec { margin-top: 26px; }
  .dk__clear { min-height: 44px; padding: 6px 14px; }
  .dk__hit { min-height: 64px; padding: 10px 2px; }
  .dk__name { font-size: 16.5px; }
  .dk__desc { font-size: 15px; }
  .dk__stars { font-size: 14px; }
  .dk__more { padding: 2px 2px 14px; }
  .dk__more p { font-size: 15.5px; }
  .dk__btn { min-height: 44px; align-items: center; padding: 8px 16px; font-size: 15px; }
}
