/* /skills/<slug>/ — on top of reads.css + cases.css */
.skill-page { --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
/* type follows the Reads article: 17/500 title, 13 muted lead, 15/26 body, 15/500 section heads */
.skill-name .slash, .skill-card .slash { color: #c7c7cc; font-weight: 400; margin-right: 1px; }
.skill-page .skill-sub { margin-bottom: 24px; }
.case-page article.skill-page h3 { font-size: 15px; line-height: 22px; font-weight: 500; text-transform: none; letter-spacing: -.3px; color: #242528; margin: 40px 0 6px; }
.skill-page ol { padding-left: 20px; margin: 0; }
.case-page article.skill-page li { font-size: 15px; line-height: 26px; color: #424346; margin-bottom: 8px; }
.skill-cover-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; margin: 0 0 32px; background: #f6f6f7; }

/* install: one line you can paste, the way a terminal shows it */
.install { position: relative; }
.mode { display: flex; gap: 2px; justify-content: flex-end; margin-bottom: 8px; }
.mode button { font: inherit; font-size: 13px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: #a1a1aa; cursor: pointer; transition: color .15s, background .15s; }
.mode button[aria-pressed="true"] { color: var(--ink); background: #f0f0f1; }
.cmd { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #f4f4f4; border-radius: 8px; font: 14px/1.4 var(--mono); }
.cmd .dollar { color: #a1a1aa; flex: none; }
.cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: inherit; }
.install[data-mode="prompt"] .dollar { display: none; }
.cmd .copy { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px -6px 0; border: 0; border-radius: 8px; background: none; color: #6e6e73; cursor: pointer; padding: 0; transition: color .15s, background .15s, scale .15s cubic-bezier(.2,0,0,1); }
.cmd .copy:hover { color: var(--ink); background: rgb(0 0 0 / .05); }
.cmd .copy:active { scale: .92; }
.cmd .copy svg { grid-area: 1 / 1; transition: opacity .18s ease, scale .25s cubic-bezier(.2,0,0,1), filter .18s ease; }
.cmd .copy .i-check { opacity: 0; scale: .5; filter: blur(2px); }
.cmd .copy.done .i-copy { opacity: 0; scale: .5; filter: blur(2px); }
.cmd .copy.done .i-check { opacity: 1; scale: 1; filter: none; color: var(--ink); }
.byline { font-size: 13px; color: #a1a1aa; margin: 12px 0 32px; }

/* meta, like a package page */
.skill-meta { margin: 40px 0 0; border-top: 1px solid var(--line); }
.skill-meta > div { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; color: #424346; }
.skill-meta dt { width: 110px; flex: none; color: #a1a1aa; }
.skill-meta dd { margin: 0; min-width: 0; }
.skill-meta a { text-decoration: underline; text-decoration-color: #ccc; text-underline-offset: 3px; }
.skill-meta a:hover { text-decoration-color: var(--ink); }
.skill-meta .hint { color: #a1a1aa; }

/* SKILL.md, rendered */
.skill-doc { margin-top: 48px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.skill-doc-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: #a1a1aa; }
.skill-doc-head .btns { display: flex; gap: 8px; font-family: var(--font); }
.skill-doc-head .btns { gap: 4px; }
.skill-doc-head .icon-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; font-size: 13px; font-weight: 500; line-height: 1; background: none; border: 0; border-radius: 7px; color: #6e6e73; cursor: pointer; transition: color .15s, background .15s; }
.skill-doc-head .icon-btn:hover { color: var(--ink); background: rgb(0 0 0 / .04); }
.skill-doc-head .icon-btn svg { flex: none; width: 14px; height: 14px; }
.icon-btn .ico { display: grid; width: 14px; height: 14px; }
.icon-btn .ico svg { grid-area: 1 / 1; transition: opacity .18s ease, scale .25s cubic-bezier(.2,0,0,1); }
.icon-btn .i-check { opacity: 0; scale: .5; }
.icon-btn.done .i-copy { opacity: 0; scale: .5; }
.icon-btn.done .i-check { opacity: 1; scale: 1; }
.skill-md { padding: 8px 24px 24px; font-size: 15px; line-height: 26px; color: #424346; max-height: 640px; overflow: auto; }
.skill-md h2 { font-size: 17px; line-height: 24px; font-weight: 500; color: #242528; margin: 24px 0 8px; }
.skill-md h3 { all: unset; display: block; font-size: 15px; line-height: 22px; font-weight: 500; color: #242528; margin: 24px 0 6px; }
.skill-md h4, .skill-md h5 { font-size: 15px; font-weight: 500; color: #242528; margin: 20px 0 6px; }
.skill-md p { margin: 0 0 14px; }
.skill-md ul, .skill-md ol { padding-left: 22px; margin: 0 0 14px; }
.skill-md li { font-size: 15px; line-height: 26px; margin-bottom: 6px; }
.skill-md code { font: 13px var(--mono); background: #f4f4f5; padding: 1px 5px; border-radius: 5px; }
.skill-md pre { background: #f4f4f4; border-radius: 8px; padding: 14px 16px; overflow: auto; margin: 0 0 16px; }
.skill-md pre code { background: none; padding: 0; font-size: 13px; line-height: 1.6; }
.skill-md table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.skill-md th, .skill-md td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.skill-md th { font-weight: 500; color: var(--muted); }
.skill-md a { text-decoration: underline; text-underline-offset: 3px; }

/* demo: title, description, input, button; one casing rule; only the letters that change flip */
.casing-demo { margin-top: 8px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cd-stage { display: grid; place-items: center; padding: 48px 24px; }
.cd-form { width: 100%; max-width: 300px; display: flex; flex-direction: column; color: #424346; }
.cd-title { font-size: 20px; line-height: 28px; font-weight: 500; color: #1f1f1f; }
.cd-desc { font-size: 15px; line-height: 22px; color: #8a8a8e; margin: 2px 0 20px; }
.cd-input { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #e4e4e7; font-size: 15px; color: #a1a1aa; margin-bottom: 8px; }
.cd-btn { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; background: #1f1f1f; color: #fff; font-size: 15px; }
.cx { white-space: pre; }
.cx i { font-style: normal; display: inline-block; transition: opacity 110ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.cx i.out { opacity: 0; transform: translateY(-40%); transition: opacity 110ms ease, transform 110ms ease; }
.cd-bar { display: flex; justify-content: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.cd-seg { position: relative; display: flex; padding: 3px; background: #f0f0f2; border-radius: 10px; }
.cd-seg button { position: relative; z-index: 1; font: inherit; font-size: 13px; letter-spacing: inherit; padding: 6px 12px; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; transition: color 360ms ease 120ms; white-space: nowrap; }
.cd-seg button[aria-selected="true"] { color: var(--ink); }
.cd-pill { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 2px 6px rgb(0 0 0 / .04); transition: transform 560ms cubic-bezier(.22,1,.36,1) 40ms, width 560ms cubic-bezier(.22,1,.36,1) 40ms; }
@media (max-width: 640px) { .cd-stage { padding: 40px 16px; } .cd-bar { padding: 12px 8px; } .cd-seg button { padding: 6px 8px; font-size: 12px; } .cmd { font-size: 14px; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .cd-pill, .cx i { transition: none; } }
