/* Base y maquetación general (estructura heredada de Whistlepath, con los tokens de RefereePath). */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
a { color: var(--text); text-decoration-color: var(--text-2); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 40px); } h2 { font-size: 24px; } h3 { font-size: 19px; }
.rp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rp-skip { position: absolute; left: -999px; }
.rp-skip:focus { left: var(--gutter); top: var(--gutter); background: var(--surface); padding: 8px 12px; z-index: 10; }
.rp-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.rp-main { flex: 1; padding-block: 24px 40px; }
.rp-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.rp-stack-lg { display: grid; gap: 28px; }
.rp-grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rp-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.rp-muted { color: var(--text-2); }
.rp-small { font-size: 14px; }

/* Cabecera */
.rp-topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.rp-topbar__row { display: flex; align-items: center; gap: 12px 24px; min-height: 56px; flex-wrap: wrap; padding-block: 8px; }
.rp-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; flex: none; }
.rp-brand__symbol { width: 28px; height: 28px; flex: none; }
.rp-brand__dot { fill: var(--accent); }
.rp-brand__word { font: 700 24px/1 var(--font-display); letter-spacing: -.015em; }
.rp-brand__path { font-weight: 500; opacity: .6; }
.rp-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.rp-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; }
.rp-nav a:hover { color: var(--text); background: var(--surface-sunk); }
.rp-nav a[aria-current="page"] { color: var(--text); background: var(--surface-sunk); font-weight: 600; }
.rp-topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rp-inline-form { display: inline; }

/* Pie */
.rp-footer { border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; padding-block: 24px 32px; }
.rp-footer__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.rp-footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0; }
.rp-footer a { color: var(--text-2); }
.rp-footer a:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
