/*
Theme Name: Real Rummy Games
Theme URI: https://realrummygames.com/
Description: Mobile-first public record theme modelled on the previous static layout: pale green canvas, white cards, green action buttons, ranked cards and an rm-item list. No client-side JavaScript.
Version: 2.1.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Real Rummy Games editorial desk
Text Domain: real-rummy-games
*/

/* -------------------------------------------------------------------------
   1. Tokens
   The layout follows the old static pages; the palette, radii, type scale and
   component names are changed so the theme is not a byte-for-byte template.
   ------------------------------------------------------------------------- */
:root {
  --bg: #f7efec;
  --surface: #fffdfb;
  --surface-2: #fbf4f1;
  --ink: #2a1310;
  --text: #4a3a35;
  --muted: #7d665f;
  --border: #ecd9d2;
  --primary: #c62828;
  --primary-dark: #8e1616;
  --primary-soft: #fdeaea;
  --gold: #e2a100;
  --gold-soft: #fff2cc;
  --gold-ink: #5a3c00;
  --danger: #8a1c1c;
  --danger-soft: #fbe9e7;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 2px 9px rgba(90, 20, 20, .08);
  --max: 840px;
}

*, *::before, *::after { box-sizing: border-box; }
figure {margin:0;}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-ticker__track { animation: none !important; white-space: normal !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.rrg--app { padding-bottom: 76px; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary-dark); text-decoration-thickness: .06em; text-underline-offset: .16em; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.012em;
  font-weight: 800;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* -------------------------------------------------------------------------
   2. Header and horizontal pill navigation
   ------------------------------------------------------------------------- */
.rm-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.rm-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
}

.rm-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.rm-brand__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.rm-brand__logo svg { display: block; width: 40px; height: 40px; }
.rm-brand__logo img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }

.rm-brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.rm-cta {
  display: none;
  align-items: center;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5c542, #e2a100);
  color: #2d2100;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(230, 167, 0, .32);
  white-space: nowrap;
}
.rm-cta:hover { background: #f2b800; color: #2d2100; }

.menu { position: relative; margin-left: auto; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: min(82vw, 300px);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(90, 20, 20, .18);
}
.menu__panel nav { display: grid; }
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.menu__panel a:last-child { border-bottom: 0; }
.menu__panel a:hover { background: var(--surface-2); color: var(--primary); }
.menu__risk { color: var(--danger) !important; }

.rm-pills {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.rm-pills__inner {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rm-pills__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.rm-pills__link:hover { border-color: var(--primary); color: var(--primary); }
.rm-pills__link.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

/* -------------------------------------------------------------------------
   3. Hero
   ------------------------------------------------------------------------- */
.rm-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 0 22px;
}
.rm-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1.25;
  color: var(--ink);
}
.rm-hero__lead {
  max-width: 54rem;
  margin: 0;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.65;
}
.rm-hero__promo {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--primary-soft);
  border-radius: 8px;
  color: #6b1c1c;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
}
.rm-hero__promo svg { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.rm-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* -------------------------------------------------------------------------
   4. Section and cards
   ------------------------------------------------------------------------- */
.section { padding: 20px 0 6px; }
.section:last-child { padding-bottom: 26px; }

.rm-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--ink);
  font-size: clamp(1.2rem, 4vw, 1.42rem);
  text-align: center;
}
.rm-title svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

/* -------------------------------------------------------------------------
   6. Legal strip
   ------------------------------------------------------------------------- */
.rm-ticker {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  background: #fff3c4;
  border-top: 1px dashed #d9aa00;
  border-bottom: 1px dashed #d9aa00;
  color: #3f3100;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.rm-ticker__track {
  display: inline-flex;
  min-width: max-content;
  gap: 40px;
  padding: 8px 0;
  animation: rrg-ticker 42s linear infinite;
}
.rm-ticker__track span { padding-right: 40px; }
@keyframes rrg-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------
   7. Jump navigation
   ------------------------------------------------------------------------- */
