/* Set 17 — rose risk ledger: left-flush mast, medallion cards, vertical spine. Not a docs column. */
:root {
  --rose: #be185d;
  --rose-deep: #9d174d;
  --blush: #fff1f2;
  --card: #fff7f8;
  --ink: #4a0d2a;
  --text: #3f1328;
  --mute: #6b3048;
  --line: #fecdd3;
  --ok: #166534;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Georgia", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
  background: var(--blush);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: min(960px, calc(100% - 28px)); margin: 0 auto; }

.veil {
  background: #ffffff;
  border-bottom: 3px solid var(--rose);
}

.veil-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--rose-deep);
  letter-spacing: 0.02em;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-size: 13px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jump a {
  color: var(--mute);
  padding: 4px 0;
}

.jump a:hover,
.jump a:focus {
  color: var(--rose);
}

.lead {
  padding: 42px 0 10px;
}

.lead-panel {
  border-left: 8px solid var(--rose);
  background: #ffffff;
  padding: 28px 28px 26px;
}

.lead h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 14px;
}

.lead p {
  max-width: 40em;
  margin-bottom: 12px;
}

.lead p:last-child { margin-bottom: 0; }

.block { padding: 36px 0 8px; }

.block h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  color: var(--ink);
  margin-bottom: 12px;
}

.lede {
  margin-bottom: 18px;
  max-width: 44em;
}

.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.risk-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}

.medal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.risk-grid h3,
.place-trio h3,
.spine h3,
.moment h3,
.still article h3 {
  font-size: 17px;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.place-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.place-trio article {
  background: #ffffff;
  padding: 16px;
  border-top: 4px solid var(--rose);
}

.spine {
  display: grid;
  gap: 0;
}

.spine article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 0 0 20px;
  position: relative;
}

.spine article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.spine b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.board {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.board th,
.board td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.board th {
  background: var(--rose);
  color: #fff;
  font-weight: 600;
}

.board td:first-child { color: var(--rose-deep); font-weight: 600; }

.moments { display: grid; gap: 12px; }

.moment {
  background: #ffffff;
  padding: 16px 18px;
  border-right: 6px solid var(--rose);
}

.still {
  display: grid;
  gap: 12px;
}

.still article {
  background: var(--card);
  padding: 16px 18px;
  border: 1px dashed var(--rose);
}

.wrap-list {
  background: #ffffff;
  padding: 18px 22px 8px;
  border: 1px solid var(--line);
}

.wrap-list ol {
  padding-left: 1.2em;
  margin-bottom: 14px;
}

.wrap-list li { margin-bottom: 8px; }

.ask details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--rose);
  margin-bottom: 10px;
  padding: 12px 16px;
}

.ask summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ask details p { margin-top: 10px; }

.colophon {
  margin-top: 40px;
  background: var(--rose-deep);
  color: #ffe4e6;
  padding: 28px 0 22px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14.5px;
}

.colophon p { margin-bottom: 8px; max-width: 46em; }

.colophon .legal {
  margin-top: 14px;
  color: #fecdd3;
}

@media (max-width: 800px) {
  .veil-row { flex-direction: column; align-items: flex-start; }
  .jump { justify-content: flex-start; }
  .risk-grid,
  .place-trio { grid-template-columns: 1fr; }
  .lead-panel { padding: 20px 16px; }
}
