.modders-page { max-width: 1240px; margin: auto; }
.modders-page [id] { scroll-margin-top: var(--navigation-offset, 160px); }
.modders-page p { max-width: 78ch; }
.modders-page a { text-decoration: none; }
.modders-page a:hover { text-decoration: underline; }
.modders-page code, .modders-page pre { font: inherit; }
.modders-page code { color: #f4ce8d; }
.modders-page pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.modders-page ul { padding-left: 22px; color: var(--muted); }
.modders-page li { margin: 9px 0; }
.modders-page h3 { margin-bottom: 12px; }
.draft-strip { display: flex; align-items: baseline; gap: 20px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.draft-strip > span { color: var(--amber); white-space: nowrap; text-transform: uppercase; font-size: 15px; }
.draft-strip p { font-size: 15px; margin: 0; }
.modder-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 28px 0 12px; }
.modder-heading .eyebrow { text-transform: uppercase; font-size: 16px; margin-bottom: 12px; }
.modder-heading h1 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 18px; }
.modder-heading p { max-width: 62ch; }
.modder-heading .button { flex-shrink: 0; margin-bottom: 16px; }
.modder-jumps { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.modder-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.modders-page .section-intro h2 { margin-top: 0; font-size: 32px; }
.section-intro { margin-bottom: 26px; }
.component-view { border: 1px solid var(--line); background: #080a0d; }
.component-image { display: block; width: min(100%, 960px); height: auto; margin: auto; }
.component-lines { stroke: var(--amber); stroke-width: 1.5; opacity: .75; }
.component-image circle { fill: #090909; stroke: var(--amber); stroke-width: 1.5; }
.component-image text { fill: var(--amber); font: 22px var(--font); text-anchor: middle; pointer-events: none; }
.component-image a:hover circle, .component-image a:focus circle { fill: var(--amber); }
.component-image a:hover text, .component-image a:focus text { fill: #090909; }
.component-key { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: parts; list-style: none; padding: 15px 26px; margin: 0; border-top: 1px solid var(--line); background: var(--bg); gap: 4px 20px; }
.component-key li { counter-increment: parts; display: flex; gap: 12px; align-items: baseline; }
.component-key li::before { content: counter(parts, decimal-leading-zero); color: var(--muted); font-size: 15px; }
.author-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; }
.author-steps { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.author-steps > li { counter-increment: steps; position: relative; padding-left: 43px; margin: 0 0 30px; }
.author-steps > li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--amber); }
.author-aside { background: var(--panel); border: 1px solid var(--line); padding: 24px; align-self: start; min-width: 0; }
.author-aside pre { font-size: 16px; line-height: 1.7; margin-bottom: 24px; color: #f4ce8d; }
.download-links { display: flex; flex-direction: column; gap: 10px; }
.author-detail, .command-entry { border-top: 1px solid var(--line); }
.author-detail { padding: 0 0 6px; }
.author-detail > summary, .command-entry > summary { cursor: pointer; padding: 18px 0; color: var(--amber); }
.author-detail > summary::marker, .command-entry > summary::marker { color: var(--muted); }
.author-detail > summary:hover, .command-entry > summary:hover { color: #ffe0ac; }
.author-detail[open] > summary { margin-bottom: 6px; }
.detail-columns, .syntax-guide, .topic-grid, .recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.detail-columns > *, .recipe-grid > *, .syntax-guide > * { min-width: 0; }
.detail-columns h3 { margin-top: 0; }
.code-sample { background: #100f0c; border-left: 2px solid var(--line); padding: 16px; margin-bottom: 20px; }
.code-sample button { display: none; margin: 12px 0 0; }
.modder-interactive .code-sample button { display: inline-block; }
.modders-page button, .modders-page select, .modders-page input[type=search] { border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--amber); padding: 9px 12px; }
.modders-page button:hover { border-color: var(--amber); }
.code-sample button { font-size: 14px; padding: 5px 10px; }
.modders-page .draft-note { border-left: 2px solid var(--line); padding: 10px 16px; background: var(--panel); font-size: 16px; }
.rig-tree { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.rig-tree pre { color: #f4ce8d; line-height: 1.55; }
.reference-note { font-size: 16px; }
.component-notes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; }
.component-notes > section { padding: 36px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.component-notes .eyebrow { font-size: 15px; margin: 0; text-transform: uppercase; }
.component-notes h2 { margin-top: 12px; }
.mini-flow, .lamp-states { display: flex; align-items: center; gap: 10px; margin: 25px 0; }
.mini-flow span, .lamp-states span { padding: 10px; border: 1px solid var(--line); color: var(--amber); flex: 1; }
.mini-flow small, .lamp-states small { display: block; color: var(--muted); font-size: 14px; }
.mini-flow b { font-weight: 400; }
.topic-grid { gap: 24px 60px; }
.syntax-guide { padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); }
.syntax-guide > div > code { display: block; margin-bottom: 12px; overflow-wrap: anywhere; }
.command-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; padding: 24px 0 16px; }
.command-controls label { display: flex; flex-direction: column; gap: 7px; font-size: 16px; }
.command-controls label:first-child { flex: 1; min-width: 230px; }
.command-controls select { max-width: 100%; }
.command-controls .condition-filter { flex-direction: row; align-items: center; align-self: center; }
.condition-filter input { accent-color: var(--amber); }
#command-count { font-size: 16px; padding: 10px 0; }
.command-entry { padding: 0 12px; }
.command-entry[open] { background: #100e0b; border-top-color: var(--amber); padding-bottom: 20px; }
.command-entry > summary { overflow-wrap: anywhere; }
.command-entry > summary > span:first-child { font-size: 21px; }
.command-group { float: right; font-size: 15px; color: var(--muted); margin-left: 18px; }
.command-body { padding: 4px 10px 0; }
.command-body dl { display: grid; grid-template-columns: 85px 1fr; gap: 6px 16px; margin: 0 0 15px; }
.command-body dt { color: var(--muted); }
.command-body dd { margin: 0; color: var(--ink); }
.command-body .permalink { font-size: 15px; }
.argument-list { font-size: 16px; }
.failure-codes { display: grid; grid-template-columns: 35px 1fr; gap: 8px; }
.failure-codes dt { color: var(--amber); }
.failure-codes dd { margin: 0; color: var(--muted); }
.event-table { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.event-table td, .event-table th { padding: 14px; border: 1px solid var(--line); text-align: left; font-weight: 400; }
.event-table th { color: var(--amber); }
.event-table td { color: var(--muted); }
.event-table code { white-space: nowrap; }
.release-checks { columns: 2; column-gap: 50px; }
.release-checks li { break-inside: avoid; }
.modder-end { display: flex; gap: 24px; padding-top: 30px; }
@media (max-width: 950px) {
  .author-columns { gap: 30px; }
  .component-notes { gap: 30px; }
  .modder-heading { align-items: start; }
  .modder-heading .button { display: none; }
  .command-controls .condition-filter { width: 100%; }
}
@media (max-width: 650px) {
  .modders-page [id] { scroll-margin-top: 24px; }
  .draft-strip { display: block; }
  .draft-strip p { margin-top: 6px; }
  .modder-heading { padding-top: 30px; }
  .modder-jumps { gap: 12px 18px; font-size: 16px; }
  .component-key { grid-template-columns: 1fr 1fr; padding: 12px; gap: 0 10px; font-size: 16px; }
  .component-key li { gap: 7px; }
  .author-columns, .detail-columns, .component-notes, .syntax-guide, .topic-grid, .recipe-grid { grid-template-columns: 1fr; }
  .component-notes { gap: 0; }
  .author-aside { padding: 18px; }
  .author-aside pre { font-size: 15px; }
  .modder-section { padding: 30px 0; }
  .command-group { display: block; float: none; margin: 5px 0 0 21px; }
  .command-entry > summary > span:first-child { font-size: 18px; }
  .command-entry { padding: 0 3px; }
  .command-body { padding: 0 6px; }
  .command-body dl { grid-template-columns: 65px 1fr; }
  .command-controls label:first-child { min-width: 0; width: 100%; flex-basis: 100%; }
  .release-checks { columns: 1; }
  .modder-end { flex-direction: column; gap: 12px; }
}
@media print {
  .draft-strip, .modder-jumps, .command-controls, .code-sample button, .modder-end { display: none !important; }
  .component-image { max-width: 650px; }
  .command-entry { break-inside: avoid; }
}
