@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Nunito:wght@200..1000&display=swap');


:root {
    --theme--border-color: rgb( 0 0 0 / 10%);
    --theme--border-radius: 6px;
    --theme--default-color: #f80;
    --theme--default-color-2: #22212c;
    --theme--max-width: 1560px;
    --theme--body-padding: 60px;
    --theme--measure: 10px;
}


html { 
    font-size: 62.5% !important; /* 10px */ 
}

@media (max-width: 780px) {
    html {
        font-size: 56.25% !important; 
    }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
}

html, body {
  height: 100%;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: blue;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


button {
    cursor: pointer;
    padding: 1.4rem 2rem;
    border-radius: var(--theme--border-radius);
    border: 1px solid var(--theme--border-color); 
    background: none;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 100%;
    transition: all .3s;
}
button:hover {
    border-color: var(--theme--default-color);
}

button.active {
    background-color: var(--theme--default-color);
    border-color: transparent;
    color: #fff;
}

/* 
///////////////////////////////////////////////////////////////////////////////////////////////////
*/

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

#header {
    --header--measure: 10px;
    display: grid;
    grid-template-columns: minmax(70px, 130px) 1fr;
    gap: calc( var(--header--measure) * 4 );
    align-items: center;
    padding: calc( var(--header--measure) * 2.5 );
    border-bottom: 1px solid var(--theme--border-color);
    font-size: 2.2rem;
    font-weight: 700;
}

#header--title {
    padding-left: calc( var(--header--measure) * 4 );
    border-left: 1px solid var(--theme--border-color);
}

#main {
    padding: var(--theme--body-padding);
    overflow: hidden;
    overflow-y: auto;
}


.doc {
    line-height: 2;
    width: 100%;
}
.doc header {
    margin-bottom: 2rem;
}
.doc h1,
.doc h2 {
    font-size: 3.4rem;
    font-weight: 700;
    margin: 5rem 0 1.25rem 0;
    color: var(--theme--default-color-2);
}

.doc h2 {
    font-size: 2.2rem;
}
.doc code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-weight: 500;
    color: blueviolet;
    display: inline-block;
    padding: 0 4px;
}

.doc > header > h1 {
    margin-top: 0;
}

.terminal {
    background-color: var(--theme--default-color-2);
    color: #dcdcdc;
    padding: 3rem;
    border-radius: var(--theme--border-radius);
    overflow-x: auto;
    max-width: 100%;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}
.terminal code {
    background-color: transparent;
    padding: 0;
}
.terminal .cmd { color: #4FC1FF; }         /* comandos como curl */
.terminal .param { color: #C792EA; }       /* parâmetros como --header */
.terminal .string { color: #ECC48D; }      /* strings com aspas */
.terminal .json-key { color: #82AAFF; }    /* chaves do JSON */
.terminal .json-value { color: #C3E88D; }  /* valores do JSON */
.terminal .key-value { color: #ffff00; }

.doc ul {
    margin-left: 1.5rem;
}
.note {
    background-color: #fdf6e3;
    border-left: 4px solid #f39c12;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border-radius: var(--theme--border-radius);
}
.section {
    margin-top: 2rem;
}


.box-table {
    overflow: auto;
}

.box-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border-radius: calc( var(--theme--border-radius) + 4px );
}
.box-table th, 
.box-table td {
  padding: 0.65em 1em;
  text-align: left;
  border: 1px solid #fff;
}
.box-table th {
  font-weight: 700;
  background-color: #2c3e50;
  color: #fff;
}
.box-table tbody tr:nth-child(even) {
  background: #f4f5f5;
}
.box-table tbody tr:nth-child(odd) {
  background: #fcfbfb;
}



/* 
///////////////////////////////////////////////////////////////////////////////////////////////////
*/

[data-tab] {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
    max-width: var(--theme--max-width);
    margin: 0 auto;
}

[data-tab-buttons] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

[data-tab-pages] [data-tab-page] {
    overflow: auto;
    display: none;
}
[data-tab-pages] [data-tab-page].active {
    display: block;
}



/* 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/

@media (max-width: 1280px) {
    :root {
        --theme--body-padding: 30px;
    }
    .doc {
        width: calc( 100vw - ( var(--theme--body-padding) * 2 ) );
    }
}


@media (max-width: 780px) {
    :root {
        --theme--body-padding: 20px;
    }
    .box-table {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .terminal {
        font-size: 12px;
    }
    #header {
        --header--measure: 6px;
        font-size: 18px;
        grid-template-columns: 100px 1fr;
    }
}