/* Navegação pública utilizável em ecrãs pequenos. */
@media (max-width: 760px) {
    .public-header {
        min-height: 0;
        padding: 10px 0 6px;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .public-brand { order: 0; }
    .public-account-actions { order: 1; margin-left: auto; gap: 6px; }
    .public-header .theme-toggle { order: 2; margin-left: 0; flex: 0 0 38px; }

    .public-nav {
        order: 3;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 3px 1px 7px;
        display: flex;
        gap: 7px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .public-nav::-webkit-scrollbar { display: none; }
    .public-nav a {
        flex: 0 0 auto;
        padding: 8px 11px;
        border: 1px solid #dce8ee;
        border-radius: 999px;
        color: #31576a;
        background: #fff;
        font-size: .68rem;
        scroll-snap-align: start;
    }

    .public-nav a:focus-visible,
    .public-account-actions a:focus-visible,
    .public-header .theme-toggle:focus-visible {
        outline: 3px solid #7dd3fc;
        outline-offset: 2px;
    }

    .public-footer { padding: 30px 0 max(30px, env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
    .public-header { width: min(100% - 24px, 1180px); gap: 7px; }
    .public-brand { gap: 8px; }
    .public-brand__mark { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
    .public-brand strong { font-size: .98rem; }
    .public-register { display: none; }
    .public-login { min-height: 40px; padding: 0 11px; gap: 8px; font-size: .68rem; }
    .public-header .theme-toggle { min-height: 38px; }
    .public-nav { gap: 6px; }
    .public-nav a { min-height: 38px; padding: 0 11px; display: inline-flex; align-items: center; }
    .public-footer { width: min(100% - 28px, 1180px); }
    .public-footer__links { gap: 10px 16px; }
}

@media (max-width: 360px) {
    .public-header { gap: 6px; }
    .public-brand strong { font-size: .9rem; }
    .public-login { min-height: 38px; padding: 0 9px; font-size: .64rem; }
    .public-header .theme-toggle { width: 36px; flex-basis: 36px; }
}

html[data-theme="dark"] .public-nav a {
    color: #d8e9f2;
    border-color: #304957;
    background: #172d3b;
}

html[data-theme="dark"] .public-nav a:hover {
    color: #fff;
    border-color: #38bdf8;
    background: #203e50;
}

.landing-section[id] { scroll-margin-top: 16px; }

.faq-section { background: #fff; }
.faq-list { width: min(900px, 100%); margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { overflow: hidden; border: 1px solid #dce8ee; border-radius: 14px; background: #fbfdfe; transition: border-color .18s ease, background .18s ease; }
.faq-list details[open] { border-color: #9bd8f4; background: #f5fbfe; }
.faq-list summary { min-height: 60px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #173b4e; font-size: .78rem; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 9px; color: #0369a1; background: #e0f2fe; content: "+"; font-size: 1.1rem; transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 18px 17px; color: #617c89; font-size: .72rem; line-height: 1.7; }

@media (max-width: 520px) {
    .faq-list { gap: 8px; }
    .faq-list summary { min-height: 56px; padding: 12px 13px; font-size: .73rem; }
    .faq-list details p { padding: 0 13px 14px; font-size: .68rem; }
}

.oversight-section { background: linear-gradient(180deg, #f3f8fb, #eaf3f7); }
.oversight-layout { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .5fr); align-items: stretch; gap: 18px; }
.oversight-preview { min-width: 0; padding: 21px; overflow: hidden; border: 1px solid #254e66; border-radius: 22px; color: #e6f5fb; background: linear-gradient(145deg, #0d344c, #123f59); box-shadow: 0 23px 55px #12394d22; }
.oversight-preview>header { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oversight-preview>header>span { display: flex; align-items: center; gap: 8px; font-size: .63rem; font-weight: 950; letter-spacing: .11em; }
.oversight-preview>header i,.oversight-reminder>p i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 4px #38bdf828; }
.oversight-preview>header small { color: #98bdcd; font-size: .5rem; font-weight: 850; letter-spacing: .08em; }
.oversight-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oversight-stats article { min-height: 112px; padding: 13px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; align-items: center; column-gap: 9px; border: 1px solid #315b70; border-radius: 14px; background: #17445c; }
.oversight-stats article>span { width: 30px; height: 30px; grid-row: span 2; display: grid; place-items: center; border-radius: 9px; color: #063b55; background: #a8e5ff; font-size: .9rem; }
.oversight-stats article:nth-child(2)>span { color: #74400a; background: #ffe0a3; }
.oversight-stats article:nth-child(3)>span { color: #166534; background: #b8f4d0; }
.oversight-stats article:nth-child(4)>span { color: #5b21b6; background: #e5d5ff; }
.oversight-stats small { color: #a9c6d2; font-size: .54rem; }
.oversight-stats strong { margin-top: 4px; color: #fff; font-size: .72rem; }
.oversight-stats em { grid-column: 2; margin-top: 8px; color: #7dd3fc; font-size: .52rem; font-style: normal; font-weight: 850; }
.oversight-reminder { margin-top: 11px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; border: 1px solid #536178; border-radius: 13px; background: #1a4157; }
.oversight-reminder>span { color: #fcd58a; font-size: .51rem; font-weight: 950; letter-spacing: .1em; }
.oversight-reminder>p { margin: 0; display: flex; align-items: center; gap: 8px; color: #d5e8ef; font-size: .58rem; line-height: 1.5; }
.oversight-reminder>p i { background: #fbbf24; box-shadow: 0 0 0 4px #fbbf2424; }
.oversight-reminder>b { grid-column: 2; grid-row: 1/3; color: #7dd3fc; font-size: 1.1rem; }
.oversight-copy { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid #dce8ee; border-radius: 22px; background: #fff; }
.oversight-copy__mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #075985; background: #e0f2fe; }
.oversight-copy h3 { margin: 19px 0 10px; color: #12394d; font-size: 1.45rem; font-weight: 950; line-height: 1.1; }
.oversight-copy p { margin: 0; color: #617c89; font-size: .72rem; line-height: 1.7; }
.oversight-copy>a { margin-top: 18px; color: #0369a1; font-size: .68rem; font-weight: 900; text-decoration: none; }
.oversight-copy>a:hover { color: #2563eb; }
.oversight-copy>a b { margin-left: 6px; }

@media (max-width: 900px) {
    .oversight-layout { grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); }
}

@media (max-width: 680px) {
    .oversight-layout { grid-template-columns: 1fr; }
    .oversight-copy { padding: 22px; }
    .oversight-copy h3 br { display: none; }
}

@media (max-width: 420px) {
    .oversight-preview { padding: 14px; border-radius: 17px; }
    .oversight-stats { gap: 7px; }
    .oversight-stats article { min-height: 105px; padding: 9px; grid-template-columns: 27px minmax(0, 1fr); column-gap: 7px; }
    .oversight-stats article>span { width: 26px; height: 26px; font-size: .78rem; }
    .oversight-stats strong { font-size: .64rem; }
    .oversight-preview>header small { font-size: .44rem; }
    .oversight-reminder { padding: 10px; }
}
