/* CitCom.ai look, after the brand of citcomtef.eu: square shapes, no shadows, a light grotesque
   (Hanken Grotesk, a free stand-in for FK Grotesk) and ultramarine as the only accent. Type and
   white space carry the page; no decorative devices. */

:root {
  --cc-ink: #15141a;
  --cc-night: #232528;
  --cc-night-2: #2c2f33;
  --cc-grey: #5b5b66;
  --cc-blue: #2440c0; /* deep ultramarine: the brand blue, calmer on screen */
  --cc-blue-soft: #9aa9ee; /* the blue, readable on dark backgrounds */
  --cc-orange: #ffaa00;
  --cc-violet: #9b00ff;
  --cc-accent: var(--cc-blue-soft); /* on dark */
  --cc-accent-dark: var(--cc-blue); /* on light */
  --cc-radius: 0;
  --cc-radius-sm: 0;
  --cc-icon-gap: 0.4em; /* between a label and its icon, in every button */
  --cc-heading-font: "Hanken Grotesk", system-ui, sans-serif;
}

/* ---------- Colour schemes ---------- */
/* Mermaid diagrams in the site palette: ink text, blue edges, the faint blue for nodes */
:root {
  --md-mermaid-font-family: "Hanken Grotesk", system-ui, sans-serif;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #ffffff;
  --md-primary-fg-color--dark: #ffffff;
  --md-primary-bg-color: var(--cc-ink);
  --md-primary-bg-color--light: rgba(31, 36, 44, 0.6);
  --md-accent-fg-color: var(--cc-accent-dark);
  --md-accent-fg-color--transparent: rgba(36, 64, 192, 0.07);
  --md-typeset-color: var(--cc-ink);
  --md-typeset-a-color: var(--md-typeset-color); /* links in ink, underlined in blue */
  --md-default-fg-color: rgba(31, 36, 44, 0.9);
  --md-default-fg-color--light: var(--cc-grey);
  --md-default-fg-color--lighter: rgba(21, 20, 26, 0.35);
  --md-footer-bg-color: var(--cc-night);
  --md-footer-bg-color--dark: #0d0e13;
  --cc-header-bg: #ffffff;
  --cc-header-fg: var(--cc-ink);
  --cc-surface: #f3f4f6;
  --cc-border: #e3e6ea;
  --cc-rule: var(--cc-ink);
  --cc-tint: #f4f6fc; /* the blue, barely: the home intro and hovered rows */
  --cc-blue-line: #b7c1ec; /* the blue, soft: arrows at rest */
  --cc-blue-mid: #7d8ede; /* the blue, half way: accent rules on cards */
  --md-mermaid-node-bg-color: #f4f6fc;
  --md-mermaid-node-fg-color: #15141a;
  --md-mermaid-edge-color: #7d8ede;
  --md-mermaid-label-bg-color: #ffffff;
  --md-mermaid-label-fg-color: #15141a;
}

[data-md-color-scheme="slate"] {
  --md-hue: 222;
  --md-primary-fg-color: var(--cc-night);
  --md-primary-fg-color--light: var(--cc-night-2);
  --md-primary-fg-color--dark: #0d0e13;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: var(--cc-accent);
  --md-accent-fg-color--transparent: rgba(154, 169, 238, 0.12);
  --md-default-bg-color: #1a1b1e;
  --md-code-bg-color: #232528;
  --md-typeset-a-color: var(--md-typeset-color);
  --md-footer-bg-color: #0d0e13;
  --md-footer-bg-color--dark: #08090c;
  --cc-header-bg: var(--cc-night);
  --cc-header-fg: #ffffff;
  --cc-surface: #232528;
  --cc-border: #35383d;
  --cc-rule: rgba(255, 255, 255, 0.5);
  --cc-tint: #20232b;
  --cc-blue-line: #4a5590;
  --cc-blue-mid: #6f7fd0;
  --md-mermaid-node-bg-color: #20232b;
  --md-mermaid-node-fg-color: #e8e9ee;
  --md-mermaid-edge-color: #6f7fd0;
  --md-mermaid-label-bg-color: #1a1b1e;
  --md-mermaid-label-fg-color: #e8e9ee;
}

/* Mermaid in the language of the data space map: nodes on the page background with a soft blue
   border, groups on the faint tint. The diagram is drawn in a shadow root, so only custom
   properties reach it; Material strokes nodes with the node-fg colour (text uses label-fg) and
   paints groups with the lightest/lighter greys, so those are redefined on the diagram only. */
.md-typeset .mermaid {
  --md-mermaid-node-bg-color: var(--md-default-bg-color);
  --md-mermaid-node-fg-color: var(--cc-blue-line);
  --md-default-fg-color--lightest: var(--cc-tint);
  --md-default-fg-color--lighter: var(--cc-blue-line);
}

/* ---------- Header ---------- */

