/*
Theme Name: Minimalio Child
Template: minimalio
Description: Child theme for Quantum Governance / Museums 3.0 experiment.
*/

/* Experiment page layout */
.soas-experiment .soas-experiment-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Main title and intro */
.soas-experiment .entry-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.soas-experiment .entry-header {
  margin-bottom: 1rem;
}

/* Sidebar styling */
.soas-experiment .soas-sidebar {
  font-size: 0.95rem;
  line-height: 1.6;
}

.soas-experiment .soas-sidebar .widget-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* Make any legacy iframes calm */
.soas-experiment iframe {
  background: #fafafa;
}

/* Caption under main narrative */
.qword-caption {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* Qword / Museums 3.0 demo layout */
.qword-demo {
  border-top: 1px solid #eee;
  padding: 2.5rem 1.5rem 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .qword-demo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Histogram section */
.qword-histogram {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 0.9rem 1.1rem 1.4rem 1.1rem;
  background: #f8fafc;
}

.qword-hist-labels {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.qword-hist-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.qword-hist-subtitle {
  font-size: 0.8rem;
  color: #666;
}

.qword-hist-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  height: 130px;
}

.qword-hist-bar {
  flex: 1;
  background: linear-gradient(to top, #d1d5db, #e5e7eb);
  position: relative;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease, background 0.4s ease, transform 0.2s ease;
}

.qword-hist-bar::after {
  content: attr(title);
  position: absolute;
  bottom: -1.3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #555;
}

.qword-hist-bar::before {
  content: attr(data-prob);
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #444;
}

.qword-hist-bar:hover {
  transform: translateY(-3px);
  background: linear-gradient(to top, #60a5fa, #bfdbfe);
}

.qword-hist-explainer {
  grid-column: 1 / -1;
  max-width: 520px;
  font-size: 0.8rem;
  color: #666;
  margin-top: -0.4rem;
}

/* Cases row */
.qword-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-self: stretch;
}

.qword-case {
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  padding: 1.2rem 1.4rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.qword-case h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.qword-case p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
}

.qword-case strong {
  font-weight: 600;
}

/* Field strength bar with colour language:
   greenish = towards return/shared custody
   amber   = mixed/indecisive
   violet  = institutional framing / retain
*/
.qword-model-parthenon,
.qword-model-benin {
  margin-top: 0.7rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, #bbf7d0, #22c55e);
}

/* State-based accents (dominant 00 vs 11, etc.) */
.qword-case.state-P-00,
.qword-case.state-B-00 {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.qword-case.state-P-01,
.qword-case.state-B-01 {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

.qword-case.state-P-10,
.qword-case.state-B-10 {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25);
}

.qword-case.state-P-11,
.qword-case.state-B-11 {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.28);
}

/* Forms on the page (Parthenon and Benin) */
#parthenon-vote-form,
#benin-vote-form {
  max-width: 480px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 2rem 0;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
}

#parthenon-vote-form label,
#benin-vote-form label {
  font-size: 0.9rem;
  color: #444;
}

#parthenon-vote-form select,
#parthenon-vote-form textarea,
#benin-vote-form select,
#benin-vote-form textarea {
  margin-top: 0.25rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  width: 100%;
}

#parthenon-vote-form button,
#benin-vote-form button {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

#parthenon-vote-form button:hover,
#benin-vote-form button:hover {
  background: #374151;
}