/* Site público da QuestAnBridge (e as bases que a gestão também usa: cores, fontes, botões, formulários).
   Identidade: o azul do logótipo sobre um papel frio. Os títulos h1, h2 e h3 em Scoutie Sans (--heading);
   os outros destaques (logótipo, mosaicos, números, citações) em Plus Jakarta Sans (--display); o texto em Public Sans. O ocre aparece só no ponto de interrogação da marca.
   As fontes estão em public/site/fonts (OFL): nunca de um serviço de terceiros.
   Os dois blocos do tema escuro (media query e [data-theme=dark]) têm de ficar iguais. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/jakarta-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/jakarta-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Scoutie Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/scoutie-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Scoutie Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/scoutie-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/public-sans-latin-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/public-sans-latin-ext-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/public-sans-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/public-sans-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --bg: #F2F4F6;
    --surface: #FFFFFF;
    --raised: #E6EBF0;
    --text: #0E2440;
    --text-2: #4D5D70;
    --line: #D3DBE4;
    --accent: #0F51A1;
    --accent-2: #4995D1;
    --on-accent: #FFFFFF;
    --ochre: #D9A21B;
    --danger: #B3261E;
    --spark: #4995D1;
    --logo: linear-gradient(150deg, #4995D1 0%, #0F51A1 70%);
    /* A faixa escura (abertura e rodapé): a tinta do texto, nos dois temas. */
    --deep: #0E2440;
    --on-deep: #EEF3F8;
    --on-deep-2: #A9BBD0;
    --shadow: 0 1px 2px rgba(14, 36, 64, 0.06), 0 8px 24px rgba(14, 36, 64, 0.06);
    --system: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --body: "Public Sans", var(--system);
    --display: "Plus Jakarta Sans", var(--system);
    /* Só as etiquetas h1, h2 e h3. */
    --heading: "Scoutie Sans", "Plus Jakarta Sans", var(--system);
    --radius: 6px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0B1626;
        --surface: #102035;
        --raised: #162A43;
        --text: #E7EEF6;
        --text-2: #9DB0C6;
        --line: #22374F;
        --accent: #7DB6E8;
        --accent-2: #4995D1;
        --on-accent: #08172A;
        --ochre: #E8B84A;
        --danger: #FF9A8F;
        --spark: #7DB6E8;
        --deep: #07111F;
        --on-deep: #E7EEF6;
        --on-deep-2: #9DB0C6;
        --shadow: 0 0 0 1px #22374F;
    }
}
:root[data-theme="dark"] {
    --bg: #0B1626;
    --surface: #102035;
    --raised: #162A43;
    --text: #E7EEF6;
    --text-2: #9DB0C6;
    --line: #22374F;
    --accent: #7DB6E8;
    --accent-2: #4995D1;
    --on-accent: #08172A;
    --ochre: #E8B84A;
    --danger: #FF9A8F;
    --spark: #7DB6E8;
    --deep: #07111F;
    --on-deep: #E7EEF6;
    --on-deep-2: #9DB0C6;
    --shadow: 0 0 0 1px #22374F;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }

/* ---- Botões */
.button, .button-outline, .button-quiet {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem;
    padding: 0.6rem 1.25rem; border-radius: var(--radius); font: 600 0.98rem/1.2 var(--body);
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.button { background: var(--accent); color: var(--on-accent); }
.button:hover { filter: brightness(1.08); }
.button-outline { background: transparent; color: var(--accent); border-color: currentColor; }
.button-outline:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.button-quiet { background: var(--raised); color: var(--text); }
.button-quiet:hover { background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.button svg, .button-outline svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* ---- Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: auto; height: 2rem; }
.brand .logo-dark { display: none; }
.site-menu { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav > a, .nav-group > button {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.7rem; border: 0; border-radius: var(--radius);
    background: none; color: var(--text-2); font: 600 0.95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.site-nav > a:hover, .nav-group > button:hover, .nav-group.is-open > button { color: var(--text); background: var(--raised); }
.site-nav [aria-current="page"], .nav-group.is-current > button { color: var(--accent); }
.nav-group { position: relative; }
.nav-group > button svg { width: 0.8rem; height: 0.8rem; transition: transform 0.15s; }
.nav-group.is-open > button svg { transform: rotate(180deg); }
.nav-panel {
    position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 15rem; padding: 0.4rem; display: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-group.is-open .nav-panel { display: grid; }
.nav-panel a { padding: 0.55rem 0.75rem; border-radius: 4px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav-panel a:hover { background: var(--raised); }
.nav-panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-panel small { display: block; color: var(--text-2); font-size: 0.82rem; }
.nav-cta { white-space: nowrap; }
.site-menu-settings { display: flex; align-items: center; gap: 0.6rem; }
.theme-switch { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--raised); color: var(--text-2); cursor: pointer; }
.theme-switch:hover { color: var(--text); }
.theme-switch svg { width: 1.1rem; height: 1.1rem; }
.theme-switch .theme-icon-sun { display: none; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--raised); }
.lang-switch a { padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--text-2); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.lang-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(14, 36, 64, 0.12); }
.menu-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; border-radius: var(--radius); background: var(--raised); color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 1.35rem; height: 1.35rem; }
.menu-toggle .menu-icon-close { display: none; }
.account-link { color: var(--text-2); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.account-link:hover { color: var(--text); }

/* No escuro, o logótipo branco. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-switch .theme-icon-moon { display: none; }
    :root:not([data-theme="light"]) .theme-switch .theme-icon-sun { display: block; }
    :root:not([data-theme="light"]) .brand .logo-light { display: none; }
    :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .theme-switch .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-switch .theme-icon-sun { display: block; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

/* ---- Rodapé */
.site-footer { margin-top: 5rem; background: var(--deep); color: var(--on-deep-2); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-grid h2 { margin-bottom: 0.9rem; color: var(--on-deep); font: 600 1rem/1.3 var(--body); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand img { height: 2rem; width: auto; margin-bottom: 1rem; }
.footer-brand p + p { margin-top: 0.75rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.footer-social a:hover { background: rgba(255, 255, 255, 0.16); }
.footer-social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }

/* ---- Cabeça das páginas de conteúdo */
.page-band { padding-block: 3.5rem 2.75rem; border-bottom: 1px solid var(--line); }
.page-head { max-width: 46rem; }
.page-head .crumbs { margin-bottom: 1rem; font-size: 0.92rem; }
.page-head .crumbs a { color: var(--text-2); }
.lead { margin-top: 1rem; max-width: 40rem; color: var(--text-2); font-size: 1.2rem; line-height: 1.55; }
.page-meta { margin-top: 1rem; color: var(--text-2); font-size: 0.92rem; }
.section { padding-block: 4rem; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 38rem; margin-top: 0.6rem; color: var(--text-2); }
.section-head a { font-weight: 600; }

/* ---- Texto longo (páginas, artigos, descrições) */
.prose { max-width: 42rem; font-size: 1.075rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 3px solid var(--accent-2); font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.45; }
.prose img { border-radius: var(--radius); }
.prose figure figcaption { margin-top: 0.5rem; color: var(--text-2); font-size: 0.9rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text-2); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose a { overflow-wrap: anywhere; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; align-items: start; }
.content-side { position: sticky; top: 6.5rem; display: grid; gap: 1.5rem; }
.side-nav { display: grid; gap: 0.15rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.side-nav a { margin-left: calc(-1rem - 2px); padding: 0.35rem 0 0.35rem 1rem; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.side-nav a:hover { color: var(--text); }
.side-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--text); font-weight: 600; }
.side-box { padding: 1.25rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.side-box h2 { font: 600 1rem/1.3 var(--body); margin-bottom: 0.5rem; }
.side-box p { color: var(--text-2); font-size: 0.95rem; }
.side-box .button { margin-top: 1rem; width: 100%; }
.empty-note { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--text-2); text-align: center; }

/* ---- Fichas, chips e etiquetas */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.chip span { color: var(--text-2); font-weight: 500; }
.chip:hover { border-color: var(--accent-2); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-current="page"] span { color: inherit; opacity: 0.8; }
.chip-small { padding: 0.15rem 0.6rem; font-size: 0.8rem; }
.tag { display: inline-block; margin: 0 0.5rem 0.4rem 0; color: var(--text-2); font-size: 0.9rem; text-decoration: none; }
.tag:hover, .tag[aria-current="page"] { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 4px; background: var(--raised); color: var(--text-2); font-size: 0.8rem; font-weight: 600; }
.badge-lock { background: color-mix(in srgb, var(--ochre) 18%, var(--surface)); color: color-mix(in srgb, var(--ochre) 50%, var(--text)); }
.badge svg { width: 0.85rem; height: 0.85rem; }

/* ---- Formulários */
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea, .blog-search input, .filter-bar select, .filter-bar input {
    width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--body);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .blog-search input:focus, .filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.form-ok { padding: 1rem 1.2rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); color: var(--text); }
.form-alert { padding: 1rem 1.2rem; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); font-weight: 600; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; }
.check input { margin-top: 0.3rem; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel legend { padding-inline: 0.4rem; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.panel > * + * { margin-top: 1.1rem; }

/* ---- Abertura da página inicial: a frase da marca e o arco que liga a pergunta à resposta */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3.5rem; align-items: end; padding-block: 5rem 4.5rem; }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
.hero-title .a { color: #9FCBF2; }
.hero-title .q, .hero-title .a { white-space: nowrap; }
.hero-arc { display: block; width: min(100%, 38rem); height: auto; margin-top: 1.5rem; overflow: visible; }
.hero-arc path { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; }
.hero-arc .deck { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.hero-arc .end-q { fill: var(--ochre); stroke: none; }
.hero-arc .end-a { fill: var(--on-deep); stroke: none; }
.hero-arc text { font-family: var(--display); font-size: 15px; fill: var(--on-deep-2); }
@media (prefers-reduced-motion: no-preference) {
    .hero-arc .span { stroke-dasharray: 640; stroke-dashoffset: 640; animation: arc-draw 1.6s 0.3s cubic-bezier(0.6, 0.05, 0.25, 1) forwards; }
    .hero-arc .end-a { opacity: 0; animation: arc-land 0.4s 1.75s ease-out forwards; }
}
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes arc-land { to { opacity: 1; } }
.hero-lead { margin-top: 1.75rem; max-width: 36rem; color: var(--on-deep-2); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .button { background: var(--on-deep); color: var(--deep); }
.hero .button-outline { color: var(--on-deep); }
.hero-aside { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.hero-aside h2 { font: 600 0.95rem/1.3 var(--body); color: var(--on-deep-2); }
.hero-aside ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 1.1rem; }
.hero-aside a { color: var(--on-deep); text-decoration: none; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; }
.hero-aside a:hover { text-decoration: underline; }
.hero-aside time { display: block; margin-top: 0.25rem; color: var(--on-deep-2); font-size: 0.85rem; }

/* ---- Quem somos e as áreas de serviço (linhas, não cartões) */
.intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem 4rem; }
.intro-quote { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.3; }
.intro-quote cite { display: block; margin-top: 1rem; color: var(--text-2); font: 600 0.95rem/1.3 var(--body); font-style: normal; }
.intro-text p + p { margin-top: 1rem; }
.intro-text p { color: var(--text-2); }
.service-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 2rem; align-items: baseline; padding-block: 1.6rem; color: var(--text); text-decoration: none; }
.service-list h3 { font-size: 1.6rem; font-weight: 500; }
.service-list p { color: var(--text-2); }
.service-list .go { color: var(--accent); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.service-list a:hover h3 { color: var(--accent); }
.service-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

/* ---- Publicações */
.post-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.post-row { border-bottom: 1px solid var(--line); }
.post-row a { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 11rem; gap: 1.5rem 2rem; padding-block: 1.5rem; color: var(--text); text-decoration: none; }
.post-row time { color: var(--text-2); font-size: 0.92rem; padding-top: 0.25rem; }
.post-row h3 { font-size: 1.35rem; font-weight: 600; }
.post-row a:hover h3 { color: var(--accent); }
.post-row p { margin-top: 0.45rem; color: var(--text-2); font-size: 0.98rem; }
.post-row-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-top: 0.7rem; color: var(--text-2); font-size: 0.85rem; }
.post-row-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--raised); }
.post-row-cover-empty { display: grid; place-items: center; }
.post-row-cover-empty svg { width: 2rem; height: 2rem; color: var(--text-2); opacity: 0.5; }
.blog-tools { display: grid; gap: 1rem; margin-bottom: 2rem; }
.blog-search { position: relative; display: flex; gap: 0.5rem; max-width: 34rem; }
.blog-search svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.blog-search input { padding-left: 2.4rem; }
.blog-search button { flex: none; min-height: 2.75rem; padding-inline: 1.1rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: 600 0.95rem var(--body); cursor: pointer; }
.blog-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.5rem; color: var(--text-2); }
.blog-pages { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.tag-cloud { margin-top: 3rem; }
.tag-cloud h2 { font: 600 1rem/1.3 var(--body); margin-bottom: 0.75rem; }

/* ---- Artigo */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; align-items: start; padding-block: 3rem 1rem; }
.article-head { max-width: 46rem; }
.article-back { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.92rem; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta { margin-top: 1rem; color: var(--text-2); font-size: 0.95rem; }
.article-cover { width: 100%; max-width: 46rem; margin-top: 2rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--raised); }
.article-body { margin-top: 2rem; }
.article-source { margin-top: 2rem; font-size: 0.92rem; }
.attachments { max-width: 42rem; margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.attachment { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.attachment-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 3.25rem; border-radius: 4px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-size: 0.72rem; font-weight: 800; }
.attachment-text { flex: 1; min-width: 0; }
.attachment-text strong { display: block; overflow-wrap: anywhere; }
.attachment-text span { color: var(--text-2); font-size: 0.88rem; }
.attachment-actions { display: flex; gap: 0.5rem; flex: none; }
.article-side { position: sticky; top: 6.5rem; display: grid; gap: 1.75rem; }
.side-block h2 { margin-bottom: 0.7rem; font: 600 0.95rem/1.3 var(--body); color: var(--text-2); }
.side-toc { padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.95rem; }
.side-toc a { color: var(--text); text-decoration: none; }
.side-toc a:hover { color: var(--accent); }
.side-posts { list-style: none; padding: 0; display: grid; gap: 1rem; }
.side-posts a { display: block; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.05rem; line-height: 1.3; }
.side-posts a:hover { color: var(--accent); }
.side-posts span { display: block; margin-top: 0.2rem; color: var(--text-2); font: 400 0.85rem var(--body); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { color: var(--text); text-decoration: none; }
.post-nav a span { display: block; color: var(--text-2); font-size: 0.85rem; }
.post-nav a strong { font-family: var(--display); font-weight: 600; }
.post-nav a:hover strong { color: var(--accent); }
.post-nav .next { text-align: right; grid-column: 2; }
.translation-note { margin-top: 1rem; font-size: 0.95rem; }
.toc-float { display: none; }

/* ---- Biblioteca */
.filter-bar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end; margin-bottom: 1.5rem; }
.filter-bar label { display: grid; gap: 0.3rem; color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.filter-bar .button { min-height: 2.75rem; }
.book-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2.5rem 1.75rem; }
.book-card a { display: block; color: var(--text); text-decoration: none; }
.book-cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px 6px 6px 3px; background: var(--raised); box-shadow: 0 1px 2px rgba(14, 36, 64, 0.15), 0 10px 24px rgba(14, 36, 64, 0.14); }
.book-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent); z-index: 1; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card a:hover .book-cover { transform: translateY(-3px); transition: transform 0.2s; }
/* Sem capa: a capa tipográfica, com o título e a cor da categoria. */
.book-cover-type { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 1rem 0.9rem 0.9rem 1.2rem; background: var(--logo); color: #FFFFFF; }
.book-cover-type strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.book-cover-type span { font-size: 0.78rem; opacity: 0.85; }
.book-card h3 { margin-top: 0.9rem; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.book-card a:hover h3 { color: var(--accent); }
.book-card p { margin-top: 0.3rem; color: var(--text-2); font-size: 0.88rem; }
.book-card .badge { margin-top: 0.5rem; }
.library-count { color: var(--text-2); margin-bottom: 1.5rem; }
.book-page { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-block: 3rem 1rem; }
.book-page .book-cover { box-shadow: 0 2px 4px rgba(14, 36, 64, 0.15), 0 24px 48px rgba(14, 36, 64, 0.18); }
.book-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.book-subtitle { margin-top: 0.5rem; font-family: var(--display); font-size: 1.3rem; color: var(--text-2); }
.book-authors { margin-top: 1rem; font-size: 1.1rem; }
.book-authors a { font-weight: 600; text-decoration: none; }
.book-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.book-lock { max-width: 36rem; margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--ochre); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.book-lock p + p { margin-top: 0.5rem; }
.book-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem 1.5rem; max-width: 42rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.book-facts dt { color: var(--text-2); font-size: 0.85rem; }
.book-facts dd { margin-top: 0.15rem; font-weight: 600; }
.book-description { margin-top: 2rem; }
.db-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0 2.5rem; }
.db-list li { border-bottom: 1px solid var(--line); }
.db-list a { display: block; padding-block: 1.1rem; color: var(--text); text-decoration: none; }
.db-list strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.db-list span { color: var(--accent); font-size: 0.9rem; }
.db-list p { margin-top: 0.3rem; color: var(--text-2); font-size: 0.95rem; }
.db-list a:hover strong { color: var(--accent); }

/* ---- Equipa, parceiros, FAQs, sessões */
.team-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.team-card img, .team-card .team-initials { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--raised); }
.team-initials { display: grid; place-items: center; font-family: var(--display); font-size: 3rem; color: var(--text-2); }
.team-card h3 { margin-top: 1rem; font-size: 1.2rem; }
.team-card .role { margin-top: 0.2rem; color: var(--text-2); }
.team-card .bio { margin-top: 0.7rem; font-size: 0.95rem; }
.team-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; font-size: 0.9rem; }
.partners { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; }
.partners a, .partners span { display: block; color: var(--text-2); font-weight: 600; text-decoration: none; }
.partners img { height: 3rem; width: auto; max-width: 10rem; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.partners a:hover img { filter: none; opacity: 1; }
.faq-list { max-width: 46rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font: 400 1.5rem/1 var(--body); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .prose { padding-bottom: 1.5rem; }
.session-list { columns: 2 18rem; column-gap: 2.5rem; margin-top: 1.25rem; padding-left: 1.2rem; }
.session-list li { break-inside: avoid; padding-block: 0.35rem; }
.session-list li::marker { color: var(--accent); }
.session-list small { display: block; color: var(--text-2); }
.sponsor-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding: 2.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sponsor-band p { margin-top: 0.5rem; color: var(--text-2); max-width: 40rem; }

/* ---- Contacto e contas */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 4rem; padding-block: 3rem 1rem; }
.contact-details { display: grid; gap: 1.5rem; align-content: start; }
.contact-details h2 { font: 600 0.95rem/1.3 var(--body); color: var(--text-2); margin-bottom: 0.35rem; }
.contact-details a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-details a:hover { color: var(--accent); }
.auth { display: grid; place-items: center; padding-block: 4rem 2rem; }
.auth-card { width: min(100%, 27rem); padding: 2.25rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.auth-card > p { margin-top: 0.6rem; }
.auth-card .form { margin-top: 1.5rem; }
.auth-card .muted:last-child { margin-top: 1.5rem; font-size: 0.95rem; }
.join { max-width: 46rem; padding-block: 3rem 1rem; }
.join-form { display: grid; gap: 1.5rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 1rem; }
.invite { padding-block: 5rem; }
.invite-card { max-width: 36rem; }
.invite-card p { margin-top: 1rem; color: var(--text-2); }
.invite-card .button { margin-top: 1.5rem; }

/* ---- Telas estreitas */
@media (max-width: 68rem) {
    .site-nav > a, .nav-group > button { padding-inline: 0.5rem; }
    .nav-cta { display: none; }
}
@media (max-width: 60rem) {
    .menu-toggle { display: inline-grid; }
    .has-menu .site-menu { display: none; }
    .site-menu { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .has-menu .site-menu.is-open { display: flex; }
    .menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
    .menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
    .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav > a, .nav-group > button { width: 100%; justify-content: space-between; padding: 0.8rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-panel { position: static; min-width: 0; padding: 0.25rem 0 0.5rem 0.75rem; border: 0; box-shadow: none; background: none; }
    .nav-cta { display: inline-flex; }
    .site-menu-settings { justify-content: space-between; }
    .hero-inner, .intro, .content-layout, .article-layout, .contact-layout, .book-page { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .hero-aside { padding-left: 0; padding-top: 2rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
    .content-side, .article-side { position: static; }
    .book-page .book-cover { max-width: 14rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar > :first-child { grid-column: 1 / -1; }
    .service-list a { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .post-row a { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .post-row-cover { display: none; }
    .sponsor-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
    .wrap { width: calc(100% - 2rem); }
    .form-row, .account-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { padding-block: 3.5rem 3rem; }
    .hero-title .q, .hero-title .a { white-space: normal; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
    .attachment { flex-wrap: wrap; }
    .attachment-actions { width: 100%; }
    .attachment-actions a { flex: 1; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .next { grid-column: 1; text-align: left; }
    .page-band { padding-block: 2.5rem 2rem; }
    .section { padding-block: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
@media print {
    .site-header, .site-footer, .article-side, .attachments .attachment-actions { display: none; }
    body { background: #FFFFFF; color: #000000; }
}

/* =====================================================================================================
   Camada de identidade: o degradê azul do logótipo, o símbolo em marca de água, cartões com imagem.
   (Vem depois das regras de base e substitui-as onde é preciso.)
   ===================================================================================================== */
:root { --brand-grad: linear-gradient(120deg, #0B2F63 0%, #0F51A1 55%, #2E7CC4 100%); --tint: #E4EEF8; --radius-lg: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-grad: linear-gradient(120deg, #06152B 0%, #0B2F63 60%, #134C8F 100%); --tint: #0F1D31; } }
:root[data-theme="dark"] { --brand-grad: linear-gradient(120deg, #06152B 0%, #0B2F63 60%, #134C8F 100%); --tint: #0F1D31; }

/* Abertura */
.hero { background: var(--brand-grad); isolation: isolate; }
.hero-mark { position: absolute; z-index: -1; right: -8rem; top: 50%; width: min(52rem, 80vw); height: auto; transform: translateY(-50%); opacity: 0.09; pointer-events: none; }
.hero-inner { align-items: center; padding-block: 5.5rem 6rem; }
.hero-kicker { margin-bottom: 1.25rem; color: #B9D6F2; font-weight: 600; font-size: 0.98rem; }
.hero .button { background: #FFFFFF; color: #0B2F63; }
.hero .button:hover { filter: none; background: #E4EEF8; }
.hero .button-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.hero .button-outline:hover { background: rgba(255, 255, 255, 0.1); }
.hero-arc path { stroke: #7DB6E8; }
.hero-feature { display: block; overflow: hidden; border-radius: var(--radius-lg); background: #FFFFFF; color: #0E2440; text-decoration: none; box-shadow: 0 24px 60px rgba(4, 20, 45, 0.45); transform: rotate(1.2deg); transition: transform 0.25s; }
.hero-feature:hover { transform: rotate(0deg) translateY(-4px); }
.hero-feature-label { display: block; padding: 0.7rem 1.1rem; background: #0E2440; color: #B9D6F2; font-size: 0.85rem; font-weight: 600; }
.hero-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-feature-body { display: grid; gap: 0.5rem; padding: 1.1rem 1.25rem 1.35rem; }
.hero-feature-body .badge { justify-self: start; background: #E4EEF8; color: #0F51A1; }
.hero-feature-body strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.hero-feature-body time { color: #4D5D70; font-size: 0.88rem; }


.value-chip { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.88rem; font-weight: 600; }

/* Serviços em cartões */
.band-tint { background: var(--tint); }
.service-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service-cards a { position: relative; display: flex; flex-direction: column; gap: 0.75rem; height: 100%; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); border-top: 4px solid var(--accent-2); transition: transform 0.2s, box-shadow 0.2s; }
.service-cards a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 36, 64, 0.14); }
.service-cards h3 { font-size: 1.4rem; }
.service-cards p { color: var(--text-2); font-size: 0.97rem; flex: 1; }
.service-cards .go { color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.service-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--brand-grad); color: #FFFFFF; flex: none; }
.service-icon svg { width: 1.5rem; height: 1.5rem; }

/* QABO */
.qabo-band { position: relative; overflow: hidden; isolation: isolate; background: var(--brand-grad); color: #FFFFFF; }
.qabo-mark { position: absolute; z-index: -1; left: -6rem; bottom: -8rem; width: 34rem; height: auto; opacity: 0.08; }
.qabo-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding-block: 4.5rem; }
.qabo-inner h2 { color: #FFFFFF; }
.qabo-inner > div > p { margin-top: 1rem; color: #C9DDF2; font-size: 1.1rem; max-width: 36rem; }
.qabo-band .button { background: #FFFFFF; color: #0B2F63; }
.qabo-band .button-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.qabo-outputs { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.qabo-outputs li { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; }
.qabo-outputs .service-icon { width: 2.5rem; height: 2.5rem; background: rgba(255, 255, 255, 0.16); }

/* Publicações em cartões */
.post-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.post-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.post-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.post-card a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 36, 64, 0.14); }
.post-card a:hover h3 { color: var(--accent); }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--brand-grad); }
.post-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; }
.post-card-placeholder img { width: 38%; height: auto; opacity: 0.35; }
.post-card-category { position: absolute; left: 0.85rem; top: 0.85rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #0F51A1; font-size: 0.78rem; font-weight: 700; }
.post-card-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.post-card h3 { font-size: 1.15rem; line-height: 1.3; }
.post-card p { color: var(--text-2); font-size: 0.93rem; flex: 1; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 0.85rem; }
.post-card-pdf { padding: 0.1rem 0.45rem; border-radius: 4px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-size: 0.72rem; font-weight: 800; }

/* A estante da biblioteca na página inicial */
.shelf-band { background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%); }
.shelf { padding-bottom: 1.5rem; border-bottom: 10px solid color-mix(in srgb, var(--accent) 22%, var(--raised)); }

/* Cabeça das páginas: a faixa azul com o símbolo */
.page-band { position: relative; overflow: hidden; isolation: isolate; padding-block: 3.75rem 3.25rem; border-bottom: 0; background: var(--brand-grad); color: #FFFFFF; }
.page-band-mark { position: absolute; z-index: -1; right: 4%; top: 50%; width: 22rem; height: auto; transform: translateY(-50%); opacity: 0.1; pointer-events: none; }
.page-band h1 { color: #FFFFFF; }
.page-band .lead { color: #C9DDF2; }
.page-band .page-meta { color: #C9DDF2; }
.page-head .crumbs { color: #9DC0E6; }
.page-head .crumbs a { color: #C9DDF2; text-decoration: none; }
.page-head .crumbs a:hover { color: #FFFFFF; text-decoration: underline; }

.sponsor-band { border-radius: var(--radius-lg); border-left: 5px solid var(--accent-2); }
.sponsor-band-strong { background: var(--deep); color: #FFFFFF; border-left-color: var(--ochre); }
.sponsor-band-strong h2 { color: #FFFFFF; }
.sponsor-band-strong p { color: #C9DDF2; }
.sponsor-band-strong .button { background: var(--ochre); color: #1A1203; }

.side-box { border-radius: var(--radius-lg); border-top: 4px solid var(--accent-2); }
.book-cover { border-radius: 3px 8px 8px 3px; }
.faq-list details { padding-inline: 1.25rem; margin-bottom: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.faq-list { border-top: 0; }
.db-list li { margin-bottom: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.db-list a { padding: 1.1rem 1.25rem; }
.team-card img, .team-card .team-initials { border-radius: var(--radius-lg); }
.attachment { border-radius: var(--radius-lg); }

@media (max-width: 60rem) {
    .service-cards, .post-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qabo-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-feature { transform: none; max-width: 30rem; }
    .hero-inner { padding-block: 4rem 6rem; }
    .page-band-mark { width: 14rem; right: -3rem; }
}
@media (max-width: 36rem) {
    .service-cards, .post-grid, .post-grid-4 { grid-template-columns: minmax(0, 1fr); }
}
.article-cover-brand { display: grid; place-items: center; aspect-ratio: 16 / 6; background: var(--brand-grad); }
.article-cover-brand img { width: 22%; height: auto; opacity: 0.3; }

/* Quem somos: Work ethos e Scope condition, os dois blocos da QAB */
.who-head { max-width: 44rem; margin-bottom: 2.25rem; }
.who-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.who-head p { margin-top: 0.6rem; color: var(--text-2); font-size: 1.15rem; }
.who-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; }
.who-card { position: relative; overflow: hidden; isolation: isolate; padding: 2.25rem 2.25rem 2.5rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.who-card h3 { margin-top: 0.4rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; }
.who-number { display: block; font-family: var(--display); font-size: 3.25rem; font-weight: 700; line-height: 1; color: var(--accent-2); }
.who-card-ethos { display: flex; flex-direction: column; background: var(--brand-grad); color: #FFFFFF; }
.who-card-ethos .who-number { color: rgba(255, 255, 255, 0.35); }
.who-card-ethos h3 { color: #B9D6F2; }
.who-card-ethos blockquote { margin: auto 0 0; padding-top: 2rem; font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.who-card-ethos blockquote p::before { content: "“"; color: var(--ochre); }
.who-card-ethos blockquote p::after { content: "”"; color: var(--ochre); }
.who-mark { position: absolute; z-index: -1; right: -3rem; bottom: -3rem; width: 15rem; height: auto; opacity: 0.1; }
.who-card-scope .prose { margin-top: 1rem; max-width: none; color: var(--text-2); }
.who-card-scope .chip-row { margin-top: 1.5rem; }
.who-card-scope > p:last-child { margin-top: 1.5rem; }
@media (max-width: 60rem) { .who-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cabeça das páginas (versão 2): mais alta, com o arco da ponte ao fundo e os separadores da secção. */
.page-band { padding-block: 4.25rem 5.5rem; }
.page-band.has-tabs { padding-bottom: 0; }
.page-band::after { content: ""; position: absolute; z-index: -1; left: -5%; right: -5%; bottom: -1px; height: 3.25rem; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-band.has-tabs::after { display: none; }
.page-band-arc { position: absolute; z-index: -1; left: 0; right: 0; bottom: 1.5rem; width: 100%; height: 11rem; overflow: visible; }
.page-band-arc path { fill: none; stroke: rgba(159, 203, 242, 0.45); stroke-width: 2; vector-effect: non-scaling-stroke; }
.page-band-arc .deck { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.25; }
.page-band-mark { right: 6%; top: 46%; width: 19rem; opacity: 0.12; }
.page-head { max-width: 50rem; }
.page-band h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.page-band .lead { margin-top: 1.1rem; font-size: 1.22rem; max-width: 42rem; }
.page-head .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem; font-size: 0.9rem; }
.page-head .crumbs span[aria-hidden] { color: rgba(255, 255, 255, 0.4); }
.page-head .crumbs [aria-current] { color: #FFFFFF; font-weight: 600; }
.page-tabs { display: flex; gap: 0.25rem; margin-top: 2.5rem; overflow-x: auto; scrollbar-width: none; }
.page-tabs a { flex: none; padding: 0.95rem 1.3rem; border-radius: 12px 12px 0 0; color: #DCEAF8; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.page-tabs a:hover { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.page-tabs a[aria-current] { background: var(--bg); color: var(--accent); }
@media (max-width: 60rem) {
    .page-band { padding-block: 3rem 4.25rem; }
    .page-band-arc { height: 7rem; }
    .page-band-mark { width: 12rem; right: -2rem; }
    .page-tabs a { padding: 0.8rem 1rem; }
}

/* A coluna do texto da abertura e o tamanho do título. */
.hero-inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 3rem; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.75rem); }
.hero-feature { max-width: 22rem; justify-self: end; }
@media (max-width: 60rem) { .hero-inner { grid-template-columns: minmax(0, 1fr); } .hero-feature { justify-self: start; } }

/* O texto da cabeça das páginas alinha com o resto do conteúdo: a largura máxima vai para o texto,
   não para o bloco (que, com .wrap, ficava centrado e mais à direita). */
.page-head { max-width: none; }
.page-head h1, .page-head .lead, .page-head .page-meta { max-width: 46rem; }

/* GTranslate: a lista das outras línguas, com o ar do seletor PT/EN. */
.gtranslate_wrapper { display: flex; align-items: center; }
.gtranslate_wrapper select.gt_selector { min-height: 2.15rem; max-width: 9.5rem; padding: 0.25rem 1.6rem 0.25rem 0.7rem; border: 0; border-radius: 999px; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234D5D70' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 0.7rem; color: var(--text-2); font: 600 0.82rem var(--body); cursor: pointer; appearance: none; -webkit-appearance: none; }
.gtranslate_wrapper select.gt_selector:hover { color: var(--text); }
/* A barra que o Google Tradutor põe no topo da página empurra o site para baixo: fica escondida. */
body { top: 0 !important; }
.skiptranslate iframe, iframe.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
@media (max-width: 60rem) { .gtranslate_wrapper select.gt_selector { max-width: none; } }

/* A barra de resultados de uma lista filtrada: total, chips dos filtros e "Limpar filtros". */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-bottom: 1.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.results-total { margin-right: 0.25rem; color: var(--text); font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.6rem 0.35rem 0.85rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.filter-chip svg { width: 0.75rem; height: 0.75rem; padding: 0.15rem; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.filter-chip:hover { background: color-mix(in srgb, var(--accent) 18%, var(--tint)); }
.clear-filters { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.4rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.clear-filters svg { width: 0.95rem; height: 0.95rem; }
.clear-filters:hover { border-color: var(--accent-2); color: var(--accent); }
@media (max-width: 36rem) { .clear-filters { margin-left: 0; } }
/* A imagem do cartão fica presa à caixa 16:10, seja qual for o tamanho original. */
.post-card-media { overflow: hidden; flex: none; }
.post-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* O seletor de todas as línguas (GTranslate), ao lado do PT/EN. */
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select svg { position: absolute; left: 0.6rem; width: 1rem; height: 1rem; color: var(--text-2); pointer-events: none; }
.lang-select select { min-height: 2.15rem; max-width: 9.5rem; padding: 0.25rem 1.6rem 0.25rem 1.95rem; border: 0; border-radius: 999px; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234D5D70' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 0.7rem; color: var(--text-2); font: 600 0.82rem var(--body); cursor: pointer; appearance: none; -webkit-appearance: none; }
.lang-select select:hover { color: var(--text); }
.gtranslate_wrapper[hidden] { display: none !important; }

/* Abertura sem o cartão da publicação recente: uma só coluna, com o símbolo da marca à direita. */
.hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-inner > div { max-width: 46rem; }
.hero-mark { right: -4rem; width: min(40rem, 70vw); opacity: 0.11; }
.site-nav > a, .nav-group > button { white-space: nowrap; }

/* Abertura com o acesso rápido às quatro áreas, à direita. */
.hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; }
.hero-inner > div { max-width: none; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.hero-tile { position: relative; display: flex; flex-direction: column; gap: 0.45rem; min-height: 11.5rem; padding: 1.3rem 1.25rem 1.2rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); color: #FFFFFF; text-decoration: none; backdrop-filter: blur(6px); transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.hero-tile:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
.hero-tile .service-icon { width: 2.6rem; height: 2.6rem; margin-bottom: 0.35rem; background: #FFFFFF; color: #0F51A1; }
.hero-tile strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.hero-tile > span:not(.service-icon) { color: #C9DDF2; font-size: 0.9rem; line-height: 1.4; }
.hero-tile-go { position: absolute; right: 1.1rem; top: 1.45rem; width: 1.1rem; height: 1.1rem; color: rgba(255, 255, 255, 0.55); transition: transform 0.2s, color 0.2s; }
.hero-tile:hover .hero-tile-go { color: #FFFFFF; transform: translateX(3px); }
.hero-tiles .hero-tile:nth-child(2), .hero-tiles .hero-tile:nth-child(4) { transform: translateY(1.5rem); }
.hero-tiles .hero-tile:nth-child(2):hover, .hero-tiles .hero-tile:nth-child(4):hover { transform: translateY(calc(1.5rem - 3px)); }
@media (max-width: 60rem) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-tiles .hero-tile:nth-child(2), .hero-tiles .hero-tile:nth-child(4) { transform: none; }
    .hero-tile { min-height: 0; }
}
@media (max-width: 36rem) { .hero-tiles { grid-template-columns: minmax(0, 1fr); } }

/* O título da abertura parte a linha quando precisa (não passa por baixo dos mosaicos). */
.hero-title .q, .hero-title .a { white-space: normal; }
.hero-title { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }

/* Livros restritos: a fita sobre a capa e o selo na ficha, alinhados (ícone e texto ao centro, numa linha). */
.cover-lock { position: absolute; z-index: 2; top: 0.6rem; left: 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem 0.3rem 0.5rem; border-radius: 999px; background: rgba(14, 36, 64, 0.88); color: #FFFFFF; font: 700 0.72rem/1 var(--body); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); backdrop-filter: blur(4px); }
.cover-lock svg { flex: none; width: 0.85rem; height: 0.85rem; color: var(--ochre); }
.book-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 1.25rem; font-size: 0.92rem; }
.book-back { display: inline-flex; align-items: center; min-height: 1.75rem; font-weight: 600; }
.book-meta-row .chip-small { min-height: 1.75rem; }
.lock-pill { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; padding: 0 0.75rem 0 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--ochre) 16%, var(--surface)); color: color-mix(in srgb, var(--ochre) 45%, var(--text)); font-size: 0.8rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.lock-pill svg { flex: none; width: 0.85rem; height: 0.85rem; }

/* O aviso de acesso na ficha do livro: ícone, título, texto e botões alinhados à mesma margem. */
.access-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; max-width: 38rem; margin-top: 1.75rem; padding: 1.35rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--ochre); }
.access-card-info { border-left-color: var(--accent-2); }
.access-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: color-mix(in srgb, var(--ochre) 16%, var(--surface)); color: color-mix(in srgb, var(--ochre) 55%, var(--text)); }
.access-card-info .access-icon { background: var(--tint); color: var(--accent); }
.access-icon svg { width: 1.3rem; height: 1.3rem; }
.access-text h2 { font-size: 1.15rem; line-height: 1.3; }
.access-text p { margin-top: 0.35rem; color: var(--text-2); font-size: 0.97rem; }
.access-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
@media (max-width: 36rem) { .access-card { grid-template-columns: minmax(0, 1fr); } }
/* O título da abertura em duas linhas: a pergunta numa, a resposta na outra. */
.hero-title .q, .hero-title .a { display: block; text-wrap: balance; }
.hero-title { font-size: clamp(2.2rem, 3.7vw, 3.15rem); }

/* O gráfico de linha da abertura: da pergunta (ocre) à resposta (branco), com os pontos de dados. */
.hero-chart { width: min(100%, 36rem); }
.hero-chart .grid { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; stroke-dasharray: 3 5; }
.hero-chart .area { fill: rgba(125, 182, 232, 0.12); stroke: none; }
.hero-chart .span { stroke: #9FCBF2; stroke-width: 3; }
.hero-chart .dot { fill: #0B2F63; stroke: #9FCBF2; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
    .hero-chart .span { stroke-dasharray: 760; stroke-dashoffset: 760; animation: arc-draw 1.8s 0.3s cubic-bezier(0.6, 0.05, 0.25, 1) forwards; }
    .hero-chart .area, .hero-chart .dot { opacity: 0; animation: arc-land 0.6s 1.6s ease-out forwards; }
}

/* O seletor de todas as línguas: só o globo no topo; a lista abre por baixo, na letra do site. */
.lang-select { display: none; }
.lang-menu { position: relative; }
.lang-menu-button { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--raised); color: var(--text-2); cursor: pointer; }
.lang-menu-button:hover, .lang-menu-button[aria-expanded="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--raised)); }
.lang-menu-button svg { width: 1.15rem; height: 1.15rem; }
.lang-menu-list { position: absolute; z-index: 30; top: calc(100% + 0.45rem); right: 0; min-width: 13rem; margin: 0; padding: 0.4rem; list-style: none; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(14, 36, 64, 0.16); }
.lang-menu-list[hidden] { display: none; }
.lang-menu-list button { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.55rem 0.75rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: 600 0.93rem var(--body); text-align: left; cursor: pointer; }
.lang-menu-list button small { color: var(--text-2); font-size: 0.75rem; font-weight: 500; }
.lang-menu-list button:hover, .lang-menu-list button:focus-visible { background: var(--raised); outline: none; }
.lang-menu-list button[aria-current] { background: var(--tint); color: var(--accent); }
.lang-menu-list li:nth-child(2) { padding-bottom: 0.35rem; margin-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
@media (max-width: 60rem) { .lang-menu-list { right: auto; left: 0; } }

/* O logótipo: o ícone e o nome escrito na letra dos títulos. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-name { color: #FFFFFF; }
.footer-brand .brand-footer img { height: 2.25rem; margin: 0; }

/* =====================================================================================================
   Publicações (inspiradas no popia_web): o conteúdo à esquerda e a barra lateral fixa à direita.
   ===================================================================================================== */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; align-items: start; }
.blog-sidebar { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
.sidebar-block { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.sidebar-title { margin-bottom: 0.85rem; color: var(--text); font: 700 0.95rem/1.3 var(--display); }
.sidebar-list { display: grid; gap: 2px; margin: 0 -0.5rem; }
.sidebar-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--text-2); font-size: 0.94rem; font-weight: 600; text-decoration: none; }
.sidebar-link:hover { background: var(--raised); color: var(--text); }
.sidebar-link[aria-current] { background: var(--tint); color: var(--accent); }
.sidebar-link .count { min-width: 1.6rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: 0.75rem; font-weight: 700; text-align: center; }
.sidebar-link[aria-current] .count { background: var(--surface); color: var(--accent); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sidebar-tag { padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--raised); color: var(--text-2); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.sidebar-tag:hover, .sidebar-tag[aria-current] { background: var(--tint); color: var(--accent); }
.blog-sidebar .blog-search { max-width: none; }
.blog-sidebar .blog-search button { padding-inline: 0.85rem; }
.blog-sidebar .side-toc { font-size: 0.92rem; }
.blog-sidebar .sidebar-block:has(.newsletter) { padding: 0; background: none; box-shadow: none; }

/* A publicação em destaque: imagem e texto lado a lado. */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: 1.75rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.post-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 36, 64, 0.14); }
.post-feature-media { position: relative; min-height: 17rem; background: var(--brand-grad); }
.post-feature-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; }
.post-feature-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.85rem; }
.post-feature-kicker .badge { background: var(--tint); color: var(--accent); }
.post-feature strong { font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.post-feature:hover strong { color: var(--accent); }
.post-feature-summary { color: var(--text-2); }
.post-feature-go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.post-feature-go svg { width: 1rem; height: 1rem; }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

/* A paginação com os números. */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pager a { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: 0.85rem; border-radius: 10px; background: var(--surface); color: var(--text-2); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.pager a:hover { color: var(--accent); }
.pager a[aria-current] { background: var(--accent); color: var(--on-accent); }

/* A cabeça do artigo na faixa azul; a imagem sobe por cima do fim da faixa. */
.article-band { padding-block: 3.5rem 4.5rem; }
.article-band.has-cover { padding-bottom: 9rem; }
.article-band::after { display: none; }
.article-band h1 { max-width: 52rem; font-size: clamp(2rem, 4vw, 3rem); }
.article-band .article-meta { margin-top: 1rem; color: #C9DDF2; font-size: 0.95rem; }
.article-wrap { padding-block: 2.5rem 1rem; }
.article-band.has-cover + .article-wrap .article-cover { margin-top: -8.5rem; position: relative; box-shadow: 0 24px 50px rgba(14, 36, 64, 0.25); }
.article-wrap .article-cover { max-width: none; margin-top: 0; }
.article-wrap .article-body { max-width: none; }
.attachments-title { margin-bottom: 0.25rem; font-size: 1.2rem; }
.attachments { max-width: none; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share span { margin-right: 0.35rem; color: var(--text-2); font-weight: 700; font-size: 0.9rem; }
.share a { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--raised); color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.share a:hover { background: var(--tint); color: var(--accent); }
.post-nav { max-width: none; }
.related { margin-top: 3rem; }
.related h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }

/* =====================================================================================================
   Newsletter: o cartão (barra do blog), a faixa (página inicial) e a linha (rodapé).
   ===================================================================================================== */
.newsletter { display: grid; gap: 0.85rem; }
.newsletter-card { position: relative; overflow: hidden; isolation: isolate; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--brand-grad); color: #FFFFFF; }
.newsletter-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.newsletter-icon svg { width: 1.3rem; height: 1.3rem; }
.newsletter-copy h2 { font-size: 1.15rem; line-height: 1.25; color: inherit; }
.newsletter-copy p { margin-top: 0.4rem; font-size: 0.9rem; color: #C9DDF2; }
.newsletter-field { display: flex; gap: 0.4rem; padding: 0.3rem; border-radius: 12px; background: #FFFFFF; }
.newsletter-field input { flex: 1; min-width: 0; padding: 0.55rem 0.6rem; border: 0; background: none; color: #0E2440; font: 400 0.95rem var(--body); }
.newsletter-field input:focus { outline: none; }
.newsletter-field:focus-within { box-shadow: 0 0 0 3px rgba(159, 203, 242, 0.6); }
.newsletter-field button { flex: none; padding: 0.55rem 0.95rem; border: 0; border-radius: 9px; background: var(--ochre); color: #1A1203; font: 700 0.88rem var(--body); cursor: pointer; }
.newsletter-field button:disabled { opacity: 0.6; }
.newsletter-message:empty { display: none; }
.newsletter-message { padding: 0.6rem 0.75rem; border-radius: 9px; background: rgba(255, 255, 255, 0.14); font-size: 0.88rem; font-weight: 600; }
.newsletter.is-error .newsletter-message { background: rgba(255, 154, 143, 0.2); }
.newsletter-note { font-size: 0.78rem; color: #C9DDF2; }
.newsletter-note a { color: #FFFFFF; }
.newsletter-band { grid-template-columns: auto minmax(0, 1fr) minmax(0, 24rem); align-items: center; gap: 1.25rem 2rem; padding: 2rem 2.25rem; border-radius: var(--radius-lg); background: var(--brand-grad); color: #FFFFFF; }
.newsletter-band .newsletter-copy h2 { font-size: 1.5rem; }
.newsletter-band .newsletter-message, .newsletter-band .newsletter-note { grid-column: 3; }
.newsletter-inline { max-width: 24rem; margin-top: 1.25rem; }
.newsletter-inline .newsletter-field { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.newsletter-inline .newsletter-field input { color: #FFFFFF; }
.newsletter-inline .newsletter-field input::placeholder { color: #A9BBD0; }
.newsletter-state .newsletter-icon { background: var(--tint); color: var(--accent); margin-bottom: 1rem; }
.newsletter-state p { margin-top: 0.75rem; }
.newsletter-state.is-error .newsletter-icon { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }

@media (max-width: 64rem) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
    .newsletter-band { grid-template-columns: minmax(0, 1fr); }
    .newsletter-band .newsletter-message, .newsletter-band .newsletter-note { grid-column: auto; }
}
@media (max-width: 44rem) {
    .post-feature { grid-template-columns: minmax(0, 1fr); }
    .post-feature-media { min-height: 12rem; }
    .post-grid-2, .post-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
/* A barra é mais alta do que o ecrã: rola com a página (fixa, escondia a newsletter até ao fim). */
.blog-sidebar { position: static; }


/* Os títulos h1, h2 e h3 em Scoutie Sans, também os que têm classe própria (barra lateral, rodapé...). */
h1, h2, h3, h1[class], h2[class], h3[class] { font-family: var(--heading); }

/* Os títulos dentro de componentes que fixam a letra (rodapé, caixas laterais...) também em Scoutie Sans. */
.contact-details h2,.footer-grid h2,.hero-aside h2,.side-block h2,.side-box h2,.tag-cloud h2,h1, h2, h3,h1, h2, h3, h1[class], h2[class], h3[class] { font-family: var(--heading); }

/* As legendas do gráfico da abertura, em HTML (para o tradutor), sob os dois extremos da linha. */
.hero-chart-box { width: min(100%, 36rem); margin: 1.5rem 0 0; }
.hero-chart-box .hero-chart { margin-top: 0; width: 100%; }
.hero-chart-labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; padding-inline: 4%; color: var(--on-deep-2); font: 500 0.92rem var(--display); }

/* O logótipo no tema escuro: a versão toda branca (ícone e nome). */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
    :root:not([data-theme="light"]) .brand-name { color: #FFFFFF; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .brand-name { color: #FFFFFF; }

/* O texto dos artigos: mais leve do que o resto do site, e no tamanho que cada leitor escolher. */
.article-body { --article-size: 1.075rem; font-size: var(--article-size); font-weight: 350; line-height: 1.75; }
.article-body strong, .article-body b { font-weight: 600; }
.article-body h2, .article-body h3 { font-weight: 500; }
.article-body h2 { font-size: 1.5em; }
.article-body h3 { font-size: 1.2em; }
.text-size { display: flex; align-items: center; gap: 0.35rem; margin-top: 1.5rem; }
.text-size[hidden] { display: none; }
.text-size > span { margin-right: 0.35rem; color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.text-size button { display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: 600 0.95rem/1 var(--display); cursor: pointer; }
.text-size button sup { font-size: 0.7em; margin-left: 1px; }
.text-size button:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent); }
.text-size button:disabled { opacity: 0.4; cursor: default; }
.text-size button[aria-pressed="true"] { background: var(--tint); color: var(--accent); border-color: transparent; }
.text-size button { display: inline-flex; align-items: center; justify-content: center; }
.text-size button sup { position: relative; top: -0.35em; vertical-align: baseline; line-height: 1; }