.cc-header {
  background-color: var(--cc-header-bg);
  color: var(--cc-header-fg);
  border-bottom: 1px solid var(--cc-border);
  box-shadow: none;
}
.cc-header .md-header__inner {
  height: 3.4rem;
  gap: 0.4rem;
}
.cc-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0.8rem 0 0.2rem;
  color: var(--cc-header-fg);
}
.cc-brand:hover {
  color: var(--cc-header-fg);
}
.cc-brand__logo {
  height: 1.55rem;
  width: auto;
}
[data-md-color-scheme="slate"] .cc-brand__logo {
  filter: invert(1);
}
/* "CitCom.ai | Hub": the word in the light weight of the logo, after a thin rule */
.cc-brand__label {
  padding-left: 0.65rem;
  border-left: 1px solid var(--cc-border);
  font-family: var(--cc-heading-font);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cc-header-fg);
}
.cc-header__links {
  display: none;
  flex: 1;
  justify-content: flex-end;
  gap: 0.2rem;
  margin: 0 0.4rem 0 0;
  padding: 0;
  list-style: none;
}
.cc-header__links a {
  display: block;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
  border-radius: var(--cc-radius-sm);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--cc-header-fg);
}
.cc-header__links a:hover {
  color: var(--md-accent-fg-color);
}
.cc-header__links a.cc-header__link--active {
  color: var(--md-accent-fg-color);
  box-shadow: inset 0 -2px 0 var(--md-accent-fg-color);
  border-radius: 0;
}
.cc-header__cta {
  display: none;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.cc-header .md-header__button,
.cc-header .md-header__option {
  color: var(--cc-header-fg);
}
/* Search box on a white header */
@media screen and (min-width: 60em) {
  .cc-header .md-search {
    padding: 0;
  }
  .cc-header .md-search__inner {
    width: 9.5rem;
  }
  .cc-header .md-search__form {
    background-color: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    height: 1.8rem;
  }
  .cc-header .md-search__form:hover {
    background-color: var(--cc-surface);
  }
  .cc-header .md-search__input,
  .cc-header .md-search__suggest {
    font-size: 0.7rem;
    height: 1.8rem;
  }
  .cc-header .md-search__input {
    color: var(--cc-header-fg);
  }
  .cc-header .md-search__input::placeholder {
    color: var(--md-default-fg-color--light);
  }
  .cc-header .md-search__icon[for="__search"] {
    color: var(--md-default-fg-color--light);
    top: 0.3rem;
  }
  /* Open: grow to the left over the section links, without pushing the
     header (Material widens the box in the flow and it ran off the edge). */
  .cc-header .md-search {
    position: relative;
    flex: none;
    width: 9.5rem;
    height: 1.8rem;
  }
  .cc-header .md-search__inner {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
  }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__inner {
    width: min(23.4rem, calc(100vw - 14rem));
  }
  [data-md-toggle="search"]:checked ~ .md-header .md-search__form {
    background-color: var(--md-default-bg-color);
    border-color: var(--cc-accent);
    border-radius: var(--cc-radius-sm) var(--cc-radius-sm) 0 0;
  }
  .cc-header .md-search__output {
    top: 1.8rem;
    border-radius: 0 0 var(--cc-radius-sm) var(--cc-radius-sm);
  }
  .cc-header .md-search__scrollwrap {
    width: 100%;
  }
}
@media screen and (min-width: 76.25em) {
  [data-md-toggle="search"]:checked ~ .md-header .md-search__inner {
    width: 30rem;
  }
}
@media screen and (min-width: 76.25em) {
  .cc-header__links {
    display: flex;
  }
}
@media screen and (min-width: 45em) {
  .cc-header__cta {
    display: inline-flex;
  }
}
@media screen and (max-width: 76.1875em) {
  .cc-brand {
    margin-right: auto;
  }
}

/* ---------- Typography ---------- */

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: var(--cc-heading-font);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--md-typeset-color);
}
.md-typeset h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.md-typeset h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.md-typeset h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2.2em; /* a step of a guide starts visibly apart from the previous one */
}
.md-typeset h4 {
  font-weight: 600;
}

/* Eyebrow: small accent label with a line, as in the marketplace */
.md-typeset .cc-eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.15rem 0.4rem;
  background: var(--cc-ink);
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
[data-md-color-scheme="slate"] .md-typeset .cc-eyebrow {
  background: #ffffff;
  color: var(--cc-ink);
}

/* Lead paragraph under a page title */
.md-typeset .cc-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-typeset-color);
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

/* ---------- Buttons ---------- */

/* (all the buttons of the site share the rules at the end of this file) */

/* ---------- Cards ---------- */

.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--md-default-bg-color);
  padding: 1rem 1.1rem;
}

.md-typeset .grid.cards > ul > li > hr {
  display: none;
}
.md-typeset .grid.cards > ul > li > p > strong:only-child,
.md-typeset .grid.cards > ul > li > p:first-child strong {
  font-size: 0.9rem;
}
/* no decorative icons in cards: the title says it */
.md-typeset .grid.cards > ul > li > p:first-child > .twemoji.lg,
.md-typeset .grid.cards > ul > li > p:first-child > .lg {
  display: none;
}
/* the card link reads as "View details →" */
.md-typeset .grid.cards > ul > li {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, background-color 0.15s;
}
/* the action link sits at the bottom, level across the cards of a row */
.md-typeset .grid.cards > ul > li > p:last-child:has(> a:only-child) {
  margin-top: auto;
  padding-top: 0.6rem;
  margin-bottom: 0;
}
.md-typeset .grid.cards > ul > li > p:last-child > a:only-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--md-accent-fg-color);
  text-decoration: none;
}
/* the whole card opens its link */
.md-typeset .grid.cards > ul > li > p:last-child > a:only-child::after {
  content: "";
  position: absolute;
  inset: 0;
}
.md-typeset .grid.cards > ul > li > p:last-child > a:only-child .twemoji {
  transition: transform 0.15s;
}
.md-typeset .grid.cards > ul > li:hover > p:last-child > a:only-child .twemoji {
  transform: translateX(0.2rem);
}
.md-typeset .grid.cards > ul > li > p:last-child > a:only-child:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-typeset-color);
  background-color: var(--cc-tint);
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset .grid.cards > ul > li > p:last-child > a:only-child .twemoji { transition: none; }
}
/* Two cards per row */
.md-typeset .grid.cc-two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
@media screen and (min-width: 60em) {
  .md-typeset .grid.cc-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Admonitions, tables and code ---------- */

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--cc-radius-sm);
}
.md-typeset pre > code {
  border-radius: var(--cc-radius-sm);
}
.md-typeset table:not([class]) {
  border-radius: var(--cc-radius-sm);
}
.md-typeset table:not([class]) th {
  font-weight: 700;
}
/* Tables and admonitions near the size of the running text (Material sets them at 0.64rem, which
   is 12.8px against 16px), and tables ruled only between rows: no outer frame, no vertical lines */
