/*
 * DCG design tokens (DCGPDO-405): colors, spacing and corner radius.
 *
 * Loaded on every page through the site's head markup, so every component can use them,
 * including modals and toasts that render outside the theme layout. Read a token with its
 * value as a fallback, in case this file hasn't loaded:
 *     color: var(--dcg-teal-text, #2f6b73);
 *     padding: var(--dcg-space-4, 16px);
 *
 * Teal follows the Brand Color setting in Experience Builder's Theme panel, so marketing can
 * change it there without a deploy. Keep Brand Color set to #3e7c85. The other tokens have no
 * Theme panel setting, so they're changed here.
 */
:root {
    /* Brand */
    --dcg-navy: #101826;
    --dcg-teal: var(--dxp-g-brand, #3e7c85);
    --dcg-teal-text: #2f6b73; /* teal for text on white */
    --dcg-green: #4fbf9f;

    /* Neutrals */
    --dcg-border: #d0d5dd;
    --dcg-soft-bg: #f8fafc;
    --dcg-light-text: #eff2f7; /* text on navy */

    /* Status. Each one is dark enough to use as text on white. */
    --dcg-success: #16704f;
    --dcg-warning: #9a5407;
    --dcg-error: #a8281c;

    /*
     * Spacing scale. Use these for every margin, padding and gap. Numbered like the
     * prototype's --s1 to --s9, so prototype CSS ports over with a find and replace.
     */
    --dcg-space-1: 4px;
    --dcg-space-2: 8px;
    --dcg-space-3: 12px;
    --dcg-space-4: 16px;
    --dcg-space-5: 20px;
    --dcg-space-6: 24px;
    --dcg-space-7: 32px;
    --dcg-space-8: 40px;
    --dcg-space-9: 56px;

    /* Page layout */
    --dcg-gutter: clamp(var(--dcg-space-4), 3.2vw, var(--dcg-space-8)); /* page side padding: 16px on phones, growing to 40px from 1250px wide */
    --dcg-content-max-width: 1440px; /* page content stops widening here */
    --dcg-stack: clamp(18px, 2.2vw, 28px); /* the gap between a page's blocks (breadcrumb, header, tools, cards), the prototype's --stack: 28px on wide screens */

    /* Corner radius */
    --dcg-radius-card: 12px;
    --dcg-radius-button: 8px;
    --dcg-radius-pill: 999px; /* fully rounded, whatever the pill's height */
}
