@charset "UTF-8";
/*
 * GavetaDev — Design System v10.1
 * Identidade: gavetas, modularidade, contraste e legibilidade.
 * Arquivo completo para substituir scss/gavetadev.scss.
 * Este SCSS utiliza sintaxe CSS compatível: também pode ser servido como CSS após copia.
 */
:root {
  color-scheme: light;
  --gd-midnight: #0B1220;
  --gd-slate: #1E3348;
  --gd-steel: #335B7A;
  --gd-teal: #00BBAE;
  --gd-teal-bright: #33F4E0;
  --gd-teal-deep: #007F7A;
  --gd-amber: #FFB020;
  --gd-canvas: #F3F7FA;
  --gd-surface: #FFFFFF;
  --gd-ink: #132C3F;
  --gd-muted: #536B7C;
  --gd-border: #D8E5EB;
  --font-display: 'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  --font-sans: 'Inter',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono',Consolas,monospace;
  --bg-primary: #F3F7FA;
  --bg-primary-rgb: 243,247,250;
  --bg-secondary: #EAF1F6;
  --bg-subtle: #EDF3F6;
  --bg-surface: #FFFFFF;
  --surface-primary: #FFFFFF;
  --surface-raised: #F3F8FA;
  --bg-elevated: #E5F0F2;
  --bg-surface-hover: #EAF6F5;
  --bg-surface-active: #DFF3EF;
  --bg-code: #0D2030;
  --text-primary: #132C3F;
  --text-secondary: #536B7C;
  --text-muted: #647A88;
  --accent-primary: #007F7A;
  --accent-primary-rgb: 0,127,122;
  --accent-hover: #006964;
  --accent-strong: #005C59;
  --accent-secondary: #335B7A;
  --accent-soft: #DCF6F1;
  --accent-border: #A5DCD3;
  --border-color: #D8E5EB;
  --border-subtle: #E7EEF2;
  --shadow-sm: 0 3px 9px rgba(15,42,63,.055);
  --shadow-md: 0 9px 27px rgba(15,42,63,.075);
  --shadow-lg: 0 24px 64px rgba(15,42,63,.13);
  --shadow-glow: 0 0 24px rgba(0,187,174,.17);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  --sidebar-width: 256px;
  --topbar-height: 68px;
  --bs-primary: #007F7A;
  --bs-primary-rgb: 0,127,122;
  --bs-body-color: #132C3F;
  --bs-border-color: #D8E5EB;
  --bs-link-color: #007F7A;
  --bs-link-hover-color: #005C59;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 18px;
}

body {
  background: var(--gd-canvas);
  color: var(--gd-ink);
  font-family: var(--font-sans);
}

a {
  text-underline-offset: 0.2em;
}

:focus-visible, .btn:focus-visible, .catalog-display-btn:focus-visible, .language-choice:focus-visible {
  outline: 3px solid var(--gd-amber) !important;
  outline-offset: 3px;
}

::selection {
  color: #062C31;
  background: #9EF6EB;
}

