/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "components/cookie_banner.css";
@import "components/impersonation_banner.css";

@import "pages/articles_form.css";
@import "pages/report-problem.css";
@import "pages/faqpage.css";
@import "pages/infra.css";
@import "pages/coming_soon.css";
@import "pages/commission-flow.css";
@import "components/upload-box.css";

/* ========================================================= */
/* MOBILE ATELIER FOOTER — fixed bottom nav bar              */
/* ========================================================= */
.atelier-mobile-footer,
.dashboard-mobile-footer {
  display: none;
}

@media (max-width: 877px) {
  .atelier-mobile-footer,
  .dashboard-mobile-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--shw, #EFEFEC);
    border-top: 1px solid rgba(28, 29, 23, 0.1);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    height: auto;
    min-height: 56px;
  }

  .atelier-mobile-footer-item,
  .dashboard-mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--mb-inactive, rgba(28, 29, 23, 0.5));
    text-decoration: none;
    transition: color 0.2s ease;
    min-width: 56px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .atelier-mobile-footer-item:active,
  .dashboard-mobile-footer-item:active {
    opacity: 0.7;
  }

  .atelier-mobile-footer-item.active,
  .dashboard-mobile-footer-item.active {
    color: var(--mb, #1C1D17);
  }

  .atelier-mobile-footer-item.active svg,
  .dashboard-mobile-footer-item.active svg {
    stroke-width: 2;
  }

  .atelier-mobile-footer-label,
  .dashboard-mobile-footer-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 540;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

/* Fix for article content changing color on click */
body:active .article-content,
html:active .article-content,
main:active .article-content,
.article-content:active {
  color: var(--mb) !important;
}