:root {
  --rl-primary: #2563eb;
  --rl-primary-hover: #1d4ed8;
  --rl-secondary: #1e40af;
  --rl-text: #1e293b;
  --rl-muted: #64748b;
  --rl-bg: #ffffff;
  --rl-border: #e2e8f0;
  --rl-radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rl-text);
  background: var(--rl-bg);
  -webkit-font-smoothing: antialiased;
}

.rl-page { min-height: 100vh; display: flex; flex-direction: column; }
.rl-main { flex: 1; }

.rl-header,
.rl-main,
.rl-footer {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem;
}
@media (min-width: 640px) {
  .rl-header,
  .rl-main,
  .rl-footer { padding: 1.5rem 2rem; }
}

.rl-header {
  border-bottom: 1px solid var(--rl-border);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.rl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.rl-nav a {
  color: var(--rl-primary);
  text-decoration: none;
  font-weight: 500;
}
.rl-nav a:hover { color: var(--rl-primary-hover); text-decoration: underline; }

.rl-breadcrumb {
  font-size: 0.813rem;
  color: var(--rl-muted);
  margin-bottom: 1rem;
}
.rl-breadcrumb a {
  color: var(--rl-primary);
  text-decoration: none;
}
.rl-breadcrumb a:hover { text-decoration: underline; }

.rl-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}
@media (min-width: 640px) {
  .rl-main h1 { font-size: 1.75rem; }
}

.rl-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
}
@media (min-width: 640px) {
  .rl-main h2 { font-size: 1.25rem; }
}

.rl-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
}

.rl-main p { margin: 0 0 1rem 0; }
.rl-intro { margin-bottom: 1.5rem; }

.rl-sbody ul,
.rl-sbody ol {
  margin: 0.75rem 0 1rem 1.25rem;
  padding-left: 1.25rem;
}
.rl-sbody li { margin-bottom: 0.4rem; }

.rl-sbody table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
@media (min-width: 480px) {
  .rl-sbody table { display: table; }
}
.rl-sbody th,
.rl-sbody td {
  border: 1px solid var(--rl-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.rl-sbody th {
  background: var(--rl-border);
  font-weight: 600;
}

.rl-faq { margin-top: 2rem; }
.rl-faq h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rl-text);
}

.rl-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rl-related li {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rl-border);
}
.rl-related li:last-child { border-bottom: none; }
.rl-related a {
  color: var(--rl-primary);
  text-decoration: none;
}
.rl-related a:hover { text-decoration: underline; }

.rl-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rl-border);
  font-size: 0.875rem;
  color: var(--rl-muted);
}
.rl-footer a {
  color: var(--rl-primary);
  text-decoration: none;
}
.rl-footer a:hover { text-decoration: underline; }

.rl-hubinfo {
  color: var(--rl-muted);
  margin-bottom: 1.5rem;
}
.rl-plist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rl-plist li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rl-border);
}
.rl-plist li:last-child { border-bottom: none; }
.rl-plist a {
  color: var(--rl-primary);
  text-decoration: none;
  display: block;
}
.rl-plist a:hover { text-decoration: underline; }

.rl-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.rl-pager a {
  color: var(--rl-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--rl-bg);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
}
.rl-pager a:hover {
  background: var(--rl-primary);
  color: white;
  border-color: var(--rl-primary);
}
.rl-pginfo {
  color: var(--rl-muted);
  font-size: 0.875rem;
}
