/* ═══════════════════════════════════════════════════════════════
   ProFacet Handbook — Custom Typography, Layout & Gallery Styles
   ═══════════════════════════════════════════════════════════════ */

.content main {
  line-height: 1.7;
}

.content p,
.content li {
  line-height: 1.68;
}

.content h1 {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.015em;
}

.content h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--table-border-color);
  letter-spacing: -0.01em;
}

.content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

/* Inline code badges */
.content :not(pre) > code {
  padding: 0.15rem 0.42rem;
  border-radius: 0.35rem;
  font-size: 0.88em;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Code blocks */
pre,
pre code {
  border-radius: 0.75rem;
}

pre {
  background: rgba(15, 23, 42, 0.08);
  border: none;
  padding: 0.2rem;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

pre code {
  display: block;
  background: transparent;
  padding: 0;
}

/* Callouts & Blockquotes */
blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 4px solid var(--links);
  background: rgba(148, 163, 184, 0.07);
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* Clean Reference Tables (non-gallery) */
.content table:not(.pf-gallery-table) {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95em;
}

.content table:not(.pf-gallery-table) th,
.content table:not(.pf-gallery-table) td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

/* Quick-nav cards on overview pages */
.pf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.pf-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--table-border-color);
  background: rgba(148, 163, 184, 0.05);
  text-decoration: none !important;
  color: var(--fg) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pf-card:hover {
  transform: translateY(-2px);
  border-color: var(--links);
  background: rgba(148, 163, 184, 0.1);
}

.pf-card strong {
  display: block;
  font-size: 1.05em;
  color: var(--links);
  margin-bottom: 0.35rem;
}

.pf-card span {
  display: block;
  font-size: 0.9em;
  opacity: 0.85;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   Gallery Grid Layout (applies to Gallery 1, Gallery 2, Originals)
   ═══════════════════════════════════════════════════════════════ */
h1#gallery ~ table,
h1#gallery-1 ~ table,
h1#render-gallery ~ table,
h1#gallery-2 ~ table,
h1#gallery-page-2 ~ table,
h1#profacet-designs ~ table,
h1#profacet-originals ~ table,
h1#appendix-b-studio-path-traced-render-gallery ~ table {
  width: 100%;
  border: none;
  border-collapse: separate;
  border-spacing: 1.25rem;
  margin-top: 1.25rem;
}

h1#gallery ~ table thead,
h1#gallery-1 ~ table thead,
h1#render-gallery ~ table thead,
h1#gallery-2 ~ table thead,
h1#gallery-page-2 ~ table thead,
h1#profacet-designs ~ table thead,
h1#profacet-originals ~ table thead,
h1#appendix-b-studio-path-traced-render-gallery ~ table thead {
  display: none;
}

h1#gallery ~ table tbody,
h1#gallery ~ table tr,
h1#gallery ~ table td,
h1#gallery-1 ~ table tbody,
h1#gallery-1 ~ table tr,
h1#gallery-1 ~ table td,
h1#render-gallery ~ table tbody,
h1#render-gallery ~ table tr,
h1#render-gallery ~ table td,
h1#gallery-2 ~ table tbody,
h1#gallery-2 ~ table tr,
h1#gallery-2 ~ table td,
h1#gallery-page-2 ~ table tbody,
h1#gallery-page-2 ~ table tr,
h1#gallery-page-2 ~ table td,
h1#profacet-designs ~ table tbody,
h1#profacet-designs ~ table tr,
h1#profacet-designs ~ table td,
h1#profacet-originals ~ table tbody,
h1#profacet-originals ~ table tr,
h1#profacet-originals ~ table td,
h1#appendix-b-studio-path-traced-render-gallery ~ table tbody,
h1#appendix-b-studio-path-traced-render-gallery ~ table tr,
h1#appendix-b-studio-path-traced-render-gallery ~ table td {
  border: none;
  background: transparent;
}

h1#gallery ~ table tbody tr,
h1#gallery-1 ~ table tbody tr,
h1#render-gallery ~ table tbody tr,
h1#gallery-2 ~ table tbody tr,
h1#gallery-page-2 ~ table tbody tr,
h1#profacet-designs ~ table tbody tr,
h1#profacet-originals ~ table tbody tr,
h1#appendix-b-studio-path-traced-render-gallery ~ table tbody tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

