.rns-portal-view,
.rns-standalone,
.rns-gate {
  --rns-ink: var(--rn-ink, #173d35);
  --rns-lime: var(--rn-lime, #d7ef58);
  --rns-paper: var(--rn-paper, #f7f3e9);
  --rns-white: var(--rn-white, #fffdf7);
  --rns-line: var(--rn-line, rgba(23, 61, 53, .17));
  --rns-red: var(--rn-red, #a61f45);
  color: var(--rns-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.rns-portal-view *,
.rns-standalone *,
.rns-gate * {
  box-sizing: border-box;
}

.rns-portal-view[hidden] {
  display: none !important;
}

.rns-header {
  max-width: 820px;
}

.rns-eyebrow {
  margin: 0 0 11px !important;
  color: #667a21;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rns-eyebrow span {
  color: #171717;
  font-style: normal;
}

.rns-eyebrow em {
  color: var(--rns-red);
  font-style: normal;
}

.rns-header h1 {
  margin: 0 !important;
  color: var(--rns-ink);
  font: 500 clamp(38px, 5vw, 62px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.rns-header > p:last-child {
  max-width: 720px;
  margin: 16px 0 0 !important;
  color: #5b6e67;
  font-size: 15px;
  line-height: 1.65;
}

.rns-classification {
  margin-top: 28px;
  padding: 22px;
  border-top: 4px solid var(--rns-lime);
}

.rns-classification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rns-classification-grid article {
  padding: 16px;
  border-radius: 9px;
  background: #f2f6df;
}

.rns-classification-grid h2 {
  margin: 0 0 8px !important;
  color: var(--rns-ink);
  font: 700 18px Georgia, "Times New Roman", serif;
}

.rns-classification-grid p {
  margin: 0 !important;
  color: #50675f;
  font-size: 10px;
  line-height: 1.6;
}

.rns-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 35px 0;
}

.rns-kpis article,
.rns-classification,
.rns-filter-card,
.rns-card,
.rns-key,
.rns-method {
  border: 1px solid var(--rns-line);
  border-radius: 13px;
  background: var(--rns-white);
}

.rns-kpis article {
  padding: 22px;
}

.rns-kpis b {
  display: block;
  color: var(--rns-ink);
  font: 500 29px Georgia, "Times New Roman", serif;
}

.rns-kpis small {
  color: #60736c;
  font-size: 12px;
}

.rns-filter-card {
  position: sticky;
  top: 12px;
  z-index: 8;
  margin-bottom: 22px;
  padding: 20px;
  border-top: 4px solid var(--rns-lime);
  box-shadow: 0 12px 30px rgba(23, 61, 53, .1);
}

.rns-search,
.rns-filter-grid label {
  display: grid;
  gap: 7px;
  color: #50675f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rns-filter-card input,
.rns-filter-card select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--rns-line);
  border-radius: 7px;
  background: #fff;
  color: var(--rns-ink);
  font: 13px Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}

.rns-filter-card input:focus,
.rns-filter-card select:focus {
  border-color: var(--rns-ink);
  outline: 3px solid rgba(215, 239, 88, .55);
}

.rns-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 13px;
}

.rns-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 39px;
  padding-top: 12px;
}

.rns-results p {
  margin: 0 !important;
  color: #60736c;
  font-size: 12px;
}

.rns-results strong {
  color: var(--rns-red);
  font-size: 17px;
}

.rn-portal .rns-results button,
.rns-results button {
  padding: 7px 0 !important;
  border: 0;
  background: transparent !important;
  color: var(--rns-red) !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.rns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rns-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 21px;
  box-shadow: 0 5px 15px rgba(23, 61, 53, .04);
  transition: box-shadow .16s ease, transform .16s ease;
}

.rns-card:hover {
  box-shadow: 0 12px 30px rgba(23, 61, 53, .12);
  transform: translateY(-2px);
}

.rns-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.rns-card-top > span {
  padding: 4px 7px;
  border: 1px solid var(--rns-line);
  border-radius: 4px;
  color: #536961;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rns-card-top > small {
  color: #71837c;
  font-size: 9px;
  font-weight: 700;
}

.rns-card-top > small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--rns-lime);
  box-shadow: 0 0 0 1px rgba(23, 61, 53, .2);
}

.rns-maker {
  margin: 18px 0 4px !important;
  color: var(--rns-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rns-card > h2 {
  margin: 0 !important;
  color: var(--rns-ink);
  font: 500 27px/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.rns-summary {
  min-height: 47px;
  margin: 12px 0 18px !important;
  color: #5d7069;
  font-size: 12px;
  line-height: 1.55;
}

.rns-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--rns-line);
  border-bottom: 1px solid var(--rns-line);
}

.rns-facts-primary {
  margin-top: 16px;
  border: 1px solid #dce6a8;
  border-radius: 8px;
  background: #f5f8e8;
}

.rns-facts-primary > div {
  padding: 12px;
}

.rns-facts-primary > div + div {
  padding-left: 12px;
}

.rns-facts-primary dd {
  color: var(--rns-red);
}

.rns-facts > div {
  padding: 14px 0;
}

.rns-facts > div + div {
  padding-left: 15px;
  border-left: 1px solid var(--rns-line);
}

.rns-facts dt,
.rns-measures h3 {
  margin: 0 0 7px !important;
  color: #71837c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rns-facts dd {
  margin: 0;
  color: var(--rns-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.rns-facts small {
  display: block;
  margin-top: 5px;
  color: #71837c;
  font-size: 9px;
  line-height: 1.4;
}

.rns-measures {
  padding: 16px 0;
}

.rns-measures ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.rns-measures li {
  margin: 0 !important;
  padding: 5px 7px;
  border-radius: 4px;
  background: #edf2d5;
  color: #425a51;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.rns-evidence {
  margin-top: auto;
  padding: 12px 13px;
  border-left: 4px solid;
  border-radius: 7px;
}

.rns-evidence strong {
  font-size: 11px;
}

.rns-evidence p {
  margin: 6px 0 0 !important;
  color: #4f625b;
  font-size: 9px;
  line-height: 1.55;
}

.rns-evidence[data-level="direct"],
.rns-key article[data-level="direct"] {
  border-color: #3b7c61;
  background: #e7f3eb;
  color: #225e45;
}

.rns-evidence[data-level="partial"],
.rns-key article[data-level="partial"] {
  border-color: #ae7a17;
  background: #faf1d8;
  color: #79520a;
}

.rns-evidence[data-level="method"],
.rns-key article[data-level="method"] {
  border-color: #4d718f;
  background: #e9f0f5;
  color: #365d7c;
}

.rns-evidence[data-level="none"],
.rns-key article[data-level="none"] {
  border-color: #777d7a;
  background: #eef0ef;
  color: #565c59;
}

.rns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.rns-actions a {
  display: inline-flex;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--rns-ink);
  border-radius: 7px;
  background: var(--rns-ink);
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none !important;
}

.rns-actions a.secondary {
  background: #fff;
  color: var(--rns-ink) !important;
}

.rns-key {
  margin-top: 28px;
  padding: 26px;
}

.rns-key > h2,
.rns-method > h2,
.rns-empty h2 {
  margin: 0 0 17px !important;
  color: var(--rns-ink);
  font: 500 30px/1.1 Georgia, "Times New Roman", serif;
}

.rns-key-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rns-key article {
  min-height: 125px;
  padding: 16px;
  border-left: 4px solid;
  border-radius: 7px;
}

.rns-key article h3 {
  margin: 0 0 8px !important;
  color: currentColor;
  font: 700 17px Georgia, "Times New Roman", serif;
}

.rns-key article p {
  margin: 0 !important;
  color: #4f625b;
  font-size: 10px;
  line-height: 1.55;
}

.rns-method {
  margin-top: 14px;
  padding: 24px 26px;
  border-left: 4px solid var(--rns-lime);
}

.rns-method p {
  max-width: 900px;
  margin: 0 0 11px !important;
  color: #5a6e66;
  font-size: 11px;
  line-height: 1.65;
}

.rns-method a {
  color: var(--rns-red) !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.rns-empty {
  grid-column: 1 / -1;
  padding: 55px 25px;
  border: 1px dashed var(--rns-line);
  border-radius: 13px;
  background: var(--rns-white);
  text-align: center;
}

.rns-empty p {
  margin: 0 !important;
  color: #60736c;
}

.rns-standalone {
  max-width: 1250px;
  margin: 30px auto;
  padding: clamp(20px, 4vw, 50px);
  border-radius: 18px;
  background: var(--rns-paper);
}

.rns-gate {
  max-width: 850px;
  margin: 30px auto;
  padding: 48px;
  border-radius: 18px;
  background: var(--rns-paper);
  text-align: center;
}

.rns-gate h2 {
  margin: 0 0 10px !important;
  color: var(--rns-ink);
  font: 500 40px Georgia, "Times New Roman", serif;
}

.rns-gate h2 span {
  color: #171717;
}

.rns-gate h2 em {
  color: var(--rns-red);
  font-style: normal;
}

.rns-gate p {
  margin: 0 0 22px !important;
  color: #5b6e67;
}

.rns-gate a {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--rns-ink);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .rns-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .rns-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rns-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .rns-filter-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .rns-kpis,
  .rns-filter-grid,
  .rns-classification-grid,
  .rns-key-grid {
    grid-template-columns: 1fr;
  }

  .rns-card {
    padding: 18px;
  }

  .rns-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .rns-facts {
    grid-template-columns: 1fr;
  }

  .rns-facts > div + div {
    padding-left: 0;
    border-top: 1px solid var(--rns-line);
    border-left: 0;
  }

  .rns-results {
    align-items: flex-start;
    flex-direction: column;
  }

  .rns-actions {
    flex-direction: column;
  }

  .rns-gate {
    padding: 35px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rns-card {
    transition: none;
  }
}
