:root {
  --rr-bg: #f2fbf7;
  --rr-surface: #ffffff;
  --rr-surface-mint: #e6f7ef;
  --rr-surface-muted: #f8fafc;
  --rr-ink: #0f172a;
  --rr-ink-body: #1e293b;
  --rr-ink-muted: #475569;
  --rr-border: #cde6da;
  --rr-border-strong: #9fd0ba;
  --rr-emerald: #047857;
  --rr-emerald-hover: #065f46;
  --rr-teal: #0d9488;
  --rr-amber-bg: #fffbeb;
  --rr-amber-border: #fcd34d;
  --rr-amber-ink: #92400e;
  --rr-radius-lg: 16px;
  --rr-radius-md: 11px;
  --rr-radius-sm: 8px;
  --rr-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(4, 120, 87, 0.05);
  --rr-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --rr-font-mono: 'SFMono-Regular', ui-monospace, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--rr-bg);
  color: var(--rr-ink);
  font-family: var(--rr-font-sans);
  line-height: 1.62;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--rr-bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(13, 148, 136, 0.08), transparent 36%),
    radial-gradient(circle at 90% 4%, rgba(4, 120, 87, 0.07), transparent 34%);
  color: var(--rr-ink);
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--rr-emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rr-emerald-hover);
}

.rr-vault-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rr-vault-canvas {
  flex: 1 0 auto;
  width: 100%;
}

.rr-vault-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* LF1 Topbar */
.wb-top.rr-topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rr-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.rr-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rr-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--rr-ink);
  text-decoration: none;
}

.rr-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--rr-emerald) 0%, var(--rr-teal) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rr-archive-pill {
  font-family: var(--rr-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rr-surface-mint);
  color: var(--rr-emerald);
  border: 1px solid var(--rr-border-strong);
}

.rr-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rr-nav a {
  text-decoration: none;
  color: var(--rr-ink-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 999px;
}

.rr-nav a:hover,
.rr-nav a.is-active {
  background: var(--rr-surface-mint);
  color: var(--rr-emerald);
}

.rr-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rr-border-strong);
  background: var(--rr-surface);
  color: var(--rr-ink);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
}

/* Top Affiliate Disclosure & Tier C Consolidation Notice */
.aff-notice-top.rr-aff-banner {
  background: #0f172a;
  color: #e2e8f0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.82rem;
}

.rr-aff-banner .rr-banner-row,
.rr-consolidation-notice .rr-banner-row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.rr-aff-banner p {
  margin: 0;
  line-height: 1.48;
}

.rr-aff-banner a {
  color: #6ee7b7;
  font-weight: 700;
  white-space: nowrap;
}

.rr-consolidation-notice {
  background: var(--rr-amber-bg);
  border-bottom: 1px solid var(--rr-amber-border);
  color: var(--rr-amber-ink);
  font-size: 0.86rem;
}

.rr-consolidation-notice p {
  margin: 0;
  line-height: 1.5;
}

.rr-consolidation-notice a {
  color: #78350f;
  font-weight: 800;
  white-space: nowrap;
}

/* Main Single-Column LF1 Workbench Container */
.rr-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 18px 54px;
}

.wb-hero.rr-hero {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-left: 5px solid var(--rr-emerald);
  border-radius: var(--rr-radius-lg);
  padding: 24px 26px;
  box-shadow: var(--rr-shadow);
  margin-bottom: 22px;
}

.rr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rr-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rr-emerald);
  background: var(--rr-surface-mint);
  border: 1px solid var(--rr-border-strong);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--rr-ink);
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  margin: 26px 0 10px;
  color: var(--rr-ink);
}

h3 {
  font-size: 1.04rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--rr-ink);
}

.rr-hero p {
  margin: 0 0 10px;
  color: var(--rr-ink-body);
  max-width: 78ch;
}

.rr-hero p:last-child {
  margin-bottom: 0;
}

