@charset "UTF-8";
/* GavetaDev 5 · Visual premium e novos componentes (CSS pronto para deploy; fonte em /scss). */
:root {
  color-scheme: light;
  --bg-primary: #f6f8fb;
  --bg-secondary: #eef3f7;
  --bg-subtle: #f1f5f8;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f0f6f8;
  --bg-elevated: #e7eef2;
  --surface-primary: #ffffff;
  --surface-raised: #f1f5f8;
  --text-primary: #192b3a;
  --text-secondary: #526578;
  --text-muted: #5a6f80;
  --accent-primary: #176e76;
  --accent-primary-rgb: 23,110,118;
  --accent-strong: #13565d;
  --accent-hover: #11535b;
  --accent-secondary: #3160a0;
  --accent-soft: #e5f4f2;
  --accent-border: #a9d4d0;
  --border-color: #dce5ed;
  --border-subtle: #e9eef4;
  --shadow-sm: 0 2px 8px rgba(29,58,81,.05);
  --shadow-md: 0 10px 30px rgba(25,58,82,.075);
  --shadow-lg: 0 26px 68px rgba(25,58,82,.14);
  --bs-primary: #176e76;
  --bs-primary-rgb: 23,110,118;
  --bs-body-color: #192b3a;
  --bs-border-color: #dce5ed;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 18px;
}

body {
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
}

:where(p, li, dd) {
  overflow-wrap: anywhere;
}

:where(.app-content) {
  min-width: 0;
}

.app-sidebar {
  background: #132535 !important;
  border-color: #1d3547 !important;
  box-shadow: 8px 0 36px rgba(8, 24, 37, 0.13);
}

.app-sidebar .sidebar-brand {
  border-color: #284153;
}

.app-sidebar .brand-title {
  color: #f7fafc !important;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.app-sidebar .brand-subtitle {
  color: #a4bdc8 !important;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.app-sidebar .nav-group-label {
  color: #8fa9b5;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-sidebar .nav-item {
  color: #c4d4dc;
  font-size: 0.84rem;
  border-radius: 11px;
}

.app-sidebar .nav-item i {
  color: #9fb9c5;
}

.app-sidebar .nav-item:hover {
  color: #fff;
  background: #203b4a;
}

.app-sidebar .nav-item:hover i {
  color: #93e2d3;
}

.app-sidebar .nav-item.active {
  background: #204a4e;
  color: #e9fffa;
  font-weight: 700;
}

.app-sidebar .nav-item.active i {
  color: #94ead8;
}

.app-sidebar .nav-item.active::before {
  background: #94ead8;
}

.app-sidebar .nav-item-badge {
  background: #264154;
  color: #bed4dd;
}

.app-sidebar .sidebar-footer {
  border-color: #284153;
}

.app-sidebar .btn-donate {
  background: #20434a;
  color: #ecfffc;
  border-color: #426b70;
}

.app-sidebar .btn-donate:hover {
  background: #265760;
}

.app-topbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 18px rgba(26, 57, 72, 0.0352941176);
}

.app-topbar .global-search-trigger {
  background: #f5f8fa;
  border: 1px solid #dce7eb;
  color: #53697a;
}

.app-topbar .global-search-trigger:hover {
  background: #eef6f5;
  border-color: #a0cbc4;
}

.app-topbar .breadcrumb-item.current {
  color: #24495e;
}

.app-content {
  padding-top: 38px;
}

.app-footer {
  background: #edf3f6 !important;
  border-top: 1px solid #d5e0e7;
}

.app-footer .footer-links a:hover {
  color: var(--accent-primary);
}

.btn {
  font-weight: 650;
  border-radius: 11px;
  line-height: 1.25;
  min-height: 36px;
}

.btn-primary, .btn-primary:hover, .filter-pill.active {
  background: #176e76 !important;
  color: #fff !important;
  border-color: #176e76 !important;
}

.btn-primary:hover {
  background: #11535b !important;
  border-color: #11535b !important;
}

.btn-secondary {
  background: #fff;
  color: #244b60;
  border: 1px solid #cbdde4;
}

.btn-secondary:hover {
  background: #eaf3f5;
  color: #16495a;
  border-color: #a9c8cc;
}

.btn-donate {
  background: #eef6f3;
  color: #176e76;
  border: 1px solid #b5d6ce;
}

.btn-donate:hover {
  background: #dceee8;
  color: #115b63;
}