.md-typeset table:not([class]),
.md-typeset .admonition,
.md-typeset details {
  font-size: 0.72rem;
}
.md-typeset table:not([class]) {
  border: none;
}
.md-typeset table:not([class]) th {
  font-weight: 600;
  border-bottom: 1px solid var(--cc-rule);
}
.md-typeset table:not([class]) td {
  border-top: 1px solid var(--cc-border);
}
.md-typeset table:not([class]) tbody tr:last-child td {
  border-bottom: 1px solid var(--cc-border);
}
.md-typeset table:not([class]) :is(th, td):first-child {
  padding-left: 0;
}
/* a comparison table (empty top-left cell): the first column holds the labels of the rows */
.md-typeset table:not([class]):has(thead th:first-child:empty) td:first-child {
  font-weight: 600;
}

/* Admonitions in the site palette. Two families: information in the brand blue (note in graphite),
   and states in muted orange, red and green. Material's own colours (cyan, teal, violet) never show. */
.md-typeset :is(.admonition, details):not(#cc) {
  --cc-adm: var(--md-accent-fg-color);
  border-color: var(--cc-adm);
  border-width: 1px;
  box-shadow: none;
}
.md-typeset :is(.admonition, details):not(#cc) > :is(.admonition-title, summary) {
  background-color: color-mix(in srgb, var(--cc-adm) 8%, transparent);
}
.md-typeset :is(.admonition, details):not(#cc) > :is(.admonition-title, summary)::before,
.md-typeset details:not(#cc) > summary::after {
  background-color: var(--cc-adm);
}
.md-typeset :is(.admonition, details):not(#cc):is(.note) { --cc-adm: var(--cc-grey); }
.md-typeset :is(.admonition, details):not(#cc):is(.warning, .caution, .attention) { --cc-adm: #c47f00; }
.md-typeset :is(.admonition, details):not(#cc):is(.danger, .error, .failure, .fail, .missing, .bug) { --cc-adm: #b3261e; }
.md-typeset :is(.admonition, details):not(#cc):is(.success, .check, .done) { --cc-adm: #2e7d4f; }
[data-md-color-scheme="slate"] .md-typeset :is(.admonition, details):not(#cc):is(.note) { --cc-adm: #9a9aa6; }
[data-md-color-scheme="slate"] .md-typeset :is(.admonition, details):not(#cc):is(.warning, .caution, .attention) { --cc-adm: #ffb733; }
[data-md-color-scheme="slate"] .md-typeset :is(.admonition, details):not(#cc):is(.danger, .error, .failure, .fail, .missing, .bug) { --cc-adm: #f07167; }
[data-md-color-scheme="slate"] .md-typeset :is(.admonition, details):not(#cc):is(.success, .check, .done) { --cc-adm: #5cc58a; }

/* ---------- Sidebar ---------- */

.md-nav__title {
  font-family: var(--cc-heading-font);
  font-weight: 500;
}
.md-nav--primary .md-nav__item--section > .md-nav__link {
  font-family: var(--cc-heading-font);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--md-default-fg-color);
}
/* The page you are on, in the accent. Material paints it with --md-typeset-a-color, which is ink
   here (links read in ink), so without this it looks like any other entry. */
.md-nav--primary .md-nav__link--active,
.md-nav--primary .md-nav__item--section > .md-nav__link.md-nav__link--active {
  color: var(--md-accent-fg-color);
  font-weight: 600;
}
/* the section you are reading, in the table of contents (colour only: a bolder weight would
   reflow the list while scrolling) */
.md-nav--secondary .md-nav__link--active {
  color: var(--md-accent-fg-color);
}

/* ---------- Footer ---------- */

.md-footer,
.md-footer-meta {
  background-color: var(--cc-night);
}
.md-footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* Light theme: a light footer, set apart by a rule, so the page does not end on a heavy dark
   block. The logos are white artwork: inverted they turn black (the EU allows the monochrome
   emblem); the CitCom logo is black artwork, inverted by extra.css for the dark footer. */
[data-md-color-scheme="default"] :is(.md-footer, .md-footer-meta) {
  --md-footer-fg-color: var(--cc-ink);
  --md-footer-fg-color--light: var(--cc-grey);
  --md-footer-fg-color--lighter: var(--cc-grey);
  background-color: var(--cc-surface);
  color: var(--cc-ink);
}
[data-md-color-scheme="default"] .md-footer-meta {
  border-top: 1px solid var(--cc-border);
}
[data-md-color-scheme="default"] .md-footer-meta :is(.vrain-logo, .footer-tagline img) {
  filter: invert(1);
}
[data-md-color-scheme="default"] .md-footer-meta .footer-logo .citcom-logo {
  filter: none;
}
/* the EU disclaimer, readable (extra.css sets it at 0.4rem, 8px) */
.md-footer-meta .footer-tagline p {
  font-size: 0.55rem;
  line-height: 1.5;
  color: var(--md-footer-fg-color--light);
}

/* ---------- Home: title, lead and search on white ---------- */

.cc-intro {
  background: var(--cc-tint);
  border-bottom: 1px solid var(--cc-border);
}
.cc-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3.6rem 0.8rem 3.4rem;
}
.md-typeset.cc-intro__copy h1 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16em;
  margin: 0 0 1.2rem;
}
.md-typeset .cc-intro__lead {
  max-width: 34rem;
  margin: 0 0 2.2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.cc-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
}
/* the one box of the home: the tasks most readers come for */
.md-typeset.cc-tasks {
  background: var(--md-default-bg-color);
  border: 1px solid var(--cc-border);
}
.md-typeset.cc-tasks h2 {
  margin: 0;
  padding: 0.8rem 1.1rem 0.7rem;
  border-bottom: 1px solid var(--cc-border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}
.md-typeset.cc-tasks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
[dir] .md-typeset.cc-tasks li {
  margin: 0;
}
.md-typeset.cc-tasks li + li {
  border-top: 1px solid var(--cc-border);
}
.md-typeset.cc-tasks a {
  position: relative;
  display: block;
  padding: 0.75rem 3rem 0.75rem 1.1rem;
  color: var(--md-typeset-color);
  transition: background-color 0.15s;
}
/* the arrow of the cards: it moves when the row is hovered */
.md-typeset.cc-tasks a::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  background-color: var(--cc-blue-line);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  transition: transform 0.15s, background-color 0.15s;
}
.md-typeset.cc-tasks a:hover::after,
.md-typeset.cc-tasks a:focus-visible::after {
  background-color: var(--md-accent-fg-color);
  transform: translateX(0.25rem);
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset.cc-tasks a::after { transition: none; }
}
.md-typeset.cc-tasks a:hover,
.md-typeset.cc-tasks a:focus-visible {
  background: var(--cc-tint);
  color: var(--md-typeset-color);
}
.md-typeset.cc-tasks strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--md-typeset-a-color);
}
.md-typeset.cc-tasks a span {
  color: var(--md-typeset-color);
}
.md-typeset.cc-tasks span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.45;
}
@media screen and (max-width: 59.9375em) {
  .cc-intro__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media screen and (max-width: 44.9375em) {
  .cc-intro__inner {
    padding: 2.6rem 0.8rem 2.2rem;
  }
  .md-typeset.cc-intro__copy h1 {
    font-size: 2rem;
  }
}

/* ---------- Home: reading lists by role ---------- */

/* one row per role: who / what for / where to go */
.md-typeset .cc-roles {
  margin: 1rem 0 2.8rem;
  border-top: 1px solid var(--md-typeset-color);
}
.md-typeset .cc-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "who links" "what links";
  grid-template-rows: auto 1fr;
  gap: 0.3rem 3rem;
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid var(--cc-border);
  transition: background-color 0.15s, box-shadow 0.15s;
}
/* the tint bleeds a little to both sides; the rules stay aligned */
.md-typeset .cc-role:hover {
  background-color: var(--cc-tint);
  box-shadow: -0.8rem 0 0 var(--cc-tint), 0.8rem 0 0 var(--cc-tint);
}
.md-typeset .cc-role p {
  grid-area: what;
  max-width: 24rem;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
}
.md-typeset .cc-role ul {
  grid-area: links;
}
.md-typeset .cc-role h3.cc-role__who {
  grid-area: who;
  margin: 0;
  font-size: 1.1rem; /* a step below the h2 above it ("Find your way in") */
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.md-typeset .cc-role ul,
.md-typeset ul.cc-more {
  list-style: none;
  margin: 0;
  padding: 0;
}
.md-typeset .cc-role li {
  margin: 0;
  padding: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.4;
}
@media screen and (max-width: 59.9375em) {
  .md-typeset .cc-role {
    grid-template-columns: 1fr;
    grid-template-areas: "who" "what" "links";
    gap: 0.4rem;
  }
}
/* Material indents list items with [dir=ltr] selectors */
[dir] .md-typeset .cc-role li,
[dir] .md-typeset ul.cc-more li {
  margin-left: 0;
}
.md-typeset ul.cc-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 1rem 0 2rem;
}
.md-typeset ul.cc-more li {
  margin-bottom: 0;
}

/* ---------- Next step: a light box with the next page ---------- */

.md-typeset .cc-next {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 3rem 0 1rem;
  padding: 0.9rem 3.2rem 1rem 1.2rem;
  border: 1px solid var(--cc-border);
  background: var(--cc-tint);
  color: var(--md-typeset-color);
  transition: border-color 0.15s;
}
.md-typeset .cc-next:hover,
.md-typeset .cc-next:focus-visible {
  border-color: var(--md-typeset-color);
  color: var(--md-typeset-color);
}
.md-typeset .cc-next__label {
  font-size: 0.68rem;
}
.md-typeset .cc-next__title {
  font-family: var(--cc-heading-font);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--md-accent-fg-color);
}
.md-typeset .cc-next__text {
  font-size: 0.74rem;
}
.md-typeset .cc-next::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: -0.55rem;
  background-color: var(--md-accent-fg-color);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  transition: transform 0.15s;
}
.md-typeset .cc-next:hover::after {
  transform: translateX(0.2rem);
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset .cc-next::after { transition: none; }
}

/* Small screens: menu button first, smaller logo, only "Hub" in the label */
@media screen and (max-width: 76.1875em) {
  .cc-header label.md-header__button[for="__drawer"] {
    order: -1;
  }
}
@media screen and (max-width: 29.9375em) {
  .cc-brand {
    margin-left: 0;
  }
  .cc-brand__logo {
    height: 1.2rem;
  }
  .cc-brand__label {
    padding-left: 0.45rem;
    font-size: 1rem;
  }
}
.md-typeset .cc-eyebrow + h2 {
  margin-top: 0;
}

/* Footer: three columns over the full width */
.md-footer-meta__inner .md-copyright {
  width: 100%;
}
.md-footer-meta .footer-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 2rem;
}
.md-footer-meta .footer-links ul {
  margin: 0;
  padding: 0;
}
.md-footer-meta .footer-container .footer-links li {
  margin: 0 0 0.35rem;
  list-style: none;
}
@media screen and (max-width: 44.9375em) {
  .md-footer-meta .footer-container {
    grid-template-columns: 1fr;
  }
}

