/* /makers (render_pages.py makers_body, /makers.js): the example row, the claim form, the Wanted board and the badge builder.
   The page reuses the site's parts (page-head, ag sections, card, field, install-steps, ft-n, pre.snip, btn). This file
   loads before styles.css and recipes.css, so a rule that changes one of theirs uses two classes. */
[data-page="makers"] [hidden] { display: none !important; }

/* hero: the pitch and how a row looks */
.mk-head .page-head-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: center; }
.mk-head .page-title { font-size: clamp(38px, 2.6vw + 18px, 58px); line-height: 1.04; }
.mk-head .page-lede { max-width: 640px; }
.mk-example { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-cap { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mk-ex-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFAF7; }
.mk-ex-row--to { padding: 11px 13px; border: 2px solid var(--green); background: #F3F9F5; }
.mk-ex-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mk-ex-who b { font-size: 17px; font-weight: 600; }
.mk-ex-who > span:last-child { font-size: 13px; color: var(--muted); }
.mk-ex-k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mk-ex-row--to .mk-ex-k { color: var(--green-dark); }
.mk-ex-label, .mk-fine { margin: 0; }
.mk-fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (max-width: 960px) { .mk-head .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* what you get, how it works, the rules, the Wanted board */
.mk-cards, .mk-wanted { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mk-cards li { padding: 20px 22px; }
.mk-cards h3, .mk-want h3 { margin: 0; font-size: 17px; font-weight: 600; }
.mk-cards p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mk-steps.install-steps { margin-top: 18px; }
.mk-rules-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px 48px; }
.mk-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.mk-rules b { font-weight: 600; }
.mk-want { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 8px; background: #fff; border: 1px dashed #C9C3B6; border-radius: 16px; }
.mk-want p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mk-want a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
@media (max-width: 900px) {
  .mk-cards, .mk-wanted { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-rules-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .mk-cards, .mk-wanted { grid-template-columns: minmax(0, 1fr); } }

/* the claim form (field, field-error and form-status come from styles.css) */
.mk-form { max-width: 880px; margin-top: 20px; padding: 24px; }
.mk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mk-wide { grid-column: 1 / -1; }
.mk-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mk-hint:empty { display: none; }
.mk-form .field textarea { width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid #17181C33; border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.mk-form .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 0; }
.mk-form .field [aria-invalid="true"] { border-color: var(--amber); }
.mk-form .field select:disabled { background-color: var(--ground); color: var(--muted); cursor: default; }
.mk-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-fieldset legend { margin-bottom: 4px; padding: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }
.mk-tool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FBFAF7; }
.mk-tool .mk-remove { justify-self: start; }
.mk-add { align-self: flex-start; }
.mk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bar); border-radius: 10px; background: #fff;
  font-size: 14.5px; cursor: pointer; }
.mk-choice:has(input:checked) { padding: 0 13px; border: 2px solid var(--green); background: #F3F9F5; font-weight: 600; }
.mk-choice input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.mk-choice input[aria-invalid="true"] { outline: 2px solid var(--amber); outline-offset: 1px; }
.mk-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.mk-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.mk-check + .field-error { margin-top: 6px; }
.mk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mk-send { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mk-form .form-status { margin-top: 12px; }
.mk-done h3 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; color: var(--green); }
.mk-done p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .mk-fields, .mk-tool { grid-template-columns: minmax(0, 1fr); }
  .mk-form { padding: 18px 16px; }
  .mk-send .btn { width: 100%; }
}

/* the badges and the snippet builder */
.mk-badges { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.mk-badge { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.mk-badge--dark { background: var(--ink); border-color: var(--ink); color: #C9C4B8; }
.mk-builder { margin-top: 20px; padding: 20px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px 28px; }
.mk-builder-in, .mk-builder-out { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mk-preview { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px; border: 1px dashed var(--bar); border-radius: 12px; background: var(--ground); }
.mk-preview--dark { background: var(--ink); border-color: var(--ink); }
.mk-code-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mk-code-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.mk-builder pre.mk-snip { margin-top: 8px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 900px) { .mk-builder { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .mk-builder { padding: 16px; } }
