/* NFRisk Regulatory Horizon
   Isolated component styles. All selectors use the nf-rh prefix. */

.nf-rh-home {
  background: var(--nf-paper);
}

.nf-rh-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 32px;
}

.nf-rh-heading-grid .nf-section-heading {
  margin-bottom: 0;
}

.nf-rh-heading-grid .nf-section-heading p:last-child {
  max-width: 790px;
}

.nf-rh-verification {
  min-width: 185px;
  padding: 8px 0 8px 17px;
  color: var(--nf-slate);
  border-left: 3px solid var(--nf-teal);
  font-size: 0.78rem;
  line-height: 1.6;
}

.nf-rh-verification span,
.nf-rh-verification strong {
  display: block;
}

.nf-rh-verification strong {
  margin-top: 8px;
  color: var(--nf-ink);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf-rh-verification strong:first-child {
  margin-top: 0;
}

.nf-rh-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nf-rh-card {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-rh-card-date {
  margin-bottom: 14px;
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.nf-rh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.nf-rh-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  overflow: hidden;
  color: var(--nf-teal-dark);
  background: #dcefed;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.065em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nf-rh-badge--regime {
  color: #315563;
  background: #edf2f3;
}

.nf-rh-badge--type {
  color: #495f6b;
  background: #e7ecee;
}

.nf-rh-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.38;
  letter-spacing: -0.012em;
}

.nf-rh-card-scope {
  margin-bottom: 18px;
  color: var(--nf-slate);
  font-size: 0.82rem;
  line-height: 1.55;
}

.nf-rh-source-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--nf-teal-dark) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.nf-rh-source-link:hover,
.nf-rh-source-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-rh-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.nf-rh-home-actions .nf-rh-exact-note {
  margin: 0 0 0 auto;
  color: var(--nf-slate);
  font-size: 0.76rem;
}

.nf-rh-state {
  padding: 22px 24px;
  color: var(--nf-slate);
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-left: 4px solid var(--nf-teal);
  border-radius: var(--nf-radius-control);
}

.nf-rh-state p {
  margin: 0;
}

.nf-rh-state--error {
  border-left-color: var(--nf-amber);
}

/* Full page */
.nf-rh-hero {
  position: relative;
  overflow: hidden;
}

.nf-rh-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 420px;
  align-items: center;
  padding-block: clamp(64px, 8vw, 92px);
}

.nf-rh-hero-inner .nf-hero-copy {
  max-width: 900px;
}

.nf-rh-hero::after {
  position: absolute;
  right: -210px;
  bottom: -430px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.nf-rh-proof-line {
  margin: 23px 0 0;
  color: #91d6d0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.nf-rh-scope-wrap {
  position: relative;
  z-index: 2;
  margin-top: -25px;
}

.nf-rh-scope-notice {
  padding: 20px 22px;
  color: var(--nf-slate);
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-left: 5px solid var(--nf-teal);
  border-radius: var(--nf-radius-control);
  box-shadow: var(--nf-shadow-sm);
  font-size: 0.9rem;
}

.nf-rh-scope-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--nf-ink);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nf-rh-review-warning {
  margin-top: 18px;
  padding: 18px 20px;
  color: #684112;
  background: #fff4e4;
  border: 1px solid #ead1ad;
  border-left: 5px solid var(--nf-amber);
  border-radius: var(--nf-radius-control);
  font-size: 0.88rem;
}

.nf-rh-review-warning strong {
  color: #5b360a;
}

.nf-rh-explorer {
  padding-top: clamp(58px, 7vw, 88px);
}

.nf-rh-explorer .nf-section-heading {
  margin-bottom: 28px;
}

.nf-rh-loading,
.nf-rh-page-failure {
  padding: 28px;
  color: var(--nf-slate);
  background: var(--nf-paper);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-card);
}

.nf-rh-page-failure h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.nf-rh-filter-panel-wrap {
  padding: 18px;
  background: var(--nf-paper);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-card);
}

.nf-rh-primary-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nf-rh-search {
  position: relative;
}

.nf-rh-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nf-rh-search input,
.nf-rh-horizon-select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--nf-ink);
  background: var(--nf-white);
  border: 1px solid #b7c6cd;
  border-radius: var(--nf-radius-control);
  font: inherit;
  font-size: 0.78rem;
}

.nf-rh-search input::placeholder {
  color: #697f8a;
  opacity: 1;
}

.nf-rh-search input:focus-visible,
.nf-rh-horizon-select:focus-visible,
.nf-rh-filter-summary:focus-visible,
.nf-rh-action-button:focus-visible,
.nf-rh-copy-button:focus-visible,
.nf-rh-clear-button:focus-visible {
  outline: 3px solid rgba(20, 122, 118, 0.24);
  outline-offset: 2px;
  border-color: var(--nf-teal);
}

.nf-rh-filter {
  position: relative;
  min-width: 0;
}

.nf-rh-filter-summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  color: var(--nf-slate);
  background: var(--nf-white);
  border: 1px solid #b7c6cd;
  border-radius: var(--nf-radius-control);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.25;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-rh-filter-summary::-webkit-details-marker {
  display: none;
}