/* External links in the text: a small arrow says they open in a new tab */
.md-typeset a.cc-external:not(.md-button):not(.md-content__button):not(.cc-header__cta):not(.cc-btn)::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.18em;
  vertical-align: 0.05em;
  background-color: currentColor;
  opacity: 0.6;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7Z"/></svg>') center / contain no-repeat;
}

/* ---------- Infrastructure map (data spaces index) ---------- */
.cc-infra {
  --cc-infra-line: color-mix(in srgb, var(--md-accent-fg-color) 60%, transparent);
  margin: 1.2rem 0 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: var(--md-default-bg-color);
}
.cc-infra a { color: inherit; text-decoration: none; }
/* the order of the four steps: a plain figure, no badge */
.cc-infra__step {
  flex: none;
  min-width: 0.8rem;
  color: var(--md-accent-fg-color);
  font: 400 1.05rem/1 var(--cc-heading-font);
}
.cc-infra__band { /* the zone operated by VRAIN-UPV: tinted, not dark */
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--cc-accent) 45%, transparent);
  border-radius: var(--cc-radius-sm);
  background: color-mix(in srgb, var(--cc-accent) 8%, var(--md-default-bg-color));
}
.cc-infra__eyebrow {
  margin: 0 0 0.7rem !important;
  font: 500 0.75rem/1.2 var(--cc-heading-font);
  color: var(--md-typeset-color);
}
[data-md-color-scheme="slate"] .cc-infra__eyebrow { color: var(--cc-accent); }
.cc-infra__shared { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cc-infra__svc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  background: var(--md-default-bg-color);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cc-infra__svc:hover { border-color: var(--md-accent-fg-color);  }
.cc-infra__svc strong { font-size: 0.8rem; }
.cc-infra__svc small { font-size: 0.66rem; line-height: 1.4; }
/* steps 1-3: one rail from the shared services down to both participants */
.cc-infra__links {
  position: relative;
  height: 4.6rem;
}
.cc-infra__links::before { /* up to the band */
  content: "";
  position: absolute;
  top: 0;
  height: 35%;
  left: 50%;
  border-left: 2px dashed var(--cc-infra-line);
}
.cc-infra__links::after { /* rail and the two drops */
  content: "";
  position: absolute;
  top: 35%;
  bottom: 0;
  left: 18%;
  right: 18%;
  border: 2px dashed var(--cc-infra-line);
  border-bottom: 0;
}
.cc-infra__label {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem 0.15rem 0.2rem;
  border-radius: 0;
  background: var(--md-default-bg-color);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.cc-infra__label--center { top: 35%; left: 50%; }
.cc-infra__label--left { top: 72%; left: 18%; }
.cc-infra__label--right { top: 72%; left: 82%; }
.cc-infra__label small {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--md-accent-fg-color);
}
.cc-infra__flow {
  display: grid;
  grid-template-columns: 1fr minmax(7rem, 0.7fr) 1fr;
  align-items: center;
  gap: 0.6rem;
}
.cc-infra__part {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 0.9rem 2.2rem;
  border: 1px solid var(--cc-border);
  background: var(--md-default-bg-color);
  transition: border-color 0.15s;
}
.cc-infra__part { align-self: stretch; }
.cc-infra__part:hover { border-color: var(--md-accent-fg-color); }
.cc-infra__part strong { font-size: 0.82rem; }
.cc-infra__part small { font-size: 0.68rem; line-height: 1.4; }
/* the black tag of citcomtef.eu: the role of the organisation */
.cc-infra__tag {
  align-self: flex-start;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.4rem;
  background: var(--cc-ink);
  color: #ffffff;
  font-size: 0.6rem;
}
[data-md-color-scheme="slate"] .cc-infra__tag { background: #ffffff; color: var(--cc-ink); }
.cc-infra__conn {
  position: absolute;
  left: 0.9rem;
  bottom: 0.7rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--md-typeset-color);
  font-size: 0.6rem;
}
.cc-infra__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.cc-infra__arrow small { font-size: 0.66rem; font-weight: 500; line-height: 1.3; color: var(--md-accent-fg-color); }
.cc-infra__line {
  position: relative;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--md-accent-fg-color) 0 8px, transparent 8px 13px);
  animation: cc-infra-flow 1s linear infinite;
}
.cc-infra__line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border: 6px solid transparent;
  border-left: 8px solid var(--md-accent-fg-color);
  border-right: 0;
}
@keyframes cc-infra-flow { to { background-position: 13px 0; } }
@media (prefers-reduced-motion: reduce) { .cc-infra__line { animation: none; } }
.md-typeset ol.cc-infra__legend:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.cc-infra__legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 !important;
  max-width: 34rem;
  font-size: 0.8rem;
  line-height: 1.55;
}
.cc-infra__legend li .cc-infra__step { margin-top: -0.05rem; }
.cc-infra__cta-row { margin-top: 1.4rem; text-align: center; }
@media screen and (max-width: 44.9375em) {
  .cc-infra { padding: 0.8rem; }
  .cc-infra__shared, .cc-infra__legend { grid-template-columns: 1fr; }
  .cc-infra__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; height: auto; padding: 0.8rem 0; }
  .cc-infra__links::before { height: 100%; }
  .cc-infra__links::after { display: none; }
  .cc-infra__label { position: relative; top: auto; left: auto; transform: none; }
  .cc-infra__flow { grid-template-columns: 1fr; }
  .cc-infra__arrow { flex-direction: row; justify-content: center; }
  .cc-infra__line { width: 2px; height: 1.6rem; background: repeating-linear-gradient(var(--md-accent-fg-color) 0 8px, transparent 8px 13px); }
  .cc-infra__line::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 8px solid var(--md-accent-fg-color); border-bottom: 0; }
}

