/* site-article.css
   Article-only styles for /tesla-fleet-api/
   (toc, code blocks, copy buttons, kpis, callouts)
*/

.article-hero{
    padding: 28px 0 10px;
}

.article-heroGrid{
    display:grid;
    grid-template-columns: 1.4fr .8fr;
    gap:18px;
    align-items:start;
}
@media (max-width: 920px){
    .article-heroGrid{ grid-template-columns:1fr; }
}

.article h1{
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 10px;
}
@media (max-width: 520px){
    .article h1{ font-size: 32px; }
}

.article .kpis{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
}

.article .kpi{
    flex:0 0 auto;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.12);
    font-size:14px;
}
html[data-theme="light"] .article .kpi{
    background: rgba(10,18,34,.03);
}

.article .toc a{
    display:block;
    padding:8px 10px;
    border-radius:12px;
    color: inherit;
}
.article .toc a:hover{
    background: rgba(255,255,255,.05);
    text-decoration:none;
}
html[data-theme="light"] .article .toc a:hover{
    background: rgba(10,18,34,.04);
}

.article main{
    padding: 16px 0 36px;
}

.article section{
    margin: 18px 0;
}

.article h2{
    font-size: 22px;
    margin: 0 0 10px;
}
.article h3{
    font-size: 17px;
    margin: 14px 0 8px;
}

.article ul{ margin:10px 0 10px 22px; }
.article code,
.article pre{ font-family: var(--mono), monospace; }

.article pre{
    margin: 12px 0;
    padding: 14px;
    background: #0a0f1e;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow:auto;
    position: relative;
}

.article .copyBtn{
    position:absolute;
    top:10px;
    right:10px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    cursor:pointer;
}
html[data-theme="light"] .article .copyBtn{
    background: rgba(10,18,34,.04);
}

/* Callout: avoid border overwrites/duplicates */
.article .callout{
    border: 1px solid rgba(124,255,214,.18);
    border-left: 3px solid var(--brand2);
    padding: 12px 14px;
    background: rgba(124,255,214,.10);
    border-radius: 14px;
    color: var(--text);
}
html[data-theme="light"] .article .callout{
    background: rgba(11,189,140,.08);
}

/* Light mode: make code blocks readable */
html[data-theme="light"] .article pre{
    background: rgba(10,18,34,.03);
    border-color: rgba(10,18,34,.12);
}

html[data-theme="light"] .article pre code{
    color: var(--text);
}

/* Also keep the copy button readable in light mode */
html[data-theme="light"] .article .copyBtn{
    background: rgba(10,18,34,.04);
    border-color: rgba(10,18,34,.12);
}