h1#gallery ~ table tbody tr:last-child,
h1#gallery-1 ~ table tbody tr:last-child,
h1#render-gallery ~ table tbody tr:last-child,
h1#gallery-2 ~ table tbody tr:last-child,
h1#gallery-page-2 ~ table tbody tr:last-child,
h1#profacet-designs ~ table tbody tr:last-child,
h1#profacet-originals ~ table tbody tr:last-child {
  margin-bottom: 0;
}

h1#gallery ~ table td,
h1#gallery-1 ~ table td,
h1#render-gallery ~ table td,
h1#gallery-2 ~ table td,
h1#gallery-page-2 ~ table td,
h1#profacet-designs ~ table td,
h1#profacet-originals ~ table td,
h1#appendix-b-studio-path-traced-render-gallery ~ table td {
  padding: 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92)) !important;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  outline: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

h1#gallery ~ table td p,
h1#gallery-1 ~ table td p,
h1#render-gallery ~ table td p,
h1#gallery-2 ~ table td p,
h1#gallery-page-2 ~ table td p,
h1#profacet-designs ~ table td p,
h1#profacet-originals ~ table td p {
  margin: 0;
}

h1#gallery ~ table td img,
h1#gallery-1 ~ table td img,
h1#render-gallery ~ table td img,
h1#gallery-2 ~ table td img,
h1#gallery-page-2 ~ table td img,
h1#profacet-designs ~ table td img,
h1#profacet-originals ~ table td img,
h1#appendix-b-studio-path-traced-render-gallery ~ table td img {
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  outline: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

.pf-gallery-caption,
figcaption {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.pf-gallery-caption {
  display: inline-flex;
  color: #e2e8f0;
}

figcaption {
  display: block;
}

@media (max-width: 900px) {
  h1#gallery ~ table tbody tr,
  h1#gallery-1 ~ table tbody tr,
  h1#render-gallery ~ table tbody tr,
  h1#gallery-2 ~ table tbody tr,
  h1#gallery-page-2 ~ table tbody tr,
  h1#profacet-designs ~ table tbody tr,
  h1#profacet-originals ~ table tbody tr {
    grid-template-columns: 1fr;
  }
}

/* Prevent clipping of the "Copied" tooltip */
pre:has(.clip-button.tooltipped) {
  overflow-x: visible !important;
}

/* Image Modal Styles */
.image-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(5px);
}

.image-modal-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation-name: zoom;
  animation-duration: 0.3s;
}

.image-modal-content {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes zoom {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: scale(1.1);
}

/* Add cursor pointer to images in content */
.content img {
  cursor: pointer;
  transition: 0.3s;
}

.content img:hover {
  opacity: 0.9;
}

/* Image Modal Caption */
#caption {
  margin-top: 16px;
  padding: 0 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  color: transparent;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(148, 163, 184, 0.3);
  animation: captionFadeIn 0.4s ease-out;
  max-width: 80%;
}

@keyframes captionFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Modal Navigation Buttons */
.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .image-modal-overlay:hover .image-modal-nav {
    opacity: 0.7;
  }

  .image-modal-nav:hover {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: translateY(-50%) scale(1.1);
  }
}

.image-modal-prev {
  left: 20px;
}

.image-modal-next {
  right: 20px;
}

/* Touch device: fade out nav buttons when inactive */
@media (hover: none) and (pointer: coarse) {
  .image-modal-nav {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .user-active .image-modal-nav {
    opacity: 0.7;
  }

  .image-modal-nav:active {
    opacity: 1;
  }
}

/* Image Modal Hint */
.image-modal-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1001;
  pointer-events: none;
  animation: hintPulse 2s ease-in-out infinite;
}

