/*
 * Norisma brand layer for Zulip — injected at the edge (see deploy/edge/
 * Caddyfile + docs/branding.md). Vendor containers are never modified; if an
 * upgrade renames a selector the element falls back to stock styling.
 * Version the filename (v1, v2, …) on every content change — it is served
 * with an immutable Cache-Control.
 */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/norisma-brand/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/norisma-brand/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* Portal type ramp. Zulip drives most typography through CSS variables on
 * :root; override the variables where they exist, elements as fallback.
 * Monospace (code blocks, message markdown) is deliberately untouched. */
:root {
  --font-family-base: "Geist Variable", "Inter", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
}
body,
input,
select,
textarea,
button {
  font-family: "Geist Variable", "Inter", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
}
pre,
code,
kbd,
samp {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    monospace;
}

::selection {
  background: rgba(158, 72, 51, 0.2); /* terracotta, logo-derived */
}

/* ---- v2: portico (login/signup) chrome (selectors verified live
 * 2026-08-10) ------------------------------------------------------------ */

/* Header wordmark: Zulip -> Norisma terracotta on the white header band. */
.portico-header .brand svg.brand-logo {
  display: none;
}
.portico-header .brand a {
  display: inline-block;
  width: 150px;
  height: 30px;
  background: url("/norisma-brand/logo-norisma.svg") left center / contain
    no-repeat;
}

/* Primary buttons: Zulip navy (#313e4e) -> portal stone coal. */
button.full-width,
.portico-page button[type="submit"] {
  background-color: #1c1917 !important;
  border-color: #1c1917 !important;
  color: #fafaf9 !important;
}
button.full-width:hover,
.portico-page button[type="submit"]:hover {
  background-color: #292524 !important;
  border-color: #292524 !important;
}

/* Footer band: Zulip navy (#323358) -> stone-950. */
.footer,
footer {
  background-color: #0c0a09 !important;
}
