/* Styles for the 2-generator (α, R) presentation and interactive plate construction */

.generator-subnote {
  font-weight: 400;
  color: #5b6661;
  font-size: 0.86em;
  text-transform: none;
}

.math-case {
  text-transform: none !important;
  font-variant: normal;
}

.plate-recon-layer[hidden] {
  display: none !important;
}

.recon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(38, 51, 47, 0.12);
  text-transform: none;
  letter-spacing: normal;
}

.recon-toolbar-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #55625d;
  margin-right: 0.2rem;
}

.recon-btn {
  appearance: none;
  border: 1px solid rgba(38, 51, 47, 0.22);
  background: #fbf9f3;
  color: #26332f;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.recon-btn:hover {
  border-color: #7c2d23;
  background: #f5ede8;
}

.recon-btn.is-active {
  background: #7c2d23;
  border-color: #7c2d23;
  color: #ffffff;
  font-weight: 600;
}

.recon-status {
  margin: 0.42rem 0 0;
  font-size: 0.82rem;
  line-height: 1.42;
  color: #3d4b46;
  text-transform: none;
  letter-spacing: normal;
}

/* SVG reconstruction overlay styling */
.recon-6centre-ring {
  fill: rgba(124, 45, 35, 0.08);
  stroke: #7c2d23;
  stroke-width: 2.2;
  stroke-dasharray: 4 3;
}

.recon-midpoint-connector {
  stroke: rgba(124, 45, 35, 0.55);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.recon-corner-dot {
  fill: #7c2d23;
  stroke: #f7f4ec;
  stroke-width: 2;
}

.recon-coxeter-chamber {
  fill: rgba(124, 45, 35, 0.13);
  stroke: rgba(124, 45, 35, 0.55);
  stroke-width: 1.5;
}

.recon-axis--conjugate,
.recon-axis--q,
.recon-axis--p {
  opacity: 0.88;
}

.recon-translation-halo {
  fill: none;
  stroke: rgba(247, 244, 236, 0.92);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recon-translation-arrow {
  fill: none;
  stroke: #1f5a7a;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recon-label {
  font-size: 15px;
}

.recon-label--muted {
  font-size: 13px;
  opacity: 0.85;
}

/* Derived words table inside Presentation */
.presentation-derived-words {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(247, 244, 236, 0.7);
  border: 1px solid rgba(38, 51, 47, 0.14);
  border-radius: 8px;
  font-size: 0.85rem;
}

.presentation-derived-words > summary {
  cursor: pointer;
  font-weight: 600;
  color: #26332f;
}

.derived-words-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.derived-words-table th,
.derived-words-table td {
  text-align: left;
  padding: 0.3rem 0.45rem;
  border-bottom: 1px solid rgba(38, 51, 47, 0.1);
  text-transform: none;
}

.derived-words-table th {
  font-weight: 600;
  color: #4b5954;
}

/* Two-generator mathematical explanation cards */
.two-generator-explainer {
  margin: 2rem 0 1.5rem;
}

.two-generator-explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.25rem;
}

.two-generator-card {
  background: #fbf9f4;
  border: 1px solid rgba(38, 51, 47, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.two-generator-card h2 {
  margin: 0.2rem 0 0.65rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

.two-generator-card p {
  margin: 0.55rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.two-generator-bullets {
  margin: 0.5rem 0 0.65rem 1.2rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.two-generator-bullets li {
  margin-bottom: 0.3rem;
}

.two-generator-verification {
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(38, 51, 47, 0.12);
  font-size: 0.84rem !important;
  color: #495752;
}

.two-by-two-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  background: #ffffff;
  border: 1px solid rgba(38, 51, 47, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.two-by-two-grid th,
.two-by-two-grid td {
  border: 1px solid rgba(38, 51, 47, 0.14);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.two-by-two-grid thead th {
  background: #f3efe6;
  font-weight: 600;
}

.two-by-two-grid tbody th {
  background: #f8f5ed;
  font-weight: 600;
}

.two-by-two-grid small {
  color: #586560;
  font-weight: 400;
}

@media (max-width: 620px) {
  .recon-toolbar {
    gap: 0.3rem;
  }
  .recon-btn {
    font-size: 0.74rem;
    padding: 0.22rem 0.5rem;
  }
  .two-generator-card {
    padding: 1rem;
  }
}
