/*
 * saas-marketing.css — WP7 (marketing + legal page templates).
 * Owned by WP7 after creation. Prefix every class .mk-*.
 * Merged into the theme style.css at the end of the build.
 *
 * Depends on the tokens declared in style.css :root (--orange, --sidebar,
 * --paper, --surface, --border, --text*, --display, --body, --mono, --wrap, --r).
 * Nothing here re-declares a token; nothing here restyles a shared class.
 */

/* ===================== SHARED PAGE FURNITURE ===================== */

/* Wider container for the plan grid and the comparison table.
   Beats `.band > *` (0,1,0) with (0,2,1). */
.band > .mk-wide { max-width: 1320px; }

.mk-hero {
    padding: clamp(44px, 6vw, 76px) 28px clamp(28px, 4vw, 44px);
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.mk-hero-inner { max-width: 780px; margin: 0 auto; }
.mk-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); letter-spacing: -.02em; }
.mk-hero .lede { margin: 20px auto 0; font-size: 1.1rem; color: var(--text-body); }
.mk-hero-actions { display: flex; gap: 14px; margin-top: 30px; justify-content: center; flex-wrap: wrap; }

/* "14 days, no credit card" reassurance strip */
.mk-trustline {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
    margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
    font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
    color: var(--text-dim);
}
.mk-trustline span { display: inline-flex; align-items: center; gap: 8px; }
.mk-trustline span::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--success); flex: none;
}

/* Screen-reader-only text (the theme has no core .screen-reader-text rule). */
.mk-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mk-section-gap { margin-top: clamp(40px, 6vw, 64px); }

.mk-section-note {
    max-width: 760px; margin: 18px auto 0;
    color: var(--text-dim); font-size: .95rem; text-align: center;
}

/* ===================== PRICING SWITCHES ===================== */

.mk-pricing { position: relative; }

/* Visually hidden radios drive both toggles with pure CSS — no JavaScript.
   They are direct children of .mk-pricing so `~ *` reaches every later block. */
.mk-switch-input {
    position: absolute; width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}

.mk-switchbar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin-bottom: clamp(26px, 4vw, 40px);
}
.mk-switchgroup {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
}
.mk-switch {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 999px; cursor: pointer;
    font-size: .9rem; font-weight: 600; color: var(--text-dim);
    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}
.mk-switch:hover { color: var(--text); }
.mk-switch-save {
    font-family: var(--mono); font-size: .64rem; letter-spacing: .06em;
    text-transform: uppercase; font-weight: 700;
    color: var(--success); background: rgba(5,150,105,.1);
    border-radius: 999px; padding: 3px 7px;
}

/* Active states */
#mk-cur-eur:checked   ~ .mk-switchbar label[for="mk-cur-eur"],
#mk-cur-usd:checked   ~ .mk-switchbar label[for="mk-cur-usd"],
#mk-per-month:checked ~ .mk-switchbar label[for="mk-per-month"],
#mk-per-year:checked  ~ .mk-switchbar label[for="mk-per-year"] {
    background: var(--sidebar); color: #fff;
}
#mk-cur-eur:checked   ~ .mk-switchbar label[for="mk-cur-eur"] .mk-switch-save,
#mk-cur-usd:checked   ~ .mk-switchbar label[for="mk-cur-usd"] .mk-switch-save,
#mk-per-month:checked ~ .mk-switchbar label[for="mk-per-month"] .mk-switch-save,
#mk-per-year:checked  ~ .mk-switchbar label[for="mk-per-year"] .mk-switch-save {
    background: rgba(255,255,255,.14); color: #fff;
}
/* Keyboard focus has to be visible on the label, since the input is hidden. */
#mk-cur-eur:focus-visible   ~ .mk-switchbar label[for="mk-cur-eur"],
#mk-cur-usd:focus-visible   ~ .mk-switchbar label[for="mk-cur-usd"],
#mk-per-month:focus-visible ~ .mk-switchbar label[for="mk-per-month"],
#mk-per-year:focus-visible  ~ .mk-switchbar label[for="mk-per-year"] {
    outline: 2px solid var(--orange); outline-offset: 2px;
}

