/* Colectica website styles.
   Design: "Signal" with Inter headings (option D of the 2026 refresh).

   Contents
     1. Fonts
     2. Design tokens (light, then dark)
     3. Base elements
     4. Layout
     5. Buttons, tags, and small parts
     6. Site header and footer
     7. Home page
     8. News and posts
     9. Product pages (Colectica Datasets)
    10. Content pages (Markdown)
    11. Content page components (heroes, cards, tables, plans, steps, media)
    12. Forms

   Dark mode follows the visitor's system setting, unless they pick light or
   dark with the theme switch in the header (stored as data-theme on <html>).
   A page with "ColorScheme: light" in its front matter sets class="light-only"
   on <html> and always renders light.

   Content pages carry no styles of their own: no <style> blocks and no style
   attributes. A page that needs a new look gets a component here. */

/* ---------- 1. Fonts (self-hosted, SIL Open Font License) ---------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.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;
}

/* ---------- 2. Design tokens ---------- */

:root {
  color-scheme: light;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Surfaces and text */
  --bg: #ffffff;
  --bg-2: #f2f5ee;
  --card: #ffffff;
  --ink: #10140e;
  --body: #3a4136;
  --muted: #5e6659;
  --line: rgba(16, 20, 14, 0.12);
  --line-strong: rgba(16, 20, 14, 0.30);

  /* Brand colors: the three stripes of the logo (the softer variant of the
     mark, static/img/colectica.svg), with green leading.
     --green fills buttons and tags; --accent-text and --link-line are darker
     shades of the same green, for text and link underlines on light surfaces. */
  --green: #a3b18a;
  --green-ink: #10140e;
  --accent-text: #515d3c;
  --link-line: #7d8c62;
  --blue: #5b7fa3;
  --orange: #e6a57e;
  /* Darker blue and orange, for the few places they color text */
  --blue-text: #3f658c;
  --orange-text: #96511f;

  /* Deep green blocks (dark in both modes) */
  --deep: #1d2b12;
  --on-deep: #f2f5ee;
  --on-deep-muted: #b9c4ad;
  --deep-tile: rgba(255, 255, 255, 0.07);
  --deep-line: rgba(255, 255, 255, 0.16);

  /* Pale blue band behind the customer logos */
  --band: #eaf1f7;
  --band-ink: #10140e;

  /* White tiles that carry third-party logos, and the tile behind our own mark */
  --tile: #ffffff;
  --logo-tile: transparent;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;

  --wrap: 1240px;
  --gutter: 32px;
}

/* Dark tokens.
   They apply in two cases, so they are written twice, and the two copies
   must stay identical:
     1. the visitor's system is dark and they have not chosen "light";
     2. the visitor chose "dark" with the theme switch (data-theme="dark"). */
@media (prefers-color-scheme: dark) {
  :root:not(.light-only):not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0b0e09;
    --bg-2: #12170e;
    --card: #171d12;
    --ink: #f2f5ee;
    --body: #c9d1c0;
    --muted: #98a38d;
    --line: rgba(242, 245, 238, 0.13);
    --line-strong: rgba(242, 245, 238, 0.32);

    --green: #a3b18a;
    --green-ink: #0b0e09;
    --accent-text: #a3b18a;
    --link-line: #a3b18a;
    --blue-text: #8fb0d0;
    --orange-text: #e6a57e;

    --deep: #1a2610;

    --band: #0f1820;
    --band-ink: #f2f5ee;

    --logo-tile: #f2f5ee;
  }

  /* Single-color icon files are black; flip them on dark surfaces. */
  :root:not(.light-only):not([data-theme="light"]) .icon-img {
    filter: invert(1);
  }
}

:root[data-theme="dark"]:not(.light-only) {
  color-scheme: dark;

  --bg: #0b0e09;
  --bg-2: #12170e;
  --card: #171d12;
  --ink: #f2f5ee;
  --body: #c9d1c0;
  --muted: #98a38d;
  --line: rgba(242, 245, 238, 0.13);
  --line-strong: rgba(242, 245, 238, 0.32);

  --green: #a3b18a;
  --green-ink: #0b0e09;
  --accent-text: #a3b18a;
  --link-line: #a3b18a;
  --blue-text: #8fb0d0;
  --orange-text: #e6a57e;

  --deep: #1a2610;

  --band: #0f1820;
  --band-ink: #f2f5ee;

  --logo-tile: #f2f5ee;
}

:root[data-theme="dark"]:not(.light-only) .icon-img {
  filter: invert(1);
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
}

/* ---------- 3. Base elements ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.6em 0 0.5em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

h5,
h6 {
  font-size: 16px;
}

p,
ul,
ol,
dl,
table,
pre,
blockquote,
figure {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.25em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
video,
iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

/* Keep the aspect ratio when an image with a width attribute is scaled down. */
img[width] {
  height: auto;
}

