:root {
    --black: #221e1f;
    --white: #ede4e7;
    --red: #d85c64;
    --teal: #44aea2;
    --light-teal: #8bd1c7;
    --bg-teal: #5cd0c3;
    --bg-red: #ea838b;
    --bg-white: #efe6e9;
    --hr-black: #221e1f40;
    --label-black: #3d3738;

    --doc-font-size: 13px;
    --content-board-width-percentage: 60%;
    --candidate-selection-dropdown-font-size: 1.3rem;
    --p-font-size: 1.5rem;

    --accordion-bg-color: transparent;
    --accordion-btn-icon-open: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ede4e7' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --accordion-btn-icon-closed: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

@media (max-width: 1350px) and (min-width: 992px) {
    :root {
        --doc-font-size: 13px;
        --content-board-width-percentage: 60%;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    :root {
        --doc-font-size: 11px;
        --content-board-width-percentage: 70%;
    }
}

@media (max-width: 768px) and (min-width: 576px) {
    :root {
        --doc-font-size: 9px;
        --content-board-width-percentage: 72%;
    }
}

@media (max-width: 576px) {
    :root {
        --doc-font-size: 9px;
        --content-board-width-percentage: 90%;
        --candidate-selection-dropdown-font-size: 2rem;
        --p-font-size: 1.75rem;
    }
}

* {
    box-sizing: content-box;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    font-weight: 700;
}

html {
    font-size: var(--doc-font-size);
    color: var(--black);
}

body {
    background: radial-gradient(
        circle at bottom left,
        var(--bg-teal) 20%,
        var(--bg-red) 60%,
        var(--bg-white) 80%
    );
    background-attachment: fixed;
    font-family: "Bricolage Grotesque", sans-serif;
    font-optical-sizing: auto;
    color: var(--black);
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: var(--p-font-size);
    font-weight: 435;
    margin-top: 1.5rem;
}

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

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    margin-left: calc((100% - var(--content-board-width-percentage)) / 2);
    margin-top: 1rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    background-color: var(--label-black);
    color: var(--white);
    padding-top: 20px;
    padding-bottom: 20px;
}

input[type="radio"] {
    appearance: none;
    display: none;
}

label {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    width: 12em;
    height: 4rem;
    padding-left: 1em;
    margin: 0.1rem auto 0.1rem auto;
}

input[type="radio"]:checked + label,
label:hover {
    color: var(--white);
    background-color: var(--label-black);
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
    width: 12em;
    height: 4rem;
}

.almada-em-comum {
    font-weight: 300;
}

.logos {
    align-self: self-start;
    display: grid;
    align-content: center;
    justify-items: center;
    grid-template-areas:
        "be livre"
        "autarquicas autarquicas";
}

.party-logo {
    height: clamp(44px, 5vw, 80px);
    width: auto;
    aspect-ratio: auto;

    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

.page-title {
    margin-top: 0rem;
    margin-bottom: 0rem;
    align-self: center;

    font-weight: 800;
    white-space: nowrap;
}

.subtitle {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
}

.sub-subtitle {
    display: block;
    font-size: 0.55em;
    font-weight: 500;
}

.section-w-title > .section-title {
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.section-w-bot-ruler > hr {
    border: var(--hr-black) solid 2px;
    border-radius: 3px;
    width: 90%;
    margin: 2rem auto 2rem auto;
}

.photo-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.photo-nav h2 {
    margin-top: 0em;
    margin-bottom: 0.5em;
}

.photo-nav > img {
    width: auto;
    height: 50vh;
    max-height: 400px;
    margin-top: auto;
    margin-bottom: auto;
    outline: 3px ridge var(--black);

}

.photo-nav > nav {
    margin-left: 3rem;
}

.dropdown-menu {
    background-color: var(--label-black);
    color: var(--white);
    font-size: var(--candidate-selection-dropdown-font-size);
}

.dropdown-item {
    color: var(--white);
    width: auto;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.dropdown-header {
    margin-top: 0px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    color: #82888d;
    font-size: 1.2rem;
    font-weight: 400;
}

.dropdown-header.freguesia {
    font-size: 1rem;
    font-weight: 300;
}

.dropdown-header.narrow-screen {
    font-size: 1rem;
}

.footer-logo {
    height: clamp(50px, 10vw, 100px);
}

.social-icon {
    width: 30px;
    height: auto;
}

.accordion-button {
    font-size: 1.75rem;
    font-weight: 550;
    box-sizing: border-box;
    flex-direction: row-reverse;
    justify-content: start;
    background-color: var(--accordion-bg-color);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-collapse {
    background-color: var(--accordion-bg-color);
}

.accordion-body {
    font-size: var(--p-font-size);
    font-weight: 435;
    background-color: var(--accordion-bg-color);
    padding: 1rem 0;
}

.accordion-body a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    font-weight: 600;
}

.accordion-body ul {
    margin-top: 1rem;
    list-style-type: "- ";
    padding-left: 1rem;
    font-weight: 375;
}

.accordion-body ul li {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.accordion-item {
    background-color: var(--accordion-bg-color);
    border: none;
}

.link-symbol {
    text-decoration: none;
}

.accordion-button::after {
    margin-right: 2vw;
    margin-left: 0;
    background-image: var(--accordion-btn-icon-closed);
    background-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--label-black);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: var(--accordion-btn-icon-open)
}

body.narrow-screen {
    display: flex;
    margin-left: 5vw;
    margin-top: 5vw;
}

h3.accordion-header {
    margin-top: 0;
}

.almada-em-comum > strong {
    font-weight: 800;
}

.logos.narrow-screen {
    display: grid;
    grid-template-areas:
    "be"
    "livre"
    "autarquicas";
    margin-right: 1.5vw;
}

.logos.narrow-screen .party-logo {
    padding: 0rem;
    margin-bottom: 2.5vw;
}

.logos.narrow-screen > #autarquicas-2025 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 0px;
}

.page-title.narrow-screen {
    font-size: clamp(16px, 7vw, 30px);
    align-self: self-start;
    margin-top: 1vw;
}

.page-title.narrow-screen .subtitle {
    font-size: 0.9em;
}

.page-title.narrow-screen .sub-subtitle {
    font-size: 0.7em;
}

.dropdown-header:not(.freguesia) {
    text-decoration: underline;
}

#banner {
    width: 100vw;
    margin: 2rem auto 1rem auto;
    display: block;
}

#content-board {
    display: flex;
    flex-direction: column;
    width: var(--content-board-width-percentage);
    margin: auto;
    margin-top: 0rem;
    margin-bottom: 2.5rem;
}

#header-logo-livre {
    grid-area: livre;
}

#header-logo-be {
    grid-area: be;
}

#autarquicas-2025 {
    grid-area: autarquicas;
    font-size: 1rem;
    font-weight: 400;
}

#candidate-section-title {
    margin-top: 0.1rem;
}

#candidate-selection-dropdown {
    margin-top: 2.5rem;
}

#accordion-policy {
    box-sizing: content-box;
    background-color: var(--accordion-bg-color);
    margin-top: 2rem;
}

#accordion-flyers ul {
    list-style-type: none;
}

#footer-socials {
    margin-top: 15px;
}

#footer-logos {
    width: 80%;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 7px;
}

#footer-socials li {
    margin-top: 4px;
    margin-bottom: 4px;
}

#footer-socials a {
    font-size: 14px;
}

#footer-logos > a {
    margin-right: 2vw;
    margin-left: 2vw;
}

#candidate-selection-dropdown button.dropdown-toggle {
    background-color: var(--label-black);
    text-transform: uppercase;
    font-size: 2.1rem;
    font-weight: 700;
}
