/* 实修引导 (chuancheng/templates/wensi/shixiu.html): six bands of practice
   cards, each card a practice and the courses under it. Same ink and paper as
   the quiz pages (curated-quiz.css). */

.sx {
  --sx-ink: #343b37;
  --sx-muted: #757b72;
  --sx-line: #e1e2d9;
  --sx-green: #3e6957;
  --sx-paper: #fafaf5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 28px 64px;
  color: var(--sx-ink);
  font-size: 16px;
  line-height: 1.8;
}
.sx a {
  color: var(--sx-green);
}
.sx__head {
  padding: 12px 0 26px;
  border-bottom: 1px solid var(--sx-line);
  margin-bottom: 22px;
}
.sx__eyebrow {
  color: var(--sx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
}
.sx h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 10px 0 16px;
}
.sx__intro {
  color: #60695f;
  max-width: 44em;
  margin: 0 0 8px;
}
.sx__muted {
  color: var(--sx-muted);
  font-size: 14px;
  margin: 0;
}

/* The bands, as anchors: the page is long, and most readers come for one. */
.sx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.sx-tabs a {
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}
.sx-tabs a:hover {
  border-color: var(--sx-green);
}

.sx-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}
.sx-section h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
}
.sx-section__blurb {
  color: #60695f;
  margin: 0 0 16px;
}

.sx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.sx-card {
  background: var(--sx-paper);
  border: 1px solid var(--sx-line);
  border-radius: 10px;
  padding: 16px 18px 12px;
}
.sx-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.sx-card__note {
  color: var(--sx-muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.sx-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sx-links li + li {
  border-top: 1px dashed var(--sx-line);
}
.sx-links a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--sx-ink);
}
.sx-links a:hover .sx-links__text {
  color: var(--sx-green);
  text-decoration: underline;
}
.sx-links__text {
  font-size: 15px;
  line-height: 1.5;
}
.sx-links__meta {
  grid-column: 2;
  color: var(--sx-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* What the course is to the practice. 带修 is what the page is for, so it
   is the one filled in. */
.sx-role {
  grid-row: span 2;
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 6px;
  margin-top: 1px;
  color: #6b6b5a;
  white-space: nowrap;
}
.sx-role--带修 {
  background: var(--sx-green);
  border-color: var(--sx-green);
  color: #fff;
}
.sx-role--念诵 {
  color: var(--sx-green);
}
.sx-role--讲解,
.sx-role--辅导 {
  color: #8a5a2b;
}
.sx-mifa {
  color: #8a3b12;
  font-size: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 3px;
}

.sx__footnote {
  border-top: 1px solid var(--sx-line);
  color: var(--sx-muted);
  font-size: 13px;
  padding-top: 18px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .sx {
    padding: 20px 16px 48px;
  }
  .sx-grid {
    grid-template-columns: 1fr;
  }
}
