/* Associazione CRFPA: the shell dressed with the CRFPA design system
   (docs/design-system). Only the shell's own variables are remapped; primary
   and accent come from theme.json through the branding, so an administrator
   can override them and reset them.

   Primary and accent are #63882f (lime-700), not the site green #9ccc5a: the
   shell puts white icons on the primary and draws the focus ring with the
   accent, and white on #9ccc5a is 1.9:1 (the design system allows it only for
   large bold text). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin-wght-normal.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

/* Light: warm paper and the site's greys (neutral ramp), green-tinted shadows. */
:root {
  --page: #f6f6f6;
  --surface: #ffffff;
  --surface-soft: #efefef;
  --surface-hover: #f4f9ea;
  --sidebar: #efefef;
  --border: #e4e4e4;
  --border-strong: #cfcfcf;
  --text: #1a1a1a;
  --muted: #3a3a3a;
  --quiet: #6c6c6c;
  --shadow: 0 12px 28px hsl(150 30% 12% / 0.12), 0 2px 6px hsl(150 30% 12% / 0.06);
  --composer-shadow: 0 4px 12px hsl(150 30% 12% / 0.08), 0 1px 3px hsl(150 30% 12% / 0.06);
  --scroll-thumb: hsl(150 30% 12% / 0.22);
}

/* Dark: green-grey surfaces and ivory text, not an inversion. */
:root[data-theme="dark"] {
  --page: #131613;
  --surface: #1e231e;
  --surface-soft: #272d26;
  --surface-hover: #22301a;
  --sidebar: #171b16;
  --border: #2c332b;
  --border-strong: #3d443c;
  --text: #f2f2ec;
  --muted: #d5d4cb;
  --quiet: #a09e93;
  --shadow: 0 12px 28px hsl(140 20% 3% / 0.6);
  --composer-shadow: 0 4px 14px hsl(140 20% 3% / 0.55);
  --scroll-thumb: hsl(60 15% 92% / 0.26);
}

/* No zebra rows in the conversation list: the shell tints even rows with
   --surface-hover, which here is lime, so every other row read as selected. */
.conversation-item:nth-child(even):not(:hover, :focus-within, .active) {
  background: transparent;
}

/* Codes and data in IBM Plex Mono, as the design system asks. */
.message-content code,
.message-content pre {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