/* Every price is rendered server-side in all four combinations; the toggles
   only decide which one is displayed. */
#mk-cur-usd:checked   ~ * .mk-amt.is-eur,
#mk-cur-eur:checked   ~ * .mk-amt.is-usd,
#mk-per-year:checked  ~ * .mk-amt.is-month,
#mk-per-month:checked ~ * .mk-amt.is-year { display: none; }

/* ===================== PLAN CARDS ===================== */

.mk-plans {
    display: grid; gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}
.mk-plan {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px 20px;
    position: relative;
}
.mk-plan-featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,140,0,.12);
}
.mk-plan-flag {
    position: absolute; top: -11px; left: 20px;
    background: var(--orange); color: #fff;
    font-family: var(--mono); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
}
.mk-plan-name { font-size: 1.25rem; margin-bottom: 4px; }
.mk-plan-tag { color: var(--text-dim); font-size: .88rem; min-height: 2.6em; }

.mk-plan-price { margin: 16px 0 4px; min-height: 68px; }
.mk-amt { display: block; }
.mk-amt-value {
    font-family: var(--body); font-weight: 700; font-size: 2.1rem;
    color: var(--sidebar); line-height: 1.05; letter-spacing: -.02em;
}
.mk-amt-per { font-size: .9rem; font-weight: 500; color: var(--text-dim); }
.mk-amt-sub {
    display: block; margin-top: 6px;
    font-family: var(--mono); font-size: .7rem; color: var(--text-mut);
}
.mk-amt-from {
    display: block; font-family: var(--mono); font-size: .66rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut);
    margin-bottom: 2px;
}

