/* The counted rarity scale (FT3, 17 Nov 2026): partials/rarity_scale.php. Every class starts .rar-.
   The look of the example page variety-new.html (deep look of 16 Nov 2026). */
.rar h2 { margin-bottom: .45rem; }
.rar-head { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.rar-mark { font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.rar-mark-sm { font-size: 1.05rem; letter-spacing: 0; }
.rar-count { font-size: .96rem; font-weight: 600; color: var(--ink); }
.rar-line { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.rar-line .rar-count { font-size: .9rem; font-weight: 500; }
.rar-scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; margin: .75rem 0 .3rem; list-style: none; padding: 0; }
.rar-scale li { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--row); border-radius: 6px; padding: .28rem 0; font-variant-numeric: tabular-nums; }
.rar-scale li.on { background: var(--navy); color: var(--card); }
.rar-ends { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
/* what the count is made of (since 20 Nov 2026): shown only where it is more than the notes on the register */
.rar-what { list-style: none; margin: .75rem 0 0; padding: .55rem .7rem; background: var(--row); border-radius: 10px; display: grid;
  grid-template-columns: auto minmax(0, 1fr); gap: .3rem .6rem; font-size: .88rem; line-height: 1.4; color: var(--ink); }
.rar-what li { display: contents; }
.rar-what b { color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.rar-what small { display: block; font-size: .8rem; color: var(--muted); }
.rar-why { font-size: .86rem; line-height: 1.5; color: var(--ink); margin-top: .6rem; }
.rar-more { margin-top: .5rem; font-size: .86rem; }
.rar-more summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rar-more summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rar-more ul { list-style: none; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin-top: .2rem; color: var(--muted); }
.rar-more ul b { color: var(--navy); }
.rar-rules-h { margin: .7rem 0 .2rem; font-weight: 700; color: var(--ink); }
.rar-more ul.rar-rules { display: block; list-style: disc; padding-left: 1.1rem; margin-top: 0; }
.rar-more ul.rar-rules li { margin: .2rem 0; line-height: 1.45; }
/* the dark look: the generated rule keeps the navy fill, which hardly shows on a dark card; the light blue does */
html:root[data-theme="dark"] .rar-scale li.on { background: var(--accent); color: var(--card); }