/* ---------- Toolbox: the cards of the rest of the site ---------- */
.cc-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two per row: the page keeps the table of contents */
  gap: 0.8rem;
  margin: 1.2rem 0 0.8rem;
}
.md-typeset .cc-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--cc-border);
  background: var(--md-default-bg-color);
  transition: border-color 0.15s, background-color 0.15s;
}
.md-typeset .cc-tool:hover {
  border-color: var(--md-typeset-color);
  background: var(--cc-tint);
}
.md-typeset .cc-tool h3 { margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 500; }
.md-typeset .cc-tool p { margin: 0; }
.md-typeset .cc-tool__meta {
  margin-bottom: 0.6rem !important;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}
.md-typeset .cc-tool > p:not([class]) {
  font-size: 0.72rem;
  line-height: 1.5;
}
/* the action at the bottom, level across a row; the whole card opens the guide */
.md-typeset .cc-tool__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto !important;
  padding-top: 0.8rem;
  font-size: 0.72rem;
}
.md-typeset a.cc-tool__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--md-accent-fg-color);
}
.md-typeset a.cc-tool__go::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  transition: transform 0.15s;
}
.md-typeset .cc-tool:hover a.cc-tool__go::before { transform: translateX(0.2rem); }
.md-typeset a.cc-tool__go::after { content: ""; position: absolute; inset: 0; }
.md-typeset a.cc-tool__ext {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--md-default-fg-color--light);
}
.md-typeset a.cc-tool__ext::after {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7Z"/></svg>') center / contain no-repeat;
}
.md-typeset a.cc-tool__ext:hover { color: var(--md-typeset-color); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .md-typeset a.cc-tool__go::before { transition: none; }
}