.mk-plan .btn { justify-content: center; width: 100%; margin: 14px 0 18px; }
.mk-plan .btn-ghost { background: #fff; color: var(--text); border-color: var(--border-2); }
.mk-plan .btn-ghost:hover { border-color: var(--sidebar); color: var(--sidebar); }

.mk-plan-limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.mk-plan-limits li {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: .87rem; color: var(--text-body);
    border-bottom: 1px dashed var(--border); padding-bottom: 8px;
}
.mk-plan-limits li:last-child { border-bottom: 0; }
.mk-plan-limits b { font-weight: 700; color: var(--text); text-align: right; }
.mk-plan-limits span { color: var(--text-dim); }

.mk-plan-gates { margin-top: 14px; font-size: .85rem; color: var(--text-dim); }
.mk-plan-gates strong { color: var(--text); font-weight: 700; }

/* ===================== COMPARISON TABLE ===================== */

.mk-table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: var(--r);
    background: var(--surface);
}
.mk-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .9rem; }
.mk-table th, .mk-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.mk-table thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--sidebar); color: #fff; font-family: var(--body);
    font-weight: 700; font-size: .9rem; border-bottom: 0;
}
.mk-table thead th small {
    display: block; font-family: var(--mono); font-weight: 400;
    font-size: .68rem; color: var(--text-inv-dim); margin-top: 3px;
}
.mk-table thead th small .mk-amt { display: inline; }
.mk-table th[scope="row"], .mk-table td:first-child {
    text-align: left; font-weight: 500; color: var(--text-body);
}
.mk-table tbody tr:hover td, .mk-table tbody tr:hover th[scope="row"] { background: var(--surface-2); }
.mk-table .mk-group th {
    background: var(--paper); text-align: left;
    font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-dim); font-weight: 700;
}
.mk-table .mk-col-featured { background: rgba(255,140,0,.05); }
.mk-table thead .mk-col-featured { background: #33393f; }
.mk-yes { color: var(--success); font-weight: 700; }
.mk-no { color: var(--text-mut); }
.mk-soft { color: var(--text-dim); font-size: .84rem; }
.mk-fn {
    font-family: var(--mono); font-size: .68rem; color: var(--text-mut);
    vertical-align: super; margin-left: 2px;
}
.mk-footnotes {
    margin-top: 16px; display: grid; gap: 8px;
    color: var(--text-dim); font-size: .84rem;
}
.mk-footnotes b { font-family: var(--mono); color: var(--text-mut); font-weight: 700; }

/* ===================== ADD-ONS ===================== */

.mk-addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mk-addon {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 20px;
}
.mk-addon h3 { font-size: 1.02rem; margin-bottom: 8px; }
.mk-addon p { color: var(--text-dim); font-size: .86rem; }
.mk-addon .mk-amt-value { font-size: 1.5rem; }

/* ===================== FAQ / OBJECTIONS ===================== */

.mk-faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.mk-qa {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 4px 20px;
}
.mk-qa[open] { border-color: var(--border-2); }
.mk-qa > summary {
    cursor: pointer; list-style: none; padding: 16px 0;
    font-family: var(--display); font-size: 1.08rem; color: var(--text);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mk-qa > summary::-webkit-details-marker { display: none; }
.mk-qa > summary::after {
    content: "+"; font-family: var(--mono); font-size: 1.2rem;
    color: var(--text-mut); flex: none; transition: transform .18s ease;
}
.mk-qa[open] > summary::after { content: "–"; }
.mk-qa > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.mk-qa-body { padding: 0 0 18px; color: var(--text-dim); font-size: .96rem; }
.mk-qa-body p + p { margin-top: 11px; }
.mk-qa-body ul { margin: 10px 0 0 18px; display: grid; gap: 6px; }
.mk-qa-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.mk-qa-body a:hover { color: var(--orange); }

/* ===================== POSITIONING ANGLES (features) ===================== */

.mk-angle { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.mk-angle.is-flipped .mk-angle-visual { order: -1; }
.mk-angle-num {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--orange); font-weight: 700;
}
.mk-angle h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 10px 0 16px; }
.mk-angle .lede { color: var(--text-body); }
.mk-angle-who {
    margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--teal);
    background: var(--surface); border-radius: 0 10px 10px 0;
    color: var(--text-dim); font-size: .93rem;
}
.mk-angle-who strong { color: var(--text); }

.mk-angle-visual {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 22px; box-shadow: var(--shadow);
}
.mk-proof { list-style: none; padding: 0; display: grid; gap: 12px; }
.mk-proof li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.mk-proof li::before {
    content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
    background: var(--teal-soft); border: 1px solid var(--teal);
}
.mk-proof b { display: block; font-size: .96rem; color: var(--text); }
.mk-proof span { color: var(--text-dim); font-size: .89rem; }

/* Terminal-ish illustration used on the features page */
.mk-mock { font-family: var(--mono); font-size: .78rem; color: var(--text-dim); }
.mk-mock-bar {
    display: flex; align-items: center; gap: 7px; margin: -22px -22px 18px;
    padding: 11px 14px; background: var(--sidebar); border-radius: var(--r) var(--r) 0 0;
}
.mk-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4b5563; }
.mk-mock-bar em {
    margin-left: auto; font-style: normal; font-size: .68rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-dim);
}
.mk-mock-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.mk-mock-row:last-child { border-bottom: 0; }
.mk-mock-ok { color: var(--success); }
.mk-mock-bad { color: var(--danger); }
.mk-mock-dim { color: var(--text-mut); }

/* ===================== DOCS HUB ===================== */

.mk-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-doc-card {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px; transition: border-color .2s ease;
}
.mk-doc-card:hover { border-color: var(--border-2); }
.mk-doc-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mk-doc-card p { color: var(--text-dim); font-size: .92rem; }
.mk-doc-card ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 6px; }
.mk-doc-card li { color: var(--text-dim); font-size: .88rem; padding-left: 14px; position: relative; }
.mk-doc-card li::before { content: "›"; position: absolute; left: 0; color: var(--text-mut); }

