body {
    font-family: Charter, Georgia, serif;
    font-size: 20px;
    color: #262626;
    line-height: 1.7;
    margin-top: 0;
}
html {
    -webkit-text-size-adjust: 100%;
}
#body {
    max-width: 830px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 10px;
}
.nowrap {
    white-space: nowrap;
}
[id] {
    scroll-margin-top: 70px;
}
a {
    text-decoration-line: none;
    color: #A52A2A;
}
.motto {
    margin: 40px auto 20px auto;
    font-size: 0.9em;
    display: table;
    max-width: 600px;
    min-width: 250px;
    border-left: 2px solid #ccc;
    padding: 10px 0 10px 20px;
}
.motto b,
.motto strong {
    font-size: 1.2em;
}
.grey {
    font-size: 0.8em;
    color: dimgray;
    font-family: Avenir, Arial, sans-serif;
}
.data {
    font-size: 0.7em;
    color: dimgray;
    font-family: Avenir, Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    padding-top: 15px;
}
.subgrey {
    font-size: 1.5em;
    font-weight: 300;
    color: dimgray;
    margin-bottom: 30px;
    display: block;
    text-align: center;
}
h1 {
    font-weight: 400;
    text-align: center;
    margin: auto;
    max-width: 800px;
}
h1 sup {
    font-size: .5em;
}
h2 {
    font-size: 1.5em;
    font-weight: 400;
    text-align: center;
}
h3 {
    font-size: 1.4em;
    font-weight: 400;
    color: #555555;
}
h4 {
    font-size: 1.2em;
    font-weight: 400;
    color: #555555;
    font-style: italic;
}
h5 {
    font-size: 1em;
    font-weight: 400;
    color: dimgray;
}
h6 {
    color: dimgray;
    font-weight: 400;
    font-size: .9em;
}
h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
#search form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
#search form input {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 4px;
}
sup,
sub {
    font-size: .8em;
}
.caixa {
    border: 1px solid #ccc;
    padding: 10px 20px 20px 20px;
    margin: 20px 0;
    font-size: 0.9em;
}
table {
    margin: 30px auto;
    border-collapse: collapse;
    font-size: .9em;
}
table td {
    border: 1px solid #CCCCCC;
    padding: 20px;
    vertical-align: middle;
}
table th {
    padding: 20px;
    font-size: 1.1em;
}
.normtbl {
    margin: 2em;
}
.normtbl td {
    border: 0;
    padding: 0 20px;
}
.center,
.center p {
    text-align: center;
    margin: 20px auto;
}
b,
strong {
    font-weight: 600;
}
blockquote,
li {
    font-size: .95em;
}
blockquote {
    margin-left: 1em;
    margin-right: 1em;
}
blockquote blockquote,
li li,
li blockquote {
    font-size: 1em;
}
#mainIndex h1 {
    font-size: 1.8em;
    max-width: 700px;
}
#mainIndex .signature {
    font-size: 1em;
}
#mainIndex .data {
    margin-top: 0;
}
#mainIndex .data ~ .data {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    max-width: 700px;
}
#mainIndex .signature ~ .signature {
    text-align: center;
}
#mainIndex .grey {
    text-align: center;
}
#mainIndex .subgrey {
    font-size: 1.2em;
}
#index h1 {
    font-size: 1.8em;
    max-width: 700px;
}
#index .signature {
    font-size: 1em;
}
#index .data {
    margin-top: 0;
}
#index .data ~ .data {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    max-width: 700px;
}
#index .signature ~ .signature {
    text-align: center;
}
#index .grey {
    text-align: center;
}
#index .subgrey {
    font-size: 1.2em;
}

/* Dicionário Escolar de Filosofia */

h1.title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 30px;
    margin-left: 0;
    text-align: left;
}
.dic.subgrey a {
    font-size: .8em;
}
.dic.subgrey {
    background-color: white;
}
.post {
    margin-bottom: 1em;
}
cite {
    font-style: normal;
    border-bottom: 1px solid #A52A2A;
}
.biblio li {
    text-indent: -1em;
    list-style: none;
    margin-left: -1em;
}

/* Justify and hyphenate */

@media only screen and (min-width: 667px) {
    p,
    li {
        text-align: justify;
        -webkit-hyphens: auto;
        hyphens: auto;
        -ms-hyphens: auto;
    }
    p {
        margin: 0;
    }
    p + p {
        text-indent: 1em;
    }
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 1.6em;
    }
    .subgrey {
        font-size: 1.9em;
    }
    #mainIndex .subgrey {
        font-size: 1.9em;
    }
    #index .subgrey {
        font-size: 1.9em;
    }
    #index h1 {
        font-size: 2em;
        max-width: 700px;
    }
    #mainIndex h1 {
        font-size: 2em;
        max-width: 700px;
    }
}
@media only screen and (max-width: 667px) {
    .sharebuttons {
        display: none;
    }
}
.signature {
    font-size: 1.2em;
}
.signature {
    margin: 10px 0 30px 0;
    text-align: center;
}
.signature ~ .signature {
    margin: 10px 0 30px 0;
    text-align: left;
    font-size: 1em;
}
.signature .grey {
    font-family: inherit;
}

