/* help / developers: sits on top of the website's site.css so all three sites match. */
.subsite-label { display: inline-flex; align-items: center; margin-inline-start: 10px; padding-inline-start: 10px;
  border-inline-start: 1px solid var(--color-border, #e5e7eb); font-weight: 600; font-size: .95rem; color: var(--evergreen, #07583e); white-space: nowrap; }
.m-logo + .subsite-label { align-self: center; }

/* The legacy help-center styles assumed their own header; the website header is used instead. */
.help-site.sub-content { background: none; min-height: 0; }
.help-site .hero { padding-top: 72px; }
.help-site .search-wrap { position: relative; }
.help-site .search-box { display: flex; align-items: center; gap: 10px; }
.help-site .search-box input { flex: 1; min-width: 0; }
.help-site .search-submit { border: 0; background: var(--evergreen, #07583e); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; cursor: pointer; }
.help-site .search-results { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20; background: #fff;
  border: 1px solid var(--color-border, #e5e7eb); border-radius: 16px; box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,.12));
  padding: 8px; text-align: start; max-height: 60vh; overflow: auto; }
.help-site .search-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border-radius: 10px; color: var(--color-text, #111); text-decoration: none; }
.help-site .search-results a:hover { background: var(--color-brand-soft, #e8f3ee); }
.help-site .search-results a small { display: block; color: var(--color-text-muted, #5b6560); }
.help-site .result-label { font-size: .8125rem; color: var(--color-text-muted, #5b6560); padding: 6px 12px; }
.help-site .popular a { margin-inline-start: 8px; }
.help-site .search-title { margin: 32px 0 16px; }
.help-site .article-fallback { background: var(--color-cream, #f6f3ec); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.help-site a.collection-card, .help-site .featured-list a, .help-site .category-articles a,
.help-site .directory-link, .help-site .directory-heading, .help-site .related a { text-decoration: none; color: inherit; }
[dir="rtl"] .help-site .card-arrow, [dir="rtl"] .help-site .featured-list i,
[dir="rtl"] .help-site .category-articles b, [dir="rtl"] .help-site .directory-link span,
[dir="rtl"] .help-site .related a span { transform: scaleX(-1); display: inline-block; }
.site-empty { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }

.help-site .article-layout article p { margin: 0 0 1em; line-height: 1.7; }
.help-site .article-layout article h2 { margin: 1.8em 0 .6em; }
.help-site .article-layout article ul, .help-site .article-layout article ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; line-height: 1.7; }
.help-site .article-layout article li { margin-bottom: .35em; }

/* ── dev.kinsen.io ─────────────────────────────────────────────── */
.dev-wrap { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 var(--gutter, 24px); }
.dev-section { padding: 72px var(--gutter, 24px) 24px; }
.dev-site h2 { font-size: var(--text-h2, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 12px; }
.dev-site .lead { color: var(--color-text-muted, #5b6560); font-size: 1.125rem; max-width: 62ch; }
.dev-hero { background: var(--color-cream, #f6f3ec); border-bottom: 1px solid var(--color-border, #e5e7eb); padding: 72px 0 64px; }
.dev-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.dev-hero h1 { font-size: var(--text-h1, 52px); line-height: 1.03; letter-spacing: -.03em; margin: 12px 0 16px; }
.dev-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.dev-secure { font-size: .95rem; color: var(--color-text-muted, #5b6560); }
.code-window { background: #0d1f18; color: #d9efe5; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,.15)); }
.code-bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; background: #10281f; }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c4a3d; display: inline-block; }
.code-bar span { margin-inline-start: 8px; font-family: var(--font-mono, monospace); font-size: .8rem; opacity: .7; }
.code-window pre, .console-shell pre, .ep-detail pre { font-family: var(--font-mono, monospace); font-size: .85rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; margin: 0; }
.code-window pre { padding: 18px 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.guide-card { border: 1px solid var(--color-border, #e5e7eb); border-radius: 16px; padding: 22px; background: #fff; }
.guide-card span { font-family: var(--font-mono, monospace); color: var(--evergreen, #07583e); font-size: .8rem; }
.guide-card h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.guide-card p { margin: 0; color: var(--color-text-body, #333); line-height: 1.6; }
.dev-search input { width: 100%; max-width: 520px; margin: 16px 0 20px; padding: 12px 16px; border: 1px solid var(--color-border-strong, #cfd6d2); border-radius: 999px; font: inherit; }
.ref-grid { display: grid; grid-template-columns: 200px 300px 1fr; gap: 16px; align-items: start; }
.ref-groups, .ref-list { display: flex; flex-direction: column; gap: 6px; }
.ref-groups button, .ep-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: start; width: 100%;
  border: 1px solid var(--color-border, #e5e7eb); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.ref-groups button.active, .ep-item.active { border-color: var(--evergreen, #07583e); background: var(--color-brand-soft, #e8f3ee); }
.ep-item { justify-content: flex-start; }
.ep-item small { display: block; font-family: var(--font-mono, monospace); color: var(--color-text-muted, #5b6560); font-size: .78rem; }
.method { font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 700; color: #fff; background: var(--evergreen, #07583e); border-radius: 6px; padding: 3px 7px; }
.ref-detail .ep-detail { border: 1px solid var(--color-border, #e5e7eb); border-radius: 16px; padding: 24px; background: #fff; }
.ep-title { display: flex; gap: 12px; align-items: center; }
.ep-title h3 { margin: 2px 0 0; font-size: 1.35rem; }
.ep-title small { color: var(--color-text-muted, #5b6560); }
.ep-path { display: block; margin: 12px 0; padding: 10px 12px; background: var(--color-cream, #f6f3ec); border-radius: 10px; font-size: .8rem; word-break: break-all; }
.ep-detail h4 { margin: 18px 0 8px; }
.ep-detail pre { background: #0d1f18; color: #d9efe5; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.field-table div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.field-table span { font-family: var(--font-mono, monospace); font-size: .85rem; }
.console-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.console-req, .console-res { border: 1px solid var(--color-border, #e5e7eb); border-radius: 16px; padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.console-req label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.console-req input, .console-req textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--color-border-strong, #cfd6d2); border-radius: 10px; }
.console-req textarea { min-height: 220px; font-family: var(--font-mono, monospace); font-size: .85rem; }
.mode-tabs { display: flex; gap: 6px; background: var(--color-cream, #f6f3ec); padding: 4px; border-radius: 999px; width: fit-content; }
.mode-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; }
.mode-tabs button.active { background: #fff; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.1)); font-weight: 600; }
.console-res pre { background: #0d1f18; color: #d9efe5; border-radius: 12px; padding: 14px; min-height: 120px; }
.res-head { display: flex; justify-content: space-between; align-items: center; }
.res-head span { font-family: var(--font-mono, monospace); font-size: .8rem; color: var(--color-text-muted, #5b6560); }
.dev-note { font-size: .85rem; color: var(--color-text-muted, #5b6560); margin: 0; }
.dev-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 56px var(--gutter, 24px) 80px; }
.dev-cta h2 { font-size: 1.6rem; max-width: 40ch; }
@media (max-width: 980px) { .dev-hero-grid, .console-shell { grid-template-columns: 1fr; } .ref-grid { grid-template-columns: 1fr; } .dev-cta { flex-direction: column; align-items: flex-start; } }
