@charset 'UTF-8';

/**
 * Layout Layer
 * =============================================================================
 * Policy:
 *   - Keep v2 custom properties and typography scoped to .l-main.
 *   - Protect the legacy header, footer, and html font-size (62.5%).
 *   - --rem-v1 is 10px on desktop and viewport-scaled on mobile.
 *   - Write sizes as calc(NUMBER * var(--rem-v1)) for future rem migration.
 *   - Apply .l-main to modal wrappers outside the main content when needed.
 *   - At full renewal, move variables to :root and typography to html/body.
 *   - Set html font-size to match --rem-v1 before replacing sizes with rem.
 * =============================================================================
 */

 
/* =============================================================================
 * Container
 * ========================================================================== */

.l-container {
  width: 100%;
  max-width: calc(108 * var(--rem-v1));
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .l-container {
    padding-left: calc(1.5 * var(--rem-v1));
    padding-right: calc(1.5 * var(--rem-v1));
  }
}


/* =============================================================================
 * Page Top
 * -----------------------------------------------------------------------------
 * If #dify-chatbot-bubble-button exists
 * ========================================================================== */

body:has(#dify-chatbot-bubble-button) #pageTop {
  bottom: 18px;
  right: 70px;
}
@media (max-width: 767px) {
  body:has(#dify-chatbot-bubble-button) #pageTop {
    bottom: 67px;
    right: 18px;
  }
}