/*
 * Global styles for the "website" (Fairwear.org) LWR site — V2.
 * Delivered via a <link> in the site's appPage headMarkup (/resource/<cb>/websiteStylesV2),
 * because the DigitalExperience styles.css media blob does not update through sf metadata deploy.
 * Static resources DO deploy reliably, so this is the Git/CLI-managed home for the V2 design system.
 *
 * Loaded once in the document head -> :root custom properties inherit into every component,
 * and the .fwo-* chrome classes are available site-wide. Keep in sync with the FW Brandbook.
 */
/* Inter is self-hosted (SIL OFL) from the interFontV2 static resource — no Google Fonts
   dependency. Relative URL: this sheet is served from /resource/<cb>/websiteStylesV2, so
   'interFontV2' resolves to the sibling resource. One variable woff2 covers weights 100-900. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('interFontV2') format('woff2');
}

/* --- FW.org V2 design tokens (single source; inherit across shadow boundaries) --- */
:root {
    --fwo-color-red: #ed003b;
    --fwo-color-red-tint: rgba(237, 0, 59, 0.05);
    --fwo-color-text-primary: #000000;
    --fwo-color-text-secondary: #555555;
    --fwo-color-border-subtle: #e5e5e5;
    --fwo-color-bg-page: #ffffff;
    --fwo-color-row-tint: #f4f4f4;
    --fwo-color-light-blue: #72b5e4;
    --fwo-color-primary: #ed003b;
    --fwo-color-primary-tint: rgba(237, 0, 59, 0.05);
    --fwo-color-plum: #542445;

    --fwo-font-family-display: 'Inter', Helvetica, Arial, sans-serif;
    --fwo-font-family-body: 'Inter', Helvetica, Arial, sans-serif;

    /* Drive the SLDS/dxp components (comboboxes, search, buttons, headings) to Inter too.
       The branding set can only point its fonts at var(--dxp-g-root-font-family) (it rejects
       commas and other vars), so we own the actual stack here — loaded after the dxp
       stylesheets, so this :root override wins. */
    --dxp-g-root-font-family: 'Inter', Helvetica, Arial, sans-serif;
    --dxp-s-html-font-family: 'Inter', Helvetica, Arial, sans-serif;
    --fwo-font-size-h1: 72px;
    --fwo-font-size-h2: 24px;
    --fwo-font-size-h3: 18px;
    --fwo-font-size-body: 16px;
    --fwo-font-size-small: 14px;
    --fwo-font-size-xsmall: 12px;
    --fwo-font-weight-extrabold: 800;
    --fwo-font-weight-bold: 700;
    --fwo-font-weight-medium: 500;
    --fwo-font-weight-regular: 400;
    --fwo-font-weight-light: 300;
    --fwo-line-height-display: 1.05;
    --fwo-line-height-body: 1.5;

    --fwo-space-1: 4px;
    --fwo-space-2: 8px;
    --fwo-space-3: 12px;
    --fwo-space-4: 16px;
    --fwo-space-5: 24px;
    --fwo-space-6: 32px;
    --fwo-space-7: 48px;
    --fwo-space-8: 64px;

    --fwo-skew-angle: -18deg;
    --fwo-clip-flag: polygon(0 0, 60% 0, 80% 100%, 0 100%);
    --fwo-clip-hero: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);

    --fwo-max-content-width: 1280px;
    --fwo-grid-gap: 24px;
    --fwo-border-radius-button: 4px;
}

/* --- Shared page chrome (used by resourcesPageV2 + grievancesV2) --- */
.fwo-page {
    max-width: var(--fwo-max-content-width);
    margin: 0 auto;
    padding: var(--fwo-space-6) var(--fwo-space-4);
    box-sizing: border-box;
    font-family: var(--fwo-font-family-body);
    color: var(--fwo-color-text-primary);
}

.fwo-page__header {
    margin-bottom: var(--fwo-space-6);
}

.fwo-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--fwo-space-2);
    font-family: var(--fwo-font-family-body);
    font-size: var(--fwo-font-size-small);
    font-weight: var(--fwo-font-weight-regular);
    color: var(--fwo-color-text-primary);
    letter-spacing: 0.04em;
    line-height: 17px;
    text-transform: uppercase;
    margin: 0 0 var(--fwo-space-5) 0;
}

.fwo-eyebrow__icon {
    display: inline-flex;
    color: var(--fwo-color-red);
    line-height: 0;
}

.fwo-page__head-row {
    display: grid;
    grid-template-columns: minmax(0, 526px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.fwo-page__title {
    font-family: var(--fwo-font-family-display);
    font-size: 48px;
    font-weight: var(--fwo-font-weight-medium);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--fwo-color-text-primary);
    margin: 0;
    flex-shrink: 0;
}

.fwo-page__lead {
    font-family: var(--fwo-font-family-body);
    font-size: 20px;
    font-weight: var(--fwo-font-weight-light);
    line-height: 1.24;
    color: var(--fwo-color-text-primary);
    margin: var(--fwo-space-1) 0 0 0;
    max-width: 634px;
}

@media (max-width: 768px) {
    .fwo-page__head-row {
        grid-template-columns: 1fr;
    }
}
