/* REVO developer portal (/developers/*) — on top of site.css: same tokens,
   same header and footer. One reading column with a sticky table of contents
   on wide screens; on a phone everything stacks, buttons go full width and
   code / tables scroll inside their own boxes (never the page). */

.dev-main { color: var(--rv-ink); }
.dev-hero { max-width: 1180px; margin: 0 auto; padding: 52px 20px 28px; display: grid; gap: 28px; box-sizing: border-box; }
@media (min-width: 1000px) { .dev-hero--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding-top: 64px; } }
.dev-eyebrow { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--rv-indigo); }
.dev-hero h1 { font-family: var(--rv-head); font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -1.2px; margin: 12px 0 0; text-wrap: balance; }
.dev-lead { margin: 16px 0 0; max-width: 62ch; color: var(--rv-muted); font-size: 17.5px; line-height: 1.6; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 700 15.5px/1 var(--rv-body); text-decoration: none; box-sizing: border-box; border: 1.5px solid transparent; cursor: pointer; }
.dev-btn--primary { background: var(--rv-indigo); color: #fff; box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .7); }
.dev-btn--primary:hover { background: #4338CA; color: #fff; }
.dev-btn--ghost { background: #fff; color: var(--rv-ink); border-color: var(--rv-border); }
.dev-btn--ghost:hover { border-color: var(--rv-indigo); color: var(--rv-ink); }
@media (max-width: 559px) { .dev-actions .dev-btn { width: 100%; } }

.dev-base { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.dev-base code { font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #EEEDFD; color: var(--rv-ink); padding: 9px 12px; border-radius: 10px; overflow-wrap: anywhere; min-width: 0; }
.dev-hero p a, .dev-lead a { font-weight: 600; }
.dev-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #EEEDFD; color: #3730A3; font: 600 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Dark code card (hero) */
.dev-codecard { background: #14163A; color: #E4E3F7; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 22, 58, .55); min-width: 0; }
.dev-codecard-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #9BA0C8; text-transform: uppercase; letter-spacing: .06em; }
.dev-codecard pre { margin: 0; padding: 18px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-codecard .dev-copy { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.tok-k { color: #A5B4FC; } .tok-s { color: #86EFAC; } .tok-c { color: #8B90B8; } .tok-n { color: #FCA5A5; }

/* Sections and cards */
.dev-section { max-width: 1180px; margin: 0 auto; padding: 28px 20px; box-sizing: border-box; }
.dev-section > h2 { font-family: var(--rv-head); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.8px; margin: 0; }
.dev-section > p.dev-sub { margin: 10px 0 0; color: var(--rv-muted); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.dev-grid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.dev-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.dev-card { background: #fff; border: 1px solid var(--rv-border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dev-card h3 { margin: 0; font-family: var(--rv-head); font-size: 19px; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dev-card p { margin: 0; color: var(--rv-muted); font-size: 14.8px; line-height: 1.58; }
.dev-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #F1EDFC; color: var(--rv-violet); font-size: 20px; flex: none; }
.dev-card ul.dev-endpoints { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.dev-card ul.dev-endpoints li { font: 12.8px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #23255A; overflow-wrap: anywhere; }
.dev-card .dev-scope { margin-left: auto; }
a.dev-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.dev-card:hover { border-color: var(--rv-indigo); transform: translateY(-2px); color: inherit; }
.dev-card .dev-more { margin-top: auto; color: var(--rv-indigo); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

.dev-steps { counter-reset: dev-step; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.dev-steps li { counter-increment: dev-step; background: #fff; border: 1px solid var(--rv-border); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; color: var(--rv-muted); font-size: 15px; line-height: 1.58; min-width: 0; }
.dev-steps li::before { content: counter(dev-step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--rv-indigo); color: #fff; font: 700 15px/32px var(--rv-head); text-align: center; }
.dev-steps li strong { color: var(--rv-ink); display: block; margin-bottom: 4px; font-size: 16px; }

.dev-band { background: #fff; border: 1px solid var(--rv-border); border-radius: 22px; padding: 22px; display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 900px) { .dev-band { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 26px 28px; } }
.dev-band div { color: var(--rv-muted); font-size: 14.8px; line-height: 1.55; }
.dev-band strong { display: flex; align-items: center; gap: 8px; color: var(--rv-ink); font-size: 16px; margin-bottom: 4px; }

/* Setări → Chei API screenshots: both side by side on a wide screen; on a
   phone only the phone one (the desktop one would be unreadable that small). */
.dev-shots { margin: 22px 0 0; display: grid; gap: 18px; align-items: start; justify-items: center; }
@media (min-width: 900px) { .dev-shots { grid-template-columns: minmax(0, 1fr) 248px; justify-items: stretch; } }
.dev-shot { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--rv-border); border-radius: 18px; box-shadow: 0 18px 40px -28px rgba(20, 22, 58, .35); }
.dev-shot--desktop { display: none; }
@media (min-width: 900px) { .dev-shot--desktop { display: block; } }
.dev-shot--phone { max-width: 280px; border-radius: 26px; }
.dev-shots figcaption { grid-column: 1 / -1; justify-self: center; color: var(--rv-faint); font-size: 13.5px; text-align: center; }

/* Docs layout: sticky table of contents + one reading column */
.dev-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 20px 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; box-sizing: border-box; }
@media (min-width: 1000px) { .dev-wrap { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; } }
.dev-toc { font-size: 14px; min-width: 0; }
.dev-toc .label { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--rv-muted); cursor: pointer; padding: 6px 0; }
.dev-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.dev-toc a { display: block; color: var(--rv-muted); padding: 6px 10px; border-radius: 8px; min-height: 20px; }
.dev-toc a:hover, .dev-toc a[aria-current="true"] { color: var(--rv-ink); background: #EEEDFD; }
@media (min-width: 1000px) { .dev-toc .inner { position: sticky; top: calc(var(--rv-bar-h, 72px) + 16px); max-height: calc(100vh - 110px); overflow: auto; } }
@media (max-width: 999px) { .dev-toc details { border: 1px solid var(--rv-border); border-radius: 12px; padding: 8px 12px; background: #fff; } }
.dev-doc { min-width: 0; max-width: 820px; font-size: 16px; line-height: 1.66; }
.dev-doc > p, .dev-doc li { max-width: 72ch; }
.dev-doc h2 { font-family: var(--rv-head); font-size: 27px; letter-spacing: -.5px; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: calc(var(--rv-bar-h, 72px) + 14px); }
.dev-doc h2:first-child { margin-top: 6px; }
.dev-doc h3 { font-family: var(--rv-head); font-size: 19.5px; margin: 28px 0 8px; scroll-margin-top: calc(var(--rv-bar-h, 72px) + 14px); }
.dev-doc p { margin: 0 0 12px; }
.dev-doc ul, .dev-doc ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.dev-doc code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #F4F2FC; color: #23255A; padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.dev-doc a { font-weight: 600; }

/* Code blocks (+ language tabs) */
.dev-code { margin: 10px 0 18px; border: 1px solid var(--rv-border); border-radius: 12px; overflow: hidden; background: #F4F2FC; min-width: 0; }
.dev-code-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; background: #ECE9F8; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--rv-muted); text-transform: uppercase; letter-spacing: .06em; min-height: 44px; box-sizing: border-box; }
.dev-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.58 ui-monospace, SFMono-Regular, Menlo, monospace; color: #23255A; }
.dev-code pre code { background: none; padding: 0; font: inherit; overflow-wrap: normal; }
.dev-tablist { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.dev-tablist::-webkit-scrollbar { display: none; }
.dev-tab { font: 600 12.5px/1 var(--rv-body); color: var(--rv-muted); background: transparent; border: 0; border-radius: 8px; padding: 0 12px; min-height: 34px; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.dev-tab[aria-selected="true"] { background: #fff; color: var(--rv-ink); box-shadow: 0 1px 2px rgba(20, 22, 58, .12); }
.dev-tabpanel[hidden] { display: none; }
.dev-copy { font: 600 12px/1 var(--rv-body); color: var(--rv-ink); background: #fff; border: 1px solid var(--rv-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; min-height: 32px; flex: none; text-transform: none; letter-spacing: 0; }
.dev-copy:hover { border-color: var(--rv-indigo); }

/* Tables, notes */
.dev-table { overflow-x: auto; margin: 10px 0 20px; border: 1px solid var(--rv-border); border-radius: 12px; background: #fff; }
.dev-table table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.dev-table th, .dev-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rv-border); }
.dev-table th { font: 600 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--rv-muted); background: var(--rv-bg); }
.dev-table tbody tr:last-child td { border-bottom: none; }
.dev-table td code { white-space: nowrap; }
.dev-table table.endpoints td:nth-child(2) code { white-space: normal; }
.dev-method { display: inline-block; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 7px; border-radius: 6px; color: #0E7490; background: #E0F4F8; }
.dev-method--post { color: #6D28D9; background: #EFE7FD; }
.dev-note, .dev-warn { border-radius: 12px; padding: 12px 14px; margin: 12px 0 18px; font-size: 15px; line-height: 1.58; }
.dev-note { background: #EEF2FF; border: 1px solid #C7D2FE; }
.dev-warn { background: #FFF7ED; border: 1px solid #FED7AA; }

/* Changelog */
.dev-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.dev-log > li { background: #fff; border: 1px solid var(--rv-border); border-radius: 18px; padding: 20px 22px; }
.dev-log time { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--rv-indigo); }
.dev-log h3 { margin: 8px 0 10px; font-family: var(--rv-head); font-size: 20px; }
.dev-log ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; color: var(--rv-muted); font-size: 15px; line-height: 1.55; }

/* Interactive reference (Scalar) under the site header */
.dev-ref { --scalar-custom-header-height: var(--rv-bar-h, 72px); min-height: 70vh; }
.dev-ref-fallback { max-width: 760px; margin: 40px auto; padding: 0 20px; color: var(--rv-muted); font-size: 16px; line-height: 1.6; }