/* Navegação como gaveta de ferramentas */
.app-sidebar {
  background: linear-gradient(160deg, #101F30, #0B1828 62%, #0A1422) !important;
  border-right: 1px solid #2C4F62 !important;
  box-shadow: 8px 0 28px rgba(10, 20, 34, 0.1019607843);
}

.app-sidebar .sidebar-brand {
  min-height: 76px;
  height: 76px;
  padding-inline: 16px;
  border-bottom: 1px solid #244359;
}

.app-sidebar .brand-identity {
  gap: 9px;
  min-width: 0;
}

.app-sidebar .brand-logo-box {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #2D6072;
  border-radius: 14px;
  background: #122B3C;
  box-shadow: 0 4px 18px rgba(2, 11, 21, 0.1803921569);
}

.app-sidebar .brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-sidebar .brand-title {
  color: #F6FBFC !important;
  font-family: var(--font-display);
  font-size: 1.14rem;
  letter-spacing: -0.055em !important;
  font-weight: 800;
  line-height: 1.18;
}

.app-sidebar .brand-title em {
  font-style: normal;
  color: var(--gd-teal-bright);
}

.app-sidebar .brand-subtitle {
  font-size: 0.49rem;
  white-space: nowrap;
  letter-spacing: 0.095em;
  color: #91B3C4 !important;
  font-weight: 700;
}

.app-sidebar .sidebar-nav-scroll {
  padding: 19px 11px 25px;
  gap: 20px;
  scrollbar-color: #335B7A transparent;
}

.app-sidebar .nav-group-label {
  color: #91ADBB;
  font-size: 0.65rem;
  letter-spacing: 0.145em;
  padding: 4px 12px 8px;
  font-weight: 800;
}

.app-sidebar .nav-item {
  font-size: 0.83rem;
  min-height: 41px;
  border-radius: 11px;
  color: #CEDDE5;
  padding: 9px 11px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.app-sidebar .nav-item i {
  color: #98B6C4;
  font-size: 1.12rem;
}

.app-sidebar .nav-item:hover {
  background: #1A3646;
  color: #fff;
  transform: translateX(2px);
}

.app-sidebar .nav-item:hover i {
  color: #33F4E0;
}

.app-sidebar .nav-item.active {
  background: linear-gradient(110deg, #105A61, #164953);
  color: #F1FFFD;
  border: 1px solid #2D8180;
  font-weight: 750;
  box-shadow: 0 6px 15px rgba(3, 12, 23, 0.1882352941);
}

.app-sidebar .nav-item.active i {
  color: #58F4DF;
}

.app-sidebar .nav-item.active::before {
  background: #FFB020;
  left: -11px;
}

.app-sidebar .nav-item-badge {
  background: #24465A;
  color: #CEDDE5;
}

.app-sidebar .nav-item.active .nav-item-badge {
  background: #0D363C;
  color: #B7FFF5;
}

.app-sidebar [data-area-id=support] {
  background: #2D2A27;
  border: 1px solid #776040;
  color: #FCE9C5;
}

.app-sidebar [data-area-id=support] i {
  color: #FFB020;
}

.app-sidebar [data-area-id=support]:hover, .app-sidebar [data-area-id=support].active {
  background: #484034;
  border-color: #FFB020;
}

/* Topo escuro e busca nítida */
.app-topbar {
  background: linear-gradient(110deg, #102438, #172E43) !important;
  border-bottom: 1px solid #2B4B5A;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.0705882353);
  color: #F3FAFC;
}

.app-topbar .sidebar-toggle-btn {
  background: #21394B;
  color: #ECF8FC;
  border: 1px solid #3E6070;
}

.app-topbar .sidebar-toggle-btn:hover {
  background: #294C60;
  color: white;
}

.app-topbar .breadcrumb-item, .app-topbar .breadcrumb-item.current {
  color: #D0E2E9 !important;
}

.app-topbar .breadcrumb-item i {
  color: #46D9D0;
}

.app-topbar .global-search-trigger {
  background: #203A4C;
  border: 1px solid #426173;
  color: #D1E6EE;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.0431372549);
}

.app-topbar .global-search-trigger:hover {
  background: #28475A;
  border-color: #00BBAE;
  color: #fff;
}

.app-topbar .topbar-search-label {
  color: #D6E7EE;
}

.app-topbar .search-shortcut-kbd {
  color: #B2D8DF;
  border-color: #527484;
  background: #142B3B;
}

.app-topbar .topbar-secondary-link {
  background: #1C394C;
  color: #EAF6F9;
  border-color: #456675;
}

.app-topbar .topbar-secondary-link:hover {
  border-color: #30C9BC;
  background: #254D60;
  color: white;
}

.app-topbar .language-switch {
  background: #102A3C;
  border: 1px solid #456575;
}

.app-topbar .language-choice {
  color: #C8DFE7;
}

.app-topbar .language-choice:hover {
  color: #33F4E0;
  background: #21475A;
}

.app-topbar .language-choice.active, .app-topbar .language-choice[aria-pressed=true] {
  background: #00BBAE;
  color: #052B33;
  box-shadow: 0 2px 10px rgba(0, 187, 174, 0.1882352941);
}

.app-topbar .language-switch-icon {
  color: #33F4E0;
}

/* Cards modulares, adequados a grids / listagem */
.app-content {
  background: var(--gd-canvas);
}

:where(.surface-card, .home-domain-card, .home-learning-card, .home-resume-card, .resource-card, .resource-path-card, .gloss-card, .rm-aside-sticky, .rm-map-region, .rm-topic-pane, .about-card, .support-why, .support-pix, .stack-reference) {
  border-radius: 17px;
  border-color: #D9E7EC;
  background: #fff;
  box-shadow: 0 4px 15px rgba(23, 59, 83, 0.031372549);
}

:where(.surface-card, .home-domain-card, .home-learning-card, .resource-card, .gloss-card):hover {
  border-color: #78CFC7;
  box-shadow: 0 13px 30px rgba(21, 57, 78, 0.0941176471);
}

.card-icon-box, .home-domain-icon, .home-learning-icon {
  color: #007F7A;
  background: #E5F7F3;
  border: 1px solid #CCE7E2;
  border-radius: 12px;
}

.card-title, .home-section-title, .section-title, .gloss-card h2 {
  color: #132F42;
  font-family: var(--font-display);
  letter-spacing: -0.024em;
}

.card-desc, .home-domain-card p, .home-learning-card p {
  color: #526979;
}

.card-meta-footer {
  border-color: #E5EEF0;
}

.btn {
  font-weight: 680;
  border-radius: 10px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary, .btn-primary:hover, .filter-pill.active, .catalog-display-btn.is-active, .catalog-display-btn[aria-pressed=true] {
  background: #007F7A !important;
  border-color: #007F7A !important;
  color: white !important;
}

.btn-primary:hover {
  background: #006964 !important;
  border-color: #006964 !important;
  box-shadow: 0 5px 14px rgba(0, 127, 122, 0.1882352941);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: #214457;
  border-color: #C7DCE4;
}

.btn-secondary:hover {
  background: #EAF6F5;
  color: #005F5B;
  border-color: #8ECFC7;
}

.badge-accent, .gloss-category {
  color: #006B66;
  background: #E3F8F3;
  border-color: #B5E4D9;
}

.catalog-display-toolbar, .filter-toolbar {
  border-color: #D8E6EC;
}

.catalog-display-btn:hover {
  background: #E0F4F1;
  color: #006B66;
}

.filter-pill:hover {
  background: #E8F6F2;
  color: #006B66;
}

:where(.form-control, .form-select, .filter-input, input[type=search], input[type=text], textarea):focus {
  border-color: #00BBAE;
  box-shadow: 0 0 0 3px rgba(0, 187, 174, 0.1411764706);
}

/* Usa a largura real disponível para a homepage, não o zoom/viewport do navegador.
   Assim, o hero permanece em duas colunas enquanto houver espaço útil. */
.home-page {
  container-type: inline-size;
  container-name: gavetadev-home;
}

/* =============================================================
   HOME — banner com duas colunas reais e painel à direita
   A altura do painel acompanha a coluna de texto em desktop.
   ============================================================= */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
  gap: clamp(24px, 3.2vw, 48px);
  min-height: 460px;
  margin-bottom: clamp(38px, 5vw, 70px);
  padding: clamp(26px, 4vw, 62px);
  overflow: hidden;
  background: radial-gradient(ellipse at 86% 10%, rgba(0, 140, 135, 0.1215686275), transparent 42%), linear-gradient(120deg, #0B1220 0%, #112B3E 58%, #173F4C 100%) !important;
  border: 1px solid #345E70;
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(11, 18, 32, 0.137254902);
}

.home-hero::after {
  display: block;
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 0;
  border-radius: 38%;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 37px, rgba(18, 189, 187, 0.0862745098) 38px, rgba(18, 189, 187, 0.0862745098) 40px);
  transform: rotate(-28deg);
  pointer-events: none;
}

.home-hero .home-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gavetadev-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 13px;
  background: rgba(11, 130, 120, 0.168627451);
  border: 1px solid rgba(74, 182, 175, 0.4);
  border-radius: 50px;
  color: #A4F8EB;
  font: 0.75rem/1.4 var(--font-display);
  font-weight: 750;
  letter-spacing: 0.07em;
}

.gavetadev-hero-eyebrow i {
  color: #FFB020;
  font-size: 1.12rem;
}

.home-hero-title {
  max-width: 18ch;
  color: #F7FCFD !important;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.home-hero-title span {
  color: #33F4E0 !important;
}

.home-hero-description {
  color: #C5DEE5 !important;
  line-height: 1.75;
  max-width: 58ch;
}

.home-hero .btn-primary {
  background: #00BBAE !important;
  border-color: #00BBAE !important;
  color: #062E31 !important;
}

.home-hero .btn-primary:hover {
  background: #33F4E0 !important;
  border-color: #33F4E0 !important;
}

.home-hero .btn-secondary {
  background: #203B4E;
  color: #EAFBFC;
  border: 1px solid #456A7A;
}

.home-hero .btn-secondary:hover {
  background: #31566A;
  color: #fff;
  border-color: #00BBAE;
}

.home-hero .stack-home-shortcuts a {
  color: #9DF5E8 !important;
  text-decoration-thickness: 1px;
}

.home-hero .home-trust-line,
.home-hero .home-trust-line span {
  color: #B5D2DB !important;
}

.home-hero .home-trust-line i {
  color: #33F4E0 !important;
}

/* O painel ocupa toda a segunda coluna, sem limitar a largura a 430px. */
.home-hero .home-overview-card {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(145deg, rgba(27, 58, 76, 0.9215686275), rgba(16, 44, 58, 0.937254902)) !important;
  border: 1px solid #437786 !important;
  border-radius: 21px;
  box-shadow: 0 18px 38px rgba(7, 18, 30, 0.4392156863);
  backdrop-filter: blur(12px);
}

.home-overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #406273;
}

.home-overview-heading h2 {
  color: #F8FBFD !important;
  font-family: var(--font-display);
  font-weight: 760;
  margin: 0;
}

.home-overview-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: #102839 !important;
  border: 1px solid #467689;
  border-radius: 16px;
}

.home-overview-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-overview-card .home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 0;
}

