/* Full methodology of the expert ranking (ranking-methodology.html).
   Numbers on the page mirror js/ranking-scoring.js — change them together.
   Flat surfaces only: no gradients, glow or glass (brand guide). */
.rm-cover, .rm-main { font-family: 'Inter', Arial, sans-serif; text-align: left; }
.rm-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Cover */
.rm-cover { background: #361163; color: #fff; padding: 72px 0 64px; }
.rm-kicker { display: block; margin-bottom: 16px; color: #C0A582; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rm-cover h1 { max-width: 820px; margin: 0 0 20px; color: #fff; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.rm-cover-lead { max-width: 760px; margin: 0 0 28px; color: #e9e3f1; font-size: 18px; line-height: 1.5; }
.rm-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 36px; padding: 0; list-style: none; }
.rm-facts li { display: flex; flex-direction: column; gap: 4px; }
.rm-facts span { color: #C0A582; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rm-facts b { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; }
.rm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.rm-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 16px 24px; border-radius: 6px;
  background: #C0A582; color: #361163; font: 700 15px/1.1 'Inter', Arial, sans-serif;
  text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.rm-btn:hover { background: #fff; color: #361163; }
.rm-btn svg { width: 18px; height: 18px; flex: none; }
.rm-btn--purple { background: #361163; color: #fff; }
.rm-btn--purple:hover { background: #C0A582; color: #361163; }
.rm-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.rm-link:hover { text-decoration-thickness: 2px; }
.rm-cover :focus-visible, .rm-main :focus-visible { outline: 3px solid #C0A582; outline-offset: 4px; }
/* Caption kept for screen readers when the heading above already names the table. */
.rm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout: contents on the left, text on the right */
.rm-main { padding: 72px 0 96px; background: #fff; color: #505050; }
.rm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.rm-toc { position: sticky; top: 140px; }
.rm-toc h2 { margin: 0 0 14px; color: #361163; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rm-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid #ebebeb; }
.rm-toc a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 9px 16px; margin-left: -2px; border-left: 2px solid transparent; color: #505050; font-size: 15px; line-height: 1.4; text-decoration: none; }
.rm-toc a:hover { color: #361163; border-left-color: #C0A582; }
.rm-toc a b { flex: none; color: #361163; font-variant-numeric: tabular-nums; }
.rm-content { min-width: 0; max-width: 900px; }
.rm-section { padding: 0 0 64px; margin: 0 0 64px; border-bottom: 1px solid #ebebeb; scroll-margin-top: 150px; }
.rm-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rm-eyebrow { display: block; margin-bottom: 14px; color: #361163; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rm-section > h2, .rm-block-head h2 { margin: 0 0 16px; color: #361163; font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.rm-content p { max-width: 760px; margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.rm-content .rm-lead { margin-bottom: 28px; font-size: 18px; line-height: 1.5; }
.rm-content p:last-child { margin-bottom: 0; }
.rm-content a:not(.rm-btn) { color: #361163; font-weight: 700; text-underline-offset: 3px; }

/* 1000 points split into six blocks */
.rm-bar { display: flex; gap: 3px; height: 28px; margin: 0 0 24px; }
.rm-bar span { display: block; border-radius: 3px; }
.rm-split { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ebebeb; }
.rm-split li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #ebebeb; }
.rm-split i { width: 14px; height: 14px; border-radius: 3px; align-self: center; }
.rm-split a { color: #361163; font-size: 18px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.rm-split a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rm-split b { color: #361163; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rm-split p { grid-column: 2 / -1; margin: 0; font-size: 15px; line-height: 1.5; }
.rm-c1 { background: #361163; } .rm-c2 { background: #00a8e5; } .rm-c3 { background: #b7d432; }
.rm-c4 { background: #b72049; } .rm-c5 { background: #ffd204; } .rm-c6 { background: #505050; }

/* A block (A–F) and its criteria */
.rm-block-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; align-items: start; margin-bottom: 8px; }
.rm-block-max { display: flex; flex-direction: column; min-width: 124px; padding: 16px 18px; border-radius: 8px; background: #361163; color: #fff; }
.rm-block-max b { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rm-block-max span { color: #C0A582; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rm-crit { margin-top: 40px; }
.rm-crit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid #C0A582; }
.rm-crit h3 { margin: 0; color: #361163; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.rm-cap { flex: none; color: #361163; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-crit h4 { margin: 24px 0 10px; color: #361163; font-size: 20px; font-weight: 700; line-height: 1.3; }

/* Tables: two columns each, so nothing scrolls sideways on a phone */
.rm-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; margin: 16px 0; }
.rm-table-wrap { margin: 16px 0; overflow-x: auto; }
.rm-tables .rm-table-wrap { margin: 0; }
.rm-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.rm-table caption { padding: 0 0 8px; color: #361163; font-size: 15px; font-weight: 700; text-align: left; caption-side: top; }
.rm-table th, .rm-table td { padding: 11px 16px 11px 0; border-bottom: 1px solid #ebebeb; text-align: left; vertical-align: top; }
.rm-table thead th { padding-top: 0; border-bottom: 1px solid #505050; color: #505050; font-size: 13px; font-weight: 700; line-height: 1.4; }
.rm-table tbody th { font-weight: 400; color: #505050; }
.rm-table td:last-child, .rm-table thead th:last-child { width: 1%; padding-right: 0; text-align: right; white-space: nowrap; }
.rm-table td:last-child { color: #361163; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm-notes { max-width: 760px; margin: 16px 0 0; padding: 0; list-style: none; }
.rm-notes li { position: relative; padding: 0 0 8px 22px; font-size: 15px; line-height: 1.55; }
.rm-notes li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: #C0A582; }

/* Rules, worked example, closing actions */
.rm-rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rm-rules li { position: relative; padding: 18px 0 18px 56px; border-top: 1px solid #ebebeb; counter-increment: rule; }
.rm-rules li:last-child { border-bottom: 1px solid #ebebeb; }
.rm-rules li::before { content: counter(rule); position: absolute; left: 0; top: 16px; color: #C0A582; font-size: 24px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rm-rules h3 { margin: 0 0 6px; color: #361163; font-size: 20px; font-weight: 700; line-height: 1.3; }
.rm-example { margin: 24px 0 0; padding: 28px 28px 24px; border-radius: 8px; background: #ebebeb; }
.rm-example h3 { margin: 0 0 8px; color: #361163; font-size: 20px; font-weight: 700; line-height: 1.3; }
.rm-example .rm-table th, .rm-example .rm-table td { border-bottom-color: #d9d9d9; }
.rm-example .rm-tables { margin-bottom: 0; }
.rm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }

@media (max-width: 1024px) {
  .rm-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rm-toc { position: static; }
  .rm-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-left: 0; }
  .rm-toc a { padding-left: 0; margin-left: 0; border-left: 0; border-bottom: 1px solid #ebebeb; min-height: 44px; align-items: center; }
  .rm-content { max-width: none; }
}
@media (max-width: 600px) {
  .rm-inner { padding: 0 20px; }
  .rm-cover { padding: 48px 0 44px; }
  .rm-cover h1 { font-size: 32px; }
  .rm-main { padding: 48px 0 64px; }
  .rm-toc ol { grid-template-columns: minmax(0, 1fr); }
  .rm-section { padding-bottom: 48px; margin-bottom: 48px; scroll-margin-top: 110px; }
  .rm-section > h2, .rm-block-head h2 { font-size: 28px; }
  .rm-block-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rm-block-max { flex-direction: row; align-items: baseline; gap: 10px; width: fit-content; min-width: 0; padding: 12px 16px; }
  .rm-block-max b { font-size: 32px; }
  .rm-crit h3 { font-size: 20px; }
  .rm-split a { font-size: 16px; }
  .rm-split b { font-size: 20px; }
  .rm-rules li { padding-left: 40px; }
  .rm-example { padding: 22px 18px; }
  .rm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-btn { transition: none; }
}