/* Ruled list of links with the arrow of the cards (More tools) */
.md-typeset ul.cc-rows {
  list-style: none;
  margin: 0.8rem 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--md-typeset-color);
}
.md-typeset ul.cc-rows--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.4rem;
}
[dir] .md-typeset ul.cc-rows li { margin: 0; border-bottom: 1px solid var(--cc-border); }
.md-typeset ul.cc-rows a {
  position: relative;
  display: block;
  padding: 0.65rem 2.4rem 0.65rem 0;
  color: var(--md-typeset-color);
  text-decoration: none;
}
.md-typeset ul.cc-rows strong { display: block; font-size: 0.8rem; font-weight: 500; }
.md-typeset ul.cc-rows span { display: block; font-size: 0.7rem; line-height: 1.45; }
.md-typeset ul.cc-rows a:hover span { color: var(--md-typeset-color); }
.md-typeset ul.cc-rows a::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  background-color: var(--cc-blue-line);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  transition: transform 0.15s, background-color 0.15s;
}
.md-typeset ul.cc-rows a:hover strong { color: var(--md-accent-fg-color); }
.md-typeset ul.cc-rows a:hover::after { background-color: var(--md-accent-fg-color); transform: translateX(0.2rem); }
@media screen and (max-width: 44.9375em) {
  .cc-tools, .md-typeset ul.cc-rows--two { grid-template-columns: 1fr; }
}

