/* UAE Sustainability Regulation Navigator — uses EcopsHub tokens from style.css */

.rn { color: var(--charcoal); }

/* Keep site header + navigator bar stacked and always visible on these pages. */
body.rn-page .nav,
body.rn-page .nav.nav--hidden {
  transform: none !important;
}
body.rn-page .nav {
  z-index: 1000;
}

.rn-subnav {
  position: sticky;
  top: 72px;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(15, 23, 42, 0.04);
}
.rn-subnav__inner { display: flex; gap: 16px; align-items: center; padding: 10px 0; }
.rn-subnav__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--deep-green);
  font-size: 0.85rem;
  white-space: nowrap;
}
.rn-subnav nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.rn-subnav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.rn-subnav a.is-active, .rn-subnav a[aria-current="page"] { background: rgba(11, 110, 79, 0.1); color: var(--deep-green); }
.rn-hero {
  padding: 32px 0 20px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(111, 207, 151, 0.18), transparent 55%),
    linear-gradient(180deg, #f3faf6 0%, #fff 88%);
  border-bottom: 1px solid rgba(11, 110, 79, 0.08);
}
.rn-hero__inner { max-width: 920px; }
.rn-kicker { color: var(--deep-green); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
.rn h1 { font-family: var(--font-heading); letter-spacing: -0.03em; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; margin: 8px 0 12px; }
.rn-lead { font-size: 1.08rem; line-height: 1.65; max-width: 68ch; color: #374151; }
.rn-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.rn-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.rn-hero__stats li {
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 110, 79, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}
.rn-hero__stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--deep-green);
}
.rn-hero__stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--mid-grey);
}
.rn-hero__meta { color: var(--mid-grey); font-size: 0.88rem; margin: 0 0 14px; }
.rn-hero__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rn-hero__jumps a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep-green);
  background: #fff;
  border: 1px solid rgba(11, 110, 79, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
}
.rn-hero__jumps a:hover { background: rgba(11, 110, 79, 0.06); }
.rn-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.85rem; }
.rn-crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--mid-grey); }
.rn-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.rn-disclaimer--compact { margin-top: 0; }
.rn-disclaimer p { margin: 0; font-size: 0.92rem; }
.rn-article { padding: 28px 0 72px; background: #fcfdfc; }
.rn-article__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.rn-toc {
  position: sticky;
  top: 140px;
  z-index: 1;
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(11, 110, 79, 0.12);
  border-radius: 16px;
  padding: 14px 12px 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.rn-toc__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-green);
}
.rn-toc__mobile { display: none; }
.rn-toc__mobile > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-green);
}
.rn-toc__mobile > summary::-webkit-details-marker { display: none; }
.rn-toc__mobile > summary::after {
  content: "▾";
  float: right;
  color: var(--mid-grey);
}
.rn-toc__desktop { min-height: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rn-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: calc(100vh - 280px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.rn-toc__list a {
  display: block;
  text-decoration: none;
  color: #374151;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 7px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}
.rn-toc__list a:hover { background: rgba(11, 110, 79, 0.06); color: var(--deep-green); }
.rn-toc__list a.is-active {
  background: rgba(11, 110, 79, 0.1);
  color: var(--deep-green);
  font-weight: 700;
  border-left-color: var(--deep-green);
}
.rn-toc__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--light-grey);
}
.rn-toc__secondary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--deep-green);
  text-decoration: none;
  text-align: center;
}
.rn-toc__secondary:hover { text-decoration: underline; }
.rn-prose {
  min-width: 0;
  max-width: 780px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 28px 32px 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}
