/*
 * AA reseller type system, served as-is and linked only for the AA brand.
 * AA Sans is headings. Inter is body copy, small text, captions, and controls.
 * These rules stay outside Tailwind layers so they beat utility font classes.
 * AA Sans files live under wwwroot/fonts/aa. Another reseller does not reuse them.
 * Inter is the platform face, declared with all its cuts (including italic, which this brand
 * needs because font-synthesis is off) in Styles/fonts.css, so it is not redeclared here.
 */

@font-face {
  font-family: "AA Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/aa/aa-sans-bold-digital.woff2") format("woff2");
}

@font-face {
  font-family: "AA Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../../fonts/aa/aa-sans-black-digital.woff2") format("woff2");
}

@font-face {
  font-family: "AA Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/aa/aa-sans-italic-bold-digital.woff2") format("woff2");
}

@font-face {
  font-family: "AA Sans";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../../fonts/aa/aa-sans-italic-black-digital.woff2") format("woff2");
}

html[data-brand="aa"] {
  --font-heading: "AA Sans", ui-sans-serif, system-ui, sans-serif;
  /* AA yellow. DaisyUI primary buttons read these tokens; the sidebar shows the AA logo instead. */
  --color-primary: #ffd200;
  --color-primary-content: #000;
  /* A Partner's own coverage on coverage maps (Styles/components/coverage-map.css). */
  --map-own: #ffd200;
  font-synthesis: none;
}

html[data-brand="aa"] .tenant-name {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

html[data-brand="aa"] :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading);
}

/* H1 is AA Sans Black in capitals. Source casing is forced here. */
html[data-brand="aa"] h1 {
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

/* H2 is AA Sans Bold Italic. Sentence case is the authored text, so it is not transformed. */
html[data-brand="aa"] h2 {
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

html[data-brand="aa"] :is(h3, h4, h5, h6) {
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

html[data-brand="aa"] :is(button, .btn, input, select, textarea, small, figcaption, caption) {
  font-family: var(--font-sans);
  font-style: normal;
}
