/* Hallmark · shape: index-first and long document · genre: editorial · theme: WristCampus · signature: the sync guide on the index and a course table inside the article · v2.0.0 */
/* Critique: keep the article title easy to scan and show every table field at 320px. */
/* Editorial articles keep their full text and reference tables visible in the reading flow. */
:root {
  --wb-paper: #f4f5f2;
  --wb-ink: #202723;
  --wb-muted: #526058;
  --wb-line: #d4ded5;
  --wb-green: #294c3c;
  --wb-mint: #dff3e8;
  --wb-on-green: #f4faf6;
  --wb-font:
    "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

html:has(.wc-blog),
body:has(.wc-blog) {
  overflow-x: clip;
}
body:has(.wc-blog) {
  margin: 0;
}
.wc-blog {
  min-height: 100vh;
  background: var(--wb-paper);
  color: var(--wb-ink);
  color-scheme: light;
  font-family: var(--wb-font);
  font-size: 1rem;
  line-height: 1.6;
}
.wc-blog *,
.wc-blog *::before,
.wc-blog *::after {
  box-sizing: border-box;
}
.wc-blog :is(h1, h2, h3) {
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.16;
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
  margin: 0;
}
.wc-blog a {
  color: var(--wb-green);
  text-underline-offset: 0.22em;
}
.wc-blog a:hover {
  text-decoration-thickness: 0.12em;
}
.wc-blog a:active {
  text-decoration-style: double;
}
.wc-blog :focus-visible {
  outline: 2px solid var(--wb-green);
  outline-offset: 4px;
}
.wb-skip {
  position: absolute;
  inset: 0.75rem auto auto 1rem;
  transform: translateY(-180%);
}
.wb-skip:focus {
  transform: none;
  background: var(--wb-paper);
  padding: 0.45rem 0.75rem;
  z-index: 2;
}
.wb-container {
  width: min(100% - clamp(2rem, 8vw, 8rem), 70rem);
  margin-inline: auto;
}
.wb-header {
  border-bottom: 1px solid var(--wb-line);
}
.wb-header-row,
.wb-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding-block: 1.1rem;
}
.wb-header nav,
.wb-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}
.wb-header a,
.wb-footer a {
  text-decoration: none;
}
.wb-header a:is(:hover, [aria-current]),
.wb-footer a:hover {
  text-decoration: underline;
}
.wb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.wb-brand img {
  border-radius: 0.4rem;
}
.wb-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.wb-index-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  letter-spacing: -0.055em;
}
.wb-index-hero p,
.wb-article-header p {
  margin: 1rem 0 0;
  max-width: 39rem;
  color: var(--wb-muted);
  font-size: 1.125rem;
}
.wb-feature {
  background: var(--wb-green);
  color: var(--wb-on-green);
  padding: clamp(1.4rem, 4vw, 2.65rem);
  border-radius: 0.65rem;
}
.wb-feature h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  max-width: 20ch;
}
.wb-feature a {
  color: var(--wb-mint);
  display: inline-block;
  margin-top: 1.1rem;
}
.wb-feature a:focus-visible {
  outline-color: var(--wb-mint);
}
.wb-index h2 {
  font-size: 1.45rem;
  padding-bottom: 0.8rem;
}
.wb-index > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-index li {
  border-top: 1px solid var(--wb-line);
}
.wb-index li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 2rem;
  color: inherit;
  padding-block: 1.25rem;
  text-decoration: none;
}
.wb-index li a:hover h3 {
  color: var(--wb-green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.wb-index h3 {
  font-size: 1.25rem;
}
.wb-index li p {
  margin: 0;
  color: var(--wb-muted);
}
.wb-article-header {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--wb-line);
}
.wb-article-header h1 {
  font-size: clamp(2.2rem, 5.25vw, 4.35rem);
  letter-spacing: -0.045em;
  max-width: 21ch;
}
.wc-blog[lang="zh-CN"] .wb-article-header h1 {
  max-width: 22em;
  letter-spacing: -0.035em;
}
.wb-back {
  display: inline-block;
  margin-bottom: 1rem;
}
.wb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 43rem);
  justify-content: space-between;
  gap: 2rem clamp(2rem, 4vw, 4rem);
  padding-top: 2rem;
}
.wb-contents {
  align-self: start;
}
.wb-contents h2 {
  font-size: 1rem;
}
.wb-contents ul,
.wb-related ul {
  padding: 0;
  margin: 0.85rem 0 0;
  list-style: none;
}
.wb-contents li + li,
.wb-related li + li {
  margin-top: 0.55rem;
}
.wb-prose section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1rem;
}
.wb-prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}
.wb-prose p,
.wb-prose ul {
  margin-block: 0.8rem 0;
}
.wb-prose p {
  max-width: 66ch;
  text-wrap: pretty;
}
.wb-prose li + li {
  margin-top: 0.4rem;
}
.wb-table {
  overflow-x: auto;
  margin-block: 1rem;
  border: 1px solid var(--wb-line);
  border-radius: 0.45rem;
}
.wb-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.wb-table th,
.wb-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}
.wb-table th {
  font-weight: 700;
}
.wb-cell-label {
  display: none;
}
.wb-table tbody tr + tr {
  border-top: 1px solid var(--wb-line);
}
.wb-table thead {
  color: var(--wb-green);
  background: var(--wb-mint);
}
.wb-related {
  border-top: 1px solid var(--wb-line);
  padding-top: 1.25rem;
}
.wb-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--wb-line);
}

@media (max-width: 46rem) {
  .wb-index-hero,
  .wb-article-layout,
  .wb-index li a {
    grid-template-columns: minmax(0, 1fr);
  }
  .wb-article-layout {
    padding-top: 1.4rem;
  }
  .wb-contents {
    border-bottom: 1px solid var(--wb-line);
    padding-bottom: 1rem;
  }
}
@media (max-width: 34rem) {
  .wb-table table,
  .wb-table tbody,
  .wb-table tbody tr,
  .wb-table th[scope="row"] {
    display: block;
  }
  .wb-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: clip;
    clip-path: inset(50%);
  }
  .wb-table th[scope="row"] {
    color: var(--wb-green);
    background: var(--wb-mint);
  }
  .wb-table td {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0.55rem;
    padding-block: 0.35rem;
    overflow-wrap: break-word;
  }
  .wb-cell-label {
    display: block;
    color: var(--wb-muted);
  }
}
