/* Layout: a compact title band, then one archive ledger that owns the page; supporting lists sit below it.
   Every rule is scoped to .rsm-top so the block can sit inside any theme. */
.rsm-top {
  /* Layout follows the space the theme gives the archive, not the window: a sidebar can narrow it a lot. */
  container: rsm / inline-size;
  --rsm-ink: #17120f;
  --rsm-ink-soft: #5c5450;
  --rsm-paper: #f3f1ee;
  --rsm-sheet: #ffffff;
  --rsm-line: #d9d4ce;
  --rsm-red: #b5121b;
  --rsm-red-deep: #8d0d14;
  --rsm-gold: #c9a24a;
  --rsm-gold-ink: #6d5213;
  --rsm-green-ink: #1c5e41;
  --rsm-tint: #fbeeee;
  --rsm-display: "Barlow Condensed", "Arial Narrow", "Hiragino Sans", sans-serif;
  --rsm-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  background: var(--rsm-paper);
  color: var(--rsm-ink);
  font-family: var(--rsm-body);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.rsm-top *, .rsm-top *::before, .rsm-top *::after { box-sizing: border-box; }
.rsm-top [hidden] { display: none !important; }
/* The doubled class outranks theme rules such as Cocoon's ".article h2" without !important. */
.rsm-top.rsm-top h1, .rsm-top.rsm-top h2, .rsm-top.rsm-top h3, .rsm-top.rsm-top h4 { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.rsm-top.rsm-top p, .rsm-top.rsm-top ul, .rsm-top.rsm-top ol, .rsm-top.rsm-top li { margin: 0; padding: 0; }
.rsm-top.rsm-top ul, .rsm-top.rsm-top ol { list-style: none; }
.rsm-top.rsm-top tr { background: none; }
/* Cocoon inserts its table of contents before the first h2, which is inside this block. */
.rsm-top.rsm-top .toc { display: none; }
.rsm-top button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
.rsm-top a { color: inherit; }
.rsm-top :focus-visible { outline: 3px solid var(--rsm-gold); outline-offset: 2px; }
.rsm-top .rsm-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.rsm-top .rsm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* Title band */
.rsm-top .rsm-hero { background: var(--rsm-ink); color: #fff; }
.rsm-top .rsm-hero .rsm-wrap { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 48px; align-items: end; padding-block: 28px 22px; }
.rsm-top .rsm-brand { font-family: var(--rsm-display); font-size: 18px; font-weight: 600; letter-spacing: .22em; color: var(--rsm-gold); }
.rsm-top .rsm-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.2; letter-spacing: .01em; text-wrap: balance; }
.rsm-top .rsm-lede { font-size: 15px; color: #dcd7d2; max-width: 34em; }
/* Three ring ropes close the band */
.rsm-top .rsm-ropes { display: block; height: 11px; background: linear-gradient(var(--rsm-red) 0 3px, var(--rsm-ink) 3px 4px, #fff 4px 7px, var(--rsm-ink) 7px 8px, var(--rsm-gold) 8px 11px); }

/* Archive */
.rsm-top .rsm-archive { padding-block: 24px 44px; }
.rsm-top .rsm-kicker { font-family: var(--rsm-display); font-size: 15px; font-weight: 700; letter-spacing: .16em; color: var(--rsm-red); }
.rsm-top .rsm-archive-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 12px; }
.rsm-top .rsm-archive-head h2 { font-size: 22px; font-weight: 900; line-height: 1.3; }

.rsm-top .rsm-picker { background: var(--rsm-sheet); border: 1px solid var(--rsm-line); border-radius: 4px 4px 0 0; }
.rsm-top .rsm-decades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--rsm-line); }
.rsm-top .rsm-decades button { min-height: 46px; padding: 6px 4px; font-family: var(--rsm-display); font-size: 18px; font-weight: 600; letter-spacing: .03em; color: var(--rsm-ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rsm-top .rsm-decades button:hover { color: var(--rsm-ink); background: var(--rsm-paper); }
.rsm-top .rsm-decades button[aria-pressed="true"] { color: var(--rsm-red); border-bottom-color: var(--rsm-red); }
.rsm-top .rsm-years { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; padding: 10px; }
.rsm-top .rsm-year { position: relative; min-height: 44px; font-family: var(--rsm-display); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--rsm-ink-soft); border-radius: 3px; }
.rsm-top .rsm-year:hover { background: var(--rsm-paper); color: var(--rsm-ink); }
.rsm-top .rsm-year.has-data { color: var(--rsm-ink); font-weight: 700; }
.rsm-top .rsm-year.has-data::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 3px; margin-left: -7px; background: var(--rsm-red); }
.rsm-top .rsm-year[aria-current="true"] { background: var(--rsm-red); color: #fff; font-weight: 700; }
.rsm-top .rsm-year[aria-current="true"]::after { background: #fff; }
.rsm-top .rsm-legend { padding: 0 12px 10px; font-size: 13px; color: var(--rsm-ink-soft); }
.rsm-top .rsm-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--rsm-red); }

/* Year bar and month ribbon stay in reach while a long list scrolls */
.rsm-top .rsm-sticky { position: sticky; top: calc(var(--rsm-sticky-top, 0px) + env(safe-area-inset-top, 0px)); z-index: 5; }
.rsm-top .rsm-yearbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--rsm-ink); color: #fff;
}
.rsm-top .rsm-step { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 88px; min-height: 44px; padding-inline: 10px; font-family: var(--rsm-display); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid #70675f; border-radius: 3px; }
.rsm-top .rsm-step:hover:not(:disabled) { background: #fff; color: var(--rsm-ink); }
.rsm-top .rsm-step:disabled { opacity: .45; cursor: default; }
.rsm-top .rsm-yearbar-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 12px; text-align: center; min-width: 0; }
.rsm-top .rsm-yearbar-title h3 { font-family: var(--rsm-display); font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rsm-top .rsm-yearbar-title p { font-size: 13px; color: #dcd7d2; }

/* Twelve-month ribbon: one tick per event */
.rsm-top .rsm-ribbon { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--rsm-sheet); border-inline: 1px solid var(--rsm-line); border-bottom: 1px solid var(--rsm-line); }
.rsm-top .rsm-ribbon button, .rsm-top .rsm-ribbon span.rsm-empty { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 44px; padding: 6px 0 5px; font-family: var(--rsm-display); font-size: 14px; font-weight: 600; color: #6f6661; }
.rsm-top .rsm-ribbon button { color: var(--rsm-ink); }
.rsm-top .rsm-ribbon button:hover { background: var(--rsm-tint); }
.rsm-top .rsm-ticks { display: flex; gap: 2px; height: 8px; }
.rsm-top .rsm-ticks b { display: block; width: 4px; height: 8px; background: var(--rsm-red); }
.rsm-top .rsm-ticks b.is-nxt-ple { background: var(--rsm-gold); }
.rsm-top .rsm-ticks b.is-snme { background: var(--rsm-ink); }
.rsm-top .rsm-ticks b.is-joint { background: var(--rsm-green-ink); }

/* Ledger */
.rsm-top .rsm-scope { display: grid; gap: 2px; padding: 10px 14px; background: var(--rsm-sheet); border-inline: 1px solid var(--rsm-line); border-bottom: 1px solid var(--rsm-line); font-size: 13px; }
.rsm-top .rsm-scope-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.rsm-top .rsm-scope-item { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.rsm-top .rsm-scope-item i { display: block; width: 4px; height: 12px; background: var(--rsm-red); }
.rsm-top .rsm-scope-item i.is-nxt-ple { background: var(--rsm-gold); }
.rsm-top .rsm-scope-item i.is-snme { background: var(--rsm-ink); }
.rsm-top .rsm-scope-item i.is-joint { background: var(--rsm-green-ink); }
.rsm-top .rsm-ticks b.is-wwf-tv, .rsm-top .rsm-scope-item i.is-wwf-tv { background: var(--rsm-red-deep); }
.rsm-top .rsm-scope-progress { color: var(--rsm-ink-soft); }
.rsm-top .rsm-chips { display: inline-flex; gap: 3px; }
.rsm-top .rsm-ledger { background: var(--rsm-sheet); border: 1px solid var(--rsm-line); border-top: 0; border-radius: 0 0 4px 4px; }
.rsm-top .rsm-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; background: none; font-size: 15px; }
.rsm-top .rsm-table th, .rsm-top .rsm-table td { border: 0; background: none; text-align: left; vertical-align: top; }
.rsm-top .rsm-table thead th { white-space: nowrap; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--rsm-ink-soft); border-bottom: 1px solid var(--rsm-line); }
.rsm-top .rsm-month th { padding: 14px 14px 4px; font-family: var(--rsm-display); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--rsm-red); scroll-margin-top: 72px; }
.rsm-top .rsm-event td { padding: 11px 14px; border-bottom: 1px solid #ece8e3; }
.rsm-top .rsm-event:hover td { background: var(--rsm-tint); }
.rsm-top .rsm-date { width: 132px; font-family: var(--rsm-display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.35; }
.rsm-top .rsm-table td.rsm-thumb { width: 124px; padding-right: 0; }
.rsm-top .rsm-th-thumb { font-size: 0 !important; }
.rsm-top .rsm-thumb-frame { display: block; width: 104px; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--rsm-ink); border-radius: 2px; }
.rsm-top .rsm-thumb-frame img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.rsm-top a.rsm-thumb-frame:hover img { opacity: .85; }
.rsm-top .rsm-thumb-frame.is-empty { display: flex; align-items: center; justify-content: center; font-family: var(--rsm-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--rsm-gold); }
.rsm-top .rsm-name { min-width: 0; }
.rsm-top .rsm-name strong, .rsm-top .rsm-name a { display: inline; font-size: 18px; font-weight: 700; line-height: 1.4; }
.rsm-top .rsm-name a { color: var(--rsm-ink); text-decoration: underline; text-decoration-color: var(--rsm-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rsm-top .rsm-name a:hover { color: var(--rsm-red); }
.rsm-top .rsm-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--rsm-ink-soft); }
.rsm-top .rsm-flag { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 2px; color: var(--rsm-ink-soft); border: 1px solid var(--rsm-line); border-radius: 2px; white-space: nowrap; }
.rsm-top .rsm-flag.is-next { color: var(--rsm-red-deep); border-color: var(--rsm-red); }
.rsm-top .rsm-place { width: 24%; font-size: 14px; }
.rsm-top .rsm-place span { display: block; }
.rsm-top .rsm-place .rsm-venue { color: var(--rsm-ink-soft); font-size: 13px; }
.rsm-top .rsm-org { width: 112px; white-space: nowrap; }
.rsm-top .rsm-table td.rsm-type { width: 84px; font-family: var(--rsm-display); font-size: 16px; font-weight: 500; color: var(--rsm-ink-soft); white-space: nowrap; }
.rsm-top .rsm-chip { display: inline-block; min-width: 44px; padding: 0 6px; font-family: var(--rsm-display); font-size: 15px; font-weight: 700; line-height: 22px; letter-spacing: .04em; text-align: center; color: #fff; background: var(--rsm-ink); border-radius: 2px; }
.rsm-top .rsm-chip.is-wwf { background: var(--rsm-red); }
.rsm-top .rsm-chip.is-nxt { background: var(--rsm-gold); color: #241a02; }
.rsm-top .rsm-chip.is-aaa { background: var(--rsm-green-ink); }

.rsm-top .rsm-empty-year { padding: 34px 20px 38px; text-align: center; }
#rsm-top .rsm-empty-year h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.rsm-top .rsm-empty-year p { color: var(--rsm-ink-soft); font-size: 14px; }
.rsm-top .rsm-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.rsm-top .rsm-jumps button { min-width: 76px; min-height: 44px; padding-inline: 12px; font-family: var(--rsm-display); font-size: 20px; font-weight: 700; color: var(--rsm-red); border: 1px solid var(--rsm-red); border-radius: 3px; }
.rsm-top .rsm-jumps button:hover { background: var(--rsm-red); color: #fff; }

/* Supporting lists */
.rsm-top .rsm-more { background: var(--rsm-sheet); border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-more > .rsm-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; padding-block: 32px 44px; }
.rsm-top .rsm-more h2 { font-family: var(--rsm-display); font-size: 22px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.rsm-top .rsm-more li { border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-more li a { display: block; padding: 10px 0; text-decoration: none; }
.rsm-top .rsm-more li a:hover .rsm-li-title { color: var(--rsm-red); text-decoration: underline; }
.rsm-top .rsm-li-meta { display: flex; align-items: center; gap: 8px; font-family: var(--rsm-display); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--rsm-ink-soft); }
.rsm-top .rsm-li-title { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.5; }

/* Top page: in-page links under the hero */
.rsm-top .rsm-nav { background: var(--rsm-sheet); border-bottom: 1px solid var(--rsm-line); }
.rsm-top .rsm-nav .rsm-wrap { display: flex; gap: 4px; overflow-x: auto; }
.rsm-top .rsm-nav a { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding-inline: 12px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.rsm-top .rsm-nav a:hover { color: var(--rsm-red); text-decoration: underline; }
.rsm-top .rsm-archive, .rsm-top .rsm-card, .rsm-top .rsm-about { scroll-margin-top: calc(var(--rsm-sticky-top, 0px) + 12px); }

/* Top page: sections below the archive */
.rsm-top .rsm-latest { background: var(--rsm-sheet); border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-latest .rsm-wrap { padding-block: 28px 32px; }
.rsm-top .rsm-latest h2 { margin-bottom: 10px; font-family: var(--rsm-display); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.rsm-top #rsm-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.rsm-top .rsm-latest li, .rsm-top .rsm-article-list li { border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-latest li a, .rsm-top .rsm-article-list li a { display: block; padding: 10px 0; text-decoration: none; }
.rsm-top .rsm-latest li a:hover .rsm-li-title, .rsm-top .rsm-article-list li a:hover .rsm-li-title { color: var(--rsm-red); text-decoration: underline; }
.rsm-top .rsm-band { padding-block: 32px; border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-band.is-paper { padding-top: 0; border-top: 0; }
.rsm-top .rsm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rsm-top .rsm-card { min-width: 0; padding: 22px; background: var(--rsm-sheet); border: 1px solid var(--rsm-line); border-radius: 4px; }
.rsm-top .rsm-card h2, .rsm-top .rsm-about h2 { font-size: 22px; font-weight: 900; line-height: 1.3; }
.rsm-top .rsm-card > p:not(.rsm-kicker):not(.rsm-card-sub):not(.rsm-card-note) { margin-top: 10px; font-size: 15px; }
.rsm-top .rsm-card-sub { font-size: 13px; color: var(--rsm-ink-soft); }
.rsm-top p.rsm-card-note { margin-top: 10px; font-size: 12px; color: var(--rsm-ink-soft); }
.rsm-top .rsm-btn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding-inline: 16px; font-size: 14px; font-weight: 700; color: var(--rsm-red); text-decoration: none; border: 1px solid var(--rsm-red); border-radius: 3px; }
.rsm-top .rsm-btn:hover { background: var(--rsm-red); color: #fff; }
.rsm-top ul.rsm-tnf-years, .rsm-top ul.rsm-article-list, .rsm-top ul.rsm-family-list { margin-top: 16px; }
.rsm-top .rsm-tnf-years li { padding: 9px 0; border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-tnf-years a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--rsm-red); text-underline-offset: 3px; }
.rsm-top .rsm-tnf-years a:hover { color: var(--rsm-red); }
.rsm-top .rsm-year-note { display: block; font-size: 13px; color: var(--rsm-ink-soft); }
.rsm-top .rsm-year-note:empty { display: none; }
.rsm-top .rsm-family-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 0; font-size: 14.5px; border-top: 1px solid var(--rsm-line); }
.rsm-top .rsm-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-weight: 900; color: #fff; background: var(--rsm-red); border-radius: 50%; }
.rsm-top .rsm-about { background: var(--rsm-ink); color: #fff; }
.rsm-top .rsm-about > .rsm-wrap { gap: 28px 48px; padding-block: 36px 40px; }
.rsm-top .rsm-about .rsm-kicker { color: var(--rsm-gold); }
.rsm-top .rsm-about p:not(.rsm-kicker) { margin-top: 12px; font-size: 15px; color: #dcd7d2; }
.rsm-top .rsm-about h3 { margin-bottom: 10px; font-size: 18px; font-weight: 900; }
.rsm-top .rsm-rules { counter-reset: rsm-rule; }
.rsm-top .rsm-rules li { position: relative; padding: 10px 0 10px 40px; border-top: 1px solid #4a433e; counter-increment: rsm-rule; }
.rsm-top .rsm-rules li::before { content: counter(rsm-rule); position: absolute; left: 0; top: 8px; font-family: var(--rsm-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--rsm-gold); }
.rsm-top .rsm-rules strong { display: block; font-size: 15px; }
.rsm-top .rsm-rules span { display: block; font-size: 13.5px; color: #dcd7d2; }

@container rsm (max-width: 900px) {
  .rsm-top #rsm-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsm-top .rsm-hero .rsm-wrap { grid-template-columns: minmax(0, 1fr); padding-block: 18px 14px; }
}
@container rsm (max-width: 760px) {
  .rsm-top .rsm-lede { font-size: 14px; }
  .rsm-top .rsm-decades button { font-size: 15px; white-space: nowrap; letter-spacing: 0; }
  .rsm-top .rsm-years { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px; }
  .rsm-top .rsm-step { min-width: 60px; padding-inline: 4px; font-size: 16px; }
  .rsm-top .rsm-yearbar-title { flex-direction: column; align-items: center; }
  .rsm-top .rsm-yearbar-title h3 { font-size: 28px; white-space: nowrap; }
  .rsm-top .rsm-flag { display: table; margin: 4px 0 0; }
  .rsm-top .rsm-yearbar-title p { font-size: 12px; }
  .rsm-top .rsm-ribbon button, .rsm-top .rsm-ribbon span.rsm-empty { font-size: 13px; }
  .rsm-top .rsm-ticks b { width: 3px; }
  /* The ledger reflows into stacked rows, so nothing needs a sideways scroll. */
  .rsm-top .rsm-table, .rsm-top .rsm-table tbody { display: block; }
  .rsm-top .rsm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rsm-top .rsm-month, .rsm-top .rsm-month th { display: block; }
  .rsm-top .rsm-event { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; column-gap: 8px; padding: 10px 14px 11px; border-bottom: 1px solid #ece8e3; }
  .rsm-top .rsm-event td { display: block; width: auto; padding: 0; border: 0; }
  .rsm-top .rsm-date { grid-column: 1 / 3; grid-row: 1; font-size: 17px; margin-bottom: 6px; }
  .rsm-top .rsm-table td.rsm-thumb { grid-column: 1; grid-row: 2 / span 2; width: 96px; padding: 0; }
  .rsm-top .rsm-thumb-frame { width: 96px; }
  .rsm-top .rsm-org { grid-column: 3; grid-row: 1; }
  .rsm-top .rsm-table td.rsm-type { grid-column: 4; grid-row: 1; width: auto; font-size: 15px; }
  .rsm-top .rsm-name { grid-column: 2 / -1; grid-row: 2; }
  .rsm-top .rsm-name a { font-size: 16px; text-underline-offset: 3px; }
  .rsm-top .rsm-place { grid-column: 2 / -1; grid-row: 3; margin-top: 4px; font-size: 13.5px; }
  .rsm-top .rsm-more > .rsm-wrap { grid-template-columns: minmax(0, 1fr); }
  .rsm-top #rsm-latest, .rsm-top .rsm-grid2 { grid-template-columns: minmax(0, 1fr); }
  .rsm-top .rsm-card { padding: 18px 16px; }
  .rsm-top .rsm-nav .rsm-wrap { gap: 0; justify-content: space-between; }
  .rsm-top .rsm-nav a { padding-inline: 8px; font-size: 13px; }
}
@container rsm (max-width: 340px) {
  .rsm-top .rsm-decades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rsm-top .rsm-years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rsm-top .rsm-year { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rsm-top .rsm-ledger-body { animation: rsmSwap .16s ease-out; }
  @keyframes rsmSwap { from { transform: translateY(4px); } to { transform: none; } }
}

.rsm-top .rsm-noscript-list { padding: 12px 14px; display: grid; gap: 6px; }
.rsm-top .rsm-noscript-list time { display: inline-block; min-width: 7em; font-variant-numeric: tabular-nums; }
.rsm-top .rsm-retry { min-height: 44px; margin-top: 12px; padding-inline: 16px; font-weight: 700; color: var(--rsm-red); border: 1px solid var(--rsm-red); border-radius: 3px; }