.image-modal-hint.fading {
  animation: hintFadeOut 0.5s ease-out forwards;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@keyframes hintFadeOut {
  to {
    opacity: 0;
  }
}

/* =========================================================================
   The ProFacet Book (V2) — Online Book Typography, Cards & Edition Switcher
   Note: mdBook sets `:root { font-size: 62.5%; }` (`1rem = 10px`) and
   `body { font-size: 1.6rem; }` (`16px`). Always use explicit `px` units
   here so text is large, crisp, and high-contrast in all themes.
   ========================================================================= */

:root {
  --content-max-width: 980px;
}

.content main {
  font-size: 17px;
  line-height: 1.72;
}

.pf-book-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 18px 0 30px 0;
  padding: 20px 26px;
  border-radius: 14px;
  border: 2px solid #0284c7;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.14);
}

html.navy .pf-book-banner,
html.coal .pf-book-banner,
html.ayu .pf-book-banner {
  background: #0b1120;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
}

.pf-book-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #0369a1;
  color: #ffffff;
}

html.navy .pf-book-banner__badge,
html.coal .pf-book-banner__badge,
html.ayu .pf-book-banner__badge {
  background: #0284c7;
  color: #ffffff;
}

.pf-book-banner__content {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-book-banner__content strong {
  color: #090d16;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

html.navy .pf-book-banner__content strong,
html.coal .pf-book-banner__content strong,
html.ayu .pf-book-banner__content strong {
  color: #ffffff;
}

.pf-book-banner__content span {
  color: #1e293b;
  font-size: 16.5px;
  line-height: 1.45;
}

html.navy .pf-book-banner__content span,
html.coal .pf-book-banner__content span,
html.ayu .pf-book-banner__content span {
  color: #f1f5f9;
}

.pf-book-banner__link,
.pf-book-banner__link:link,
.pf-book-banner__link:visited {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  background: #0284c7;
  color: #ffffff !important;
  border: 1px solid #0369a1;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pf-book-banner__link:hover {
  background: #0369a1;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pf-part-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 26px 0 36px 0;
}

.pf-part-card {
  padding: 28px 32px;
  border-radius: 16px;
  border: 2px solid #0284c7;
  border-left: 8px solid #0284c7;
  background: #ffffff;
  color: #090d16;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.15);
}

.pf-part-card--part2 {
  border-color: #6d28d9;
  border-left: 8px solid #6d28d9;
  background: #ffffff;
}

html.navy .pf-part-card,
html.coal .pf-part-card,
html.ayu .pf-part-card {
  background: #0b1120;
  border-color: #38bdf8;
  border-left: 8px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
}

html.navy .pf-part-card--part2,
html.coal .pf-part-card--part2,
html.ayu .pf-part-card--part2 {
  background: #0f1026;
  border-color: #a78bfa;
  border-left: 8px solid #a78bfa;
}

.pf-part-card__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #0369a1;
  color: #ffffff;
  margin-bottom: 12px;
}

.pf-part-card--part2 .pf-part-card__eyebrow {
  background: #5b21b6;
  color: #ffffff;
}

html.navy .pf-part-card__eyebrow,
html.coal .pf-part-card__eyebrow,
html.ayu .pf-part-card__eyebrow {
  background: #0284c7;
  color: #ffffff;
}

html.navy .pf-part-card--part2 .pf-part-card__eyebrow,
html.coal .pf-part-card--part2 .pf-part-card__eyebrow,
html.ayu .pf-part-card--part2 .pf-part-card__eyebrow {
  background: #6d28d9;
  color: #ffffff;
}

.pf-part-card h3,
.pf-part-card h3 a.header,
.pf-part-card h3 a.header:link,
.pf-part-card h3 a.header:visited,
.pf-part-card h3 a.header:hover {
  margin-top: 4px !important;
  margin-bottom: 12px !important;
  font-size: 27px !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  color: #090d16 !important;
  text-decoration: none !important;
}

html.navy .pf-part-card h3,
html.navy .pf-part-card h3 a.header,
html.navy .pf-part-card h3 a.header:link,
html.navy .pf-part-card h3 a.header:visited,
html.navy .pf-part-card h3 a.header:hover,
html.coal .pf-part-card h3,
html.coal .pf-part-card h3 a.header,
html.coal .pf-part-card h3 a.header:link,
html.coal .pf-part-card h3 a.header:visited,
html.coal .pf-part-card h3 a.header:hover,
html.ayu .pf-part-card h3,
html.ayu .pf-part-card h3 a.header,
html.ayu .pf-part-card h3 a.header:link,
html.ayu .pf-part-card h3 a.header:visited,
html.ayu .pf-part-card h3 a.header:hover {
  color: #ffffff !important;
}

.pf-part-card p,
.pf-part-card p strong {
  font-size: 18px !important;
  color: #111827 !important;
  line-height: 1.65 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

html.navy .pf-part-card p,
html.navy .pf-part-card p strong,
html.coal .pf-part-card p,
html.coal .pf-part-card p strong,
html.ayu .pf-part-card p,
html.ayu .pf-part-card p strong {
  color: #f8fafc !important;
}

.pf-part-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-part-card li {
  margin: 0 !important;
}

.pf-part-card ul li a,
.pf-part-card ul li a:link,
.pf-part-card ul li a:visited {
  display: block;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
  color: #090d16 !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

html.navy .pf-part-card ul li a,
html.navy .pf-part-card ul li a:link,
html.navy .pf-part-card ul li a:visited,
html.coal .pf-part-card ul li a,
html.coal .pf-part-card ul li a:link,
html.coal .pf-part-card ul li a:visited,
html.ayu .pf-part-card ul li a,
html.ayu .pf-part-card ul li a:link,
html.ayu .pf-part-card ul li a:visited {
  color: #ffffff !important;
  background: #172033;
  border: 1px solid #334155;
}

.pf-part-card ul li a strong {
  color: #0369a1 !important;
  font-weight: 800 !important;
}

.pf-part-card--part2 ul li a strong {
  color: #5b21b6 !important;
  font-weight: 800 !important;
}

html.navy .pf-part-card ul li a strong,
html.coal .pf-part-card ul li a strong,
html.ayu .pf-part-card ul li a strong {
  color: #7dd3fc !important;
}

html.navy .pf-part-card--part2 ul li a strong,
html.coal .pf-part-card--part2 ul li a strong,
html.ayu .pf-part-card--part2 ul li a strong {
  color: #ddd6fe !important;
}

.pf-part-card ul li a code,
.pf-part-card ul li a code.hljs {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  background: #e2e8f0 !important;
  border: 1px solid #94a3b8 !important;
}

html.navy .pf-part-card ul li a code,
html.navy .pf-part-card ul li a code.hljs,
html.coal .pf-part-card ul li a code,
html.coal .pf-part-card ul li a code.hljs,
html.ayu .pf-part-card ul li a code,
html.ayu .pf-part-card ul li a code.hljs {
  color: #ffffff !important;
  background: #334155 !important;
  border: 1px solid #64748b !important;
}

.pf-part-card ul li a:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #090d16 !important;
  transform: translateX(3px);
}

.pf-part-card--part2 ul li a:hover {
  background: #ede9fe;
  border-color: #6d28d9;
  color: #090d16 !important;
}

html.navy .pf-part-card ul li a:hover,
html.coal .pf-part-card ul li a:hover,
html.ayu .pf-part-card ul li a:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #ffffff !important;
}

html.navy .pf-part-card--part2 ul li a:hover,
html.coal .pf-part-card--part2 ul li a:hover,
html.ayu .pf-part-card--part2 ul li a:hover {
  background: #231f42;
  border-color: #a78bfa;
  color: #ffffff !important;
}

.pf-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: -4px 0 22px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.pf-chapter-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #1e293b;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.pf-chapter-time {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.85;
}

.content img[src*="images/manual/"] {
  display: block;
  max-width: 100%;
  margin: 18px auto 22px auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45);
}

.pf-topbar-edition-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: all 0.15s ease;
}

.pf-topbar-edition-switch:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff !important;
}

.pf-math-block {
  margin: 18px 0;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-align: center;
  font-size: 1.25rem;
  color: #f8fafc;
}

html.light .pf-math-block,
html.rust .pf-math-block {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0f172a;
}

.content math {
  font-size: 1.08em;
}

