/* /comet-rating (cometut/rating_pages.py): page-scoped, loaded only there. */
.cr-page { display: grid; gap: 28px; max-width: 52rem; margin: 0 auto; padding: 0 16px 40px; }
.cr-page h2 { margin: 0 0 10px; font-size: 1.125rem; }
.cr-page p { margin: 0 0 10px; line-height: 1.6; }
.cr-lede { font-size: 1.0625rem; }
.cr-note { color: var(--muted); font-size: 0.8125rem; }
.cr-list, .cr-parts, .cr-ladder { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cr-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.cr-list .glyph { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.cr-eg { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.cr-eg-card { flex: none; font-size: 1rem; }
.cr-eg-read { flex: 1 1 18rem; display: grid; gap: 12px; min-width: 0; }
.cr-eg-pill { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.cr-eg-role { font-weight: 700; }
.cr-eg-role sup { color: var(--gold); }
.cr-parts li { display: grid; grid-template-columns: 5rem 1fr; gap: 10px; line-height: 1.5; }
.cr-parts b { color: var(--muted); font-weight: 600; }
.cr-ladder { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.cr-ladder li { display: flex; align-items: center; gap: 10px; }
.cr-ladder + p { margin-top: 16px; }
.cr-ladder .tier { display: inline-grid; place-items: center; min-width: 2.25rem; padding: 4px 8px; border-radius: 8px; font-style: normal; font-weight: 800; }
/* The build animation: each step lights in turn, then the ring and the pill fill. The resting state is the finished one. */
.cr-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.cr-flow li { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); border-radius: 12px; text-align: center; }
.cr-flow .glyph { width: 24px; height: 24px; color: var(--gold); }
.cr-flow small { color: var(--muted); font-size: 0.75rem; }
.cr-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.cr-ring circle { fill: none; stroke: var(--line, rgba(255, 255, 255, .14)); stroke-width: 4; }
.cr-ring .cr-arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: var(--v) 100; }
@media (max-width: 640px) { .cr-flow { grid-template-columns: 1fr 1fr; } .cr-flow .cr-end { grid-column: 1 / -1; } .cr-parts li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: no-preference) {
  .cr-flow li { animation: cr-in .5s ease-out both; animation-delay: calc(var(--i) * .55s); }
  .cr-flow .cr-arc { animation: cr-fill 1.2s ease-out both; animation-delay: 2.2s; }
  .cr-flow .cr-end .cs-items { animation: cr-in .5s ease-out both; animation-delay: 3s; }
}
@keyframes cr-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes cr-fill { from { stroke-dasharray: 0 100; } }
/* Cards size their type in cqw of their own width: give every card here a width, and the loose pills a size, or the type falls back to the viewport. */
.cr-eg-card, .cr-eg-card .item-card { width: 190px; }
.cr-page .card-strip { position: static; transform: none; }
.cr-page .cs-items { font-size: 1.25rem; }
.cr-flow .cr-end .cs-items { font-size: 1rem; }
