.draft-banner {
  background: #fff4e5;
  border: 1px solid #f0c36d;
  color: #6b4b00;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 18px 0 26px;
  font-size: 0.95em;
}

.post-page img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
}

.image-caption {
  max-width: 760px;
  margin: 0.35rem auto 1.4rem;
  text-align: justify;
  text-align-last: center;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}

.score-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.94rem;
  line-height: 1.12;
}

.score-table col.rubric-col {
  width: 70%;
}

.score-table col.score-col {
  width: 15%;
}

.score-table th,
.score-table td {
  padding: 0.28rem 0.55rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.score-table thead th {
  text-align: left;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.score-table th:nth-child(2),
.score-table th:nth-child(3),
.score-table td:nth-child(2),
.score-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.score-table .score-table-model {
  display: block;
}

.score-table .score-table-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85em;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.score-table p {
  margin: 0;
}

.score-table .score-cell {
  font-weight: 650;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.score-table .score-cell.score-1 {
  background: rgba(46, 125, 50, 0.12);
  color: #0b3d1a;
}

.score-table .score-cell.score-0 {
  background: rgba(197, 34, 31, 0.12);
  color: #5a0b0a;
}

.exhibit {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  padding: 0.2rem 0.9rem;
  margin: 1rem auto;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 600px;
}

.exhibit table {
  font-size: 0.85rem;
  line-height: 1.2;
}

.table-header-small {
  font-size: 0.8rem;
}

.table-header-tiny {
  font-size: 0.7rem !important;
}

.table-header-tiny span,
.table-header-tiny strong {
  font-size: 0.7rem !important;
}

.table-header-center {
  text-align: center;
}

.exhibit summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.1rem;
  font-weight: 650;
}

.exhibit summary::-webkit-details-marker {
  display: none;
}

.exhibit summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.55rem;
  transform: translateY(-1px);
  transition: transform 160ms ease;
  color: rgba(0, 0, 0, 0.6);
}

.exhibit[open] summary::before {
  transform: rotate(90deg) translateX(1px);
}

.exhibit .exhibit-title {
  flex: 1 1 auto;
}

.exhibit .exhibit-meta {
  flex: 0 0 auto;
  font-weight: 500;
  font-size: 0.9em;
  color: rgba(0, 0, 0, 0.65);
}

.exhibit .exhibit-body {
  padding: 0.3rem 0.1rem 0.9rem;
}


/* Default table styling for legacy Google-doc export */
.content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0.9rem 0;
  font-size: 0.94rem;
  line-height: 1.12;
}