:where(input, textarea, select).form-control, :where(input, textarea, select).form-select {
  color: #203647;
  background: #fff;
  border: 1px solid #cbdce6;
  border-radius: 11px;
  box-shadow: none;
  font-size: 0.9rem;
}

:where(input, textarea, select).form-control:focus, :where(input, textarea, select).form-select:focus {
  border-color: #3d9792;
  box-shadow: 0 0 0 3px rgba(61, 151, 146, 0.14);
}

:focus-visible {
  outline: 3px solid #2b868a;
  outline-offset: 2px;
}

.home-hero, .stack-page-head, .resources-hero, .page-header {
  background: linear-gradient(115deg, #edf7f5 0%, #f1f6fa 67%, #f7f9fb 100%);
  border: 1px solid #dbe9e9;
  color: var(--text-primary);
  box-shadow: none;
}

.home-hero-title, .page-title {
  letter-spacing: -0.055em;
  color: #193446;
}

.home-hero-title span, .home-stat-item strong {
  color: #176e76;
}

.home-overview-card, .home-stat-item, .surface-card, .home-resume-card, .home-learning-card, .home-domain-card, .resource-card, .resource-path-card, .lesson-reader-panel {
  background: #fff;
  border-color: #dfE8ed;
  box-shadow: 0 4px 18px rgba(25, 55, 70, 0.035);
}

.home-domain-grid, .home-learning-grid, .catalog-grid, .tools-grid {
  gap: 18px;
}

.home-section {
  margin-block: 38px 46px;
}

.home-section-title {
  color: #172f41;
}

.home-domain-card, .home-learning-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-domain-card:hover, .home-learning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(35, 71, 89, 0.0941176471);
  border-color: #badbd4;
}

.surface-card:hover {
  border-color: #b4d3d5;
}

.page-header {
  padding: clamp(26px, 3.2vw, 48px);
}

.brand-dot {
  color: #176e76;
}

/* ---------- Glossário ---------- */
.gloss-hero {
  background: linear-gradient(125deg, #153b47 0%, #225767 55%, #307567 100%);
  padding: clamp(24px, 4vw, 44px);
  color: #f7fffd;
  box-shadow: 0 18px 48px rgba(23, 62, 73, 0.168627451);
}

.gloss-hero .page-kicker {
  color: #9ee9d9;
}

.gloss-hero .page-title {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin: 6px 0 10px;
}

.gloss-hero .brand-dot {
  color: #84dfce;
}

.gloss-hero .page-description {
  color: #d2e9e9;
  max-width: 760px;
  line-height: 1.7;
  margin: 0;
}

.gloss-hero-stat {
  border: 1px solid rgba(157, 219, 204, 0.3921568627);
  border-radius: 18px;
  padding: 14px 20px;
  display: grid;
  gap: 2px;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.062745098);
}

.gloss-hero-stat strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #a3ebdb;
}

.gloss-hero-stat span {
  font-size: 0.73rem;
  color: #d0e6e5;
}

.gloss-hero .form-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: #e0f3f2;
}

.gloss-hero .form-control, .gloss-hero .form-select {
  background: #fff;
  color: #1e4050;
  border-color: #d5e9e8;
}

.gloss-letters {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 5px 1px 13px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.gloss-letters button {
  min-width: 37px;
  padding: 8px 12px;
  border: 1px solid #dce6eb;
  border-radius: 9px;
  background: #fff;
  color: #435b70;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.gloss-letters button.active, .gloss-letters button:hover {
  background: #176e76;
  color: #fff;
  border-color: #176e76;
}

.gloss-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 8px 0 20px;
  color: #607489;
  font-size: 0.88rem;
}

.gloss-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gloss-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px;
  border: 1px solid #dce6eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 13px rgba(35, 67, 91, 0.0392156863);
  scroll-margin-top: 95px;
  transition: transform 0.18s, border-color 0.18s;
}

.gloss-card:hover {
  transform: translateY(-2px);
  border-color: #b8d7d2;
}

.gloss-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.gloss-category {
  font-size: 0.66rem;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 800;
  color: #246875;
  background: #e5f3f2;
  border-radius: 7px;
  padding: 5px 9px;
}

.gloss-fav {
  background: #f2f6f8;
  color: #738797;
  border: 1px solid #e5edef;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
}

.gloss-fav.saved {
  color: #d19020;
  background: #fff6e5;
}

.gloss-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #183b48;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.gloss-card > p {
  font-size: 0.89rem;
  color: #425b6a;
  line-height: 1.66;
  margin: 0 0 16px;
  flex: 1;
}

