/* /guide4contentmarketplaces (mg- prefix). Tokens come from home.css. */
.mg h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.mg h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.mg p, .mg li, .mg td, .mg summary { color: var(--ink-2); }
.mg p { margin: 0 0 10px; }
.mg .mk-section a:not(.mk-btn) { color: #a62c19; text-decoration: underline; text-underline-offset: 2px; }
.mg section[id] { scroll-margin-top: 90px; }
.mg-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.mg-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.mg-facts li { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; font-size: .86rem; }
.mg-facts b { color: var(--ink); }
.mg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 !important; }

.mg-toc { background: #fff; border-bottom: 1px solid var(--line); }
.mg-toc .mk-wrap { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; }
.mg-toc a { padding: 11px 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.mg-toc a:hover { color: #a62c19; }

.mg-note { border: 1px solid #f3d7a6; border-left: 4px solid #c9861a; background: #fdf6ea; color: #4d3607; border-radius: 8px; padding: 13px 16px; margin-bottom: 16px; }
.mg-note strong { color: #2f2104; }

.mg-steps { list-style: none; counter-reset: mg; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mg-steps li { counter-increment: mg; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mg-steps li::before { content: counter(mg); display: block; font-family: var(--f-mono); font-weight: 600; font-size: .78rem; color: #a62c19; margin-bottom: 6px; }
.mg-steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.mg-steps span { display: block; font-size: .9rem; line-height: 1.5; }

.mg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; margin-bottom: 8px; }
.mg-two > * { min-width: 0; }

.mg-scroll { overflow-x: auto; margin-bottom: 12px; }
.mg-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.mg-table th, .mg-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mg-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--paper); }
.mg-table tbody th { color: var(--ink); white-space: nowrap; width: 1%; }
.mg-table .r { text-align: right; white-space: nowrap; }
.mg-table small { color: var(--ink-3); }

.mg code { font-family: var(--f-mono), ui-monospace, Consolas, monospace; font-size: .84em; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.mg pre { background: #101826; color: #e8edf5; border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; overflow-x: auto; font-size: .82rem; line-height: 1.6; }
.mg pre code { background: none; border: 0; padding: 0; color: #e8edf5; font-size: inherit; overflow-wrap: normal; }

.mg-list { padding-left: 18px; margin: 0 0 10px; }
.mg-list li { margin-bottom: 6px; list-style: disc; }

.mg-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.mg-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink); }
.mg-faq details p { padding: 0 16px 14px; margin: 0; }

@media (max-width: 1100px) { .mg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .mg-two, .mg-steps { grid-template-columns: minmax(0, 1fr); }
    .mg-table tbody th { white-space: normal; width: 32%; }
    .mg-table .r { white-space: normal; }
    .mg-actions .mk-btn { width: 100%; }
}
