/* 公告折叠项（notice-fold.js）：一行一个标题，点开看详情。颜色走页面令牌，深浅主题自动跟。 */
.nf-item {
  counter-increment: nf;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel) 92%, var(--soft, var(--line)));
}
.nf-item + .nf-item { margin-top: 8px }
.nf-item + p, p + .nf-item { margin-top: 14px }
.nf-item > .nf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nf-item > .nf-head::-webkit-details-marker { display: none }
.nf-item > .nf-head::before {
  content: counter(nf);
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--green, var(--accent));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
  color: var(--on-accent, #fff);
  font-size: 13px;
  font-weight: 800;
}
.nf-item > .nf-head::after {
  content: "+";
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.nf-item[open] > .nf-head::after { content: "−" }
.nf-item > .nf-head:hover { color: var(--green, var(--accent)) }
.nf-item > .nf-head:focus-visible { outline: 2px solid var(--green, var(--accent)); outline-offset: 2px }
.nf-body {
  padding: 0 14px 12px 46px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .nf-item > .nf-head { gap: 8px; padding: 9px 10px; font-size: 14px }
  .nf-body { padding: 0 12px 12px 12px; font-size: 13.5px }
}
