table {
  margin: 0 auto;
  width: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-collapse: collapse;
  text-align: center;
}

@media screen and (max-width: 768px) {
  table {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }
}

.red-text {
  color: rgb(255, 0, 0);
}

.green-text {
  color: rgb(0, 255, 0);
}

.blue-text {
  color: rgb(0, 0, 255);
}

.white-text {
  color: #edeae0;
}

.black-text {
  color: black;
}

.grey-text {
  color: rgb(150, 150, 150);
}

.matrice {
  font-size: 3em;
  text-align: center;
  text-decoration: underline;
  overflow-wrap: break-word;
  word-break: break-word;
}

details>summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-left: 24px;
}

details>summary::before {
  display: inline-block;
  content: '▶';
  position: relative;
  left: 0;
  transform: rotate(0);
  transition: transform 0.2s;
}

details[open]>summary::before {
  transform: rotate(90deg);
}

.welcome-title {
  font-size: 12vw;
  text-align: center;
  font-weight: bold;
  letter-spacing: 8px;
  margin: 25vh auto;
}

.welcome-title2 {
  font-size: 12vw;
  text-align: center;
  font-weight: bold;
  letter-spacing: 4px;
  margin: 25vh auto;
}

.family {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
}

@media screen and (max-width: 768px) {
  .family {
    grid-template-columns: 1fr 1fr;
  }
}

.theorem {
  text-align: center;
  font-size: 7vw;
  text-shadow: 0px 0px 10px;
}

.author {
  font-size: large;
  margin: 2em auto;
}

.written {
  text-align: right;
  margin: 2em auto;
}

.definizer {
  margin: 32px auto;
}

#ok-core-definitions .definizer,
#monoa-polyz-definitions .definizer {
  margin: 32px auto;
}

.definizer-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  justify-items: center;
  margin: 32px auto;
}

#ok-core-definitions .definizer-2,
#monoa-polyz-definitions .definizer-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  justify-items: center;
}

@media screen and (max-width: 768px) {
  .definizer-2 {
    grid-template-columns: 1fr;
  }

  #ok-core-definitions .definizer-2,
  #monoa-polyz-definitions .definizer-2 {
    grid-template-columns: 1fr;
  }
}

.rappel {
  font-size: x-small;
  opacity: 80%;
}

.hype-phrase {
  text-align: center;
  font-size: 2em;
}

.info {
  margin: 32px;
}

.triplet-rows th,
.triplet-rows td {
  padding: 8px;
}

@media screen and (max-width: 768px) {

  .triplet-rows th,
  .triplet-rows td {
    padding: 6px;
  }
}

.spaced-list li {
  margin-bottom: 8px;
  line-height: normal;
}

.dialogue-scene {
  max-width: 720px;
  margin: 40px auto;
  line-height: 1.5;
}

.dialogue-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.dialogue-line--right {
  flex-direction: row-reverse;
  text-align: right;
}

.dialogue-speaker {
  flex-shrink: 0;
}

.dialogue-text {
  flex: 1;
  min-width: 0;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1em 2em;
  margin: 1em 0;
}

.taxonomy-grid dt {
  margin: 0 0 0.35em;
}

.taxonomy-grid dd {
  margin: 0;
}

.typologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
  max-width: 1200px;
}

.typology-card {
  border: 1px solid var(--table-border, var(--text-color));
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(var(--text-color-rgb), 0.04);
}

.typology-card--wide {
  grid-column: 1 / -1;
}

.typology-card-title {
  margin: 0 0 8px;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.35;
}

.typology-card-main {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.4;
}

.typology-card-sub {
  margin: 6px 0 0;
  font-size: 0.85em;
  opacity: 0.75;
  line-height: 1.45;
}

.typology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.typology-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--table-border, var(--text-color));
  border-radius: 999px;
  font-size: 0.88em;
}

.typology-meters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.typology-meter {
  display: grid;
  grid-template-columns: minmax(7em, 38%) 1fr 2.8em;
  align-items: center;
  gap: 8px;
  font-size: 0.82em;
}

.typology-meter-label {
  text-align: left;
  line-height: 1.2;
}

.typology-meter-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(var(--text-color-rgb), 0.12);
  overflow: hidden;
}

.typology-meter-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--text-color);
  opacity: 0.85;
}

.typology-meter-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.typology-dims {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.typology-dim {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.82em;
}

.typology-dim-left {
  text-align: right;
  line-height: 1.25;
}

.typology-dim-right {
  text-align: left;
  line-height: 1.25;
}

.typology-dim-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.85;
  font-size: 0.95em;
}

@media screen and (max-width: 480px) {
  .typology-meter {
    grid-template-columns: 1fr 2.5em;
    grid-template-rows: auto auto;
  }

  .typology-meter-label {
    grid-column: 1 / -1;
  }

  .typology-meter-track {
    grid-column: 1;
  }

  .typology-meter-value {
    grid-column: 2;
    grid-row: 2;
  }

  .typology-dim {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .typology-dim-left,
  .typology-dim-right {
    text-align: center;
  }
}

.thesis {
  margin: 32px auto;
  max-width: 1000px;
  padding: 18px 22px;
  text-align: center;
  white-space: normal;
  line-height: 1.6;
  border-radius: 24px;
  background: rgba(127, 127, 127, 0.08);
}

.thx {
  font-weight: bold;
}