/* Taflor docs: the product page's colours and fonts on top of Material.
   Fonts are the ones the product page serves under /assets/fonts/ (same origin). */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2");
}

:root > * {
  --md-text-font: "Source Serif 4";
  --md-code-font: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --md-primary-fg-color: #173a4a;        /* fjord */
  --md-primary-fg-color--light: #24536a;
  --md-primary-fg-color--dark: #0f2b38;
  --md-primary-bg-color: #e6e9e3;        /* birch on the header */
  --md-primary-bg-color--light: #c9d3d3;
  --md-accent-fg-color: #4f6a33;         /* lichen-deep */
  --md-accent-fg-color--transparent: rgb(79 106 51 / 0.1);

  --md-default-bg-color: #f2f4ef;        /* birch-lit */
  --md-default-fg-color: rgb(35 44 48 / 0.87);
  --md-default-fg-color--light: #4a575d; /* iron-soft */
  --md-default-fg-color--lighter: rgb(35 44 48 / 0.32);
  --md-default-fg-color--lightest: rgb(35 44 48 / 0.12);

  --md-typeset-color: #232c30;           /* iron */
  --md-typeset-a-color: #173a4a;
  --md-code-bg-color: #e6e9e3;
  --md-code-fg-color: #232c30;
  --md-typeset-table-color: rgb(35 44 48 / 0.14);

  --md-footer-bg-color: #173a4a;
  --md-footer-bg-color--dark: #0f2b38;
  --md-footer-fg-color: #e6e9e3;
  --md-footer-fg-color--light: #c9d3d3;
  --md-footer-fg-color--lighter: #a9b8bb;
}

body {
  font-optical-sizing: auto;
}

.md-header,
.md-tabs,
.md-nav,
.md-footer,
.md-search,
.md-source,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-typeset table:not([class]) th,
.md-typeset .admonition-title {
  font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
}

.md-typeset {
  font-size: 0.86rem;
  line-height: 1.65;
}

.md-typeset h1 {
  color: #232c30;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.md-typeset h2,
.md-typeset h3 {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.md-typeset a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.md-typeset a:hover {
  color: #4f6a33;
}

.md-typeset .headerlink,
.md-nav a,
.md-footer a {
  text-decoration: none;
}

/* the pre-release notes: amber like the core piece */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #e3a72f;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgb(227 167 47 / 0.16);
}

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
  background-color: #8a5d00;
}

:focus-visible {
  outline: 3px solid #173a4a;
  outline-offset: 2px;
}

.md-header :focus-visible,
.md-footer :focus-visible {
  outline-color: #e3a72f;
}

.taflor-legal {
  display: block;
  margin-top: 0.3rem;
}

.taflor-legal a {
  margin-right: 1rem;
}