/* LF1 Interactive Billing-Cycle Renewal Jump Estimator */
.rr-workbench-form {
  background: var(--rr-surface);
  border: 1.5px solid var(--rr-border-strong);
  border-radius: var(--rr-radius-lg);
  padding: 24px 26px;
  box-shadow: var(--rr-shadow);
  margin-bottom: 26px;
}

.rr-workbench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rr-border-strong);
  margin-bottom: 18px;
}

.rr-workbench-head h2 {
  margin: 0;
}

.rr-fx-note {
  font-family: var(--rr-font-mono);
  font-size: 0.78rem;
  color: var(--rr-ink-muted);
}

.rr-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.9fr;
  gap: 14px;
  margin-bottom: 16px;
}

.rr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rr-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rr-ink);
}

.rr-field select,
.rr-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--rr-radius-sm);
  border: 1.5px solid var(--rr-border-strong);
  background: var(--rr-surface-muted);
  color: var(--rr-ink);
  font-family: var(--rr-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.rr-field select:focus,
.rr-field input[type="number"]:focus {
  outline: 2px solid var(--rr-teal);
  outline-offset: 1px;
  background: var(--rr-surface);
}

.rr-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--rr-surface-mint);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-sm);
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

.rr-toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rr-gauges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rr-gauge-card {
  background: var(--rr-surface-muted);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-md);
  padding: 13px 15px;
}

.rr-gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.rr-gauge-top output {
  font-family: var(--rr-font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rr-emerald);
}

.rr-gauge-card meter,
.rr-gauge-card progress {
  width: 100%;
  height: 14px;
  accent-color: var(--rr-emerald);
}

.rr-gauge-sub {
  font-size: 0.76rem;
  color: var(--rr-ink-muted);
  margin-top: 4px;
}

.rr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rr-kpi-box {
  background: var(--rr-bg);
  border: 1px solid var(--rr-border-strong);
  border-radius: var(--rr-radius-md);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rr-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rr-ink-muted);
}

.rr-kpi-val {
  font-family: var(--rr-font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--rr-ink);
  font-variant-numeric: tabular-nums;
}

.rr-kpi-val.is-mint {
  color: var(--rr-emerald);
}

.rr-kpi-sub {
  font-size: 0.76rem;
  color: var(--rr-ink-body);
}

.rr-code-wrap {
  margin-bottom: 18px;
}

.rr-code-label {
  font-family: var(--rr-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rr-ink-muted);
  margin-bottom: 6px;
}

pre.rr-code-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--rr-radius-md);
  background: #0f172a;
  color: #d1fae5;
  font-family: var(--rr-font-mono);
  font-size: 0.81rem;
  line-height: 1.55;
  overflow-x: auto;
  border: 1px solid #1e293b;
}

.rr-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rr-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--rr-radius-sm);
  background: var(--rr-emerald);
  color: #ffffff !important;
  border: 1px solid var(--rr-emerald);
  font-family: var(--rr-font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none !important;
  cursor: pointer;
}

.rr-btn-solid:hover {
  background: var(--rr-emerald-hover);
  border-color: var(--rr-emerald-hover);
}

.rr-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: var(--rr-radius-sm);
  background: var(--rr-surface);
  color: var(--rr-ink) !important;
  border: 1px solid var(--rr-border-strong);
  font-family: var(--rr-font-sans);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none !important;
  cursor: pointer;
}

.rr-btn-ghost:hover {
  background: var(--rr-surface-mint);
  color: var(--rr-emerald) !important;
}

/* Breakdown List & Tariff Comparison Table */
.rr-card-section,
.rr-breakdown-list,
.rr-tariff-table,
.rr-faq,
.rr-article-box {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--rr-shadow);
  margin-bottom: 24px;
}

.rr-breakdown-list h2,
.rr-tariff-table h2,
.rr-faq h2,
.rr-card-section h2 {
  margin-top: 0;
}

.rr-mechanic-ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--rr-ink-body);
}

.rr-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
}

table.rr-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.rr-data-table th,
table.rr-data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rr-border);
  text-align: left;
  vertical-align: middle;
}

