.page-body {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 4rem;
}
.pillar-back {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.pillar h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.8rem;
  color: #2c221a;
  font-family: var(--site-font-display, "Literata", "Noto Serif Devanagari", Georgia, serif);
}
.pillar-intro {
  font-size: 1.04rem;
  line-height: 1.68;
  color: #3f3127;
  margin: 0 0 1.5rem;
}
.month-toc {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0 1rem;
}
.month-toc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 34, 26, 0.18);
  background: #fffdfa;
  color: #42352b;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.month-toc-pill:hover {
  background: #fff5ea;
  border-color: #b5451d;
  color: #b5451d;
}
.stream-card {
  background: #fffdfa;
  border: 1px solid rgba(44, 34, 26, 0.14);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(44, 34, 26, 0.04);
  padding: 1.4rem;
  margin-bottom: 1.85rem;
  scroll-margin-top: 5.5rem;
}
.stream-card.highlight {
  border-color: rgba(181, 69, 29, 0.38);
  background: #fffaf3;
}
.stream-title {
  font-size: 1.22rem;
  margin: 0 0 0.6rem;
  color: #8a3414;
  font-family: var(--site-font-display, "Literata", "Noto Serif Devanagari", Georgia, serif);
  border-bottom: 1px solid rgba(181, 69, 29, 0.15);
  padding-bottom: 0.4rem;
}
.stream-desc {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #4a3c31;
  margin: 0 0 1.1rem;
}
.text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 680px) {
  .text-list { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}
.text-list li {
  padding: 0.75rem 0.95rem;
  background: #fdfaf5;
  border: 1px solid rgba(44, 34, 26, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.text-list li strong { font-weight: 600; }
.text-list li strong a {
  color: #b5451d;
  text-decoration: none;
  font-size: 1.01rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.text-list li span.desc {
  font-size: 0.87rem;
  line-height: 1.48;
  color: #554437;
}
.text-list li span.desc a { color: #b5451d; }
html[data-theme="dark"] .stream-card {
  background: #241e1a;
  border-color: rgba(232, 220, 207, 0.12);
}
html[data-theme="dark"] .stream-card.highlight {
  background: #2a221c;
  border-color: rgba(240, 149, 114, 0.35);
}
html[data-theme="dark"] .stream-title,
html[data-theme="dark"] .pillar h1 { color: #f5ebe1; }
html[data-theme="dark"] .stream-desc,
html[data-theme="dark"] .pillar-intro,
html[data-theme="dark"] .text-list li span.desc { color: #d1c2b4; }
html[data-theme="dark"] .text-list li {
  background: #1e1916;
  border-color: rgba(232, 220, 207, 0.1);
}
html[data-theme="dark"] .month-toc-pill {
  background: #241e1a;
  border-color: rgba(232, 220, 207, 0.15);
  color: #e8dccf;
}
.matrix-wrapper {
  overflow-x: auto;
  margin: 0.4rem 0 1.5rem;
  background: #fffdfa;
  border: 1px solid rgba(44, 34, 26, 0.15);
  border-radius: 10px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.48;
  text-align: left;
}
.matrix-table th, .matrix-table td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(44, 34, 26, 0.1);
  vertical-align: top;
}
.matrix-table th:first-child,
.matrix-table td:first-child {
  white-space: nowrap;
  width: 1%;
}
.matrix-table th {
  background: #f6ecdc;
  color: #2c221a;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid rgba(181, 69, 29, 0.3);
}
html[data-theme="dark"] .matrix-wrapper {
  background: #241e1a;
  border-color: rgba(232, 220, 207, 0.12);
}
html[data-theme="dark"] .matrix-table th {
  background: #2a221c;
  color: #f5ebe1;
}
html[data-theme="dark"] .text-list li a,
html[data-theme="dark"] .text-list li span.desc a { color: #f0a070; }
html[data-theme="dark"] .month-toc-pill:hover {
  background: #332820;
  border-color: #f0a070;
  color: #f0a070;
}
