/* Midjourney basics: article-only styles; the shared site shell stays untouched. */
.mj-basics-body {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #222721;
  --muted: #696e63;
  --line: #e1dfd5;
  --yellow: #f3ca38;
  --gold: #806719;
  --soft: #fff8df;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.mj-basics-body * { box-sizing: border-box; }
.mj-basics-body img, .mj-basics-body video { display: block; max-width: 100%; width: 100%; height: auto; aspect-ratio: auto; }
.mj-basics-body button, .mj-basics-body input, .mj-basics-body select, .mj-basics-body textarea { font: inherit; }
.mj-basics-body button, .mj-basics-body summary { cursor: pointer; }
.mj-basics-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .21em; }
.mj-basics-body a:hover { text-decoration-color: #b58b0c; }
.mj-basics-body a:focus-visible, .mj-basics-body button:focus-visible, .mj-basics-body summary:focus-visible { outline: 3px solid #b58b0c; outline-offset: 4px; }
.mj-basics-body button { -webkit-tap-highlight-color: transparent; }
.mj-basics-body button:disabled { cursor: default; opacity: .65; }
.mj-basics-body ::selection { background: #f8e492; }
.mj-basics-body .detail-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; margin: 23px 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 17px; font-weight: 700; text-decoration: none; }
.mj-basics-body .detail-link:hover { background: var(--soft); border-color: var(--yellow); }
.mj-basics-body .detail-link span { flex: none; color: var(--gold); }
.mj-basics-body .copy-status:empty { display: none; }
.mj-basics-body .catalog-cta { margin-top: 30px; padding: clamp(22px, 4vw, 36px); border: 1px solid #e2d49b; border-top: 4px solid var(--yellow); border-radius: 14px; background: #fff9e5; }
.mj-basics-body .catalog-cta .catalog-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 750; color: var(--gold); }
.mj-basics-body .catalog-cta h3 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 28px); line-height: 1.6; }
.mj-basics-body .catalog-cta p { font-size: 18px; }
.mj-basics-body .catalog-button { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 23px; background: var(--yellow); border-radius: 9px; font-size: 19px; font-weight: 800; text-decoration: none; line-height: 1.6; }
.mj-basics-body .catalog-button:hover { background: #f9d653; }
.mj-basics-body .catalog-button span { flex: none; }
.mj-basics-body .catalog-cta .catalog-note { font-size: 13px; color: var(--muted); margin: 13px 0 0; }
.mj-basics-body .sources summary { font-weight: 650; }
.mj-basics-body { width: 100%; min-width: 0; max-width: 900px; line-break: strict; margin: 0 auto; font-size: 21px; line-height: 1.95; overflow-wrap: anywhere; }
.mj-basics-body > :first-child { margin-top: 0; }
.mj-basics-body p { margin: 1.05em 0; font-size: inherit; line-height: inherit; }
.mj-basics-body strong { font-weight: 800; }
.mj-basics-body a { text-decoration-color: #bb9d38; }
.mj-basics-body section { margin: 48px 0 0; }
.mj-basics-body h2 { scroll-margin-top: 100px; font-size: 32px; line-height: 1.5; letter-spacing: -.035em; margin: 0 0 20px; padding-top: 24px; border-top: 2px solid #30362e; font-weight: 850; }
.mj-basics-body h3 { scroll-margin-top: 100px; font-size: 25px; line-height: 1.65; letter-spacing: -.025em; margin: 1.3em 0 .55em; font-weight: 800; }
.mj-basics-body .section-heading { margin-bottom: 20px; }
.mj-basics-body figure { margin: 20px 0 23px; min-width: 0; }
.mj-basics-body h2 + figure, .mj-basics-body .section-heading + figure { margin-top: 0; }
.mj-basics-body figure img, .mj-basics-body figure video { border-radius: 12px; background: transparent; }
.mj-basics-body figcaption, .mj-basics-body .caption { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 9px 0 0; overflow-wrap: anywhere; }
.mj-basics-body figcaption a { font-weight: 650; }
.mj-basics-body .reader { display: flex; align-items: flex-end; gap: 15px; margin: 26px 0; }
.mj-basics-body .reader > img { width: 62px; height: 62px; flex: 0 0 62px; object-fit: contain; }
.mj-basics-body .reader > div { flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; padding: 17px 21px; border-radius: 17px 17px 17px 3px; font-size: 19px; line-height: 1.85; }
.mj-basics-body .reader p { margin: 0; }
.mj-basics-body .reader p + p { margin-top: .65em; }
.mj-basics-body .settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 25px 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.mj-basics-body .settings > div { padding: 14px 17px; background: #fffefa; min-width: 0; }
.mj-basics-body .settings dl { margin: 0; }
.mj-basics-body .settings dt { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mj-basics-body .settings dd { margin: 4px 0 0; font-size: 16px; line-height: 1.65; font-weight: 750; }
.mj-basics-body .prompt-box { margin: 25px 0; border: 1px solid #ddd7c4; border-top: 4px solid var(--yellow); border-radius: 11px; overflow: hidden; background: #fff; }
.mj-basics-body .prompt-box .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fffdf5; }
.mj-basics-body .prompt-box .label { font-size: 15px; font-weight: 800; line-height: 1.6; }
.mj-basics-body .copy-button { flex: none; min-height: 40px; border: 1px solid #d9d4c4; border-radius: 7px; background: white; color: var(--ink); padding: 7px 13px; font-size: 13px; line-height: 1.5; font-weight: 750; }
.mj-basics-body .copy-button:hover { background: var(--soft); border-color: #cdb458; }
.mj-basics-body .prompt-box pre { margin: 0; padding: 21px 23px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 16px/1.9 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.mj-basics-body .prompt-box pre code { padding: 0; background: none; border-radius: 0; font: inherit; white-space: inherit; }
.mj-basics-body .prompt-box > p { padding: 0 23px; font-size: 15px; color: var(--muted); }
.mj-basics-body code { border: 0; font: .87em/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; padding: 2px 5px; border-radius: 4px; background: #eeece4; overflow-wrap: anywhere; }
.mj-basics-body .steps { display: block; list-style: decimal; counter-reset: none; padding-left: 1.55em; margin: 22px 0; }
.mj-basics-body .steps li { display: list-item; counter-increment: none; padding-left: .2em; margin: .7em 0; font-size: inherit; line-height: inherit; }
.mj-basics-body .steps li::before { content: none; }
.mj-basics-body .steps li::marker { color: var(--gold); font-weight: 800; }
.mj-basics-body .steps p { margin: .35em 0; }
.mj-basics-body .lesson { margin: 25px 0; padding: 19px 23px; background: var(--soft); border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; }
.mj-basics-body .lesson > :first-child { margin-top: 0; }
.mj-basics-body .lesson > :last-child { margin-bottom: 0; }
.mj-basics-body .lesson .label, .mj-basics-body .lesson > small { display: block; margin: 0 0 7px; font-size: 13px; color: var(--gold); font-weight: 800; letter-spacing: .035em; }
.mj-basics-body .phrase { margin: 22px 0; padding: 16px 21px; border-left: 3px solid #c3a552; background: #f1efe7; border-radius: 0 8px 8px 0; }
.mj-basics-body .phrase > code { display: block; background: none; padding: 0; color: #41463b; font-size: 16px; line-height: 1.8; font-weight: 600; }
.mj-basics-body .phrase > p { margin: 7px 0 0; font-size: 17px; color: #5b6154; line-height: 1.85; }
.mj-basics-body .split, .mj-basics-body .compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; align-items: start; }
.mj-basics-body .split > *, .mj-basics-body .compare-grid > * { min-width: 0; }
.mj-basics-body .split figure { margin: 0; }
.mj-basics-body .split > div > :first-child { margin-top: 0; }
.mj-basics-body .split p { font-size: 18px; line-height: 1.9; }
.mj-basics-body .compare-grid > article, .mj-basics-body .compare-grid > .card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 20px; }
.mj-basics-body .compare-grid h3 { font-size: 20px; margin: 0 0 10px; }
.mj-basics-body .compare-grid p { font-size: 17px; line-height: 1.85; margin: .7em 0; }
.mj-basics-body .compare-grid code { font-size: 14px; }
.mj-basics-body .example-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; margin: 24px 0; }
.mj-basics-body .example-card > img, .mj-basics-body .example-card > a > img { border-radius: 8px; }
.mj-basics-body .example-card > a { min-width: 0; }
.mj-basics-body .example-card .body { min-width: 0; }
.mj-basics-body .example-card .badge { display: inline-block; color: var(--gold); background: #f3e9c8; padding: 3px 7px; border-radius: 4px; font-size: 11px; line-height: 1.6; font-weight: 750; }
.mj-basics-body .example-card .badge.free { color: #17664d; background: #e8f3ed; }
.mj-basics-body .example-card h3 { font-size: 20px; line-height: 1.6; margin: 7px 0; }
.mj-basics-body .example-card p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 8px 0 12px; }
.mj-basics-body .example-card .body > a { font-size: 14px; font-weight: 750; text-decoration-thickness: 2px; }
.mj-basics-body .related { display: grid; gap: 12px; margin: 25px 0; padding: 19px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mj-basics-body .related > strong, .mj-basics-body .related > h3 { margin: 0; font-size: 16px; }
.mj-basics-body .related a { font-size: 16px; line-height: 1.8; font-weight: 650; }
.mj-basics-body .related p { margin: 0; font-size: 15px; color: var(--muted); }
.mj-basics-body .source-note { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 16px 0; }
.mj-basics-body .sources { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.9; }
.mj-basics-body .sources h3 { font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.mj-basics-body .sources ul { margin: 10px 0; padding-left: 1.3em; }
.mj-basics-body .sources li { margin: .5em 0; }
.mj-basics-body .table-wrap { max-width: 100%; overflow-x: auto; margin: 23px 0; border: 1px solid var(--line); border-radius: 10px; }
.mj-basics-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.8; background: #fff; }
.mj-basics-body th, .mj-basics-body td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.mj-basics-body th { background: #f3f0e5; font-weight: 750; }
.mj-basics-body tr:last-child td { border-bottom: 0; }
.mj-basics-body td code { white-space: nowrap; }
@media (max-width: 900px) {
.mj-basics-body .split { grid-template-columns: 1fr; gap: 16px; }
.mj-basics-body .split p { font-size: inherit; }
}
@media (max-width: 680px) {
.mj-basics-body .detail-link { padding: 15px; font-size: 15px; }
.mj-basics-body .catalog-cta p { font-size: 16px; }
.mj-basics-body .catalog-button { font-size: 16px; padding: 16px; }
.mj-basics-body .catalog-cta .catalog-note { font-size: 12px; }
.mj-basics-body { font-size: 17px; line-height: 1.95; }
.mj-basics-body section { margin-top: 37px; }
.mj-basics-body h2 { scroll-margin-top: 100px; font-size: 25px; line-height: 1.55; padding-top: 19px; margin-bottom: 17px; }
.mj-basics-body h3 { scroll-margin-top: 100px; font-size: 21px; }
.mj-basics-body figure { margin: 17px 0 20px; }
.mj-basics-body figure img, .mj-basics-body figure video { border-radius: 9px; }
.mj-basics-body figcaption, .mj-basics-body .caption { font-size: 12px; line-height: 1.8; margin-top: 7px; }
.mj-basics-body .reader { gap: 10px; margin: 22px 0; }
.mj-basics-body .reader > img { width: 45px; height: 45px; flex-basis: 45px; }
.mj-basics-body .reader > div { padding: 13px 15px; font-size: 16px; line-height: 1.85; border-radius: 14px 14px 14px 3px; }
.mj-basics-body .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
.mj-basics-body .settings > div { padding: 12px; }
.mj-basics-body .settings dt { font-size: 11px; }
.mj-basics-body .settings dd { font-size: 14px; }
.mj-basics-body .prompt-box { margin: 20px 0; }
.mj-basics-body .prompt-box .head { padding: 12px 14px; align-items: flex-start; }
.mj-basics-body .prompt-box .label { font-size: 13px; }
.mj-basics-body .copy-button { font-size: 11px; padding: 6px 9px; }
.mj-basics-body .prompt-box pre { padding: 17px; font-size: 14px; line-height: 1.9; }
.mj-basics-body .prompt-box > p { padding: 0 17px; font-size: 13px; }
.mj-basics-body .steps { padding-left: 1.4em; }
.mj-basics-body .lesson { padding: 16px 17px; margin: 21px 0; }
.mj-basics-body .lesson .label, .mj-basics-body .lesson > small { font-size: 12px; }
.mj-basics-body .phrase { padding: 14px 17px; margin: 19px 0; }
.mj-basics-body .phrase > code { font-size: 14px; }
.mj-basics-body .phrase > p { font-size: 15px; }
.mj-basics-body .compare-grid { grid-template-columns: 1fr; gap: 13px; margin: 20px 0; }
.mj-basics-body .compare-grid > article, .mj-basics-body .compare-grid > .card { padding: 16px; }
.mj-basics-body .compare-grid h3 { font-size: 18px; }
.mj-basics-body .compare-grid p { font-size: 16px; }
.mj-basics-body .example-card { grid-template-columns: 1fr; gap: 13px; padding: 13px; margin: 21px 0; }
.mj-basics-body .example-card h3 { font-size: 19px; }
.mj-basics-body .example-card p { font-size: 14px; }
.mj-basics-body .related { padding: 16px 17px; gap: 9px; margin: 21px 0; }
.mj-basics-body .related a, .mj-basics-body .related > strong, .mj-basics-body .related > h3 { font-size: 15px; }
.mj-basics-body .related p { font-size: 14px; }
.mj-basics-body .source-note, .mj-basics-body .sources { font-size: 12px; }
.mj-basics-body table { min-width: 520px; font-size: 14px; }
.mj-basics-body th, .mj-basics-body td { padding: 11px 12px; }
}