.content table td,
.content table th {
  padding: 0.28rem 0.55rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Heading hierarchy */
:root {
  --title-size: 1.7em;
  --section-h1-size: 1.4rem;
  --section-h2-size: 1.25rem;
  --section-h3-size: 1.1rem;
}

.content h1:first-of-type {
  font-size: var(--title-size);
  line-height: 1.22;
  font-weight: 700;
}

.content h1:not(:first-of-type) {
  font-size: var(--section-h1-size);
  line-height: 1.22;
  font-weight: 700;
}

.content h2 {
  font-size: var(--section-h2-size);
  line-height: 1.22;
  font-weight: 700;
}

.content h3 {
  font-size: var(--section-h3-size);
  line-height: 1.2;
  font-weight: 650;
  margin-top: 0.6rem;
}

/* Normalize exported span sizing inside headings */
.content h1 span,
.content h2 span,
.content h3 span {
  font-size: inherit !important;
  font-weight: inherit !important;
}

.intro-note {
  background: #fff4e5;
  border: 1px solid #f3d7a6;
  border-radius: 6px;
  max-width: 680px;
  margin: 24px auto;
  padding: 12px 16px;
  font-size: 12px;
  font-style: italic;
  color: #7a4c1f;
}

.example-note {
  background: #fff4e5;
  border: 1px solid #f3d7a6;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0 16px;
  font-size: 12px;
  color: #7a4c1f;
}

.caption-note {
  background: #eaf3ff;
  border: 1px solid #bfd8ff;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px auto 16px;
  font-size: 13px;
  color: #1e3a5f;
  text-align: left;
  max-width: 600px;
}

/* Force override of base post-page heading sizes */
body.post-page h1:first-of-type {
  font-size: var(--title-size) !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}

body.post-page h1:not(:first-of-type) {
  font-size: var(--section-h1-size) !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}

body.post-page h2 {
  font-size: var(--section-h2-size) !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}

body.post-page h3 {
  font-size: var(--section-h3-size) !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

/* Normalize exported span sizing inside headings */
.content h1 span,
.content h2 span {
  font-size: inherit !important;
  font-weight: inherit;
}

.content table th:nth-child(2) p,
.content table th:nth-child(3) p {
  text-align: center !important;
  margin: 0 auto;
  display: block;
}

.content table th:nth-child(2),
.content table th:nth-child(3) {
  text-align: center !important;
  vertical-align: middle;
}

/* Ensure smaller text inside example rubric tables */
.exhibit table,
.exhibit table p,
.exhibit table span {
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
}

.content p.c21 {
  max-width: 620px;
  margin: 0 auto 0.12rem !important;
  text-align: center;
  text-align-last: center;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}
.content p.c21 img {
  display: block;
  margin: 0 auto;
}

.content table td.valence {
  text-align: center;
  font-weight: 800;
  font-size: 1.08em;
  width: 72px;
  vertical-align: middle;
}

.content table td.valence span {
  font-weight: 800;
  font-size: 1.08em;
}

.content table th.valence {
  text-align: center;
}

.content table td.valence.plus {
  background: rgba(46, 125, 50, 0.12);
  color: #0b3d1a;
}

.content table td.valence.minus {
  background: rgba(197, 34, 31, 0.12);
  color: #5a0b0a;
}

.has-tooltip {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.6em;
  padding: 0;
  line-height: 0;
  vertical-align: middle;
}

.has-tooltip img {
  display: block;
}

.nested-response {
  margin: 0.5rem 0;
  padding: 0.25rem 0;
}

.nested-response summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.nested-response summary::-webkit-details-marker {
  display: none;
}

.nested-response summary::before {
  content: \"▸\";
  display: inline-block;
  margin-right: 0.4rem;
  transform: translateY(-1px);
  transition: transform 140ms ease;
  color: rgba(0, 0, 0, 0.55);
}

.nested-response[open] summary::before {
  transform: rotate(90deg) translateX(1px);
}

.nested-response .response-body {
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.35rem 0.1rem 0.1rem;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 0;
  transform: translate(8px, 0);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.8rem;
  line-height: 1.25;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  max-width: 320px;
  z-index: 10;
}

.has-tooltip:hover::after {
  opacity: 1;
}

.rubric-label {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.35rem 0 0.45rem;
}

.caption-small {
  max-width: 760px;
  margin: 0.25rem auto 1.1rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #444;
  text-align: justify;
  text-align-last: center;
}

.content table p {
  font-weight: 400;
  margin: 0;
}

.content table tr:first-child td,
.content table tr:first-child th {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

/* Score coloring for legacy tables */
.content table td.score-cell {
  font-weight: 650;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.content table td.score-cell.score-1 {
  background: rgba(46, 125, 50, 0.12);
  color: #0b3d1a;
}

.content table td.score-cell.score-0 {
  background: rgba(197, 34, 31, 0.12);
  color: #5a0b0a;
}

/* Response toggles */
.response-toggle {
  margin: 0.4rem 0 0.2rem;
}

.response-toggle summary.response-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  color: #222;
}

.response-toggle summary.response-button::-webkit-details-marker {
  display: none;
}

.response-toggle summary.response-button::before {
  content: "▸";
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 140ms ease;
  color: rgba(0, 0, 0, 0.55);
}

.response-toggle[open] summary.response-button::before {
  transform: rotate(90deg) translateX(1px);
}

.response-content {
  margin: 0.35rem 0 0.9rem;
}

.response-box {
  background: #f5edff;
  border: 1px solid #dcc7ff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin: 0.2rem 0 0.6rem;
}

/* Nested list spacing/indent inside responses */
.response-content ol {
  padding-left: 1.25rem;
  margin: 0.35rem 0;
}

.response-content ul {
  padding-left: 1.65rem;
  margin: 0.3rem 0;
}

.response-content ol + ul,
.response-content ul + ul {
  margin-top: -0.15rem;
}

.response-content li {
  margin-bottom: 0.22rem;
}

/* Centered score cells and bold numerals in legacy tables */
.content table td.score-cell {
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}

.content table td.score-cell span {
  font-weight: 700;
}
