@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&display=swap");

:root {
  --shimmy-purple: #754897;
  --shimmy-orange: #ff8600;
  --shimmy-purple-soft: rgba(117, 72, 151, 0.08);
  --shimmy-orange-soft: rgba(255, 134, 0, 0.10);
  --shimmy-surface: #fffaf6;
  --shimmy-radius-sm: 12px;
  --shimmy-radius-md: 18px;
  --shimmy-radius-lg: 26px;
  --md-primary-fg-color: #754897;
  --md-accent-fg-color: #ff8600;
  --md-typeset-a-color: #754897;
  /* Body copy: Verdana. Headings below are set explicitly to Baloo 2. */
  --md-text-font: Verdana;
}

html.site-protect-pending body {
  visibility: hidden;
}

.shimmy-locked {
  max-width: 720px;
  margin: 15vh auto 0;
  padding: 2rem;
  text-align: center;
  border-radius: var(--shimmy-radius-lg);
  background: linear-gradient(135deg, var(--shimmy-purple-soft) 0%, var(--shimmy-orange-soft) 100%);
}

.shimmy-locked h1 {
  margin-bottom: 0.6rem;
}

[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #c896e8;
}

.md-header, .md-tabs {
  background: linear-gradient(90deg, #754897 0%, #ff8600 100%);
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 28px;
  width: auto;
}

.md-nav__title .md-nav__button.md-logo img {
  height: 40px;
  width: auto;
}

.md-header__topic:first-child {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6,
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
}

@media print {
  h1, h2, h3, h4, h5, h6,
  .md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
    font-family: "Baloo 2", sans-serif !important;
    font-weight: 600 !important;
  }
}

.md-typeset h1 {
  border-bottom: 3px solid var(--shimmy-orange);
  padding-bottom: 0.3em;
  color: var(--shimmy-orange);
  font-weight: 700;
}

.md-typeset h2 {
  border-left: 4px solid var(--shimmy-purple);
  padding: 0.5em 0.9em;
  margin-top: 2em;
  display: flex;
  align-items: center;
  border-radius: 0 var(--shimmy-radius-md) var(--shimmy-radius-md) 0;
  background: linear-gradient(90deg, var(--shimmy-purple-soft) 0%, rgba(255,255,255,0) 100%);
}

.md-typeset h3 {
  color: var(--shimmy-purple);
}

.md-typeset hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(117,72,151,0.35) 0%, rgba(255,134,0,0.35) 100%);
  border-radius: 999px;
}

[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #c896e8;
}

.md-typeset table:not([class]) th {
  background-color: rgba(117, 72, 151, 0.12);
}

.md-typeset table:not([class]) {
  border-radius: var(--shimmy-radius-md);
  overflow: hidden;
  border: 1px solid rgba(117, 72, 151, 0.12);
  box-shadow: 0 10px 24px rgba(117, 72, 151, 0.08);
}

.md-typeset blockquote {
  border-left: 4px solid var(--shimmy-orange);
  border-radius: 0 var(--shimmy-radius-md) var(--shimmy-radius-md) 0;
  background: linear-gradient(90deg, rgba(255,134,0,0.08) 0%, rgba(255,255,255,0) 100%);
  padding: 0.9rem 1rem;
}

.md-typeset img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--shimmy-radius-md);
}

.md-typeset img:not(.twemoji):not(.emojione):not(.gemoji) {
  border: 1px solid rgba(117, 72, 151, 0.12);
  box-shadow: 0 12px 30px rgba(117, 72, 151, 0.10);
}

.md-typeset .grid.cards > ul > li,
.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--shimmy-radius-md);
}

.md-typeset .admonition.assumption,
.md-typeset details.assumption {
  border-color: #b45c00;
}

.md-typeset .assumption > .admonition-title,
.md-typeset details.assumption > summary {
  background-color: rgba(255, 134, 0, 0.15);
}

.md-typeset .admonition.confirmed,
.md-typeset details.confirmed {
  border-color: #007a45;
}

.md-typeset .confirmed > .admonition-title,
.md-typeset details.confirmed > summary {
  background-color: rgba(0, 122, 69, 0.15);
}

.shimmy-icon {
  display: inline-block;
  vertical-align: -5px;
  margin-right: 8px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--shimmy-orange);
}

.md-typeset h2 .shimmy-icon,
.md-typeset h3 .shimmy-icon {
  stroke: var(--shimmy-purple);
}

[data-md-color-scheme="slate"] .md-typeset h2 .shimmy-icon,
[data-md-color-scheme="slate"] .md-typeset h3 .shimmy-icon {
  stroke: #c896e8;
}

