/*
 * Tema "clearicons": faixa azul-noite com a busca, ilustrações coloridas nas categorias,
 * cartões brancos sobre fundo cinza-claro. Só tem a versão clara.
 * Cores do destaque vêm do config.php ('accent'): --accent e --accent-text (o mesmo tom,
 * escurecido o suficiente para texto legível).
 * Botões e linha do topo usam o azul do adeuspendrive.com: --brand (normal) e --brand-hover
 * (ao passar o mouse). Menu do topo e links do rodapé seguem o site: --nav-line (sublinhado do
 * menu ao passar o mouse e na página atual) e --foot-hover (links do rodapé ao passar o mouse).
 */

:root {
    --accent: #428dff;
    --accent-text: #1f66d9;
    --brand: #1f78ff;
    --brand-hover: #005ae2;
    --nav-line: #428dff;
    --nav-line-soft: rgb(1 100 208 / 0.1);
    --foot-hover: #0164d0;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --ink: #14203a;
    --text: #2a3550;
    --muted: #52607a;
    --soft: #c3cee2;
    --line: #e5e9f0;
    --line-soft: #edf0f5;
    --line-strong: #d5dbe5;
    --hover: #f3f6fb;
    --tint: #eef3fb;
    --night: #0f1c36;
    --ring: #8db8ff;
    --ok: #1a7f4b;
    --link: var(--accent-text);
    --radius: 16px;
    --shadow: 0 1px 2px rgb(20 32 58 / 0.06), 0 10px 28px rgb(20 32 58 / 0.08);
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.55 var(--font);
}

main {
    flex: 1;
}

a {
    color: var(--link);
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 6px;
}

img {
    max-width: 100%;
}

.icon {
    flex: none;
}

