.presentation-tools { position: fixed; z-index: 80; left: 18px; bottom: 24px; color: #1b3b4a; font-family: "Manrope", sans-serif; }
.presentation-tools__toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border: 1px solid #dfb687; border-radius: 50%; background: #1b3b4a; color: #fff; box-shadow: 0 6px 24px #0c1d2c30; transition: background 220ms ease; }
.presentation-tools__toggle:hover { background: #142d39; }
.presentation-tools__toggle svg { width: 24px; height: 24px; }
.presentation-tools__panel { position: absolute; left: 0; bottom: 62px; width: min(296px, calc(100vw - 36px)); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 20px; border: 1px solid #d5dfe3; border-radius: 16px; background: #fff; box-shadow: 0 16px 50px #0c1d2c30; animation: presentation-enter 220ms ease-out; }
.presentation-tools__panel[hidden] { display: none; }
.presentation-tools__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.presentation-tools__heading h2 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
.presentation-tools__close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: #edf2f4; color: #1b3b4a; }
.presentation-tools__close:hover { background: #dce4e8; }
.presentation-tools__close svg { width: 20px; height: 20px; }
.presentation-tools fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.presentation-tools fieldset:last-child { margin-bottom: 0; }
.presentation-tools legend { margin-bottom: 8px; padding: 0; color: #526877; font-size: 12px; font-weight: 700; }
.presentation-tools__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.presentation-tools__option { position: relative; display: block; min-width: 0; cursor: pointer; }
.presentation-tools__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.presentation-tools__option span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 8px; border: 1px solid #d5dfe3; border-radius: 9px; background: #f5f8f9; color: #1b3b4a; font-size: 13px; line-height: 1.4; transition: background 220ms ease, border-color 220ms ease; }
.presentation-tools__option:hover span { background: #e5ecef; }
.presentation-tools__option input:checked + span { background: #1b3b4a; border-color: #1b3b4a; color: #fff; }
.presentation-tools__option:hover input:checked + span { background: #142d39; }
.presentation-tools :focus-visible { outline: 3px solid #b67d40; outline-offset: 3px; }
.presentation-tools__option input:focus-visible + span { outline: 3px solid #b67d40; outline-offset: 3px; }
.presentation-tools__check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 12px; border-top: 1px solid #d5dfe3; font-size: 13px; line-height: 1.5; cursor: pointer; }
.presentation-tools__check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #1b3b4a; cursor: pointer; }
body[data-section-numbers="hidden"] .section-head .num { display: none; }
body[data-section-numbers="hidden"] .academic-notice .section-head > div { grid-template-columns: minmax(0, 1fr); }
body[data-section-numbers="hidden"] .academic-notice .section-head :is(h2, p) { grid-column: 1; }
@keyframes presentation-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) { .presentation-tools { left: 12px; bottom: 16px; } .presentation-tools__panel { width: min(296px, calc(100vw - 24px)); } }
@media (prefers-reduced-motion: reduce) { .presentation-tools *, .presentation-tools__panel { animation: none; transition: none; } }
@media print { .presentation-tools { display: none; } }
.b24-home-hidden,.presentation-tools[hidden]{display:none!important}
.presentation-tools{font-family:'Josefin Sans',sans-serif}
.presentation-tools__panel{width:min(390px,calc(100vw - 36px));box-sizing:border-box;padding:20px;overscroll-behavior:contain;scrollbar-width:thin}
.presentation-tools__intro{font-size:15px;line-height:1.5;margin:0 0 8px}
.presentation-tools__saved{font-size:12px;line-height:1.5;color:#526877;margin:0 0 18px}
.presentation-tools__bulk{display:flex;gap:8px}
.presentation-tools__bulk button{flex:1;min-height:40px;padding:8px;border:1px solid #29566b40;border-radius:9px;background:#edf2f4;color:#1b3b4a;font:600 13px 'Josefin Sans',sans-serif;cursor:pointer}
.presentation-tools__bulk button:hover{background:#e0e9ed}
.presentation-tools__count{font-size:12px;color:#526877;margin:14px 0 20px}
.presentation-tools legend{font:600 12px/1.5 'Josefin Sans',sans-serif;color:#29566b;margin-bottom:10px}
.presentation-tools__section{padding:14px 0;border-top:1px solid #d5dfe3}
.presentation-tools__section label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.presentation-tools__section input{width:20px;height:20px;flex-shrink:0;margin:1px 0 0;accent-color:#29566b}
.presentation-tools__section strong{display:block;font-size:14px;line-height:1.4;font-weight:600}
.presentation-tools__section small{display:block;margin-top:5px;color:#526877;font-size:12px;line-height:1.5}
.presentation-tools__section button{display:block;margin:6px 0 -6px 32px;min-height:36px;padding:6px 0;border:0;background:none;color:#29566b;text-decoration:underline;text-underline-offset:3px;font:500 12px 'Josefin Sans',sans-serif;cursor:pointer}
.b24-section-label{scroll-margin-top:110px}
@media(max-width:640px){.presentation-tools__panel{width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 108px);padding:18px}}

[data-institutional-comparison][hidden] { display: none !important; }
[data-institutional-comparison]:not([hidden]) { margin-bottom: 32px; }

/* Full-width alternative uses grid tracks, without negative margins or viewport overflow. */
body[data-institutional-width="total"] #instituicoes > .container {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 1360px) minmax(20px, 1fr);
  width: 100%; max-width: none; padding-inline: 0;
}
body[data-institutional-width="total"] #instituicoes > .container > * { grid-column: 2; min-width: 0; }
body[data-institutional-width="total"] #instituicoes > .container > #instituicoes-curva {
  grid-column: 1 / -1; width: 100%; border-radius: 0;
}
body[data-institutional-width="total"] #instituicoes-curva > .media-copy {
  padding-left: max(clamp(24px, 4vw, 58px), calc((100% - 1360px) / 2));
}
@media (max-width: 700px) {
  body[data-institutional-width="total"] #instituicoes-curva > .media-copy { padding-inline: 24px; }
}

/* The institutional banner ends flush with its section. */
#instituicoes { padding-bottom: 0; }
