/* Clause side panel: floats right on wide screens, sits above the text on phones. */
.md-typeset .clause-panel {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1.2rem;
  font-size: 0.68rem;
  background: var(--md-code-bg-color);
}

@media screen and (min-width: 60em) {
  .md-typeset .clause-panel {
    float: right;
    width: 15rem;
    margin: 0 0 1rem 1.2rem;
  }
}

.md-typeset .clause-panel ul {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1rem;
}

.md-typeset .clause-panel li {
  margin-bottom: 0.15rem;
}

.md-typeset .clause-panel__head {
  margin: 0.6rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .clause-panel__note {
  margin: 0.2rem 0;
  color: var(--md-default-fg-color--light);
}

.md-typeset .clause-badge {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.66rem;
  color: #fff;
  background: var(--md-primary-fg-color);
}

.md-typeset .clause-badge--planned {
  background: var(--md-default-fg-color--light);
}

.md-typeset .clause-badge--examples-checked {
  background: #1565c0;
}

.md-typeset .clause-badge--reviewed {
  background: #2e7d32;
}

/* Status icons in the navigation (Material's page status). Keys match
   extra.status in mkdocs.yml and the statuses in data/clauses.yml.
   Icons: Material Design Icons, Apache 2.0. */
:root {
  --md-status--planned: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10 10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7z"/></svg>');
  --md-status--draft: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m14.06 9 .94.94L5.92 19H5v-.92zm3.6-6c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"/></svg>');
  --md-status--examples-checked: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM6.2 7.7h5v1.5h-5zm6.8 8.1h5v1.5h-5zm0-2.6h5v1.5h-5zM8 18h1.5v-2h2v-1.5h-2v-2H8v2H6V16h2zm6.1-7.1 1.4-1.4 1.4 1.4 1.1-1-1.4-1.4L18 7.1 16.9 6l-1.4 1.4L14.1 6 13 7.1l1.4 1.4L13 9.9z"/></svg>');
  --md-status--reviewed: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m21.1 12.5 1.4 1.41-6.53 6.59L12.5 17l1.4-1.41 2.07 2.08zM11 4a4 4 0 0 1 4 4 4 4 0 0 1-4 4 4 4 0 0 1-4-4 4 4 0 0 1 4-4m0 2a2 2 0 0 0-2 2 2 2 0 0 0 2 2 2 2 0 0 0 2-2 2 2 0 0 0-2-2m0 7c.68 0 1.5.09 2.41.26l-1.67 1.67-.74-.03c-2.97 0-6.1 1.46-6.1 2.1v1.1h6.2L13 20H3v-3c0-2.66 5.33-4 8-4"/></svg>');
}

.md-status--planned::after {
  -webkit-mask-image: var(--md-status--planned);
  mask-image: var(--md-status--planned);
}

.md-status--draft::after {
  -webkit-mask-image: var(--md-status--draft);
  mask-image: var(--md-status--draft);
}

.md-status--examples-checked::after {
  -webkit-mask-image: var(--md-status--examples-checked);
  mask-image: var(--md-status--examples-checked);
}

.md-status--reviewed::after {
  -webkit-mask-image: var(--md-status--reviewed);
  mask-image: var(--md-status--reviewed);
}

/* Clear the floated panel before footer navigation. */
.md-content__inner::after {
  content: "";
  display: block;
  clear: both;
}

/* Home page entry buttons wrap on small screens. */
.md-typeset .entry-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.md-typeset .entry-buttons .md-button {
  margin: 0;
}

/* Wide tables scroll inside their box instead of widening the page. */
.md-typeset__table {
  max-width: 100%;
}