.gloss-example {
  background: #f3f7f8;
  border-left: 3px solid #77bdb4;
  padding: 12px 14px;
  color: #4c6472;
  border-radius: 0 9px 9px 0;
  font-size: 0.79rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.gloss-example span {
  display: block;
  font-size: 0.67rem;
  color: #24716d;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.gloss-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef2f3;
  padding-top: 13px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1f6370;
}

.gloss-card-links button {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.gloss-card-links a:hover, .gloss-card-links button:hover {
  text-decoration: underline;
}

.gloss-empty {
  grid-column: 1/-1;
  padding: 55px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #cbd8df;
  color: #4b6878;
}

.gloss-empty i {
  font-size: 2rem;
}

.gloss-empty h2 {
  font-size: 1.15rem;
  margin: 8px 0;
}

.gloss-credits {
  font-size: 0.77rem;
  color: #718394;
  line-height: 1.7;
  margin: 23px 0;
}

/* ---------- Visualizador de roadmaps ---------- */
.rm-page {
  margin-top: 5px;
}

.rm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 3vw, 42px);
  background: linear-gradient(125deg, #183241, #24475b);
  border: 1px solid #345a66;
  border-radius: 22px;
  color: #fff;
  margin-bottom: 22px;
}

.rm-hero .page-kicker {
  color: #a4e4d6;
  font-size: 0.69rem;
}

.rm-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 9px 0 13px;
}

.rm-hero p {
  color: #d1e1e7;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 780px;
}

.rm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rm-tags span {
  font-size: 0.72rem;
  color: #cceae7;
  border: 1px solid rgba(107, 155, 155, 0.3803921569);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.0431372549);
  padding: 5px 9px;
}

.rm-progress-card {
  padding: 23px;
  background: rgba(255, 255, 255, 0.0745098039);
  border: 1px solid rgba(159, 201, 195, 0.2666666667);
  border-radius: 18px;
  display: grid;
  gap: 9px;
}

.rm-progress-card > span {
  font-size: 0.65rem;
  color: #b9dcd7;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rm-progress-card strong {
  font-size: 3rem;
  line-height: 1;
  color: #a2e4d8;
  letter-spacing: -0.06em;
}

.rm-progress-card .progress {
  height: 9px;
  background: rgba(11, 40, 55, 0.5019607843);
  border-radius: 20px;
  overflow: hidden;
}

.rm-progress-card .progress-bar {
  background: #8fe0d1;
  transition: width 0.2s;
}

.rm-progress-card small {
  font-size: 0.73rem;
  color: #c8e0e2;
}

.rm-autosave {
  font-size: 0.74rem;
  color: #5a7785;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rm-body {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 265px;
  gap: 16px;
  align-items: start;
}

.rm-side-panel, .rm-topic-pane {
  min-width: 0;
}

.rm-aside-sticky {
  position: sticky;
  top: 86px;
  background: #fff;
  border: 1px solid #dce6eb;
  border-radius: 16px;
  padding: 18px;
}

.rm-aside-sticky > h2 {
  font-size: 0.88rem;
  color: #233c4c;
  font-weight: 800;
  margin-bottom: 13px;
}

.rm-stage-nav {
  display: grid;
  gap: 4px;
  max-height: 50vh;
  overflow: auto;
}

.rm-stage-nav button {
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #597082;
  padding: 10px 7px;
  border-radius: 8px;
}

.rm-stage-nav button:hover {
  background: #eff6f6;
  color: #176e76;
}

.rm-stage-nav button span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #2e8a83;
  font-weight: 800;
}

.rm-info-card {
  display: grid;
  gap: 6px;
  border-top: 1px solid #e6edf1;
  padding-top: 17px;
  margin-top: 16px;
  font-size: 0.73rem;
  color: #637887;
}

.rm-info-card i {
  color: #237e7f;
  font-size: 1.25rem;
}

.rm-info-card strong {
  font-size: 0.79rem;
  color: #2a495c;
}

.rm-info-card p {
  margin: 0;
  line-height: 1.65;
}

.rm-layout-switch {
  display: flex;
  gap: 5px;
  margin-top: 17px;
  background: #f1f5f7;
  padding: 4px;
  border-radius: 10px;
}

.rm-layout-switch button {
  flex: 1;
  font-size: 0.71rem;
  font-weight: 700;
  color: #617989;
  padding: 7px 6px;
  border-radius: 8px;
}

.rm-layout-switch button.active {
  background: #fff;
  color: #176e76;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.0745098039);
}