.mk-steps { counter-reset: mkstep; display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.mk-step {
    counter-increment: mkstep;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 20px 22px 20px 66px; position: relative;
}
.mk-step::before {
    counter-reset: none; content: counter(mkstep, decimal-leading-zero);
    position: absolute; left: 22px; top: 20px;
    font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--orange);
}
.mk-step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.mk-step p { color: var(--text-dim); font-size: .93rem; }
.mk-step code, .mk-legal code, .mk-qa-body code {
    font-family: var(--mono); font-size: .84em;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 5px; color: var(--text);
}

/* ===================== LEGAL DOCUMENTS ===================== */

.mk-legal-layout {
    display: grid; grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px); align-items: start;
}
.mk-legal-toc {
    position: sticky; top: 92px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 18px;
}
.mk-legal-toc h2 {
    font-family: var(--body); font-size: .7rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-mut);
    margin-bottom: 12px;
}
.mk-legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: toc; }
.mk-legal-toc a { color: var(--text-dim); font-size: .87rem; }
.mk-legal-toc a:hover { color: var(--orange); }

.mk-legal {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: clamp(24px, 4vw, 44px);
    color: var(--text-body);
}
.mk-legal h2 {
    font-size: 1.4rem; margin: 34px 0 12px;
    padding-top: 22px; border-top: 1px solid var(--border);
    scroll-margin-top: 92px;
}
.mk-legal > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.mk-legal h3 { font-size: 1.06rem; margin: 20px 0 8px; }
.mk-legal p, .mk-legal li { font-size: .96rem; line-height: 1.72; }
.mk-legal p + p { margin-top: 12px; }
.mk-legal ul, .mk-legal ol { margin: 12px 0 0 20px; display: grid; gap: 7px; }
.mk-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.mk-legal a:hover { color: var(--orange); }
.mk-legal dt { font-weight: 700; color: var(--text); margin-top: 12px; }
.mk-legal dd { margin: 4px 0 0; color: var(--text-dim); }

.mk-meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 26px;
    font-family: var(--mono); font-size: .74rem; color: var(--text-mut);
}
.mk-note {
    border: 1px solid var(--border-2); border-left: 3px solid var(--orange);
    background: var(--surface-2); border-radius: 0 10px 10px 0;
    padding: 14px 18px; margin: 18px 0; color: var(--text-body); font-size: .92rem;
}
.mk-note strong { color: var(--text); }
/* Marks a value the operator must fill in before launch. Deliberately loud. */
.mk-placeholder {
    font-family: var(--mono); font-size: .86em; font-weight: 700;
    color: #92400e; background: #fef3c7;
    border: 1px dashed #d97706; border-radius: 4px; padding: 0 5px;
}

