:root {
    --bg: #ffffff;
    /* fundo branco */
    --panel: #DBDCDE;
    --list-title-bg: #BBBDC0;
    /* painel cinza muito claro */
    --ink: #000000;
    /* texto preto */
    --muted: #555555;
    /* texto secundário em cinza médio */
    --accent: #333333;
    /* destaque em cinza escuro */
    --accent-ink: #ffffff;
    /* texto sobre o destaque */
    --line: #999999;
    /* linhas e bordas em cinza médio */
    --shadow: rgba(0, 0, 0, 0.15);
    /* sombra leve */
    --body-font: 10px;
    --title-font: 14px;
    --subtitle-font: 12px;
}

@font-face {
    font-family: kalam;
    /* set name */
    src: url(kalam.bold.woff2);
    /* url of the font */
}

.page {
    background: var(--bg);
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 794px;
    min-height: 1123px;
    box-shadow: 0 0 0.5cm var(--shadow)
}

/* Layout em colunas: lateral (estatutos/recursos) + conteúdo */

.content {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 0;
}

/* Sidebar */
.sidebar {
    padding: 12px;
    font-size: var(--body-font);
}

/* Área principal com seções modulares */

.central {
    padding: 12px;
    background: var(--panel);
    margin-right: 0px;
    font-size: var(--body-font);
}

/* Cabeçalho */

.logo {
    padding: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: "Crimson Text", Georgia, serif;
    letter-spacing: 0.5px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1em;
    text-align: center;
}

.brand {
    font-family: "Crimson Text", Georgia, serif;
    letter-spacing: 0.5px;
}

.brand h1 {

    font-size: 28px;
    font-weight: 700;
    margin: 0px;
}

.brand p {

    font-size: 12px;
    color: var(--muted);
}

/* text */

.muted {
    color: var(--muted);
    font-size: var(--body-font);
}

/* text inputs */

.underlined,
.invisible,
.inlined {
    background: transparent;
    border: none;
    color: var(--muted);
    outline: none;
    resize: none;
    font-family: monospace;
    
}

.underlined {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.2em;
}

.inlined {
    border-bottom: 1px solid var(--line);

}

/* card blocks */

.card {
    border: 1px solid var(--line);
    margin-bottom: 10px;
}

.card .title {
    font-family: "Crimson Text", Georgia, serif;
    font-size: var(--subtitle-font);
    font-weight: 700;
    padding: 5px 5px;
    background: black;
    letter-spacing: 0.3px;
    color: white;
}

.card .body {
    padding: 8px;
}

.card .body label {
    margin-bottom: 0.3em;
}

/* trackers and boxes */

.tracker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
}

input[type="checkbox"].circle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 12px;
    height: 12px;
    border: 1px solid #2a2d31;
    border-radius: 50%;

    background: var(--bg);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0px;
    margin-right: 0px;

}

input[type="checkbox"].circle:checked {
    background-color: grey;
}

input[type="checkbox"].square {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 12px;
    height: 12px;
    border: 1px solid #2a2d31;

    border-radius: 2px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"].square:checked::after {
    content: "X";
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* characteristics */

.traits {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
}

.traits .trait {
    text-align: center;
}

.traits label {
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* table */

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

td {
    border: 1px solid var(--line);
    padding: 4px;
}

td:first-child {
    width: 25%;
}

* remove borda externa */ table tr:first-child td {
    border-top: none;
}

table tr:last-child td {
    border-bottom: none;
}

table tr td:first-child {
    border-left: none;
}

table tr td:last-child {
    border-right: none;
}

/* Headers */

.header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--list-title-bg);
}

.header .bar {
    width: 6px;
    height: 22px;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--shadow) inset;
}

.header h2 {
    font-family: "Crimson Text", Georgia, serif;
    font-size: var(--title-font);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0px;
}

.header p {
    margin: 0px;
}

/* competencies */

.competencies {
    column-count: 2;
    gap: 0px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.competencies label {
    margin-left: 4px;
}

/* abilities */

.abilities {
    padding-top: 8px;
    padding-bottom: 8px;
}

.abilities .title {
    font-weight: 700;
    margin-bottom: 6px;
    margin-left: 4px;
    letter-spacing: 0.3px;
}

.abilities .text {
    color: var(--muted);

}

/* equipment */

.equipment {
    column-count: 3;
    gap: 0px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.equipment label.text {
    color: var(--muted);

}

.equipment .title {
    font-weight: 700;
    font-family: "Crimson Text", Georgia, serif;
    font-size: var(--subtitle-font);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    margin-top: 8px;
}