/* css styles */

p {
  text-align: justify;
}

.responsive-img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .responsive-img {
    width: 50%;
  }
}

.program-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  border-radius: 1rem;
}

.program-time {
  font-weight: 700;
  font-size: 1.1rem;
}

.program-main {
  line-height: 1.35;
}

.program-main a {
  text-decoration: none;
}

@media (max-width: 600px) {
  .program-card {
    grid-template-columns: 1fr;
  }

  .program-time {
    font-size: 1.25rem;
  }
}

.quarto-title-meta-contents {
  font-weight: 600;
  font-size: 1.1rem;
}

.program-break {
  margin: 1.5rem 0;
  padding: 1rem;

  text-align: center;

  background: #f5f5f5;
  border-radius: 1rem;

  font-weight: 600;
}


.cell-output-display {
  overflow-x: visible !important;
}

.cell-output-display img,
.quarto-figure img,
figure img {
  max-width: 100% !important;
  height: auto !important;
}

/* Delikatne ramki wokół środowisk matematycznych */

.theorem,
.proposition,
.remark,
.corollary,
.definition,
.example {
  margin: 1.2rem 0;
  padding: 0.9rem 1.2rem;

  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-primary);
  border-radius: 6px;

  background-color: color-mix(
    in srgb,
    var(--bs-body-bg) 96%,
    var(--bs-primary) 4%
  );
}

/* Nagłówki */

.theorem-title {
  display: block;
  margin-bottom: 0.5rem;
}

.theorem-title strong {
  color: var(--bs-primary);
}

/* Bez zbędnego odstępu na końcu */

.theorem > :last-child,
.remark > :last-child,
.proposition > :last-child,
.corollary > :last-child,
.definition > :last-child,
.example > :last-child {
  margin-bottom: 0;
}

/* Dowód kończący się akapitem */
.proof > p:last-child::after {
  content: "□";
  float: right;
  margin-left: 1rem;
  font-size: 1.15em;
  font-style: normal;
}

/* Dowód kończący się innym elementem */
.proof:not(:has(> p:last-child))::after {
  content: "□";
  display: block;
  text-align: right;
  font-size: 1.15em;
  font-style: normal;
}

/* Żadnych symboli QED w uwagach */
.remark::after,
.remark p:last-child::after,
.remark > :last-child::after,
[id^="rem-"]::after,
[id^="rem-"] p:last-child::after,
[id^="rem-"] > :last-child::after {
  content: none !important;
}