.nf-rh-filter-summary::after {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin: -4px 2px 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.nf-rh-filter[open] .nf-rh-filter-summary {
  color: var(--nf-teal-dark);
  border-color: var(--nf-teal);
}

.nf-rh-filter[open] .nf-rh-filter-summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nf-rh-filter-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max(100%, 230px);
  max-height: 290px;
  gap: 2px;
  padding: 9px;
  overflow: auto;
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-control);
  box-shadow: var(--nf-shadow-lg);
}

.nf-rh-filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px;
  color: var(--nf-ink);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nf-rh-filter-option:hover {
  background: var(--nf-pale);
}

.nf-rh-filter-option input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--nf-teal);
}

.nf-rh-secondary-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(210px, 1.1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.nf-rh-clear-button,
.nf-rh-copy-button,
.nf-rh-action-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--nf-teal-dark);
  background: var(--nf-white);
  border: 1px solid #a9bbc3;
  border-radius: var(--nf-radius-control);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.nf-rh-clear-button:hover,
.nf-rh-copy-button:hover,
.nf-rh-action-button:hover {
  color: var(--nf-white);
  background: var(--nf-teal-dark);
  border-color: var(--nf-teal-dark);
}

.nf-rh-action-button:disabled {
  color: #71828b;
  background: #f0f3f4;
  border-color: #d4dde2;
  cursor: not-allowed;
}

.nf-rh-action-button:disabled:hover {
  color: #71828b;
  background: #f0f3f4;
  border-color: #d4dde2;
}

.nf-rh-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}