.home-overview-card .home-stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  background: rgba(10, 33, 50, 0.6666666667) !important;
  border: 1px solid #416577 !important;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.home-overview-card .home-stat-item:hover {
  background: #173F4D !important;
  border-color: #00BBAE !important;
}

.home-overview-card .home-stat-item strong {
  color: #33F4E0 !important;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-overview-card .home-stat-item span {
  color: #D0E4EB !important;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-overview-footer {
  color: #C3DBE3 !important;
}

.home-status-dot {
  background: #33F4E0 !important;
  box-shadow: 0 0 0 4px rgba(51, 244, 224, 0.1215686275);
}

.home-section {
  margin-block: 35px 42px;
}

.home-section-kicker,
.page-kicker {
  color: #007F7A;
}

/* Outros cabeçalhos, marcadores e chamadas */
.page-header, .stack-page-head, .resources-hero, .about-page .about-page-hero {
  background: linear-gradient(118deg, #10283D, #1D4B56) !important;
  border: 1px solid #356B76 !important;
  border-radius: 22px;
  box-shadow: 0 9px 28px rgba(11, 18, 32, 0.0823529412);
}

.page-header .page-title, .stack-page-head h1, .about-page .about-page-hero .page-title {
  color: #FFF !important;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

.page-header .page-description, .stack-page-head p, .about-page .about-page-hero .page-description {
  color: #C9E1E8 !important;
}

.page-header .page-kicker, .stack-page-head .page-kicker, .about-page .about-page-hero .page-kicker {
  color: #98F4E4 !important;
}

.page-header::after {
  background: linear-gradient(90deg, #00D9C0, #FFB020, transparent);
  height: 3px;
}

.gloss-hero, .rm-hero {
  background: linear-gradient(110deg, #0B2336, #155161) !important;
  border: 1px solid #467580;
  border-radius: 22px;
}

.gloss-hero .page-title, .rm-hero h1 {
  color: #FFF;
}

.gloss-hero .page-description, .rm-hero p {
  color: #C9E2E8;
}

.gloss-hero .page-kicker, .rm-hero .page-kicker {
  color: #9EF8E7;
}

.gloss-letters button.active, .gloss-letters button:hover, .rm-map-heading span {
  background: #007F7A;
  color: #FFF;
  border-color: #007F7A;
}

.rm-map-heading span {
  background: #007F7A;
}

/* Cartões de apoio: detalhe âmbar que traduz contribuição, sem esconder status do Pix */
/* Cabeçalho da página de apoio — fundo escuro EXIGE texto claro.
   Não reutilize a cor escura de .page-title do tema claro. */
.support-page .support-page-head,
.support-hero {
  background: linear-gradient(115deg, #10293B, #214A53) !important;
  border: 1px solid #356B76 !important;
  color: #F7FCFD !important;
}

.support-page .support-page-head .page-title,
.support-page .support-page-head h1 {
  color: #FFFFFF !important;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  text-shadow: none;
}

.support-page .support-page-head .page-description,
.support-page .support-page-head p {
  color: #D1E9EF !important;
  line-height: 1.75;
  opacity: 1;
}

.support-page .support-page-head .page-kicker {
  color: #33F4E0 !important;
  font-weight: 750;
}

.support-share {
  background: #FFF7E7;
  border: 1px solid #F4DEB6;
}

.support-share h4 {
  color: #60400B;
}

.support-allocation > div:first-child span {
  color: #294958;
}

.support-allocation-quip {
  color: #607684;
}

/* Rodapé amplo e legível */
.app-footer {
  background: #E8F0F4 !important;
  border-top: 1px solid #D0E1E8;
  color: #193649;
}

.app-footer .footer-col h4 {
  font-family: var(--font-display);
  font-weight: 750;
  color: #183C4D;
}

.app-footer .footer-links a {
  color: #3D5B6A;
}

.app-footer .footer-links a:hover {
  color: #007F7A;
}

.app-footer .footer-bottom {
  border-color: #D2E3E8;
}

.app-footer .brand-logo-box {
  background: #142C3C;
  border: 1px solid #285365;
  border-radius: 9px;
}

.app-footer .brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-footer-credit {
  border-radius: 12px;
}

/* Modais: boa leitura, rolagem e larguras equilibradas */
.modal-backdrop {
  background: rgba(11, 18, 32, 0.7333333333);
  padding: clamp(10px, 2vw, 24px);
}

.modal-window {
  border: 1px solid #D4E5E8;
  box-shadow: 0 26px 85px rgba(7, 21, 34, 0.4666666667);
  border-radius: 21px;
  background: #fff;
  width: min(1040px, 100vw - 28px);
}

.modal-window .modal-header {
  background: linear-gradient(120deg, #F3F9F8, #FFF);
  border-bottom: 1px solid #DDEAEF;
}

.modal-window .modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #153749;
}

.modal-window .modal-body {
  color: #243F51;
}

#global-search-modal .modal-window {
  max-width: min(970px, 100%);
}

/* Pontos de interação */
:where(.fav-btn, .gloss-fav):hover {
  color: #A26A00;
  background: #FFF4D7;
  border-color: #F3CC7E;
}

:where(.fav-btn.is-fav, .gloss-fav.saved) {
  color: #B77900;
  background: #FFF3D7;
}

:where(.home-section, .page-header, .home-hero, .rm-hero, .gloss-hero) {
  scroll-margin-top: 95px;
}

/* =============================================================
   RESPONSIVIDADE — sem sobreposição das duas colunas
   ============================================================= */
@media (max-width: 1250px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(285px, 0.96fr);
    gap: clamp(20px, 2.5vw, 32px);
  }
  .app-topbar {
    gap: 10px;
  }
}
/* Não empilhe o hero com media query global: o viewport pode ficar
   pequeno por causa do zoom enquanto o banner ainda comporta duas colunas. */
@media (max-width: 980px) {
  .app-sidebar {
    box-shadow: 15px 0 36px rgba(7, 21, 34, 0.4);
  }
  .app-topbar .topbar-left {
    max-width: 40%;
  }
}
@container gavetadev-home (min-width: 641px) and (max-width: 850px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding: 24px;
    gap: 20px;
    min-height: 0;
  }
  .home-hero .home-overview-card {
    padding: 16px;
  }
  .home-overview-card .home-stat-item {
    padding: 10px;
    min-height: 74px;
  }
}
/* Empilha APENAS quando o conteúdo real estiver estreito. */
@container gavetadev-home (max-width: 640px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 25px;
    min-height: 0;
  }
  .home-hero .home-hero-copy,
  .home-hero .home-overview-card {
    grid-column: 1;
    grid-row: auto;
  }
  .home-hero .home-overview-card {
    height: auto;
    align-self: stretch;
  }
}
/* Navegadores antigos sem container queries: degradação responsiva segura. */
@supports not (container-type: inline-size) {
  @media (max-width: 760px) {
    .home-hero {
      grid-template-columns: minmax(0, 1fr);
      min-height: 0;
    }
    .home-hero .home-hero-copy,
    .home-hero .home-overview-card {
      grid-column: 1;
      grid-row: auto;
    }
    .home-hero .home-overview-card {
      height: auto;
    }
  }
}
@media (max-width: 767.98px) {
  .app-topbar {
    padding: 10px 13px;
  }
  .home-hero {
    padding: clamp(19px, 5vw, 30px);
  }
  .home-hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
  .home-hero-description {
    font-size: 0.94rem;
  }
  .home-hero .home-overview-card {
    padding: 22px;
  }
  .home-overview-card .home-stat-item {
    min-height: 84px;
  }
  .app-footer {
    padding-inline: 16px;
  }
}
@media (max-width: 480px) {
  .gavetadev-hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.035em;
    padding: 7px 10px;
  }
  .home-overview-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .home-hero .home-overview-card {
    padding: 16px;
  }
  .home-overview-card .home-stat-grid {
    gap: 8px;
    margin-top: 12px;
  }
  .home-overview-card .home-stat-item {
    min-height: 76px;
    padding: 10px;
  }
  .home-overview-card .home-stat-item strong {
    font-size: 1.35rem;
  }
  .home-overview-card .home-stat-item span {
    font-size: 0.76rem;
  }
  .modal-window {
    max-height: calc(100dvh - 25px);
  }
  .app-sidebar .brand-subtitle {
    font-size: 0.46rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-sidebar .nav-item, .btn, .surface-card,
  .home-overview-card .home-stat-item {
    transition: none !important;
    transform: none !important;
  }
}
/* =============================================================
   RECURSOS DE ESTUDO — contraste coerente com o tema GavetaDev
   ============================================================= */
.resources-hero {
  color: #F7FCFD !important;
  background: linear-gradient(118deg, #10283D 0%, #1D4B56 100%) !important;
  border-color: #356B76 !important;
}

.resources-hero h1,
.resources-hero .page-title {
  color: #FFFFFF !important;
}

.resources-hero p {
  color: #C9E1E8 !important;
}

.resources-hero .page-kicker,
.resources-hero .home-section-kicker {
  color: #33F4E0 !important;
}

.resources-hero-aside {
  background: #16364A;
  border: 1px solid #456C79;
}

.resources-hero-aside strong {
  color: #FFFFFF !important;
}

.resources-hero-aside p,
.resources-hero-aside .resource-note {
  color: #C9E1E8 !important;
}

/* Ícones de reserva quando a classe ou a folha de ícones não está disponível.
   :where mantém a prioridade dos ícones específicos da biblioteca. */
:where(.card-icon-box, .home-card-icon, .home-history-icon, .home-learning-icon,
.home-domain-icon, .home-resource-callout-icon) :where(.mdi)::before {
  content: "🧰";
  font-style: normal;
}

:where(.mdi-harddisk)::before {
  content: "💾";
}

:where(.mdi-menu)::before {
  content: "☰";
}

:where(.mdi-magnify)::before {
  content: "⚲";
}

:where(.mdi-bookmark-multiple-outline)::before {
  content: "🔖";
}

:where(.mdi-book-open-page-variant, .mdi-book-open-page-variant-outline)::before {
  content: "📖";
}

:where(.mdi-star-outline)::before {
  content: "☆";
}

:where(.mdi-star)::before {
  content: "★";
}

/* O caminho completo pode ocupar uma segunda linha em telas estreitas. */
.app-topbar {
  height: auto;
  min-height: var(--topbar-height);
  padding-block: 8px;
}

.app-topbar .topbar-left {
  flex: 1 1 auto;
  max-width: none;
}

.app-topbar .sidebar-toggle-btn {
  flex-shrink: 0;
}

.app-topbar .breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
  gap: 2px 6px;
  overflow: visible;
}

.breadcrumb-bar .breadcrumb-item {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
}

.breadcrumb-bar .breadcrumb-item::before {
  content: none;
}

@media (max-width: 1199.98px) {
  .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 10px;
  }
  .app-topbar .topbar-left {
    display: contents;
  }
  .app-topbar .breadcrumb-bar {
    grid-area: 2/1/3/-1;
  }
  .app-topbar .topbar-search-container {
    grid-area: 1/2;
    max-width: none;
  }
  .app-topbar .topbar-actions {
    grid-area: 1/3;
  }
}
.code-block-wrapper {
  min-width: 0;
  background: #0e2131;
}

.code-block-wrapper .code-block-header {
  color: #c9e8ed;
  background: #18364a;
}

.code-block-wrapper .code-block-pre {
  margin: 0;
  color: #edf6fa;
  background: #0e2131;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

#commands-list-container .grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.tool-emoji {
  flex: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}