.shimmy-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  margin-right: 6px;
}
.shimmy-badge.draft { background: rgba(255,134,0,0.15); color: #b45c00; }
.shimmy-badge.stub { background: rgba(150,150,150,0.2); color: #666; }
.shimmy-badge.living { background: rgba(117,72,151,0.15); color: #754897; }
.shimmy-badge.locked { background: rgba(0,150,80,0.15); color: #007a45; }

[data-md-color-scheme="slate"] .shimmy-badge.draft { color: #ffb347; }
[data-md-color-scheme="slate"] .shimmy-badge.living { color: #c896e8; }
[data-md-color-scheme="slate"] .shimmy-badge.locked { color: #4ade80; }

.shimmy-hero {
  text-align: center;
  padding: 2em 1em;
  margin-bottom: 1em;
  border-radius: var(--shimmy-radius-lg);
  background: linear-gradient(135deg, #ff8600 0%, #ff9f2f 100%);
  border: 1px solid rgba(180, 92, 0, 0.28);
}
.shimmy-hero img { max-width: 320px; height: auto; }
.shimmy-hero,
.shimmy-hero p,
.shimmy-hero em {
  color: #fff;
}
.shimmy-hero .shimmy-badge.draft {
  background: rgba(255, 248, 240, 0.88);
  color: #b45c00;
}

.shimmy-footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.75;
}
.shimmy-footer-copyright .shimmy-footer-mark {
  height: 10px !important;
  width: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  min-width: 10px;
  min-height: 10px;
  object-fit: contain;
  flex: 0 0 10px;
  opacity: 0.6;
}
.shimmy-footer-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 72, 151, 0.24);
}
.shimmy-footer-copyright a:hover {
  border-bottom-color: rgba(255, 134, 0, 0.55);
}
.shimmy-footer-separator {
  opacity: 0.5;
}
.shimmy-mark-dark { display: none; }
[data-md-color-scheme="slate"] .shimmy-mark-light { display: none; }
[data-md-color-scheme="slate"] .shimmy-mark-dark { display: inline; }

@media print {
  @page {
    size: A4 portrait;
    margin: 16mm 14mm 18mm 14mm;
  }

  body,
  .md-typeset {
    color: #2f2440;
  }

  #print-site-cover-page {
    min-height: 240mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20mm 12mm;
    border-radius: 30px;
    border: 2px solid rgba(117, 72, 151, 0.20);
    background:
      radial-gradient(circle at 12% 18%, rgba(117, 72, 151, 0.12), rgba(117, 72, 151, 0) 44%),
      radial-gradient(circle at 88% 82%, rgba(255, 134, 0, 0.14), rgba(255, 134, 0, 0) 44%),
      linear-gradient(135deg, rgba(117, 72, 151, 0.06) 0%, rgba(255, 134, 0, 0.06) 100%);
    box-sizing: border-box;
  }

  #print-site-cover-page h1 {
    font-size: 2.35rem !important;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    border-bottom: 0 !important;
    letter-spacing: 0.01em;
    color: var(--shimmy-orange) !important;
    font-weight: 800 !important;
  }

  #print-site-cover-page h2,
  #print-site-cover-page h3,
  #print-site-cover-page p {
    color: #4a3462;
  }

  #print-page-toc {
    border-radius: 20px;
    border: 1px solid rgba(117, 72, 151, 0.20);
    background: linear-gradient(135deg, rgba(117, 72, 151, 0.05) 0%, rgba(255, 134, 0, 0.05) 100%);
    padding: 16px 18px;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .print-page-toc-title {
    color: #754897;
    margin-bottom: 0.55rem;
  }

  #print-site-page section.print-page {
    border: 1px solid rgba(117, 72, 151, 0.16);
    border-radius: 22px;
    padding: 14px 16px 10px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, rgba(117, 72, 151, 0.04) 0%, rgba(255, 255, 255, 0.96) 24%);
    box-sizing: border-box;
  }

  #print-site-page section.print-page > h1:first-of-type {
    border-bottom: 0 !important;
    margin-top: 0.2rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.2rem;
    color: var(--shimmy-orange);
    font-weight: 800 !important;
  }

  #print-site-page section.print-page h2 {
    border-radius: 0 16px 16px 0;
  }

  .md-typeset h1 {
    border-bottom-width: 4px;
  }

  .md-typeset h2 {
    margin-bottom: 0.7rem;
    break-after: avoid;
  }

  .md-typeset table:not([class]),
  .md-typeset img:not(.twemoji):not(.emojione):not(.gemoji),
  .md-typeset .admonition,
  .md-typeset details,
  .shimmy-hero,
  .md-typeset blockquote {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .md-typeset table:not([class]),
  .md-typeset .admonition,
  .md-typeset details,
  .shimmy-hero,
  .md-typeset blockquote {
    background: var(--shimmy-surface) !important;
  }

  .md-typeset table:not([class]) {
    border: 1px solid rgba(117, 72, 151, 0.18);
  }

  .md-typeset img:not(.twemoji):not(.emojione):not(.gemoji) {
    border: 1px solid rgba(117, 72, 151, 0.18);
  }
}