strong,
b {
  color: var(--ink);
  font-weight: 600;
}

small {
  font-size: 0.85em;
}

hr {
  height: 0;
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink);
}

pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  color: var(--ink);
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
}

blockquote {
  margin-left: 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--green);
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 600;
}

thead th {
  border-top: 0;
  border-bottom: 1px solid var(--line-strong);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- 4. Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 88px 0;
}

.section--tight-top {
  padding-top: 16px;
}

.section--flush-top {
  padding-top: 0;
}

.section--tint {
  background: var(--bg-2);
}

.section--band {
  background: var(--band);
  color: var(--band-ink);
}

.section--band h2,
.section--band a {
  color: inherit;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack--tight {
  gap: 20px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head--row {
  flex-flow: row wrap;
  align-items: baseline;
  justify-content: space-between;
}

/* A second heading row inside the same section */
.section-head--spaced {
  margin-top: 32px;
}

.section-head h2,
.h-section {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p,
.lead {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  text-wrap: pretty;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
}

.split > :first-child {
  flex: 1 1 400px;
  min-width: 0;
}

.split > :last-child {
  flex: 1.3 1 480px;
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* ---------- 5. Buttons, tags, and small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary,
.btn-success {
  background: var(--green);
  color: var(--green-ink);
}

.btn-primary:hover,
.btn-success:hover {
  filter: brightness(1.07);
}

.btn-secondary,
.btn-default,
.btn-info,
.btn-link {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-default:hover,
.btn-info:hover,
.btn-link:hover {
  border-color: var(--ink);
}

.btn-on-deep {
  border-color: var(--deep-line);
  color: var(--on-deep);
}

.btn-on-deep:hover {
  border-color: var(--on-deep);
}

.btn svg {
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.tag--solid {
  background: var(--green);
  color: var(--green-ink);
  font-weight: 500;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The three small bars before an eyebrow: the logo's stripes */
.bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 18px;
}

.bars span {
  height: 3px;
  border-radius: 2px;
}

.bars span:nth-child(1),
.bar--blue {
  background: var(--blue);
}

.bars span:nth-child(2),
.bar--green {
  background: var(--green);
}

.bars span:nth-child(3),
.bar--orange {
  background: var(--orange);
}

.bar--muted {
  background: var(--line-strong);
}

.meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card-plain {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

/* Screenshots: light and dark files are swapped with <picture> */
.shot {
  margin: 0;
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: left top;
}

/* A screenshot in a frame of its own, as beside a section heading */
.shot-frame .shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

/* Deep green block */
.deep {
  border-radius: var(--radius-2xl);
  background: var(--deep);
  color: var(--on-deep);
}

.deep h2,
.deep h3,
.deep strong {
  color: var(--on-deep);
}

.deep p {
  color: var(--on-deep-muted);
}

.deep .meta {
  color: var(--on-deep-muted);
}

.bars-wide {
  display: flex;
  gap: 10px;
}

.bars-wide span {
  flex: 1;
  height: 10px;
  border-radius: 999px;
}

.bars-wide span:nth-child(1) {
  background: var(--blue);
}

.bars-wide span:nth-child(2) {
  background: var(--green);
}

.bars-wide span:nth-child(3) {
  background: var(--orange);
}

/* A short version, set above a page title */
.bars-wide--sm {
  gap: 4px;
  width: 180px;
  margin: 0 0 24px;
}

.bars-wide--sm span {
  height: 6px;
}

/* ---------- 6. Site header and footer ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.site-header {
  padding: 16px var(--gutter) 0;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
}

/* The word sits close to the mark. */
.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  text-decoration: none;
}

.brand__mark {
  display: flex;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--logo-tile);
}

/* In the header the mark sits directly on the bar, in dark mode too.
   (The footer keeps the light tile behind it.) */
.site-header .brand__mark {
  background: none;
}

.brand__mark img {
  display: block;
  width: auto;
  height: 42px;
}

.brand__name {
  color: var(--accent-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.site-nav__list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  margin: 0;
}

.site-nav__item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__item > a:hover {
  color: var(--ink);
}

.site-nav__item > a[aria-current] {
  background: var(--bg-2);
  color: var(--ink);
}

/* An item that leads to another site, such as the documentation.
   It sits apart from the site's own pages, at the right of the row, and
   carries a small arrow. */
.site-nav__item:not(.site-nav__item--external) + .site-nav__item--external {
  margin-left: auto;
}

.site-nav__item--external > a {
  gap: 4px;
}

/* The small arrow after a link that leads to another site */
.external-mark {
  flex: none;
  margin-top: -5px;
  color: var(--muted);
}

a:hover > .external-mark {
  color: var(--ink);
}

/* An item that opens a menu: the link, a small button, and the menu itself.
   A pointer opens the menu by hovering; the button opens it from the
   keyboard or by touch, and the site script closes it again. */
.site-nav__item--menu {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.site-nav__item--menu.is-current {
  background: var(--bg-2);
}

.site-nav__item--menu > a {
  padding-right: 2px;
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 44px;
  padding: 0 5px 0 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.site-nav__toggle[hidden] {
  display: none;
}

.site-nav__toggle svg {
  transition: transform 0.15s ease;
}

.site-nav__item--menu:hover > .site-nav__toggle,
.site-nav__toggle:hover {
  color: var(--ink);
}

.site-nav__item--menu[data-open] > .site-nav__toggle svg {
  transform: rotate(180deg);
}

/* The transparent strip above the panel keeps the pointer inside the item
   on its way down from the header. */
.site-nav__menu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 30;
  display: none;
  padding-top: 18px;
}

.site-nav__item--menu[data-open] > .site-nav__menu {
  display: block;
}

.site-nav__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 44px rgba(16, 20, 14, 0.16);
}

/* The Products menu: three columns of products, one for each group */
.site-nav__panel--wide {
  display: grid;
  grid-template-columns: 250px 250px 290px;
  gap: 14px 24px;
  width: max-content;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.menu-product {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.menu-product strong {
  color: var(--ink);
  font-size: 16px;
}

.menu-product:hover,
.menu-list a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.menu-label {
  margin: 0;
  padding: 10px 14px 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  margin: 0;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.menu-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 10px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* The bottom row of the Products menu: the link to all products spans it,
   and the link to the rest of a group sits over it, under that group. */
.site-nav__panel--wide .menu-all {
  grid-row: 2;
  grid-column: 1 / -1;
  padding-left: 14px;
}

.site-nav__panel--wide .menu-all--group {
  z-index: 1;
  grid-column: 2;
  border-top-color: transparent;
}

.menu-all:hover {
  color: var(--accent-text);
}

@media (hover: hover) and (min-width: 1261px) {
  .site-nav__item--menu:hover > .site-nav__menu {
    display: block;
  }
}

.site-nav__cta {
  margin-left: auto;
  padding: 0 18px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
}

/* System, light, or dark */
.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.theme-switch[hidden] {
  display: none;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch button:hover {
  color: var(--ink);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--bg-2);
  color: var(--ink);
}

.theme-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Below this width the menu items, the theme switch, and the button no
   longer fit on one row, so the menu collapses behind a button. */
@media (max-width: 1260px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px 14px 0;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__item:not(.site-nav__item--external) + .site-nav__item--external {
    margin-left: 0;
  }

  /* In the collapsed menu, each menu of links opens in place under its item. */
  .site-nav__item--menu {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }

  .site-nav__item--menu.is-current {
    background: none;
  }

  .site-nav__item--menu.is-current > a {
    background: var(--bg-2);
  }

  .site-nav__item--menu > a {
    padding-right: 10px;
  }

  .site-nav__toggle {
    width: 44px;
    padding: 0;
  }

  .site-nav__menu {
    position: static;
    flex: 1 0 100%;
    padding: 0 0 8px 10px;
  }

  .site-nav__panel,
  .site-nav__panel--wide {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .menu-product {
    padding: 8px 12px;
  }

  .menu-label {
    padding-left: 12px;
  }

  .menu-list a {
    min-height: 44px;
  }

  .menu-all,
  .site-nav__panel--wide .menu-all {
    min-height: 44px;
    padding: 0 12px;
    border-top: 0;
  }

  .site-nav__cta {
    margin-left: 0;
  }

  .theme-switch {
    align-self: flex-start;
  }

  .theme-switch button {
    width: 44px;
    height: 44px;
  }
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  /* Six columns fit side by side at the full page width. */
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 32px 28px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-col h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--body);
  font-size: 15px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  /* Room for the help widget that sits in the bottom corner. */
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand__mark img {
  height: 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links li {
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-link:hover {
  background: var(--bg-2);
}

.social-link img {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0.66;
}

.social-link:hover img {
  opacity: 1;
}

/* ---------- 7. Home page ---------- */

.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.hero__kicker .tag--solid {
  font-family: var(--font-sans);
  font-weight: 600;
}

/* A notice above the tags of a product page, shown to a visitor whose
   platform the product does not run on (blocks/platform-notice.html). */
.platform-notice {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 4px 48px;
  padding: 18px 28px 18px 52px;
  border-radius: var(--radius-lg);
  background: var(--band);
  color: var(--band-ink);
}

/* The blue stripe of the logo, set upright beside the text */
.platform-notice::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 28px;
  width: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.platform-notice__text {
  flex: 1 1 520px;
  min-width: 0;
}

.platform-notice p {
  margin: 0;
  font-size: 15.5px;
  text-wrap: pretty;
}

.platform-notice .platform-notice__title {
  color: var(--band-ink);
  font-size: 17px;
  font-weight: 600;
}

.platform-notice .link-arrow {
  color: var(--band-ink);
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__title--page {
  font-size: clamp(40px, 5.6vw, 84px);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  width: 100%;
}

.hero__lead {
  flex: 1 1 480px;
  max-width: 660px;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Notes under the buttons wrap, so they never push the buttons below the blurb. */
.hero__actions .note {
  max-width: 440px;
  text-wrap: pretty;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  margin-top: 20px;
  padding: 44px 48px 0;
  overflow: hidden;
}

/* A panel that holds text only, with no screenshot along its lower edge */
.hero__panel--text {
  padding-bottom: 44px;
}

.hero__panel .shot {
  border: 1px solid var(--deep-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.hero__panel .shot img {
  height: 440px;
}

.hero__panel-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: -12px;
  color: var(--on-deep-muted);
  font-size: 14px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px 20px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar__bar {
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
}

.pillar .meta {
  color: var(--on-deep-muted);
}

.pillar h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.pillar p {
  max-width: 320px;
  margin: 0;
  font-size: 15.5px;
}

/* A label and a sentence above one of the product lines on the home page */
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.group-head p {
  flex: 1 1 420px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.group-head .group-head__label {
  flex: 0 0 auto;
  min-width: 130px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-card {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 36px 36px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.product-card h2,
.product-card h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-card p {
  margin: 0;
}

.product-card .shot {
  align-self: stretch;
  margin: auto -36px 0 0;
  padding-top: 10px;
}

.product-card .shot picture,
.product-card .shot img {
  display: block;
}

.product-card .shot img {
  height: 260px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 0;
}

.ddi-card {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 40px;
  border-radius: var(--radius-xl);
}

.ddi-card__intro {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.ddi-card__intro h2,
.ddi-card__intro h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ddi-card__intro p {
  margin: 0;
  font-size: 16px;
}

.ddi-card__intro .meta {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-deep-muted);
}

.ddi-card__intro .btn {
  margin-top: auto;
}

.ddi-grid {
  display: grid;
  flex: 2 1 520px;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  min-width: 0;
}

/* A screenshot beside the introduction */
.ddi-card .shot {
  flex: 2 1 480px;
  min-width: 0;
  border: 1px solid var(--deep-line);
  border-radius: 14px;
}

.ddi-card .shot img {
  height: 300px;
}

/* A tile grid on a row of its own, across the card */
.ddi-grid--wide {
  flex-basis: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.ddi-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--deep-tile);
  color: var(--on-deep);
  text-decoration: none;
}

.ddi-tile:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ddi-tile strong {
  font-size: 18px;
}

.ddi-tile span {
  color: var(--on-deep-muted);
  font-size: 14px;
  text-wrap: pretty;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--body);
  text-decoration: none;
}

.solution-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.solution-card p {
  margin: 0;
  font-size: 15.5px;
}

.solution-card .link-arrow {
  margin-top: auto;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

a.solution-card:hover {
  border-color: var(--line-strong);
}

/* The grid of audience cards on the home page and the Solutions page.
   Three cards to a row, and the cards left over in the last row share its
   width, so that no cell is left empty whatever the number of cards. */
.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 641px) and (max-width: 980px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 981px) {
  .solution-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .solution-grid > * {
    grid-column: span 2;
  }

  /* Two cards left over */
  .solution-grid > :nth-last-child(2):nth-child(3n + 1),
  .solution-grid > :last-child:nth-child(3n + 2) {
    grid-column: span 3;
  }

  /* One card left over */
  .solution-grid > :last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}

/* The larger cards on the Solutions page */

.solution-card--lg {
  gap: 12px;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.solution-card--lg h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.solution-card--lg p {
  max-width: 460px;
  font-size: 17px;
}

.pill-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pill-group + .pill-group {
  margin-top: 28px;
}

.pill-group h3 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.pill-list li {
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.pill-list--soft li {
  border-color: transparent;
  background: var(--bg-2);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--tile);
}

.logo-tile img {
  max-width: 100%;
  max-height: 64px;
}

.cta-deep {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px 56px 40px;
}

.cta-deep__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}

.cta-deep__text {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cta-deep h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.cta-deep p {
  max-width: 560px;
  margin: 0;
  font-size: 18px;
}

@media (max-width: 760px) {
  /* The headline's fixed line break only suits wide screens. */
  .hero__title br {
    display: none;
  }
}

@media (max-width: 640px) {
  .platform-notice {
    padding: 16px 20px 16px 40px;
  }

  .platform-notice::before {
    top: 18px;
    bottom: 18px;
    left: 20px;
  }

  .hero__panel {
    padding: 28px 20px 0;
  }

  .hero__panel--text {
    padding-bottom: 28px;
  }

  .hero__panel .shot img {
    height: 260px;
  }

  .product-card {
    padding: 24px 24px 0;
  }

  .product-card .shot {
    margin-right: -24px;
  }

  .ddi-card,
  .cta-deep {
    padding: 28px 24px;
  }
}

/* ---------- 8. News and posts ---------- */

.news-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--body);
  text-decoration: none;
}

.news-tile:hover {
  border-color: var(--line-strong);
}

.news-tile strong {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

.head-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.post-card__media {
  display: block;
  text-decoration: none;
}

.post-card__media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
}

/* Link preview, used when a post points at a page instead of carrying an image */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 200px;
  padding: 20px 24px;
  background: var(--deep);
  color: var(--on-deep);
  text-decoration: none;
}

.link-card__mark {
  display: flex;
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2f5ee;
}

.link-card__mark img {
  display: block;
  width: auto;
  height: 26px;
}

.link-card .meta {
  color: var(--on-deep-muted);
}

.link-card strong {
  color: var(--on-deep);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.link-card span {
  color: var(--on-deep-muted);
  font-size: 14.5px;
}

.post-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 10px;
}

.post-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card__head img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.post-card__head strong {
  font-weight: 600;
}

.post-card__head .meta {
  margin-left: auto;
  text-decoration: none;
}

.post-card__head a.meta:hover {
  color: var(--ink);
}

.post-card__text {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.post-card__text > :last-child {
  margin-bottom: 0;
}

.post-card__foot {
  display: flex;
  align-items: center;
  margin: auto 0 0 -14px;
}

.post-card__foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.post-card__foot img {
  display: block;
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

.post-card__foot a:hover img {
  opacity: 1;
}

/* A single post, and the posts archive: one readable column */
.post-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.post-column .post-card__media > img {
  height: auto;
  max-height: 520px;
}

.archive-year {
  margin: 48px 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 28px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.archive-item .meta {
  flex: 0 0 170px;
}

.archive-item__main {
  flex: 1 1 420px;
  min-width: 0;
}

.archive-item__main a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.archive-item__main a:hover {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
}

.archive-item__main p {
  margin: 4px 0 0;
  font-size: 15.5px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.pager li {
  margin: 0;
}

.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--ink);
}

/* The plain news list written by the latest-news shortcode */
.post-preview {
  margin-bottom: 20px;
}

.post-preview a {
  text-decoration: none;
}

.post-preview .post-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- 9. Product pages (Colectica Datasets) ---------- */

.feature-card {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.feature-card--reverse {
  flex-direction: row-reverse;
}

.feature-card__text {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 36px 40px;
}

.feature-card__bar {
  width: 72px;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 999px;
}

.feature-card__text .meta {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card__text h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature-card__text p {
  margin: 0;
  font-size: 16px;
}

/* The screenshot fills the side of the card, however tall the text is. */
.feature-card .shot {
  position: relative;
  flex: 1.4 1 480px;
  min-width: 0;
  min-height: 370px;
  margin-top: 36px;
}

.feature-card .shot img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 0;
}

.feature-card--reverse .shot img {
  border-right: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 14px 0 0;
}

.format-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.format-card {
  flex: 1 1 420px;
  min-width: 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.format-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

/* A line or two of text between the card's title and its rows */
.format-card > p {
  margin: 0 0 16px;
  font-size: 15.5px;
}

/* A logo above the card's title, and a small note below its rows */
.format-card__logo {
  display: block;
  margin: 0 0 20px;
}

.format-card > .format-card__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.def-list {
  margin: 0;
}

.def-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.def-row dt {
  color: var(--ink);
}

.def-row dd {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.def-row--wide dt {
  flex: 0 0 170px;
}

.def-row--wide dd {
  flex: 1 1 220px;
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 14.5px;
}

/* On a phone the detail drops below its term, so the term takes the whole row. */
@media (max-width: 520px) {
  .def-row--wide dt {
    flex-basis: 100%;
  }
}

/* Editions comparison table */
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.editions {
  min-width: 860px;
  margin: 0;
  font-size: 15.5px;
}

.editions th,
.editions td {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.editions th:first-child,
.editions td:first-child {
  width: 34%;
  padding-left: 32px;
}

.editions th:last-child,
.editions td:last-child {
  padding-right: 32px;
}

.editions thead th {
  width: 22%;
  padding-top: 28px;
  padding-bottom: 22px;
  border-top: 0;
  vertical-align: bottom;
}

.editions thead th:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editions__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.editions__name .tag--solid {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.editions tbody th {
  font-weight: 500;
}

.editions tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
}

.editions .editions__group th,
.editions .editions__group td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.editions .check {
  display: block;
  margin-top: 2px;
  color: var(--accent-text);
}

.editions .is-strong {
  color: var(--ink);
  font-weight: 600;
}

.editions tfoot td {
  padding-top: 20px;
  padding-bottom: 28px;
}

.editions .btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cross-sell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.cross-sell div {
  flex: 1 1 520px;
  max-width: 780px;
  min-width: 0;
}

.cross-sell h2,
.cross-sell h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.cross-sell p {
  margin: 0;
  font-size: 16px;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.download-card h2 {
  margin: 0;
  font-size: 28px;
}

.download-card p {
  margin: 0;
  font-size: 15.5px;
}

.download-card .btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .feature-card__text {
    padding: 24px;
  }

  .feature-card .shot {
    min-height: 240px;
    margin-top: 0;
  }
}

/* ---------- 10. Content pages (Markdown) ---------- */

.page {
  padding: 56px 0 88px;
}

.page__title {
  margin: 0 0 32px;
}

.prose > p,
.prose > ul,
.prose > ol,
.prose > blockquote,
.prose > h1,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > h5,
.prose > h6,
.prose > dl {
  max-width: 780px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose dt {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 600;
}

.prose dd {
  margin: 2px 0 0;
}

/* A long address or word breaks instead of widening the page. */
.prose {
  overflow-wrap: break-word;
}

/* A plain table in running text scrolls sideways on a narrow screen. */
@media (max-width: 700px) {
  .prose > table {
    display: block;
    overflow-x: auto;
  }
}

.prose img {
  border-radius: var(--radius-sm);
}

.page-with-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.page-with-aside > .prose {
  flex: 2 1 520px;
  min-width: 0;
}

.page-with-aside > aside {
  flex: 1 1 260px;
  min-width: 0;
}

.article-meta {
  margin: -20px 0 32px;
}

/* ---------- 11. Content page components ----------
   Shared parts for the content pages under content/. A page composes these
   classes; it carries no <style> block and no style attributes of its own.
   Every color comes from the tokens, so each part works in light and dark. */

/* Bands. A content page that builds its own layout is a series of
   <section class="section section--sm"> bands, each holding a .wrap. */
.section--sm {
  padding: 56px 0;
}

.section > .wrap:not(.stack) > :first-child {
  margin-top: 0;
}

.section > .wrap:not(.stack) > :last-child {
  margin-bottom: 0;
}

/* Spacing for a component placed in running content */
:where(.wrap:not(.stack), .prose, .page-with-aside > *) > :is(.card-grid, .feature-grid, .plan-grid, .logo-grid, .table-scroll, .step-list, .shot-pair, .video, .logo-row, .day-strip) {
  margin-top: 28px;
  margin-bottom: 28px;
}

/* The opening band of a content page */
.page-hero {
  padding: 56px 0 64px;
}

.page-hero h1 {
  max-width: 1000px;
  margin: 0 0 20px;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page-hero h2 {
  max-width: 820px;
  margin: 0 0 20px;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.5;
}

.prose > .lead,
.wrap:not(.stack) > .lead {
  margin-bottom: 16px;
}

.page-hero .wrap > p:not([class]) {
  max-width: 780px;
}

.page-hero .note {
  margin: 0 0 8px;
}

.page-hero .btn-row {
  margin: 28px 0;
}

.page-hero .wrap > :last-child {
  margin-bottom: 0;
}

.page-hero .tag-list {
  margin-bottom: 20px;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

/* An image under the opening text, or beside it with .page-hero__split */
.page-hero__media {
  display: block;
  margin: 32px 0;
}

.page-hero__media img,
img.page-hero__media {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-hero__split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  margin: 0 0 28px;
}

.page-hero__split img {
  max-width: 100%;
  height: auto;
}

.page-hero__split .page-hero__media {
  margin-top: 0;
}

.page-hero__split > :first-child {
  flex: 1.4 1 420px;
  min-width: 0;
}

.page-hero__split > :last-child {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
}

.page-hero__split > :first-child > :last-child {
  margin-bottom: 0;
}

/* Cards. Put them in a .card-grid; add .card-grid--fill to keep the card
   width steady when a row is not full. */
.card-grid--fill {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--body);
}

.card > * {
  margin: 0;
}

/* A card set apart from its neighbors, such as a closing prompt in a grid */
.card--tint {
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-strong);
  background: none;
}

.card--tint > .btn {
  margin-top: 6px;
}

/* A whole card that is a link */
a.card {
  text-decoration: none;
}

a.card:hover {
  border-color: var(--line-strong);
}

a.card .link-arrow {
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.card h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card h3,
.card h4 {
  font-size: 20px;
}

.card p,
.card li {
  font-size: 15.5px;
}

/* A closing button or link sits at the bottom, so a row of cards lines up. */
.card > .btn:last-child,
.card > .card__foot {
  margin-top: auto;
}

.card__media {
  align-self: center;
  margin-bottom: 6px;
}

.card__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 144px;
}

.card__bar {
  width: 56px;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 999px;
}

.card__shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card .eyebrow {
  font-size: 12px;
}

/* A link to a file, with its small type icon */
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.file-link img {
  flex: none;
}

/* A grid of short feature descriptions: a heading and a few lines each */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
}

.feature-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.feature-grid > * {
  min-width: 0;
}

.feature-grid > * > :first-child {
  margin-top: 0;
}

.feature-grid > * > :last-child {
  margin-bottom: 0;
}

.feature-grid h2,
.feature-grid h3,
.feature-grid h4 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.feature-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* A thin rule above each item */
.feature-grid--ruled > * {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 980px) {
  .feature-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .feature-grid,
  .feature-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The product box art with the opening description beside it */
.product-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  margin: 0 0 40px;
}

.product-intro__art {
  flex: 0 1 320px;
  min-width: 0;
}

.product-intro__art img,
img.product-intro__art {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.product-intro__text {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.55;
}

.product-intro__text > :first-child {
  margin-top: 0;
}

.product-intro__text > :last-child {
  margin-bottom: 0;
}

.product-intro .btn-row {
  margin: 20px 0 14px;
}

/* Comparison tables: features down the side, one column per product.
   Wrap the table in .table-scroll. */
.compare {
  min-width: 560px;
  margin: 0;
  font-size: 15.5px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: center;
  vertical-align: middle;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare > :first-child > tr:first-child > * {
  border-top: 0;
}

.compare > :first-child > tr:first-child th {
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}

/* A row that names a group of features */
.compare th[colspan] {
  padding: 12px 18px;
  background: var(--bg-2);
  text-align: left;
}

.compare th[colspan] h4 {
  margin: 0;
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.compare small {
  color: var(--muted);
}

/* Yes and no marks for table cells; the text inside is for screen readers */
.mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}

.mark--yes {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  color: var(--accent-text);
}

.mark--no {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  color: var(--muted);
}

.mark--person {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
  width: 28px;
  height: 28px;
}

/* Other tables */
.table--striped {
  margin-bottom: 24px;
}

.table--striped tbody tr:nth-child(odd) {
  background: var(--bg-2);
}

.table--center th,
.table--center td {
  text-align: center;
}

.table-scroll > table {
  margin: 0;
}

/* The first row of the table sits against the frame, so it needs no rule above it. */
.table-scroll > table:not(.editions) > :first-child > tr:first-child > * {
  border-top: 0;
}

.table-scroll > .table--plain {
  min-width: 620px;
}

/* A table with its own caption line above it */
.table-scroll__title {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
}

/* Pricing plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 16px;
  max-width: 1040px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--body);
  text-align: left;
}

.plan > * {
  margin: 0;
}

.plan--featured {
  border: 2px solid var(--green);
  padding: 25px 23px 23px;
}

.plan__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.plan__title {
  font-size: 20px;
}

.plan__price {
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__unit {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.plan__features {
  padding: 16px 0 0 1.2em;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* A link target that clears the sticky header */
.anchor {
  display: block;
  scroll-margin-top: 110px;
}

/* Steps. .steps is a row of illustrated steps; .step-list is a numbered column. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  min-width: 0;
  margin: 0;
}

.steps img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 0 20px;
  border-radius: var(--radius-md);
}

.steps h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.steps__num {
  margin-right: 6px;
  color: var(--accent-text);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .steps img {
    width: 200px;
    margin-bottom: 14px;
  }
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0;
  list-style: none;
}

.step-list > * {
  display: flex;
  gap: 16px;
  margin: 0;
}

.step-list__num {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #10140e;
  font-size: 19px;
  font-weight: 700;
}

.step-list > :nth-child(3n + 1) .step-list__num {
  background: var(--blue);
  color: #ffffff;
}

.step-list > :nth-child(3n) .step-list__num {
  background: var(--orange);
}

.step-list h4 {
  margin: 8px 0 6px;
}

.step-list p {
  margin: 0;
}

/* A note set apart from the text */
.callout {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--card);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* A quiet panel for a block of supporting text */
.panel {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.section--tint .panel {
  background: var(--card);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel--center {
  text-align: center;
}

/* Images in running text */
.float-right {
  float: right;
  max-width: 40%;
  margin: 4px 0 16px 28px;
}

.float-left {
  float: left;
  max-width: 40%;
  margin: 4px 28px 16px 0;
}

.clear {
  clear: both;
}

.flow-root {
  display: flow-root;
}

@media (max-width: 560px) {
  .float-right,
  .float-left {
    display: block;
    float: none;
    max-width: 100%;
    margin: 0 0 16px;
  }
}

.img-center {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/* A small image set in a line of text */
.inline-icon {
  margin: 0 5px;
  border-radius: 4px;
  vertical-align: middle;
}

.prose img {
  height: auto;
}

/* A logo drawn for a light page: it gets a light plate in dark mode */
.plate {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--logo-tile);
}

/* A row of third-party logos on a white panel */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--tile);
}

.logo-row img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76px;
}

/* Logo tiles outside the home page band get an outline, and one variant
   for a logo drawn in white */
.logo-grid--outlined .logo-tile {
  height: 150px;
  border: 1px solid var(--line);
}

.logo-grid--outlined .logo-tile img {
  max-height: 100px;
}

.logo-tile--navy {
  background: #3a5a8a;
}

/* Pictures side by side at their own sizes */
.media-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin: 0 0 1em;
}

.media-row > * {
  min-width: 0;
}

.media-row img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Two screenshots side by side */
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 16px;
}

.shot-pair img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

@media (max-width: 560px) {
  .shot-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* An embedded video, kept at 16:9 */
.video {
  max-width: 780px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A short run of days, used by the conference pages */
.day-strip {
  max-width: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.day-strip__title {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.day-strip__days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-strip__day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 30px 6px 10px;
  border-left: 1px solid var(--line);
  color: var(--body);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.day-strip__day:first-child {
  border-left: 0;
}

.day-strip__day--key {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.day-strip__num {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
}

.day-strip__day img {
  max-height: 40px;
}

.day-strip__word {
  color: var(--ink);
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
}

/* A page title with a quieter second part */
h1 small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Code colored by the code-prettify script, on the two pages that load it.
   These override the light-only colors the script brings with it. */
.prose pre.prettyprint,
pre.prettyprint {
  padding: 18px 20px;
  border: 0;
}

pre.prettyprint .pln { color: var(--ink); }
pre.prettyprint .str,
pre.prettyprint .atv { color: var(--accent-text); }
pre.prettyprint .kwd,
pre.prettyprint .tag { color: var(--blue-text); }
pre.prettyprint .com { color: var(--muted); }
pre.prettyprint .typ,
pre.prettyprint .atn { color: var(--orange-text); }
pre.prettyprint .lit,
pre.prettyprint .dec { color: var(--accent-text); }
pre.prettyprint .pun,
pre.prettyprint .opn,
pre.prettyprint .clo { color: var(--body); }

/* A button that reads as a link, for an action that is not a navigation */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.link-button:hover {
  text-decoration-color: currentColor;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--muted);
}

/* ---------- 12. Forms ---------- */

.form-group {
  margin-bottom: 18px;
}

label,
.control-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 560px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 120px;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-text);
  outline: 2px solid var(--accent-text);
  outline-offset: 1px;
}

.checkbox,
.radio {
  margin: 6px 0;
}

.checkbox label,
.radio label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--body);
  font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--green);
}

.help-block {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* A form with each label beside its field on wide screens */
.form-horizontal {
  max-width: 860px;
  text-align: left;
}

.form-field {
  min-width: 0;
}

.form-horizontal fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 760px) {
  .form-horizontal .form-group {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 6px 28px;
    align-items: start;
  }

  .form-horizontal .control-label {
    margin: 10px 0 0;
  }

  .form-horizontal .form-field--offset {
    grid-column: 2;
  }
}

/* A form that opens with a choice of paths, as on the evaluation page
   (content/evaluate/index.md).
   Each .path-card is a label around a radio button. The card that is drawn
   is the .path-card__body after the button, so the choice works without
   script. .form-panel is the tinted block that holds the fields. */
.path-form {
  margin: 0 0 28px;
}

.path-choice {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

/* A card left over in the last row takes the row's full width. */
.path-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.path-card {
  position: relative;
  display: flex;
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  color: var(--body);
  font-weight: 400;
  cursor: pointer;
}

/* The radio button stays for the keyboard and for screen readers, out of sight. */
.path-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.path-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 24px 24px 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.path-card:hover .path-card__body {
  border-color: var(--line-strong);
}

.path-card input:checked + .path-card__body {
  border-color: var(--accent-text);
  background: var(--bg-2);
}

.path-card input:focus-visible + .path-card__body {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.path-card__title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.path-card__text {
  font-size: 15.5px;
}

/* The round mark in the corner of a card, checked on the chosen one */
.path-card__mark {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
}

.path-card__mark::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.path-card input:checked + .path-card__body .path-card__mark {
  border-color: var(--accent-text);
  background: var(--accent-text);
}

.path-card input:checked + .path-card__body .path-card__mark::after {
  border-color: var(--bg);
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 2.8vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
}

.form-panel__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.form-panel__head p {
  margin: 0;
  font-size: 16px;
}

/* The short fields in two columns, with a longer field beside them */
.form-panel__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.field-grid {
  display: grid;
  flex: 1 1 440px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px 16px;
  min-width: 0;
}

/* A label above its field. .field__label puts a hint, such as "Optional",
   at the end of the label's row. */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--fill {
  flex: 1 1 360px;
}

.field label {
  margin: 0;
  font-size: 15px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field__hint {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  max-width: none;
}

.field--fill textarea {
  flex: 1;
  min-height: 142px;
}

@media (max-width: 520px) {
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle {
    display: none;
  }
}