.rm-map-region {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 18px;
  padding: 22px 15px 26px;
  overflow: hidden;
}

.rm-map-heading, .rm-map-end {
  display: grid;
  justify-items: center;
  text-align: center;
  color: #2f727b;
  gap: 7px;
}

.rm-map-heading span {
  background: #176e76;
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  border-radius: 50px;
  font-weight: 800;
  padding: 10px 21px;
}

.rm-map-heading i {
  font-size: 1.3rem;
  color: #73bfb3;
}

.rm-map-end {
  padding: 24px 16px 10px;
  color: #4d697b;
}

.rm-map-end i {
  color: #247b73;
  font-size: 1.5rem;
}

.rm-map-end strong {
  color: #284d58;
  font-size: 0.92rem;
}

.rm-map-end span {
  font-size: 0.75rem;
  max-width: 30ch;
}

.rm-stage {
  scroll-margin-top: 98px;
}

.rm-stage-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cde0dc;
  border-radius: 14px;
  background: linear-gradient(100deg, #eaf6f2, #f5f9fa);
  padding: 15px 17px;
  margin: 18px auto 17px;
  max-width: 360px;
  position: relative;
  z-index: 2;
}

.rm-stage-index {
  font: 800 1.4rem var(--font-mono);
  color: #207877;
}

.rm-stage-heading h2 {
  font-size: 0.88rem;
  line-height: 1.32;
  color: #244856;
  font-weight: 800;
  margin: 1px 0 3px;
}

.rm-stage-kicker {
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #4c8886;
}

.rm-stage-progress {
  font-size: 0.7rem;
  color: #6a8190;
}

.rm-stage-graph {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 5px 0 10px;
  min-height: 30px;
}

.rm-stage-graph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  bottom: -9px;
  border-left: 2px dashed #a9ceca;
  transform: translateX(-1px);
}

.rm-branch {
  position: relative;
  width: calc(50% - 25px);
  min-height: 75px;
  z-index: 1;
}

.rm-branch-left {
  align-self: flex-start;
  margin-left: 5px;
}

.rm-branch-right {
  align-self: flex-end;
  margin-right: 5px;
}

.rm-node-connector {
  position: absolute;
  top: 27px;
  height: 2px;
  background: #aecfca;
  width: 25px;
}

.rm-branch-left .rm-node-connector {
  right: -25px;
}

.rm-branch-right .rm-node-connector {
  left: -25px;
}

.rm-node {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #d8e3e6;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(22, 59, 81, 0.0470588235);
  min-height: 72px;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
}

.rm-node:hover, .rm-node.selected {
  border-color: #5ca79d;
  box-shadow: 0 5px 18px rgba(39, 104, 115, 0.1333333333);
}

.rm-node-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 13px 6px 13px 11px;
}