/* ---------- Labels of the TEF pages (extra.labels) ---------- */
.md-typeset .cc-chip {
  display: inline-block;
  margin: 0.05rem 0.1rem 0.05rem 0;
  padding: 0.05rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.md-typeset .cc-chip--broker { border-color: var(--cc-border); background: var(--cc-surface); color: var(--md-default-fg-color); }
.md-typeset .cc-chip--ld { background: color-mix(in srgb, var(--cc-accent) 18%, transparent); color: var(--md-accent-fg-color); }
.md-typeset .cc-chip--v2 { background: color-mix(in srgb, #f0a03c 22%, transparent); color: #8a5300; }
[data-md-color-scheme="slate"] .md-typeset .cc-chip--v2 { color: #f5b866; }
.md-typeset .cc-chip--custom { border-color: var(--cc-border); color: var(--md-default-fg-color--light); }
.md-typeset .cc-chip--yes { background: color-mix(in srgb, var(--cc-blue) 12%, transparent); color: var(--cc-blue); }
[data-md-color-scheme="slate"] .md-typeset .cc-chip--yes { color: var(--cc-blue-soft); }
.md-typeset .cc-chip--no { border-color: var(--cc-border); color: var(--md-default-fg-color--lighter); text-decoration: line-through; }

/* FAQ and other 'question' blocks in the site palette */
.md-typeset .admonition.question, .md-typeset details.question { border-color: var(--md-accent-fg-color); }
.md-typeset .question > .admonition-title, .md-typeset .question > summary { background-color: color-mix(in srgb, var(--cc-accent) 10%, transparent); }
.md-typeset .question > .admonition-title::before, .md-typeset .question > summary::before { background-color: var(--md-accent-fg-color); }
.md-typeset details.question > summary::after { color: var(--md-accent-fg-color); background-color: var(--md-accent-fg-color); }

/* Cards (grid cards): room between the icon and the title */
.md-typeset .grid.cards > ul > li > p:first-child > .twemoji.lg,
.md-typeset .grid.cards > ol > li > p:first-child > .twemoji.lg,
.md-typeset .grid > .card > p:first-child > .twemoji.lg {
  margin-right: 0.45em;
}

/* ---------- TEF network map (tef index): same language as the data space map ---------- */
.cc-tef {
  --cc-tef-line: color-mix(in srgb, var(--md-accent-fg-color) 60%, transparent);
  margin: 1.2rem 0 1.6rem;
  padding: 1.2rem;
  border: 1px solid var(--cc-border);
  background-color: var(--md-default-bg-color);
}
.cc-tef a { text-decoration: none; }
/* the project, tinted like the shared services */
.cc-tef__root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: max-content;
  margin: 0 auto;
  padding: 0.7rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--cc-accent) 45%, transparent);
  background: color-mix(in srgb, var(--cc-accent) 8%, var(--md-default-bg-color));
}
.cc-tef__root span { font: 600 0.95rem/1.1 var(--cc-heading-font); }
.cc-tef__root small { font-size: 0.66rem; }
/* one dashed rail from the TEF down to the three super-nodes */
.cc-tef__rail {
  position: relative;
  height: 2.2rem;
}
.cc-tef__rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 50%;
  border-left: 2px dashed var(--cc-tef-line);
}
.cc-tef__rail::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  border: 2px dashed var(--cc-tef-line);
  border-bottom: 0;
}
.cc-tef__nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.cc-tef__node {
  padding: 0.9rem 0.9rem 0.6rem;
  border: 1px solid var(--cc-border);
  background: var(--md-default-bg-color);
}
.md-typeset .cc-tef__node p { margin: 0; }
/* the black tag of the data space map */
.md-typeset p.cc-tef__eyebrow {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.1rem 0.4rem;
  background: var(--cc-ink);
  color: #ffffff;
  font-size: 0.6rem;
}
[data-md-color-scheme="slate"] .md-typeset p.cc-tef__eyebrow { background: #ffffff; color: var(--cc-ink); }
.md-typeset p.cc-tef__theme {
  font: 600 1rem/1.2 var(--cc-heading-font);
  letter-spacing: 0.02em;
}
.md-typeset p.cc-tef__meta {
  margin-bottom: 0.5rem;
  font-size: 0.66rem;
  color: var(--md-default-fg-color--light);
}
/* the sites: a plain list with rules */
.md-typeset.cc-line ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
[dir] .cc-tef .md-typeset.cc-line li { margin: 0; }
.cc-tef .md-typeset.cc-line li + li { border-top: 1px solid var(--cc-border); }
.cc-tef .md-typeset.cc-line a {
  display: block;
  padding: 0.4rem 0;
  color: var(--md-typeset-color);
}
.cc-tef .md-typeset.cc-line strong,
.cc-tef .md-typeset.cc-line small {
  display: block;
}
.cc-tef .md-typeset.cc-line a:hover strong { color: var(--md-typeset-a-color); }
.cc-tef .md-typeset.cc-line strong { font-size: 0.74rem; font-weight: 500; line-height: 1.3; }
.cc-tef .md-typeset.cc-line small { font-size: 0.64rem; color: var(--md-default-fg-color--light); }
@media screen and (max-width: 44.9375em) {
  .cc-tef { padding: 0.8rem; }
  .cc-tef__nodes { grid-template-columns: 1fr; }
  .cc-tef__rail { height: 1.2rem; }
  .cc-tef__rail::after { display: none; }
  .cc-tef__rail::before { height: 100%; }
}

/* Home content: a measure of reading, and less air under the intro */
.md-content:has(.cc-roles) .md-content__inner {
  padding-top: 0.6rem;
  margin-bottom: 3rem;
}
/* A reading measure for running text (about 80 characters); figures, tables and code keep the
   full width */
.md-typeset.md-content__inner > p,
.md-typeset.md-content__inner > ul,
.md-typeset.md-content__inner > ol,
.md-typeset.md-content__inner > .cc-lead {
  max-width: 34rem;
}
.md-typeset.md-content__inner > ul.cc-rows {
  max-width: none;
}
.md-main__inner:has(.cc-roles) {
  margin-top: 0.6rem;
}
.md-content:has(.cc-roles) .md-typeset h2:first-of-type {
  margin-top: 1.2rem;
}

/* ---------- Links: ink with a thin blue underline; blue on hover ---------- */
/* Running text only. Lists of links in components stay plain ink and turn blue on hover. */
.md-typeset :is(p, li, td, dd, figcaption) > a:not([class]) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--md-accent-fg-color) 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.md-typeset :is(p, li, td, dd, figcaption) > a:not([class]):hover,
.md-typeset :is(p, li, td, dd, figcaption) > a:not([class]):focus-visible {
  color: var(--md-accent-fg-color);
  text-decoration-color: currentColor;
}
.md-typeset .cc-role li > a,
.md-typeset ul.cc-more li > a,
.md-typeset ul.cc-rows li > a,
.md-typeset .cc-tool__links > a,
.md-typeset.cc-tasks li > a,
.md-footer .md-typeset li > a,
.md-footer-meta li > a,
.md-typeset .grid.cards > ul > li > p:last-child > a:only-child {
  text-decoration: none;
}
.md-typeset .cc-role li > a:hover,
.md-typeset ul.cc-more li > a:hover,
.md-typeset.cc-tasks a:hover strong,
.md-typeset .cc-tool h3 a:hover {
  color: var(--md-accent-fg-color);
}

/* Home: each link of a role with the arrow of the cards */
.md-typeset .cc-role li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.md-typeset .cc-role li > a::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--md-accent-fg-color);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>') center / contain no-repeat;
  transition: transform 0.15s;
}
.md-typeset .cc-role li > a:hover::before {
  transform: translateX(0.2rem);
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset .cc-role li > a::before { transition: none; }
}

/* Home: one line icon per role, as its own column; the name and the text align to its right */
.md-typeset .cc-role {
  grid-template-columns: 2.2rem minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "ico who links" "ico what links";
  column-gap: 0;
}
.md-typeset .cc-role ul {
  margin-left: 3rem;
}
.md-typeset .cc-role p.cc-role__ico {
  grid-area: ico;
  margin: 0;
  padding-top: 0.3rem;
  line-height: 1;
}
/* Lucide: stroke icons, in the blue, a little thinner than their default */
.md-typeset .cc-role__ico .twemoji svg {
  width: 1.5rem;
  height: 1.5rem;
  max-height: none;
  fill: none;
  color: var(--md-accent-fg-color);
  stroke-width: 1.6;
}
.md-typeset .cc-role__ico .twemoji {
  --md-icon-size: 1.5rem;
}
@media screen and (max-width: 59.9375em) {
  .md-typeset .cc-role {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    grid-template-areas: "ico who" "ico what" ". links";
  }
  .md-typeset .cc-role ul {
    margin: 0.4rem 0 0;
  }
}


/* ---------- Page facts (last update and authors, under the content) ---------- */

.md-typeset .cc-page-facts {
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
}

/* ---------- Facts of a TEF site: a box at the top of the page ---------- */

