/* Hallmark · waive 63 · the middle dots sit inside .skill-file-body, the verbatim top of the shipped SKILL.md · the preview must equal the real skill file, so its author line is not rewritten */
/* AI Assistant Setup: the skill block (a preview of the real file beside the sign-up form) on / and
   /claude-skills/ai-assistant-setup, and the two hidden pages for the emailed links (/skills/get, /email-preferences).
   Loaded only by those four pages. Site tokens only; the form card is the site's own .contact-form.lead-form. */

/* The block: preview left, form right on wide screens; form first on phones would hide what is offered, so the
   preview leads and is short. */
.skill-block { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 901px) { .skill-block { grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 2.5rem; } }
.page-crucible .skill-block { margin-top: 2rem; }
.skill-preview { margin: 0; min-width: 0; }
/* A dark file card on either band: the real lines, fading out; not selectable by a casual drag. */
.skill-file {
  background: var(--coal); border: 1px solid var(--seam); border-radius: 8px; color: var(--bone);
  -webkit-user-select: none; user-select: none; overflow: hidden;
}
.skill-file-name { margin: 0; padding: 0.55rem 1rem; border-bottom: 1px solid var(--seam); font-size: 0.8125rem; color: var(--bone-2); }
.skill-file-body {
  margin: 0; padding: 0.9rem 1rem 0; max-height: 19rem; overflow: hidden;
  font: 0.8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
  -webkit-mask-image: linear-gradient(to bottom, var(--mask) 68%, transparent 98%);
  mask-image: linear-gradient(to bottom, var(--mask) 68%, transparent 98%);
}
.skill-file-body .pv-m { color: var(--bone-2); }
.skill-file-body .pv-h { color: var(--gold-hi); font-weight: 600; }
.skill-preview figcaption { margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
@media (min-width: 901px) { .skill-file-body { max-height: 24rem; } }

/* The form card: the site's lead-form card. Two panes, asking and done; only one shows. */
.skill-form > .skill-ask > * { margin: 0; }
.skill-form > .skill-ask > * + * { margin-top: 0.75rem; }
.skill-form > .skill-ask > div:not([class]) { margin-top: 0; }   /* the Turnstile slot: no gap while it's empty */
.skill-form > .skill-done > * { margin: 0; }
.skill-form > .skill-done > * + * { margin-top: 0.75rem; }
.skill-form > .skill-done:focus { outline: none; }
.skill-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.skill-form legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--fg); }
.skill-fit { display: grid; gap: 0.4rem; }
.skill-form .skill-fit label {
  display: flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; padding: 0.35rem 0.8rem;
  border: 1px solid var(--field-edge); border-radius: 6px; font-weight: 400; font-size: 0.9375rem; cursor: pointer;
}
.skill-form .skill-fit input { width: 1.125rem; height: 1.125rem; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.skill-form .skill-fit label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.skill-form .skill-fit label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.skill-form .skill-fit input:focus { outline: none; }   /* the ring is on the whole row (above) */
.skill-fit .field-err { margin-top: 0.1rem; }
.skill-form .skill-consent { text-align: left; }
.skill-form .skill-consent + .lead-fine { margin-top: 0.2rem; text-align: left; }
.skill-done .lead-sub { margin-top: 0.4rem; }
.skill-when { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-when legend { width: 100%; }
.skill-opt { display: block; margin-bottom: 0.15rem; font-size: 0.8125rem; font-weight: 400; color: var(--fg-3); }
.skill-when button {
  min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 1px solid var(--field-edge); border-radius: 6px;
  background: var(--paper); color: var(--fg); font: inherit; font-size: 0.9375rem; cursor: pointer;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.skill-when button:hover { border-color: var(--accent); background: var(--card-hover); }
.skill-when button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.skill-when .skill-skip { border-color: transparent; background: none; color: var(--fg-2); text-decoration: underline; text-underline-offset: 0.2em; }
.skill-when .field-err { width: 100%; }
.skill-thanks { font-weight: 600; color: var(--accent); }
.skill-form .skill-call { text-align: left; overflow-wrap: anywhere; }
.skill-form .lead-btn[disabled] { cursor: progress; }

/* Homepage band: a light band between the dark hero and the dark #connect band. */
.skill-band .stage-head h2 { max-width: 28ch; }
.skill-more { margin: 1.25rem 0 0; }
.skill-more a { font-weight: 600; color: var(--accent); }

/* The skill page: a shorter H1 on wide screens keeps the form's Send button inside a 1280x800 first screen (Hallmark 44b). */
.skill-hero h1 { max-width: 24ch; text-wrap: balance; }
@media (min-width: 901px) {
  .skill-hero h1 { max-width: 36ch; text-wrap: wrap; font-size: clamp(2rem, 1.3rem + 1.6vw, 2.625rem); }   /* line one ends at "first." (34.5ch); "This" would need 37.9ch */
  .page-crucible .skill-block { margin-top: 1.5rem; }
  .skill-form .skill-fit label { min-height: 2.5rem; padding-block: 0.25rem; }
}
.skill-hero .lede { max-width: 46ch; }
.skill-page .prose > p { max-width: var(--w-text); }
.skill-page .callout .prose a, .skill-page .skill-hero a { overflow-wrap: anywhere; }

/* Hidden pages */
.skill-hidden #main { min-height: calc(100svh - 14rem); }   /* a short page still pushes the footer to the bottom */
.skill-narrow { max-width: 44rem; }
.skill-act { margin: 1.5rem 0 0; }
.skill-dl { min-height: 3rem; }
.skill-msg { margin: 1rem 0 0; max-width: var(--w-text); font-weight: 600; }
.skill-hidden .page-crucible .skill-msg { color: var(--fg); }
.skill-hidden .page-crucible .skill-msg a { color: var(--accent); }
.skill-steps { padding-left: 1.2rem; }
.skill-steps li { margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.prefs-email { margin: 0.25rem 0 1.5rem; color: var(--fg-2); overflow-wrap: anywhere; }
.prefs-choices { display: grid; gap: 1rem; max-width: 40rem; }
.prefs-choice {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center;
  padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--card);
}
.prefs-choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); }
.prefs-choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prefs-choice label { font-weight: 600; cursor: pointer; }
.prefs-choice p { grid-column: 2; margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--fg-2); }
.skill-msg[data-msg="saved"] { color: var(--accent); }
.skill-msg[data-msg="failed"], .skill-msg[data-msg="badlink"] { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { .skill-when button { transition: none; } }