/*Menu modal*/

#sticky-header {
    position: sticky;
    left: auto;
    top: 0;
    width: 100%;
    background-color: white;
    color: black;
    z-index: 2;
}
#ModalMenu {
    z-index: 2;
    width: 100%;
    height: 100%;
}
.menu {
    display: none;
    position: fixed;
}
.menu-content {
    background-color: whitesmoke;
    max-width: 350px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 35px;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.closeMenu {
    font-size: 35px;
    line-height: normal;
    position: fixed;
    top: 0;
    left: auto;
    margin-left: -17px;
    padding: 0 1px;
    z-index: 3;
    color: #A52A2A;
    background-color: white;
}
.closeMenu:hover,
.closeMenu:focus {
    cursor: pointer;
}

/* Modo escuro: paleta adaptada; a versao clara mantem as regras anteriores. */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #181818;
        color: #E4E1DC;
    }
    a,
    .closeMenu {
        color: #EE8580;
    }
    .grey,
    .data,
    .subgrey,
    h3,
    h4,
    h5,
    h6 {
        color: #A5A5A5;
    }
    #sticky-header {
        background-color: #181818;
        color: #F2EFEA;
    }
    .closeMenu {
        background-color: #181818!important;
    }
    .menu-content {
        background-color: #222222!important;
        border-color: #484848;
    }
    .dic.subgrey {
        background-color: #181818!important;
    }
    .motto,
    .caixa,
    table td,
    hr {
        border-color: #484848;
    }
    cite {
        border-bottom-color: #EE8580;
    }
    #search form input {
        background-color: #292929;
        color: #E4E1DC;
        border-color: #484848;
    }
    #search form input::placeholder {
        color: #A5A5A5;
        opacity: 1;
    }
}

/* Caixa de apoio à Crítica */

.critica-apoio {
    max-width: 580px;
    box-sizing: border-box;
    margin: 40px auto;
    padding: 24px 28px;
    border: 1px solid #CCC;
    border-radius: 6px;
    background: #FAFAFA;
    color: #262626;
    text-align: center;
    -webkit-hyphens: none;
    hyphens: none;
}
.critica-apoio h2 {
    margin: 0 0 12px;
    color: inherit;
    font-size: 1.3em;
    line-height: 1.3;
}
.critica-apoio p {
    margin: 0 0 18px;
    text-align: center;
    text-indent: 0;
    font-size: 0.9em;
    line-height: 1.6;
}
.critica-apoio a {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px 24px;
    border-radius: 4px;
    background: #A52A2A;
    color: #FFF;
    font-family: Avenir, Arial, sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.critica-apoio a:hover {
    background: #862222;
}
.critica-apoio a:focus-visible {
    outline: 2px solid #A52A2A;
    outline-offset: 4px;
}

/* Protecção adicional nas páginas de índices */

#index .critica-apoio,
#mainIndex .critica-apoio {
    display: none;
}
@media (prefers-color-scheme: dark) {
    .critica-apoio {
        background: #222;
        color: #E4E1DC;
        border-color: #484848;
    }
    .critica-apoio a {
        background: #EE8580;
        color: #181818;
    }
    .critica-apoio a:hover {
        background: #F5A09C;
    }
    .critica-apoio a:focus-visible {
        outline-color: #EE8580;
    }
}
@media print {
    .critica-apoio {
        display: none;
    }
}

/* Newsletter - Substack */

.critica-newsletter {
    max-width: 480px;
    box-sizing: border-box;
    margin: 40px auto;
    padding: 28px;
    border: 1px solid #CCC;
    border-radius: 6px;
    background: #FAFAFA;
    color: #262626;
    text-align: center;
    -webkit-hyphens: none;
    hyphens: none;
}
.critica-newsletter h2 {
    margin: 0 0 12px;
    color: inherit;
    font-size: 1.5em;
    line-height: 1.3;
}
.critica-newsletter p {
    margin: 0 0 20px;
    text-align: center;
    text-indent: 0;
    font-size: 0.95em;
    line-height: 1.6;
}
.critica-newsletter a {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 11px 24px;
    border-radius: 4px;
    background: #A52A2A;
    color: #FFF;
    font-family: Avenir, Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.critica-newsletter a:hover {
    background: #862222;
}
.critica-newsletter a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.critica-newsletter small {
    display: block;
    margin-top: 14px;
    color: #696969;
    font-size: 0.75em;
    line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
    .critica-newsletter {
        background: #222;
        color: #E4E1DC;
        border-color: #484848;
    }
    .critica-newsletter a {
        background: #EE8580;
        color: #181818;
    }
    .critica-newsletter a:hover {
        background: #F5A09C;
    }
    .critica-newsletter small {
        color: #A5A5A5;
    }
}
@media print {
    .critica-newsletter {
        display: none;
    }
}

.critica-newsletter p,
.critica-apoio p {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