.md-typeset dl.cc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2rem;
  border: 1px solid var(--cc-border);
  background: var(--cc-tint);
}
.md-typeset dl.cc-facts > div {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--cc-border);
}
.md-typeset dl.cc-facts > div:nth-child(odd) {
  border-right: 1px solid var(--cc-border);
}
.md-typeset dl.cc-facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--md-default-fg-color--light);
}
.md-typeset dl.cc-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
}
/* the last fact spans the row when it is alone in it */
.md-typeset dl.cc-facts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}
.md-typeset dl.cc-facts > div:nth-last-child(-n + 1),
.md-typeset dl.cc-facts > div:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
@media screen and (max-width: 44.9375em) {
  .md-typeset dl.cc-facts { grid-template-columns: 1fr; }
  .md-typeset dl.cc-facts > div:nth-child(odd) { border-right: none; }
  .md-typeset dl.cc-facts > div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--cc-border); }
}

/* ---------- Home: a little more life (only visual) ---------- */

/* the box of the most common tasks opens with an ink bar: the focal point of the intro */
.md-typeset.cc-tasks h2 {
  border-bottom: 0;
  background: var(--cc-ink);
  color: #ffffff;
}
[data-md-color-scheme="slate"] .md-typeset.cc-tasks h2 {
  background: #ffffff;
  color: var(--cc-ink);
}
.md-typeset.cc-tasks {
  border-color: var(--cc-ink);
}
[data-md-color-scheme="slate"] .md-typeset.cc-tasks {
  border-color: #ffffff;
}

/* the icon of each role on a small square of the blue tint */
.md-typeset .cc-role {
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1fr);
}
.md-typeset .cc-role p.cc-role__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  background: color-mix(in srgb, var(--md-accent-fg-color) 9%, transparent);
}
.md-typeset .cc-role__ico .twemoji,
.md-typeset .cc-role__ico .twemoji svg {
  --md-icon-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.cc-intro__actions { gap: 0.8rem; }

/* the box of the first steps ends with a link to every guide */
.md-typeset.cc-tasks a.cc-tasks__all {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--cc-border);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- Buttons: one look and one behaviour for every button of the site ----------
   One rule: what you can click turns to the accent on hover, as links do.
   Primary: ink, filled with the accent on hover (white and soft blue in dark mode).
   Secondary: an ink outline whose outline and text turn to the accent on hover.
   Square, same type, same icon gap, same transition; the header button is only smaller. */

.md-typeset .md-button,
.md-typeset a.cc-btn,
.cc-header__cta,
.md-typeset .cc-infra__cta,
#catalogFiltersToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cc-icon-gap);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--cc-ink);
  border-radius: 0;
  background: transparent;
  color: var(--cc-ink);
  font: 500 0.8rem/1.2 var(--md-text-font-family, inherit);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.md-typeset .md-button svg,
.md-typeset a.cc-btn svg,
.cc-header__cta svg,
#catalogFiltersToggle svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
/* secondary, on hover: the outline and the text in the accent, as a link does */
.md-typeset .md-button:is(:hover, :focus-visible),
.md-typeset a.cc-btn:is(:hover, :focus-visible),
#catalogFiltersToggle:is(:hover, :focus-visible) {
  background: transparent;
  border-color: var(--cc-blue);
  color: var(--cc-blue);
}
/* primary */
.md-typeset .md-button--primary,
.md-typeset a.cc-btn--primary,
.cc-header__cta,
.md-typeset .cc-infra__cta {
  background: var(--cc-ink);
  color: #ffffff;
}
.md-typeset .md-button--primary:is(:hover, :focus-visible),
.md-typeset a.cc-btn--primary:is(:hover, :focus-visible),
.cc-header__cta:is(:hover, :focus-visible),
.md-typeset .cc-infra__cta:is(:hover, :focus-visible) {
  background: var(--cc-blue);
  border-color: var(--cc-blue);
  color: #ffffff;
}
/* the header button: smaller, the same otherwise */
.cc-header__cta {
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
}

/* dark mode: white instead of ink, the soft blue on hover (no :is() lists here: the id of the
   catalogue button would give every selector of the list the weight of an id) */
[data-md-color-scheme="slate"] .md-typeset .md-button,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn,
[data-md-color-scheme="slate"] #catalogFiltersToggle {
  border-color: #ffffff;
  color: #ffffff;
}
[data-md-color-scheme="slate"] .md-typeset .md-button:hover,
[data-md-color-scheme="slate"] .md-typeset .md-button:focus-visible,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn:hover,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn:focus-visible,
[data-md-color-scheme="slate"] #catalogFiltersToggle:hover,
[data-md-color-scheme="slate"] #catalogFiltersToggle:focus-visible {
  background: transparent;
  border-color: var(--cc-blue-soft);
  color: var(--cc-blue-soft);
}
[data-md-color-scheme="slate"] .md-typeset .md-button.md-button--primary,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn.cc-btn--primary,
[data-md-color-scheme="slate"] .cc-header__cta,
[data-md-color-scheme="slate"] .md-typeset .cc-infra__cta {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--cc-ink);
}
[data-md-color-scheme="slate"] .md-typeset .md-button.md-button--primary:hover,
[data-md-color-scheme="slate"] .md-typeset .md-button.md-button--primary:focus-visible,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn.cc-btn--primary:hover,
[data-md-color-scheme="slate"] .md-typeset a.cc-btn.cc-btn--primary:focus-visible,
[data-md-color-scheme="slate"] .cc-header__cta:hover,
[data-md-color-scheme="slate"] .cc-header__cta:focus-visible,
[data-md-color-scheme="slate"] .md-typeset .cc-infra__cta:hover,
[data-md-color-scheme="slate"] .md-typeset .cc-infra__cta:focus-visible {
  background: var(--cc-blue-soft);
  border-color: var(--cc-blue-soft);
  color: var(--cc-ink);
}