.rm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.rm-tabs__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 4px;
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.rm-tabs__link:last-child { border-right: 0; }
.rm-tabs__link:hover { color: var(--primary); }
.rm-tabs__link.is-active { background: var(--primary); color: #fff; }

/* -------------------------------------------------------------------------
   8. App list rows
   ------------------------------------------------------------------------- */
.rm-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 12px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.rm-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #e05b5b, var(--primary-dark));
}
.rm-item__rank {
  position: absolute;
  top: 10px;
  left: -9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(90, 20, 20, .25);
}
.rm-item__logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 10px;
  background: #fbf0ed;
  text-decoration: none;
}
.rm-item__logo img, .rm-item__logo .mono { width: 100%; height: 100%; object-fit: contain; }
.rm-item__body { min-width: 0; }
.rm-item__title {
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.25;
}
.rm-item__title a { color: var(--ink); text-decoration: none; }
.rm-item__title a:hover { color: var(--primary); text-decoration: underline; }
.rm-item__meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.rm-item__meta--bonus { margin-bottom: 1px; }
.rm-item__meta strong { color: var(--primary-dark); font-weight: 800; }
.rm-item__meta .sep { padding: 0 4px; color: #cbb8b2; }
.rm-item__btn {
  align-self: center;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
}

.rm-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* -------------------------------------------------------------------------
   9. Buttons
   ------------------------------------------------------------------------- */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.rm-btn--primary { background: linear-gradient(180deg, #d32f2f, #b71c1c); color: #fff; box-shadow: 0 2px 0 #7a1010; }
.rm-btn--primary:hover { background: linear-gradient(180deg, #b71c1c, #8e1616); color: #fff; }
.rm-btn--gold { background: var(--gold); color: #2d2100; }
.rm-btn--gold:hover { background: #f2b800; color: #2d2100; }
.rm-btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.rm-btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.rm-btn--wide { width: 100%; }
.rm-btn--lg { min-height: 46px; font-size: .92rem; padding: 11px 22px; }

/* -------------------------------------------------------------------------
   10. Filters, search, pagination
   ------------------------------------------------------------------------- */
.page-head { padding: 20px 0 14px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 4.5vw, 1.6rem); }
.page-head__lead { margin: 0; max-width: 56rem; color: var(--text); font-size: .92rem; line-height: 1.6; }
.page-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.page-meta span { padding: 0 5px; color: #cbb8b2; }

.rm-filters {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.rm-filters__group { display: flex; flex-wrap: wrap; gap: 7px; }
.rm-filters__label {
  display: block;
  width: 100%;
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.rm-chip:hover { border-color: var(--primary); color: var(--primary); }
.rm-chip.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.rm-chip__count { margin-left: 4px; font-size: 13px; opacity: .75; }

.rm-search { display: grid; gap: 8px; }
.rm-search__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rm-search__row { display: flex; gap: 8px; }
.rm-search__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
}
.rm-search__input:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
.rm-search__button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.rm-search__button:hover { background: var(--primary-dark); }

.rm-result { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; }

.rm-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.rm-pagination__page, .rm-pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.rm-pagination__page:hover, .rm-pagination__step:hover { border-color: var(--primary); color: var(--primary); }
.rm-pagination__page.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.rm-pagination__gap { align-self: center; padding: 0 4px; color: var(--muted); }
.rm-pagination__step { min-width: 78px; }

.rm-empty {
  padding: 18px;
  background: var(--surface);
  border: 1px dashed #cbb8b2;
  border-radius: 8px;
}
.rm-empty h2 { font-size: 1.1rem; margin-bottom: 6px; }
.rm-empty p { color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------------------------
   11. Breadcrumbs
   ------------------------------------------------------------------------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--border); }
.crumbs__inner {
  display: flex;
  align-items: center;
  min-height: 36px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.crumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.crumb-list li { display: inline-flex; align-items: center; }
.crumb-list li + li::before { content: "›"; padding-right: 6px; color: #cbb8b2; }
.crumb-list a { display: inline-flex; align-items: center; min-height: 30px; color: var(--text); text-decoration: none; }
.crumb-list a:hover { color: var(--primary); }
.crumb-list [aria-current="page"] { color: var(--primary-dark); }

/* -------------------------------------------------------------------------
   12. Single record
   ------------------------------------------------------------------------- */
.rm-record-hero {
  padding: 20px 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.rm-record-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  margin: 0 auto;
  padding: 22px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.rm-record-card__logo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(90, 20, 20, .16);
}
.rm-record-card__logo img, .rm-record-card__logo .mono { width: 100%; height: 100%; object-fit: contain; }
.rm-record-card__status {
  margin: 2px 0 0;
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rm-record-card__title {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1.28;
}
.rm-record-card__stats {
  margin: 4px 0 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.5;
}
.rm-record-card__stats strong { color: var(--primary-dark); }
.rm-record-card__stats .sep { padding: 0 5px; color: #cbb8b2; }
.rm-record-card__note { margin: 0; color: var(--muted); font-size: 13px; }
.rm-record-card__actions { display: grid; gap: 7px; width: 100%; margin-top: 6px; }

@media (max-width: 519px) {
  .rm-facts, .rm-facts tbody, .rm-facts tr, .rm-facts th, .rm-facts td { display: block; width: 100%; }
  .rm-facts th {
    padding: 8px 11px 0;
    border-bottom: 0;
    background: transparent;
  }
  .rm-facts td { padding: 2px 11px 9px; }
  .rm-facts tr { border-bottom: 1px solid var(--border); }
  .rm-facts tr:last-child { border-bottom: 0; }
}

.advisory {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  border-radius: 4px;
  color: #6d1f18;
  font-size: .86rem;
  line-height: 1.55;
}
.notice-strip {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rm-facts {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .86rem;
}
.rm-facts caption {
  display: block;
  width: 100%;
  caption-side: top;
  padding: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}
.rm-facts th, .rm-facts td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.rm-fact-muted { color: var(--muted); font-size: 13px; }
.rm-screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rm-screenshot { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rm-screenshot img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 720px) { .rm-screenshot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rm-facts tr:last-child th, .rm-facts tr:last-child td { border-bottom: 0; }
.rm-facts th {
  width: 38%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 519px) {
  .rm-facts th { width: 100%; }
}

.rm-body { color: var(--text); font-size: .96rem; line-height: 1.72; }
.rm-body > p { margin: 0 0 12px; }
.rm-body h2 {
  margin: 24px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.18rem;
}
.rm-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rm-body h3 { margin: 18px 0 8px; font-size: 1.02rem; }
.rm-body ul, .rm-body ol { margin: 0 0 12px; padding-left: 20px; }
.rm-body li { margin: 4px 0; }
.rm-body a { text-decoration: underline; }
.rm-body .direct-answer {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  color: #6b1c1c;
  font-size: .94rem;
  line-height: 1.65;
}
.rm-body .direct-answer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--primary-dark);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rm-body .fact-list {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  list-style: none;
}
.rm-body .fact-list li {
  margin: 0;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.5;
}
.rm-body .fact-list li:last-child { border-bottom: 0; }
.rm-body .fact-list strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rm-body .source-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rm-body .section-drawer {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.rm-body .section-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.rm-body .section-drawer > summary::-webkit-details-marker { display: none; }
.rm-body .section-drawer > summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.rm-body .section-drawer[open] > summary::after { content: "\2212"; }
.rm-body .section-drawer summary h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.rm-body .section-drawer > p, .rm-body .section-drawer > ul { margin: 0 12px 12px; }

.rm-qa { margin-top: 18px; }
.rm-qa h2, .rm-qa .faq-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.18rem;
}
.faq-list { display: grid; gap: 8px; }
.rm-qa-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.rm-qa-item > summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  list-style: none;
}
.rm-qa-item > summary::-webkit-details-marker { display: none; }
.rm-qa-item > summary::after { content: "+"; float: right; color: var(--primary); font-weight: 800; }
.rm-qa-item[open] > summary::after { content: "\2212"; }
.rm-qa-item p { margin: 8px 0 0; color: var(--text); font-size: .88rem; }

.related { padding-top: 22px; }
.related-list { display: flex; flex-direction: column; gap: 10px; }

.rm-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 8px 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -4px 14px rgba(90, 20, 20, .22);
}
.rm-dock__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 16px;
}
.rm-dock__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  flex-shrink: 0;
}
.rm-dock__logo img, .rm-dock__logo .mono { width: 100%; height: 100%; object-fit: contain; }
.rm-dock__text { min-width: 0; flex: 1; }
.rm-dock__name {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-dock__meta {
  margin: 0;
  overflow: hidden;
  color: #d8bdb7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-dock__btn { min-height: 40px; padding: 7px 14px; font-size: 13px; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   13. Long-form pages
   ------------------------------------------------------------------------- */
.rm-doc-head { padding: 20px 0 14px; }
.rm-doc-head h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 4.5vw, 1.6rem); }
.rm-doc-head__lead { margin: 0; color: var(--text); font-size: .94rem; line-height: 1.65; }
.rm-doc-head__meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.rm-doc-card { margin-bottom: 16px; }
.rm-doc-card .rm-body h2:first-child { margin-top: 0; }
.notes {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.notes__head {
  margin: 0 0 4px;
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.notes ul { margin: 0; padding-left: 18px; }
.notes li { color: var(--text); font-size: .84rem; }
.rm-links { margin: 0; padding: 0; list-style: none; }
.rm-links li { border-bottom: 1px solid var(--border); }
.rm-links li:first-child { border-top: 1px solid var(--border); }
.rm-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.rm-links a:hover { color: var(--primary); }
.toc { margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.toc__head { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 3px 0; font-size: .84rem; }

/* -------------------------------------------------------------------------
   14. Icons / monograms
   ------------------------------------------------------------------------- */
.mono {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--primary-soft);
  font-weight: 900;
  letter-spacing: .02em;
}
.mono--card { font-size: 1.05rem; }
.mono--rm-hero { font-size: 2rem; }
.icon { display: block; object-fit: contain; }

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.rm-footer {
  margin-top: 24px;
  background: transparent;
  color: #f4e6e2;
}
.rm-footer > .wrap {
  background: #3b1717;
  padding-top: 22px;
  padding-bottom: 18px;
}
.rm-footer-age {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.rm-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}
.rm-footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 8px;
  background: #7d1f1f;
  border-radius: 3px;
  color: #fff1ec;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.rm-footer-links a:hover { background: var(--primary); color: #fff; }
.rm-footer-note {
  margin: 0 0 10px;
  color: #d8bdb7;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.rm-footer-copy {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #d8bdb7;
  font-size: 13px;
  text-align: center;
}
.rm-footer-tags {
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.rm-footer-tags .wrap { padding: 8px 16px; }

/* -------------------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------------------- */
@media (min-width: 520px) {
  .rm-item { grid-template-columns: 68px minmax(0, 1fr) auto; padding: 13px 14px 13px 18px; }
  .rm-item__logo { width: 68px; height: 68px; }
  .rm-item__title { font-size: 1.04rem; }
  .rm-item__meta { font-size: 13px; }
  .rm-footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .rm-header__inner { min-height: 66px; }
  .rm-cta { display: inline-flex; margin-left: auto; }
  .menu { margin-left: 0; }
  .rm-hero { padding: 30px 0 26px; }
  .rm-record-card { padding: 28px 26px; }
  .rm-record-card__logo { width: 132px; height: 132px; }
  .rm-item { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 14px 16px 14px 20px; gap: 4px 14px; }
  .rm-item__logo { width: 72px; height: 72px; }
  .rm-item__btn { min-height: 40px; padding: 8px 20px; font-size: 13px; }
  .rm-body { font-size: 1rem; }
  .section { padding-top: 24px; }
}

@media (min-width: 980px) {
  :root { --max: 860px; }
}

/* -------------------------------------------------------------------------
   17. Print
   ------------------------------------------------------------------------- */
@media print {
  .rm-header, .rm-pills, .rm-ticker, .rm-tabs, .rm-filters, .rm-pagination, .rm-dock, .rm-footer, .rm-cta, .menu { display: none !important; }
  body { background: #fff; }
  .card, .rm-item { box-shadow: none; }
}

/* -------------------------------------------------------------------------
   18. Content modules added for search intent coverage
   ------------------------------------------------------------------------- */
.rm-lead {
  max-width: 62ch;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}
.rm-filter-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.02rem;
}
.rm-families { display: grid; gap: 10px; }
.rm-family {
  display: block;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.rm-family:hover { border-left-color: var(--gold); }
.rm-family__count {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rm-family__title { margin: 4px 0; font-size: 1.02rem; }
.rm-family__title a { color: var(--ink); text-decoration: none; }
.rm-family__title a:hover { color: var(--primary); }
.rm-family__text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rm-family__link { display: inline-block; margin-top: 8px; color: var(--primary-dark); font-size: 13px; font-weight: 800; }

.rm-checks { display: grid; gap: 10px; }
.rm-check {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.rm-check h3 { margin: 0 0 6px; font-size: .98rem; line-height: 1.35; }
.rm-check p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.rm-topics { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.rm-topics li { border-bottom: 1px solid var(--border); }
.rm-topics a { display: flex; align-items: center; min-height: 40px; color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none; }
.rm-topics a:hover { color: var(--primary); }

.rm-source-line { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.rm-item__go { display: grid; place-items: center; width: 28px; height: 28px; color: var(--primary); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.rm-item--compact { grid-template-columns: 46px minmax(0, 1fr) auto; padding-block: 9px; }
.rm-item--compact .rm-item__logo { width: 46px; height: 46px; }
.rm-item--compact .rm-item__title { font-size: .92rem; }
.rm-item--compact .rm-item__meta { font-size: 13px; }
.rm-btn.is-disabled { background: #e7d9d4; color: #7a625c; cursor: not-allowed; }
.rm-record-card__pending { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Sticky mobile navigation and larger touch targets */
.rm-pills { position: sticky; top: 0; z-index: 35; }
.rm-pills__link { min-height: 44px; }
[id] { scroll-margin-top: 92px; }

@media (min-width: 520px) {
  .rm-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .rm-families { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .rm-item { grid-template-columns: 54px minmax(0, 1fr); }
  .rm-item__btn, .rm-item__go { grid-column: 2; justify-self: start; margin-top: 4px; }
  .rm-item__btn { min-height: 36px; }
}
body.rrg--app { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.rm-dock { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.rm-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.rm-item__title a, .rm-family__title a { display: inline-block; padding: 5px 0; margin: -5px 0; }

/* -------------------------------------------------------------------------
   19. Homepage slide deck (CSS scroll-snap, no JavaScript)
   ------------------------------------------------------------------------- */
.rm-slider {
  padding: 16px 0 2px;
  background: var(--bg);
}
.rm-slider__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #5b1717;
  border-radius: var(--radius);
  background: #2a0b0b;
  box-shadow: 0 12px 28px rgba(70, 12, 12, .18);
}
.rm-slider__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.rm-slider__track::-webkit-scrollbar { display: none; }
.rm-slider__track:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.rm-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: #fff6e8;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #2a0b0b;
}
.rm-slide__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.rm-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 4, 4, .02) 0%, rgba(20, 4, 4, .28) 25%, rgba(20, 4, 4, .93) 48%, rgba(20, 4, 4, .99) 100%);
}
.rm-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 22px 18px;
}
.rm-slide__kicker {
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.rm-slide__title {
  margin: 0 0 10px;
  color: #fff6e8;
  font-size: clamp(1.45rem, 5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.rm-slide__text {
  max-width: 47ch;
  margin: 0 0 14px;
  color: rgba(255, 246, 232, .84);
  font-size: .82rem;
  line-height: 1.55;
}
.rm-slide__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-slide__actions .rm-btn { min-height: 44px; }
.rm-slide__count {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  color: rgba(255, 246, 232, .72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.rm-slide__arrow {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 246, 232, .38);
  border-radius: 50%;
  background: rgba(30, 6, 6, .46);
  color: #fff6e8;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}
.rm-slide__arrow:hover,
.rm-slide__arrow:focus-visible { border-color: var(--gold); background: var(--gold); color: #2d2100; }
.rm-slide__arrow--prev { right: 62px; }
.rm-slide__arrow--next { right: 14px; }
.rm-slider__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 2px;
}
.rm-slider__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.rm-slider__dot:first-child,
.rm-slider__dot[aria-current="true"] { background: var(--primary-soft); color: var(--primary-dark); }
.rm-slider__dot:hover { color: var(--primary); }
/* :has keeps the number in sync with :target in modern browsers. The first
   number remains the fallback active state when :has is unsupported. */
.rm-slider:has(.rm-slide:target) .rm-slider__dot { background: transparent; color: var(--muted); }
.rm-slider:has(#home-slide-1:target) .rm-slider__dot[href="#home-slide-1"],
.rm-slider:has(#home-slide-2:target) .rm-slider__dot[href="#home-slide-2"],
.rm-slider:has(#home-slide-3:target) .rm-slider__dot[href="#home-slide-3"],
.rm-slider:has(#home-slide-4:target) .rm-slider__dot[href="#home-slide-4"] {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.rm-btn--gold {
  background: linear-gradient(180deg, #f5c542, #e2a100);
  color: #2d2100;
  box-shadow: 0 2px 0 #8a5a00;
}
.rm-btn--gold:hover { background: linear-gradient(180deg, #ffd45e, #f0ae00); color: #2d2100; }
.rm-btn--ghost {
  border-color: rgba(255, 246, 232, .45);
  background: rgba(255, 246, 232, .08);
  color: #fff6e8;
}
.rm-btn--ghost:hover { border-color: var(--gold); background: rgba(255, 246, 232, .16); color: #fff6e8; }

@media (min-width: 520px) {
  .rm-slide { aspect-ratio: 4 / 3; }
  .rm-slide__art { object-position: 50% center; }
  .rm-slide__shade {
    background: linear-gradient(90deg, rgba(20, 4, 4, .96) 0%, rgba(20, 4, 4, .88) 38%, rgba(20, 4, 4, .45) 64%, rgba(20, 4, 4, .02) 100%);
  }
  .rm-slide__content {
    justify-content: center;
    max-width: 66%;
    padding: 28px 30px;
  }
  .rm-slide__title { font-size: clamp(1.8rem, 4.2vw, 2.35rem); }
  .rm-slide__text { font-size: .86rem; }
}
@media (min-width: 760px) {
  .rm-slide { aspect-ratio: 20 / 9; }
  .rm-slide__content { max-width: 62%; padding: 32px 40px; }
  .rm-slide__title { max-width: 15ch; font-size: 2.45rem; }
  .rm-slide__text { font-size: .9rem; }
}
@media (max-width: 519px) {
  .rm-slide__actions { flex-direction: column; gap: 6px; }
  .rm-slide__actions .rm-btn { width: 100%; min-height: 42px; }
  .rm-slide__content { padding: 16px 18px; }
  .rm-slide__kicker { margin-bottom: 6px; font-size: 13px; }
  .rm-slide__title { margin-bottom: 8px; font-size: 1.35rem; }
  .rm-slide__text { display: none; }
  .rm-slide__arrow { display: none; }
  .rm-slide__count { top: 12px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-slider__track { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   20. App-first homepage: wide intro, compact grid, folded resources
   ------------------------------------------------------------------------- */
body.rrg--home .wrap { max-width: 980px; }

.rm-intro {
  padding: 20px 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.rm-intro__grid { display: grid; gap: 12px; }
.rm-intro__kicker {
  margin: 0 0 5px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rm-intro__title {
  max-width: 20ch;
  margin: 0 0 7px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rm-intro__line {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.rm-intro__stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rm-intro__stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rm-intro__stats strong { color: var(--primary-dark); font-size: .84rem; }
.rm-intro__age {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.rm-home-block { padding: 18px 0 2px; }
.rm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rm-home-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: left;
}
.rm-tag {
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rm-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.rm-tile:hover { border-color: #d8b8ae; }
.rm-tile:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.rm-tile__rank {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.rm-tile__logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 9px;
  background: #fbf0ed;
}
.rm-tile__logo img, .rm-tile__logo .mono { width: 100%; height: 100%; object-fit: contain; }
.rm-tile__name {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  font-size: .88rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.rm-tile__name a { color: var(--ink); text-decoration: none; }
.rm-tile__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.rm-tile__name a:hover { color: var(--primary); }
.rm-tile__bonus { margin: 1px 0 0; color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.rm-tile__meta { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.rm-tile__arrow {
  position: absolute;
  right: 10px;
  bottom: 7px;
  z-index: 2;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  pointer-events: none;
}

.rm-home-folds { padding: 14px 0 0; }
.rm-fold-section { margin: 0 0 8px; }
.rm-fold {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.rm-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.rm-fold summary::-webkit-details-marker { display: none; }
.rm-fold summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rm-fold__index { color: var(--primary); font-size: 13px; font-weight: 800; }
.rm-fold__title { flex: 1; color: var(--ink); font-size: .95rem; font-weight: 800; }
.rm-fold__hint { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rm-fold__plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease;
}
.rm-fold[open] .rm-fold__plus { transform: rotate(45deg); }
.rm-fold__body { padding: 2px 14px 16px; border-top: 1px solid var(--border); }
.rm-fold__sub { margin: 12px 0 4px; color: var(--primary-dark); font-size: .86rem; }
.rm-fold__body .rm-family { border-left-width: 3px; }
.rm-fold__body .rm-check { box-shadow: none; }
.rm-fold__body .rm-links { margin-top: 4px; }
.rm-fold__body .rm-qa { border: 0; box-shadow: none; padding: 0; }
.rm-fold__body .rm-body { padding-top: 8px; }

@media (min-width: 640px) {
  .rm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-intro { padding: 24px 0 20px; }
}
@media (min-width: 760px) {
  .rm-intro__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .rm-intro__stats { max-width: 430px; justify-content: flex-end; }
  .rm-intro__title { margin-bottom: 8px; }
  .rm-intro__line { font-size: .92rem; }
}
@media (min-width: 900px) {
  .rm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rm-tile { min-height: 166px; }
}
@media (max-width: 519px) {
  .rm-intro { padding: 16px 0 14px; }
  .rm-intro__title { font-size: 1.7rem; }
  .rm-intro__line { font-size: 13px; }
  .rm-intro__stats span { padding: 6px 8px; font-size: 13px; }
  .rm-fold__hint { display: none; }
  .rm-fold__title { font-size: .9rem; }
  .rm-fold summary { padding: 9px 12px; }
  .rm-fold__body { padding: 2px 12px 14px; }
}


/* Single-record media sizing */
.rm-record-card__logo { width: 200px; height: 200px; }
.rm-screenshot-grid { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rm-screenshot { flex: 0 0 auto; height: 240px; scroll-snap-align: start; }
.rm-screenshot img { width: auto; height: 240px; aspect-ratio: auto; object-fit: contain; }
