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

/* Page-level structural rules */
html,
body {
    margin: 0;
    padding: 20px;
}

body {
    min-height: 100vh;
    margin: auto;
    max-width: 1200px;
}

/* Hide empty image tags */
img[src=""] {
    display: none;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* SEÇÕES */
section {
    border-radius: 0.5em;
    background-color: transparent;
    padding: 8px;
}

/* Language switcher — positioning/layout only */
.lang-switcher {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 4px 10px;
}

.lang-switcher-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.lang-switcher-btn.active {
    font-weight: bold;
    text-decoration: underline;
}
