/* Shared by Next pages, standalone tools, and server-rendered listing pages. */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4/source-serif-4-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range:
    U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB,
    U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-2073,
    U+2075-20AB, U+20AD-2121, U+2123-2190, U+2192, U+2194-2211, U+2213-2214,
    U+2216-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4/source-serif-4-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range:
    U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB,
    U+02DD-0303, U+0305-0307, U+0309-0328, U+032A-1FFF, U+2070-2073,
    U+2075-20AB, U+20AD-2121, U+2123-2190, U+2192, U+2194-2211, U+2213-2214,
    U+2216-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

/* Common English, Portuguese, and Spanish glyphs use smaller variable fonts.
   Other glyphs retain the complete upstream font through the faces above. */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4/source-serif-4-latin-roman.woff2')
    format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4/source-serif-4-latin-italic.woff2')
    format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: Arial, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: Arial, sans-serif;
  --font-ui: Arial, sans-serif;
  --font-script: Arial, sans-serif;
}

html,
body {
  font-family: Arial, sans-serif !important;
}

/* Inherit the editorial or interface family through legacy inline styles. */
body *,
body *::before,
body *::after {
  font-family: inherit !important;
}

body :is(h1, h2, h3, h4, h5, h6, .bs-headline, .bs-masthead__brand) {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-optical-sizing: auto;
}

body :is(button, input, select, textarea, nav, [role='button'], [role='tab']) {
  font-family: Arial, sans-serif !important;
}

/* Account and staff interfaces stay in Arial, including their headings. */
body
  :is(
    nav,
    .seller-dialog,
    .accounts-admin,
    .seller-review,
    .account-workspace,
    [data-rwas-better-auth],
    [data-rwas-better-auth-account],
    [data-rwas-better-auth-delete],
    [data-rwas-interface]
  ),
body
  :is(
    nav,
    .seller-dialog,
    .accounts-admin,
    .seller-review,
    .account-workspace,
    [data-rwas-better-auth],
    [data-rwas-better-auth-account],
    [data-rwas-better-auth-delete],
    [data-rwas-interface]
  )
  :is(h1, h2, h3, h4, h5, h6, .bs-headline) {
  font-family: Arial, sans-serif !important;
}