.rm-node-marker {
  color: #438b87;
  background: #e9f5f3;
  border-radius: 50%;
  min-width: 25px;
  min-height: 25px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.rm-node-text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rm-node-text strong {
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.42;
  color: #2a4758;
  overflow-wrap: anywhere;
}

.rm-node-text small {
  font-size: 0.61rem;
  color: #7d92a0;
}

.rm-node-arrow {
  font-size: 0.9rem;
  color: #8da5aa;
  margin-left: auto;
}

.rm-node-check {
  flex: none;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  margin-right: 5px;
  color: #9aadb7;
  border-radius: 9px;
}

.rm-node-check:hover {
  background: #eff7f5;
  color: #176e76;
}

.rm-branch.done .rm-node {
  background: #f0faf6;
  border-color: #a6d5c9;
}

.rm-branch.done .rm-node-marker {
  background: #1d826d;
  color: #fff;
}

.rm-branch.done .rm-node-check {
  color: #1d826d;
}

.rm-node.selected {
  outline: 2px solid #77b6a9;
  outline-offset: 1px;
}

.rm-topic-pane {
  position: sticky;
  top: 86px;
  border: 1px solid #dae5eb;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  max-height: calc(100vh - 106px);
  overflow: auto;
  min-height: 200px;
}

.rm-topic-empty {
  display: grid;
  gap: 9px;
  justify-items: center;
  text-align: center;
  padding: 30px 10px;
  color: #8297a4;
  font-size: 0.77rem;
}

.rm-topic-empty i {
  font-size: 1.5rem;
  background: #eaf6f4;
  color: #307a74;
  padding: 10px;
  border-radius: 13px;
}

.rm-topic-empty strong {
  color: #2e505c;
  font-size: 0.86rem;
}

.rm-topic-empty p {
  margin: 0;
  line-height: 1.6;
}

.rm-topic-inner h2 {
  font-size: 1.02rem;
  line-height: 1.4;
  color: #1b414e;
  font-weight: 800;
  margin: 14px 0 9px;
}

.rm-close-topic {
  color: #607989;
  font-size: 1.2rem;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
}

.rm-close-topic:hover {
  background: #edf4f4;
}

.rm-topic-label {
  display: block;
  font-size: 0.68rem;
  color: #287b7e;
  margin-bottom: 18px;
}

.rm-topic-section {
  border-top: 1px solid #e7edf0;
  padding: 13px 0 5px;
}

.rm-topic-section h3 {
  font-size: 0.75rem;
  font-weight: 800;
  color: #36546a;
  margin-bottom: 5px;
}

.rm-topic-section p, .rm-topic-section a {
  font-size: 0.76rem;
  color: #637986;
  line-height: 1.7;
  display: block;
  margin-bottom: 9px;
}

.rm-topic-section a {
  color: #176e76;
  font-weight: 700;
}

.rm-bottom-resources {
  margin: 16px 0 20px;
}

.rm-resource-box {
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce6eb;
  border-radius: 16px;
}

.rm-resource-box h2 {
  font-size: 0.92rem;
  color: #254755;
  font-weight: 800;
  margin: 0 0 10px;
}

.rm-resource-box h2 i {
  color: #176e76;
}

.rm-resource-box h3 {
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 12px;
  color: #304d5a;
}

.rm-resource-box p, .rm-resource-box li {
  font-size: 0.8rem;
  color: #536e7d;
  line-height: 1.7;
  margin-bottom: 9px;
}

.rm-resource-box ul {
  list-style: disc;
  padding-left: 17px;
}

.rm-resource-links {
  display: grid;
  gap: 9px;
}

.rm-resource-links a {
  font-size: 0.77rem;
  color: #176e76;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rm-list-mode .rm-stage-graph {
  gap: 7px;
}

.rm-list-mode .rm-stage-graph::before, .rm-list-mode .rm-node-connector {
  display: none;
}

.rm-list-mode .rm-branch {
  width: 100%;
  margin: 0;
  align-self: auto;
  min-height: 0;
}

.rm-list-mode .rm-node {
  min-height: 56px;
}

.rm-list-mode .rm-node-content {
  padding: 10px;
}

/* ---------- Apoio / Pix ---------- */
.support-page {
  max-width: 1200px;
  margin: 0 auto;
}

.support-page-head {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce8e8;
  border-radius: 20px;
  background: linear-gradient(120deg, #eaf5f2, #edf4f8);
  margin-bottom: 22px;
}

.support-page-head .page-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.support-intro {
  padding: 0 0 23px;
}

.support-intro h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #264454;
  margin: 6px 0 11px;
}

.support-intro p {
  font-size: 0.9rem;
  color: #60788a;
  max-width: 740px;
}

.support-pix, .support-why {
  background: #fff;
  border: 1px solid #dce6ec;
  border-radius: 18px;
  padding: clamp(19px, 2vw, 27px);
  box-shadow: var(--shadow-sm);
}

.support-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 20px;
}

.support-panel-head h3 {
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #254858;
  margin: 0;
}

.support-panel-head i {
  color: #247a75;
}

.support-chip {
  border-radius: 30px;
  color: #1f7066;
  background: #e2f5ee;
  padding: 5px 10px;
  font-size: 0.69rem;
  font-weight: 700;
}

.support-qr-frame {
  border: 1px solid #dce7e9;
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 17px;
  max-width: 263px;
  margin: 0 auto 20px;
  min-height: 263px;
}

.support-qr-frame img {
  object-fit: contain;
  max-width: 226px;
  max-height: 226px;
}

.support-qr-empty {
  min-height: 215px;
  border: 1px dashed #b8d6d7;
  background: #f4faf9;
  border-radius: 15px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 30px;
  text-align: center;
  color: #6c8990;
  font-size: 0.81rem;
  margin-bottom: 16px;
}

.support-qr-empty i {
  font-size: 2.5rem;
  color: #56a29a;
}

.support-pix-key {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-radius: 11px;
  background: #f1f7f7;
  border: 1px solid #dce9e7;
  margin-bottom: 13px;
  overflow-wrap: anywhere;
}

.support-pix-key small, .support-pix-key span {
  color: #627f86;
  font-size: 0.71rem;
}

.support-pix-key strong {
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: #1b5661;
  word-break: break-all;
}