.rn-prose section {
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eef2f0;
  scroll-margin-top: 150px;
}
.rn-prose section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rn-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #12352a;
}
.rn-prose h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.rn-prose p, .rn-prose li { line-height: 1.7; color: #1f2937; }
.rn-prose p { margin: 0 0 12px; }
.rn-prose a { color: var(--deep-green); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.rn-aside { position: sticky; top: 132px; border: 1px solid var(--light-grey); border-radius: 16px; padding: 14px; background: #fff; }
.rn-aside__title { font-weight: 700; margin: 0 0 8px; }
.rn-aside ol { margin: 0 0 12px; padding-left: 18px; font-size: 0.82rem; }
.rn-aside a { color: var(--deep-green); }
.rn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  margin: 14px 0;
  background: #fff;
}
.rn table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rn th, .rn td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--light-grey); vertical-align: top; }
.rn th { background: #f4faf7; font-size: 0.74rem; letter-spacing: 0.03em; text-transform: uppercase; color: #35584b; }
.rn tr:last-child td { border-bottom: 0; }
.rn-faq {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  margin: 0 0 10px;
  background: #fbfcfc;
  overflow: hidden;
}
.rn-faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 14px;
  list-style: none;
}
.rn-faq summary::-webkit-details-marker { display: none; }
.rn-faq summary::after {
  content: "+";
  float: right;
  color: var(--deep-green);
  font-weight: 700;
}
.rn-faq[open] summary::after { content: "–"; }
.rn-faq p { padding: 0 14px 14px; margin: 0; }
.rn-module { padding-bottom: 72px; }
.rn-module h1 { margin-top: 8px; }
.rn-ssr-list { padding-left: 18px; }
.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  margin: 0 6px 6px 0;
}
.rn-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rn-badge--in_force { background: #ecfdf3; color: #067647; }
.rn-badge--amended { background: #fffbeb; color: #b45309; }
.rn-badge--forthcoming, .rn-badge--confirmed_future { background: #eff6ff; color: #1d4ed8; }
.rn-badge--under_consultation, .rn-badge--consultation { background: #f5f3ff; color: #6d28d9; }
.rn-badge--repealed, .rn-badge--historical { background: #f3f4f6; color: #4b5563; }
.rn-badge--needs_verification, .rn-badge--proposed, .rn-badge--expected { background: #fff7ed; color: #c2410c; border-style: dashed; }
.rn-badge--obligation { background: #f8fafc; color: #334155; }
.rn-badge--in_force_event { background: #ecfdf3; color: #067647; }
.rn-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.rn-filters { border: 1px solid var(--light-grey); border-radius: 16px; padding: 14px; background: #fff; }
.rn-filters label, .rn-field label { display: block; font-size: 0.78rem; font-weight: 700; margin: 10px 0 4px; }
.rn-filters input, .rn-filters select, .rn-field input, .rn-field select, .rn-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.rn-checks { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; font-size: 0.86rem; }
.rn-checks label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.rn-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.rn-card, .rn-event, .rn-check {
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 12px;
  background: #fff;
}
.rn-card h3, .rn-event h3, .rn-check h3 { margin: 6px 0; font-size: 1.02rem; }
.rn-card p, .rn-event p, .rn-check p { margin: 6px 0; }
.rn-year { font-family: var(--font-heading); color: var(--deep-green); margin: 18px 0 8px; }
.rn-timeline { border-left: 3px solid #d1fae5; margin-left: 8px; padding-left: 16px; }
.rn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rn-empty { padding: 24px; border: 1px dashed #d1d5db; border-radius: 16px; background: #fafafa; }
.rn-pager { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.rn-detail-page {
  background: #fcfdfc;
  padding: 28px 0 80px;
  border-top: 1px solid rgba(11, 110, 79, 0.06);
}
.rn-detail {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  padding: 32px 40px 40px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}
.rn-detail__header {
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eef2f0;
}
.rn-detail__header h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  color: #12352a;
}
.rn-detail__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.rn-detail__header .rn-lead {
  margin: 0 0 18px;
  max-width: 70ch;
}
.rn-detail__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rn-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}
.rn-facts div {
  background: #f6faf8;
  border: 1px solid rgba(11, 110, 79, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}
.rn-facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b7168;
  margin: 0;
}
.rn-facts dd {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1f2937;
}
.rn-detail__section {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #eef2f0;
  scroll-margin-top: 150px;
}
.rn-detail__section h2 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: #12352a;
  margin: 0 0 14px;
}
.rn-detail__section h3 {
  font-size: 0.98rem;
  margin: 18px 0 8px;
  color: #1f3d32;
}
.rn-detail__body p,
.rn-detail__body li {
  line-height: 1.7;
  color: #1f2937;
}
.rn-detail__body p {
  margin: 0 0 12px;
}
.rn-detail__body ul,
.rn-detail__body ol {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  display: grid;
  gap: 8px;
}
.rn-detail__body li + li {
  margin-top: 0;
}
.rn-detail__empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d1d5db;
  color: #4b5563;
  font-size: 0.95rem;
}
.rn-detail__dates {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.rn-detail__dates li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px solid #e8eee9;
}
.rn-detail__dates strong {
  color: var(--deep-green);
  font-size: 0.92rem;
}
.rn-detail__related,
.rn-detail__sources {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.rn-detail__related li,
.rn-detail__sources li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e8eee9;
  background: #fbfcfc;
}
.rn-detail__related a,
.rn-detail__sources a {
  color: var(--deep-green);
  font-weight: 700;
  text-decoration: none;
}
.rn-detail__related a:hover,
.rn-detail__sources a:hover {
  text-decoration: underline;
}
.rn-detail__related span,
.rn-detail__sources span {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}
.rn-detail .rn-disclaimer {
  margin: 28px 0 0;
}
.rn-detail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f0;
}
.rn-detail__nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--deep-green);
  background: rgba(11, 110, 79, 0.06);
  border: 1px solid rgba(11, 110, 79, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
}
.rn-detail__nav a:hover {
  background: rgba(11, 110, 79, 0.1);
}
.rn-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.rn-stepper__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f6f5;
  border: 1px solid transparent;
  color: var(--mid-grey);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}
.rn-stepper__index {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 700;
}
.rn-stepper__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rn-stepper__item.is-on {
  background: #ecfdf3;
  border-color: rgba(11, 110, 79, 0.18);
  color: #067647;
}
.rn-stepper__item.is-on .rn-stepper__index {
  background: var(--deep-green);
  color: #fff;
}
.rn-stepper__item.is-done {
  background: rgba(11, 110, 79, 0.06);
  color: var(--deep-green);
}
.rn-stepper__item.is-done .rn-stepper__index {
  background: #a7f3d0;
  color: #065f46;
}
.rn-promo { border-left: 4px solid var(--deep-green); background: #f8faf9; }
.rn-legal-note { border-left: 4px solid #b45309; background: #fffbeb; }

/* Explorer wizard */
.rn-explorer-page {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(111, 207, 151, 0.14), transparent 55%),
    linear-gradient(180deg, #f3faf6 0%, #fcfdfc 42%, #fcfdfc 100%);
  padding: 28px 0 80px;
  border-top: 1px solid rgba(11, 110, 79, 0.06);
}
.rn-explorer {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  padding: 32px 40px 36px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}
.rn-explorer__header {
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eef2f0;
}
.rn-explorer__header h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  color: #12352a;
}
.rn-explorer__header .rn-lead {
  margin: 0 0 16px;
  max-width: 68ch;
}
.rn-explorer__points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.rn-explorer__points li {
  position: relative;
  padding: 10px 14px 10px 36px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid rgba(11, 110, 79, 0.08);
  font-size: 0.92rem;
  color: #274338;
}
.rn-explorer__points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--deep-green);
  transform: translateY(-50%);
}
.rn-explorer__ssr { color: var(--mid-grey); font-size: 0.92rem; }
.rn-explorer__wizard { margin-top: 8px; }
.rn-wizard__progress {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--mid-grey);
  font-weight: 600;
}
.rn-wizard__panel {
  display: grid;
  gap: 16px;
}
.rn-wizard__actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2f0;
  justify-content: space-between;
}
.rn-field--choice {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fbfcfb;
}
.rn-field--choice legend {
  padding: 0 6px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #12352a;
}
.rn-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.rn-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 12px;
  border: 1px solid #d7ddd9;
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem !important;
  font-weight: 550 !important;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rn-choice:hover {
  border-color: rgba(11, 110, 79, 0.35);
  background: #f8faf9;
}
.rn-choice.is-selected {
  border-color: rgba(11, 110, 79, 0.45);
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px rgba(11, 110, 79, 0.12);
  color: #065f46;
}
.rn-filters input[type="checkbox"],
.rn-filters input[type="radio"],
.rn-field input[type="checkbox"],
.rn-field input[type="radio"],
.rn-choice input {
  width: auto !important;
  margin: 2px 0 0;
  accent-color: var(--deep-green);
  flex: 0 0 auto;
}
.rn-choice span { line-height: 1.35; }
.rn-hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 0.88rem;
}
.rn-results { display: grid; gap: 12px; }
.rn-results__summary {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf3 0%, #f0fdf4 55%, #fff 100%);
  border: 1px solid rgba(11, 110, 79, 0.14);
  font-size: 0.95rem;
  color: #14532d;
}
.rn-results__summary strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--deep-green);
}
.rn-match__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.rn-match h3 { margin-top: 4px; }
.rn-match__why { color: #274338; }
.rn-match__facts {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eef2f0;
}
.rn-match__facts div {
  display: grid;
  gap: 2px;
}
.rn-match__facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid-grey);
}
.rn-match__facts dd {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-word;
}
.rn-match__facts a {
  color: var(--deep-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rn-form { display: grid; gap: 8px; max-width: 560px; }
.rn-error { color: #b91c1c; font-weight: 650; }
.rn-ok { color: #067647; font-weight: 650; }
.rn-changelog { list-style: none; padding: 0; }
.rn-changelog li { border-top: 1px solid var(--light-grey); padding: 16px 0; }
.rn-changelog__date { color: var(--mid-grey); font-size: 0.85rem; }
.rn a:focus-visible, .rn button:focus-visible, .rn input:focus-visible, .rn select:focus-visible, .rn summary:focus-visible {
  outline: 2px solid var(--deep-green);
  outline-offset: 2px;
}
@media (max-width: 980px) {
  .rn-article__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rn-toc {
    position: static;
    max-height: none;
    order: -1;
  }
  .rn-toc__desktop { display: none; }
  .rn-toc__mobile { display: block; }
  .rn-toc__list {
    max-height: none;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
  .rn-prose { padding: 20px 18px 28px; border-radius: 14px; }
  .rn-aside { position: static; }
  .rn-subnav { top: 64px; z-index: 990; }
  .rn-subnav__inner { flex-direction: column; align-items: stretch; }
  .rn-toc { top: 148px; }
  .rn-filters { display: block; }
  .rn-layout, .rn-facts { grid-template-columns: 1fr; }
  .rn-detail-page { padding: 18px 0 64px; }
  .rn-detail {
    padding: 22px 18px 28px;
    border-radius: 16px;
  }
  .rn-explorer-page { padding: 18px 0 64px; }
  .rn-explorer {
    padding: 22px 18px 28px;
    border-radius: 16px;
  }
  .rn-stepper {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    grid-template-columns: none;
  }
  .rn-stepper__item {
    flex: 0 0 auto;
    max-width: 200px;
  }
  .rn-choice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rn-toc__list { grid-template-columns: 1fr; }
  .rn-hero__stats li { min-width: calc(50% - 6px); flex: 1; }
  .rn-detail__header h1 { font-size: 1.45rem; }
  .rn-detail__nav a { width: 100%; justify-content: center; }
  .rn-explorer__header h1 { font-size: 1.45rem; }
  .rn-choice-grid { grid-template-columns: 1fr; }
  .rn-wizard__actions { flex-direction: column-reverse; }
  .rn-wizard__actions .btn { width: 100%; }
}
@media print {
  .nav, .footer, .rn-subnav, .rn-filters, .rn-hero__actions, .rn-hero__jumps, .rn-toc, .rn-aside, .rn-no-print, .rn-form { display: none !important; }
  .rn-prose { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .rn-detail-page { background: #fff; padding: 0; }
  .rn-detail { border: 0; box-shadow: none; padding: 0; }
  .rn-check { break-inside: avoid; }
  body { background: #fff; }
}