.nf-rh-result-meta {
  margin: 0;
  color: var(--nf-slate);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.nf-rh-result-meta strong {
  color: var(--nf-ink);
}

.nf-rh-copy-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nf-rh-copy-button {
  min-height: auto;
  padding: 7px 11px;
  color: var(--nf-teal-dark);
  background: transparent;
  border-color: transparent;
}

.nf-rh-copy-status {
  min-width: 1px;
  color: var(--nf-slate);
  font-size: 0.75rem;
}

.nf-rh-table-wrap {
  overflow: visible;
  border-top: 1px solid var(--nf-line);
}

.nf-rh-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.nf-rh-table col:nth-child(1) {
  width: 15%;
}

.nf-rh-table col:nth-child(2) {
  width: 14%;
}

.nf-rh-table col:nth-child(3) {
  width: 37%;
}

.nf-rh-table col:nth-child(4) {
  width: 14%;
}

.nf-rh-table col:nth-child(5) {
  width: 20%;
}

.nf-rh-table thead {
  color: var(--nf-white);
  background: var(--nf-deep);
}

.nf-rh-table th {
  padding: 14px 13px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.nf-rh-row {
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.nf-rh-row td {
  padding: 24px 13px;
  vertical-align: top;
  border-bottom: 1px solid var(--nf-line);
}

.nf-rh-row.is-highlighted {
  background: #eef8f6;
  box-shadow: inset 5px 0 0 var(--nf-teal);
}

.nf-rh-row:focus {
  outline: 3px solid rgba(20, 122, 118, 0.26);
  outline-offset: -3px;
}

.nf-rh-date,
.nf-rh-authority,
.nf-rh-jurisdiction,
.nf-rh-precision,
.nf-rh-type-label,
.nf-rh-record-warning,
.nf-rh-source-locator {
  display: block;
}

.nf-rh-date {
  color: var(--nf-ink);
  font-family: var(--nf-font-heading);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.nf-rh-precision {
  margin-top: 10px;
  color: var(--nf-teal-dark);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nf-rh-authority {
  color: var(--nf-ink);
  font-size: 0.8rem;
}

.nf-rh-jurisdiction {
  margin-top: 20px;
  color: var(--nf-slate);
  font-size: 0.7rem;
  line-height: 1.45;
}

.nf-rh-record-title {
  margin-bottom: 7px !important;
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
  letter-spacing: -0.012em !important;
}

.nf-rh-context,
.nf-rh-interpretation,
.nf-rh-pillars {
  margin-bottom: 8px;
  color: var(--nf-slate);
  font-size: 0.72rem;
  line-height: 1.55;
}

.nf-rh-context strong {
  color: var(--nf-ink);
}

.nf-rh-interpretation {
  padding-left: 10px;
  color: #355764;
  border-left: 2px solid var(--nf-mint-soft);
}

.nf-rh-pillars {
  margin-bottom: 0;
  color: var(--nf-teal-dark);
  font-weight: 700;
}

.nf-rh-status {
  display: inline-flex;
  padding: 6px 9px;
  color: #17625a;
  background: #dff0ec;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.nf-rh-status--announced {
  color: #81521d;
  background: #fff0dc;
}

.nf-rh-status--indicative {
  color: #4f5e68;
  background: #e8edef;
}

.nf-rh-type-label {
  margin-top: 11px;
  color: var(--nf-slate);
  font-size: 0.68rem;
  line-height: 1.45;
}

.nf-rh-record-warning {
  margin-top: 10px;
  color: #8a581e;
  font-size: 0.66rem;
  font-weight: 750;
}

.nf-rh-actions-cell {
  display: grid;
  gap: 9px;
}

.nf-rh-action-link {
  color: var(--nf-teal-dark) !important;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.nf-rh-action-link:hover,
.nf-rh-action-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-rh-source-locator {
  color: var(--nf-slate);
  font-size: 0.64rem;
  line-height: 1.5;
}

.nf-rh-actions-cell .nf-rh-action-button {
  width: 100%;
  min-height: 35px;
  padding: 6px 9px;
  font-size: 0.68rem;
}

.nf-rh-no-results {
  padding: 38px 24px;
  color: var(--nf-slate);
  background: var(--nf-paper);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-card);
  text-align: center;
}

.nf-rh-no-results h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.nf-rh-no-results .nf-rh-clear-button {
  margin-top: 14px;
}

.nf-rh-method {
  margin-top: clamp(58px, 7vw, 92px);
  background: var(--nf-paper);
}

.nf-rh-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nf-rh-method-card {
  padding: 24px;
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius-card);
}

.nf-rh-method-card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.nf-rh-method-card p {
  color: var(--nf-slate);
  font-size: 0.82rem;
  line-height: 1.6;
}

.nf-rh-method-note {
  max-width: 850px;
  margin-top: 24px;
  color: var(--nf-slate);
  font-size: 0.86rem;
}

.nf-rh-maintenance-anchor {
  scroll-margin-top: calc(var(--nf-header-height) + 30px);
}

@media (max-width: 1080px) {
  .nf-rh-primary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-rh-search {
    grid-column: 1 / -1;
  }

  .nf-rh-secondary-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-rh-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nf-rh-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-rh-card {
    min-height: 245px;
  }

  .nf-rh-table col:nth-child(1) {
    width: 17%;
  }

  .nf-rh-table col:nth-child(2) {
    width: 13%;
  }

  .nf-rh-table col:nth-child(3) {
    width: 38%;
  }

  .nf-rh-table col:nth-child(4) {
    width: 13%;
  }

  .nf-rh-table col:nth-child(5) {
    width: 19%;
  }

  .nf-rh-row td,
  .nf-rh-table th {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 760px) {
  .nf-rh-heading-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nf-rh-verification {
    min-width: 0;
  }

  .nf-rh-widget-grid {
    grid-template-columns: 1fr;
  }

  .nf-rh-card {
    min-height: 0;
  }

  .nf-rh-home-actions {
    align-items: stretch;
  }

  .nf-rh-home-actions .nf-btn {
    width: 100%;
    justify-content: center;
  }

  .nf-rh-home-actions .nf-rh-exact-note {
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
  }

  .nf-rh-scope-wrap {
    margin-top: -16px;
  }

  .nf-rh-primary-filters,
  .nf-rh-secondary-controls {
    grid-template-columns: 1fr;
  }

  .nf-rh-search {
    grid-column: auto;
  }

  .nf-rh-filter-panel {
    position: static;
    width: 100%;
    max-height: 240px;
    margin-top: 5px;
    box-shadow: none;
  }

  .nf-rh-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nf-rh-copy-wrap {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nf-rh-copy-button {
    padding-left: 0;
  }

  .nf-rh-table {
    display: block;
  }

  .nf-rh-table colgroup,
  .nf-rh-table thead {
    display: none;
  }

  .nf-rh-table tbody {
    display: grid;
    gap: 18px;
  }

  .nf-rh-row {
    display: grid;
    padding: 8px 18px 18px;
    background: var(--nf-white);
    border: 1px solid var(--nf-line);
    border-radius: var(--nf-radius-card);
    box-shadow: var(--nf-shadow-sm);
  }

  .nf-rh-row td {
    display: grid;
    grid-template-columns: minmax(105px, 33%) minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nf-line);
  }

  .nf-rh-row td::before {
    color: var(--nf-teal-dark);
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .nf-rh-row td:last-child {
    border-bottom: 0;
  }

  .nf-rh-main-cell > * {
    grid-column: 2;
  }

  .nf-rh-main-cell::before {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .nf-rh-jurisdiction {
    margin-top: 8px;
  }

  .nf-rh-actions-cell {
    display: grid;
  }

  .nf-rh-actions-cell::before {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .nf-rh-actions-cell > * {
    grid-column: 2;
  }

  .nf-rh-method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nf-rh-filter-panel-wrap {
    padding: 12px;
  }

  .nf-rh-row td {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .nf-rh-row td::before,
  .nf-rh-main-cell::before,
  .nf-rh-actions-cell::before {
    grid-column: 1;
    grid-row: auto;
  }

  .nf-rh-main-cell > *,
  .nf-rh-actions-cell > * {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-rh-row,
  .nf-rh-filter-summary::after {
    transition: none;
  }
}

@media print {
  .nf-rh-filter-panel-wrap,
  .nf-rh-copy-wrap,
  .nf-rh-action-button,
  .nf-rh-home-actions,
  .nf-header,
  .nf-footer {
    display: none !important;
  }

  .nf-rh-row {
    break-inside: avoid;
  }

  .nf-rh-table {
    font-size: 9pt;
  }
}