table.rr-data-table th {
  background: var(--rr-surface-mint);
  color: var(--rr-ink);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.rr-mono {
  font-family: var(--rr-font-mono);
  font-variant-numeric: tabular-nums;
}

.rr-citation-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--rr-radius-sm);
  background: var(--rr-surface-muted);
  border: 1px dashed var(--rr-border-strong);
  font-size: 0.81rem;
  color: var(--rr-ink-muted);
}

/* Media Briefing Section */
.rr-media-section {
  margin-bottom: 24px;
}

.rr-media-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--rr-shadow);
}

.rr-media-visuals {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rr-media-frame {
  background: #0f172a;
  border-radius: 12px;
  padding: 6px;
  width: 164px;
}

.rr-media-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  display: block;
  background: #0f172a;
}

.rr-media-poster {
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--rr-border-strong);
  display: block;
}

.rr-media-copy h2 {
  margin-top: 4px;
}

/* Directory Cards & Subpages */
.rr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rr-note-card {
  background: var(--rr-bg);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.rr-note-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--rr-ink-body);
}

.rr-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--rr-ink-muted);
  margin-bottom: 14px;
}

.rr-partner-strip {
  background: var(--rr-surface-mint);
  border: 1px solid var(--rr-border-strong);
  border-radius: var(--rr-radius-md);
  padding: 15px 18px;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rr-watchout {
  background: var(--rr-amber-bg);
  border: 1px solid var(--rr-amber-border);
  color: var(--rr-amber-ink);
  border-radius: var(--rr-radius-md);
  padding: 14px 16px;
  margin: 18px 0;
}

.rr-inline-thumb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--rr-surface-muted);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-md);
  margin: 16px 0;
}

.rr-inline-thumb img {
  width: 64px;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--rr-border-strong);
  flex-shrink: 0;
}

/* FAQ <details> */
details.rr-faq-item {
  border-bottom: 1px solid var(--rr-border);
  padding: 12px 0;
}

details.rr-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

details.rr-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--rr-ink);
  list-style: revert;
}

details.rr-faq-item p {
  margin: 8px 0 0;
  color: var(--rr-ink-body);
  font-size: 0.91rem;
}

/* Footer */
.rr-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 3px solid var(--rr-emerald);
  margin-top: auto;
}

.rr-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 18px 28px;
}

.rr-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.rr-footer h3 {
  color: #f8fafc;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.rr-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.rr-footer a {
  color: #99f6e4;
  text-decoration: none;
}

.rr-footer a:hover {
  text-decoration: underline;
}

.rr-footer-closing {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  font-size: 0.81rem;
  color: #94a3b8;
}

.rr-footer-closing p {
  margin: 0 0 6px;
}

.rr-footer-links-inline {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

/* Admin Shell */
.rr-admin-wrap {
  max-width: 980px;
  margin: 36px auto;
  padding: 0 18px;
}

.rr-admin-login {
  max-width: 440px;
  margin: 48px auto;
  background: var(--rr-surface);
  border: 1.5px solid var(--rr-border-strong);
  border-top: 4px solid var(--rr-emerald);
  border-radius: var(--rr-radius-lg);
  padding: 26px;
  box-shadow: var(--rr-shadow);
}

.rr-pw-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.rr-pw-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--rr-radius-sm);
  border: 1.5px solid var(--rr-border-strong);
  font-size: 0.95rem;
}

.rr-alert-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: var(--rr-radius-sm);
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.rr-alert-ok {
  background: var(--rr-surface-mint);
  border: 1px solid var(--rr-border-strong);
  color: var(--rr-emerald);
  padding: 10px 12px;
  border-radius: var(--rr-radius-sm);
  margin-bottom: 12px;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .rr-form-grid,
  .rr-gauges-grid,
  .rr-kpi-grid,
  .rr-grid-2,
  .rr-grid-3,
  .rr-footer-cols,
  .rr-media-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .rr-media-poster {
    display: none;
  }
}