.support-pix-key textarea {
  font-size: 0.69rem;
  margin-top: 6px;
}

.support-security {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  color: #637d83;
  font-size: 0.72rem;
  line-height: 1.6;
}

.support-why > p {
  font-size: 0.77rem;
  color: #6c8290;
  margin-bottom: 19px;
}

.support-allocation {
  margin-bottom: 16px;
}

.support-allocation > div:first-child {
  display: flex;
  gap: 9px;
  justify-content: space-between;
  align-items: center;
  color: #526976;
  font-size: 0.79rem;
  margin-bottom: 7px;
}

.support-allocation strong {
  color: #28575c;
  font-size: 0.79rem;
}

.support-allocation .progress {
  height: 7px;
  background: #e6eff0;
}

.support-allocation .progress-bar {
  background: linear-gradient(90deg, #2b8380, #80c5b3);
}

.support-share {
  border-top: 1px solid #e5edee;
  margin-top: 24px;
  padding-top: 20px;
}

.support-share h4 {
  color: #254a56;
  font-weight: 800;
  font-size: 0.88rem;
}

.support-share p {
  font-size: 0.79rem;
  color: #607788;
  line-height: 1.6;
  margin: 6px 0 15px;
}

.support-external {
  margin-top: 25px;
  border-top: 1px solid #dce7e9;
  padding-top: 24px;
}

.support-external h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: #264854;
  margin-bottom: 13px;
}

#donate-modal-body {
  max-height: 75vh;
  overflow-y: auto;
}

#donate-modal-body .support-intro h2 {
  font-size: 1.2rem;
}

#donate-project-modal .modal-window {
  max-width: 890px;
  width: calc(100% - 24px);
}

/* ---------- responsividade ---------- */
@media (max-width: 1380px) {
  .rm-body {
    grid-template-columns: 180px minmax(0, 1fr) 250px;
  }
  .rm-branch {
    width: calc(50% - 18px);
  }
  .rm-node-connector {
    width: 18px;
  }
  .rm-branch-left .rm-node-connector {
    right: -18px;
  }
  .rm-branch-right .rm-node-connector {
    left: -18px;
  }
}
@media (max-width: 1190px) {
  .rm-body {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .rm-topic-pane {
    grid-column: 2;
    position: relative;
    top: 0;
    max-height: none;
  }
  .gloss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .rm-body {
    grid-template-columns: 1fr;
  }
  .rm-aside-sticky {
    position: relative;
    top: 0;
  }
  .rm-side-panel {
    grid-column: 1;
  }
  .rm-topic-pane {
    grid-column: 1;
  }
  .rm-stage-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }
  .rm-stage-nav button {
    min-width: 140px;
  }
  .rm-info-card {
    display: none;
  }
  .rm-layout-switch {
    max-width: 220px;
  }
  .rm-hero {
    grid-template-columns: 1fr;
  }
  .rm-progress-card {
    max-width: 250px;
  }
  .gloss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-content {
    padding-top: 25px;
  }
}
@media (max-width: 580px) {
  .gloss-grid {
    grid-template-columns: 1fr;
  }
  .gloss-hero {
    padding: 21px 18px;
  }
  .gloss-hero .page-description {
    font-size: 0.85rem;
  }
  .gloss-hero-stat {
    display: none;
  }
  .gloss-card {
    padding: 19px;
  }
  .gloss-toolbar {
    align-items: flex-start;
  }
  .rm-hero {
    padding: 23px 19px;
  }
  .rm-map-region {
    padding: 16px 10px;
  }
  .rm-stage-graph::before {
    left: 15px;
  }
  .rm-branch {
    align-self: stretch;
    width: calc(100% - 32px);
    margin: 0 0 0 32px;
  }
  .rm-node-connector {
    top: 27px;
    left: -17px !important;
    right: auto !important;
    width: 17px;
  }
  .rm-stage-heading {
    margin-left: 0;
    margin-right: 0;
  }
  .rm-node-text strong {
    font-size: 0.75rem;
  }
  .rm-node {
    min-height: 66px;
  }
  .rm-map-heading {
    justify-items: start;
    margin-left: 34px;
  }
  .rm-map-heading i {
    margin-left: 35px;
  }
  .rm-map-end {
    padding: 20px;
  }
  .support-qr-frame {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gloss-card, .home-domain-card, .home-learning-card, .rm-node {
    transition: none;
  }
}
.rm-layout-switch button:focus-visible {
  outline-offset: 1px;
}
