/* === Base / Reset === */
html, body {
  margin: 0;
  padding: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #e2e8f0 !important;        /* světle šedá */
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { font-family: Verdana, Geneva, Tahoma, sans-serif !important; }

/* bezpečnost proti bílé */
*:where(.katex, .katex-display, p, h1, h2, h3){
  background: transparent !important;
  background-color: transparent !important;
}

/* === Layout hlavního obsahu === */
.measure {
  background-color: rgba(15, 23, 42, 0.90); /* tmavý modrý podklad s průhledností */
  border-radius: 14px;
  padding-top: 2.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
  max-width: 100%; /* necháváme layout na „galerii“ */
  margin: 0 auto;
}

#origin-story,
.axiom-content {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding: 1.25rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

details summary {
  cursor: pointer;
  color: #38bdf8;
  font-weight: 500;
  margin-top: 1rem;
}
details[open] summary { margin-bottom: 0.75rem; }

.katex-display { margin-left: 0; margin-right: 0; }
h2{ margin:.25rem 0 0; font-size:clamp(1.25rem,2.2vw,1.6rem) }

/* === Galerie a figure === */
.gallery{ display:grid; gap:1.25rem; }
@media (min-width: 860px){
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery .wide{ grid-column: 1 / -1; } /* figure přes dva sloupce */
}

figure{
  margin:0;
  background:rgba(255,255,255,0.05);
  border-radius:12px;
  overflow:hidden;
}
.figure-pad{ padding:1rem; }
figure img{ display:block; width:100%; height:auto; }

figcaption{
  color:#cbd5e1;
  font-size:.95rem;
  line-height:1.45;
  padding:0 1rem 1rem;
}
.caption-title{
  color:#e2e8f0;
  font-weight:600;
  display:block;
  margin-bottom:.35rem;
}
.equation{ text-align:center; margin:.5rem 0 .25rem;