.wrap {
    width: 100%;
    max-width: 70rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.sr-only,
.skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip:focus {
    position: fixed;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 50;
    padding: 0.5rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.arrow {
    display: inline-block;
    flex: none;
    color: var(--link);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

[dir="rtl"] .arrow {
    transform: scaleX(-1);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.button:hover {
    color: #ffffff;
    background: var(--brand-hover);
}

.button--quiet {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.button--quiet:hover {
    color: var(--ink);
    background: var(--hover);
    box-shadow: none;
}

/* topo (o mesmo do site) */

.topline {
    height: 3px;
    background: var(--brand);
}

.top {
    background: var(--surface);
    border-block-end: 1px solid var(--line);
}

.top__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.75rem;
    min-height: 4.75rem;
    padding-block: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand__logo {
    display: block;
    width: 144px;
    height: 55px;
}

.brand__name {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.sitenav {
    display: flex;
    flex: 1 1 22rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.15rem;
}

.sitenav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: #333333;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--nav-line-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    white-space: nowrap;
    transition: text-decoration-color 0.2s ease-in-out;
}

.sitenav a:hover,
.sitenav a[aria-current] {
    color: #333333;
    text-decoration-color: var(--nav-line);
}

.top__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sitebtn {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: var(--surface);
    color: #333333;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.sitebtn:hover {
    color: #333333;
    box-shadow: inset 0 0 0 999px rgb(0 0 0 / 0.06);
}

.sitebtn--primary {
    border-color: transparent;
    background: var(--brand);
    color: #ffffff;
}

.sitebtn--primary:hover {
    color: #ffffff;
    background: var(--brand-hover);
    box-shadow: none;
}

/* menu de idiomas */

.menu {
    position: relative;
}

.menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding-inline: 0.25rem;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 500;
    list-style: none;
    user-select: none;
    cursor: pointer;
}

.menu > summary::-webkit-details-marker {
    display: none;
}

.menu > summary:hover {
    color: var(--link);
}

.menu > summary .icon {
    width: 16px;
    height: 16px;
    color: var(--accent-text);
}

.menu > summary .icon:last-child {
    width: 12px;
    height: 12px;
    color: var(--muted);
    transform: rotate(180deg);
}

.menu[open] > summary .icon:last-child {
    transform: none;
}

.menu__current {
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.menu__panel {
    position: absolute;
    inset-block-end: calc(100% + 0.4rem);
    inset-inline-start: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-width: 13.5rem;
    max-width: calc(100vw - 2rem);
    max-height: min(70vh, 30rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.menu__panel--many {
    width: 34rem;
}

.menu__filter {
    margin: 0.5rem 0.5rem 0.15rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.menu__list {
    margin: 0;
    padding: 0.35rem;
    overflow: auto;
    list-style: none;
}

.menu__panel--many .menu__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    align-content: start;
}

.menu__list li[hidden] {
    display: none;
}

.menu__list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: none;
    text-align: start;
}

.menu__list a:hover {
    background: var(--hover);
}

.menu__list a[aria-current] {
    color: var(--link);
    font-weight: 700;
}

@media (max-width: 40rem) {
    .menu__panel {
        position: fixed;
        inset-block: auto 1rem;
        inset-inline: 1rem;
        width: auto;
        max-width: none;
    }
}

/* busca */

.search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 35rem;
    height: 3.25rem;
    padding-inline: 1.25rem 0.4rem;
    background: var(--surface);
    border-radius: 999px;
    text-align: start;
}

.search:focus-within {
    box-shadow: 0 0 0 4px rgb(66 141 255 / 0.4);
}

.search__icon {
    display: flex;
    color: var(--ink);
}

.search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 0.25rem;
    border: 0;
    outline: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.search__input::placeholder {
    color: #6b788f;
    opacity: 1;
}

.search__button {
    flex: none;
    height: calc(100% - 0.8rem);
    padding-inline: 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.search__button:hover {
    background: var(--brand-hover);
}

.search--compact .search__button {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.search__results {
    position: absolute;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline: 0;
    z-index: 30;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px -12px rgb(6 14 30 / 0.35);
}

.search__results[hidden] {
    display: none;
}

.hit {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
}

.hit:hover,
.hit.is-active {
    background: var(--hover);
    color: var(--ink);
}

.hit__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.hit__text {
    display: block;
    margin-block-start: 0.15rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.hit__tag {
    display: block;
    margin-block-start: 0.2rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.search__empty {
    margin: 0;
    padding: 0.75rem 0.85rem;
    color: var(--muted);
}

/* início */

.hero {
    position: relative;
    padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
    background: var(--night);
}

.hero__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    text-align: center;
}

.hero__title {
    margin: 0 0 1.75rem;
    color: #ffffff;
    font-size: clamp(1.9rem, 1.25rem + 2.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero .search {
    max-width: none;
    height: 3.75rem;
    padding-inline-start: 1.5rem;
    box-shadow: 0 10px 30px rgb(6 14 30 / 0.35);
}

.hero .search:focus-within {
    box-shadow: 0 0 0 4px rgb(66 141 255 / 0.4), 0 10px 30px rgb(6 14 30 / 0.35);
}

.hero .search__input {
    font-size: 1rem;
}

.hero__popular {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    margin: 1.25rem 0 0;
    color: var(--soft);
    font-size: 0.875rem;
    line-height: 1.6;
}

.hero__popular a {
    color: #ffffff;
}

.hero__popular a + a::before {
    content: "·";
    display: inline-block;
    margin-inline-end: 0.5rem;
    color: var(--soft);
}

.topics {
    padding-block: clamp(3rem, 8vw, 5.5rem) 1rem;
}

.topics__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topics__grid > li {
    flex: 0 1 20.5rem;
    min-width: 0;
}

.topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    height: 100%;
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 20px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.topic:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.topic__art {
    display: block;
    width: 168px;
    height: 126px;
}

.topic__icon {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--tint);
    color: var(--link);
}

.topic__icon .icon {
    width: 40px;
    height: 40px;
}

.topic__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.topic__title {
    margin-block-start: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.topic__text {
    max-width: 18rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.block {
    padding-block: clamp(3rem, 7vw, 5rem) 0.5rem;
}

.block--narrow {
    max-width: 56rem;
}

.block__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.arrows {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 0.25rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arrows a {
    display: block;
    padding-block: 0.6rem;
    color: var(--link);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.arrows a:hover span:first-child {
    text-decoration: underline;
}

.arrows a:hover .arrow,
.row:hover .arrow,
.side__more:hover .arrow {
    transform: translateX(3px);
}

[dir="rtl"] .arrows a:hover .arrow,
[dir="rtl"] .row:hover .arrow,
[dir="rtl"] .side__more:hover .arrow {
    transform: translateX(-3px) scaleX(-1);
}

.faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
    gap: 0 3.5rem;
    max-width: 65rem;
    margin-inline: auto;
}

.faq__item {
    border-block-end: 1px solid #e1e6ee;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding-block: 1rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover span:first-child {
    color: var(--link);
}

.faq__sign {
    position: relative;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
}

.faq__sign::before,
.faq__sign::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0.85rem;
    height: 2px;
    margin: auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.15s ease;
}

.faq__sign::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__sign::after {
    transform: rotate(0deg);
}

.faq__answer {
    margin: -0.15rem 0 1.15rem;
    padding-inline-end: 2.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq__answer a {
    font-weight: 600;
}

/* páginas internas */

.band {
    padding-block: 2.25rem;
    background: var(--night);
}

.crumbs {
    padding-block: 2rem 1.25rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
}

.crumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crumbs li + li::before {
    content: "›";
    color: var(--muted);
}

[dir="rtl"] .crumbs li + li::before {
    content: "‹";
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-weight: 500;
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.crumbs [aria-current] {
    color: var(--ink);
    font-weight: 500;
}

.layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5rem 3rem;
    padding-block-end: 1rem;
}

.layout__main {
    flex: 999 1 35rem;
    min-width: 0;
}

.layout__side {
    flex: 1 1 16.25rem;
    max-width: 100%;
}

.layout--single {
    display: block;
}

.layout--single > * {
    max-width: 48rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cathead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
    margin-block-end: 2rem;
}

.cathead__art {
    display: block;
    width: 144px;
    height: 108px;
}

.cathead__body {
    flex: 1 1 17.5rem;
}

.cathead__title {
    margin: 0;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cathead__lead {
    max-width: 32.5rem;
    margin: 0.6rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.cathead__count {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.rows {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.rows li + li {
    border-block-start: 1px solid var(--line-soft);
}

.row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.row:hover {
    background: var(--hover);
    color: var(--ink);
}

.row__body {
    flex: 1;
    min-width: 0;
}

.row__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.row:hover .row__title {
    color: var(--link);
}

.row__text {
    display: block;
    margin-block-start: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.row__tag {
    display: block;
    margin-block-end: 0.25rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.side__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-block-end: 0.5rem;
}

.side__head img {
    flex: none;
    width: 40px;
    height: 30px;
}

.side__title {
    margin: 0.25rem 0 0.75rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.side__head .side__title {
    margin: 0;
}

.side__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.side__link:hover {
    background: var(--surface);
    color: var(--ink);
}

.side__link[aria-current] {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    font-weight: 700;
}

.side__link img {
    flex: none;
    width: 48px;
    height: 36px;
}

.side__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 36px;
    color: var(--link);
}

.side__list--text .side__link {
    display: block;
    min-height: 0;
    padding: 0.7rem 0.75rem;
    line-height: 1.45;
}

.side__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.side__more:hover {
    color: var(--link);
}

.side__more:hover span:first-child {
    text-decoration: underline;
}

.toc {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0.35rem;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.toc a:hover {
    color: var(--link);
}

/* artigo */

.sheet {
    padding: 2.75rem clamp(1.25rem, 5vw, 3.5rem) 3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sheet__head {
    margin-block-end: 1.75rem;
    padding-block-end: 1.75rem;
    border-block-end: 1px solid var(--line-soft);
}

.sheet__title {
    max-width: 44rem;
    margin: 0;
    font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.125rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sheet__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.sheet__meta .icon {
    width: 16px;
    height: 16px;
}

.notice {
    max-width: 42.5rem;
    margin: 0 0 1.75rem;
    padding: 0.8rem 1rem;
    background: var(--tint);
    border: 1px solid #d6e2f5;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.prose {
    max-width: 42.5rem;
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.prose > * {
    margin-block: 0;
}

.prose > * + * {
    margin-block-start: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.prose h2 {
    margin-block-start: 2.5rem;
    font-size: 1.375rem;
    font-weight: 800;
}

.prose h3 {
    margin-block-start: 1.9rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.prose h4 {
    margin-block-start: 1.6rem;
    font-size: 1rem;
    font-weight: 700;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
    margin-block-start: 0.9rem;
}

.prose strong {
    color: var(--ink);
    font-weight: 700;
}

.prose a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.prose ul {
    padding-inline-start: 1.3rem;
}

.prose ul > li::marker {
    color: var(--muted);
}

.prose li + li {
    margin-block-start: 0.45em;
}

.prose li > ul,
.prose li > ol {
    margin-block-start: 0.5em;
}

.prose ol {
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.prose ol > li {
    position: relative;
    min-height: 1.75rem;
    padding-inline-start: 2.6rem;
    counter-increment: step;
}

.prose ol > li + li {
    margin-block-start: 0.85em;
}

.prose ol > li::before {
    content: counter(step);
    position: absolute;
    inset-block-start: 0.1em;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--tint);
    color: var(--link);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.prose blockquote {
    margin-inline: 0;
    padding: 0.9rem 1.15rem;
    background: var(--tint);
    border-radius: 12px;
}

.prose blockquote > * {
    margin-block: 0;
}

.prose blockquote > * + * {
    margin-block-start: 0.7em;
}

.prose code,
.prose kbd {
    font-family: var(--mono);
    font-size: 0.88em;
}

.prose code {
    padding: 0.12em 0.4em;
    background: var(--hover);
    border-radius: 6px;
}

.prose pre {
    padding: 1rem 1.1rem;
    overflow: auto;
    background: var(--hover);
    border-radius: 12px;
    direction: ltr;
    text-align: left;
}

.prose pre code {
    padding: 0;
    background: none;
}

.prose kbd {
    padding: 0.05em 0.45em;
    border: 1px solid var(--line-strong);
    border-block-end-width: 2px;
    border-radius: 6px;
    background: var(--surface);
}

.prose img,
.prose video,
.prose iframe {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.prose hr {
    margin-block: 2rem;
    border: 0;
    border-block-start: 1px solid var(--line-soft);
}

.table-wrap {
    overflow-x: auto;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 0.6rem 0.75rem;
    border-block-end: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}

.prose th {
    color: var(--ink);
    font-weight: 700;
}

.vote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.vote[hidden],
.vote [hidden] {
    display: none !important;
}

.vote__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
}

.vote__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vote__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vote__button:hover {
    background: var(--hover);
    border-color: #b9c6da;
}

.vote__button .icon {
    width: 18px;
    height: 18px;
}

.vote__thanks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    min-height: 2.75rem;
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.vote__thanks .icon {
    width: 20px;
    height: 20px;
    color: var(--ok);
}

.vote__more {
    font-weight: 600;
}

/* busca e erros */

.pagehead {
    margin-block-end: 1.5rem;
}

.pagehead__title {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pagehead__meta {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    text-align: center;
}

.empty--page {
    margin: clamp(2rem, 6vw, 3.5rem) auto 0;
}

.layout--single > .empty--page {
    max-width: 40rem;
}

.empty__art {
    display: block;
    width: 128px;
    height: 96px;
    margin-block-end: 1rem;
}

.empty--page .empty__art {
    width: 160px;
    height: 120px;
}

.empty__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.empty--page .empty__title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
}

.empty__text {
    max-width: 30rem;
    margin: 0.5rem 0 1.5rem;
    color: var(--muted);
}

/* ajuda e rodapé */

.help {
    padding-block: clamp(3rem, 7vw, 4.5rem);
}

.help__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.help__intro {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.help__art {
    flex: none;
    display: block;
    width: 96px;
    height: 72px;
}

.help__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.help__text {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.foot {
    background: var(--surface);
    border-block-start: 1px solid var(--line);
}

.foot__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding-block: 1.1rem;
}

.foot__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.6rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.foot__links > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--muted);
    text-decoration: none;
}

.foot__links > a:hover {
    color: var(--foot-hover);
}

.foot .menu > summary:hover {
    color: var(--ink);
}

.foot .menu > summary:hover .menu__current {
    text-decoration: underline;
}

.foot__dot {
    color: var(--muted);
}

.foot__note {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

@media (max-width: 40rem) {
    .top__row {
        gap: 0.25rem 1rem;
        justify-content: space-between;
    }

    .brand__logo {
        width: 118px;
        height: 45px;
    }

    .sitenav {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 1rem;
        margin-inline: -0.25rem;
        padding-inline: 0.25rem;
        scrollbar-width: none;
    }

    .sitenav::-webkit-scrollbar {
        display: none;
    }

    .top__actions {
        gap: 0.4rem;
    }

    .sitebtn {
        min-height: 2.75rem;
        padding: 0 0.55rem;
        font-size: 0.7rem;
    }

    .foot__links {
        gap: 0 1rem;
    }

    .foot__dot {
        display: none;
    }

    .topics__grid {
        gap: 0.75rem;
    }

    .topics__grid > li {
        flex: 1 1 100%;
    }

    .topic {
        flex-direction: row;
        gap: 1rem;
        padding: 0.9rem 1rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        text-align: start;
    }

    .topic__art {
        flex: none;
        width: 88px;
        height: 66px;
    }

    .topic__icon {
        flex: none;
        width: 4rem;
        height: 4rem;
    }

    .topic__body {
        align-items: flex-start;
        gap: 0.2rem;
        min-width: 0;
    }

    .topic__title {
        margin: 0;
        font-size: 1rem;
    }

    .topic__text {
        max-width: none;
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    .band {
        padding-block: 1.5rem;
    }

    .crumbs {
        padding-block: 1.25rem 0.75rem;
    }

    .row {
        padding: 1rem 1.1rem;
    }

    .sheet {
        padding-block: 1.75rem 2rem;
    }

    .vote {
        padding: 1.1rem 1.25rem;
    }

    .help__art {
        display: none;
    }

    .faq__answer {
        padding-inline-end: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {
    .topline,
    .sitenav,
    .top__actions,
    .band,
    .crumbs,
    .layout__side,
    .vote,
    .help,
    .foot__links {
        display: none !important;
    }

    body,
    .sheet {
        background: #ffffff;
        border: 0;
    }
}