.mk-legal-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9rem; }
.mk-legal-table th, .mk-legal-table td {
    padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.mk-legal-table thead th {
    background: var(--surface-2); font-family: var(--body); font-weight: 700;
    font-size: .82rem; color: var(--text);
}
.mk-legal-table td:first-child { font-weight: 600; color: var(--text); }

/* ===================== COOKIE NOTICE (built by cookies.js) ===================== */

.mk-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
    max-width: 660px; margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    background: var(--sidebar); color: var(--text-inv-dim);
    border: 1px solid rgba(255,255,255,.14); border-radius: var(--r);
    padding: 16px 18px;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.mk-cookie-text { flex: 1 1 320px; font-size: .88rem; line-height: 1.55; }
.mk-cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.mk-cookie-actions { display: flex; gap: 10px; flex: none; }
.mk-cookie .btn-primary { font-size: .88rem; padding: .6em 1.1em; }

/* ===================== 404 / SEARCH ===================== */

.mk-404-code {
    font-family: var(--mono); font-size: clamp(3.4rem, 11vw, 6.5rem);
    font-weight: 700; color: var(--border-2); line-height: 1; letter-spacing: -.04em;
}
.mk-searchform { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.mk-searchform input[type="search"] {
    flex: 1; min-width: 0;
    background: #fff; border: 1px solid var(--border-2); border-radius: 8px;
    padding: 12px 14px; font-family: var(--body); font-size: .96rem; color: var(--text);
}
.mk-searchform input[type="search"]:focus {
    outline: none; border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,140,0,.12);
}
.mk-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 26px; }
.mk-links a { color: var(--text-dim); font-size: .93rem; text-decoration: underline; text-underline-offset: 3px; }
.mk-links a:hover { color: var(--orange); }
.mk-result-count { text-align: center; color: var(--text-mut); font-family: var(--mono); font-size: .8rem; margin-bottom: 22px; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1180px) {
    .mk-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-addons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .mk-angle, .mk-legal-layout { grid-template-columns: 1fr; }
    .mk-angle.is-flipped .mk-angle-visual { order: 0; }
    .mk-legal-toc { position: static; }
    .mk-doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .mk-plans { grid-template-columns: 1fr; }
    .mk-addons, .mk-doc-grid { grid-template-columns: 1fr; }
    .mk-switchbar { gap: 10px; }
    .mk-switch { padding: 8px 12px; font-size: .85rem; }
    .mk-plan-tag { min-height: 0; }
    .mk-plan-price { min-height: 0; }
    .mk-cookie { left: 10px; right: 10px; bottom: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC API REFERENCE (INTEGRATION)
   The reference body is one shared template, sbs-core/templates/docs/public-api.php,
   rendered both in-app and here on /docs/. These rules are the public-site copy of
   the .apikey-docs-* block in sbs-dashboard/assets/css/saas-api.css; keep them in
   step if that block changes. The template also needs a minimal .data-table, which
   the dashboard gets from core.css and the theme does not.
   ═══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   API DOCS (shared body, in-app + public theme)
   ══════════════════════════════════════════════ */

.apikey-docs { color: #374151; font-size: 0.92rem; line-height: 1.6; }
.apikey-docs p { margin-bottom: 12px; }
.apikey-docs code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 1px 5px;
  color: #252b33;
}
.apikey-docs-section {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}
.apikey-docs-section:first-child { border-top: none; padding-top: 0; }
.apikey-docs-section h3 { margin-bottom: 10px; }
.apikey-docs-section h4 {
  font-size: 0.95rem;
  color: #252b33;
  margin: 16px 0 8px;
}
.apikey-docs-baseurl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apikey-docs-code {
  background: #252b33;
  color: #f5f7fa;
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  margin-bottom: 14px;
}
.apikey-docs-code code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.82rem;
  white-space: pre;
}
.apikey-docs-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.apikey-docs-table { min-width: 520px; }
.apikey-docs-table th { white-space: nowrap; }
.apikey-docs-table td { vertical-align: top; }
.apikey-docs-endpoint {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}
.apikey-docs-endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.apikey-docs-method {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #6b7280;
}
.apikey-docs-method-get { background: #1e40af; }
.apikey-docs-method-post { background: #059669; }
.apikey-docs-path {
  font-size: 0.9rem;
  background: none;
  padding: 0;
  color: #252b33;
  font-weight: 600;
  word-break: break-all;
}
.apikey-docs-scope { font-size: 0.78rem; color: #6b7280; }
.apikey-docs-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}
.apikey-docs-tag-write { background: #fef3c7; color: #92400e; }
.apikey-docs-summary { margin-bottom: 10px; }
.apikey-docs-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}
.apikey-docs-list { padding-left: 18px; }
.apikey-docs-list li { margin-bottom: 8px; }
/* Minimal table styling the shared template expects (core.css equivalent). */
.mk-api-ref .data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mk-api-ref .data-table th,
.mk-api-ref .data-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.mk-api-ref .data-table th { background: #f5f7fa; font-weight: 600; color: #252b33; }
.mk-api-ref { max-width: 900px; margin: 0 auto; }
