/* Settings panel and hidden-filter note. Square corners, no italics, no font changes. */
.settings-btn {
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font: 480 .95rem/1 var(--sans);
  padding: 8px 12px;
  text-decoration: none;
}
.settings-btn:hover { background: rgba(143,165,138,.16); color: var(--ink); }
.settings-btn[aria-expanded="true"] { color: var(--ink); background: rgba(143,165,138,.2); }

.nr-prefs-note {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  font-size: .88rem;
  color: var(--ink-3);
  max-width: 68ch;
}
.nr-prefs-note[hidden] { display: none !important; }
.nr-prefs-note-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--sage-d);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nr-prefs-note-btn:hover { color: var(--ink); }
.nr-prefs-banner { margin: 12px auto 0; width: min(1160px, 100% - 40px); }

.nr-set {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  z-index: 240;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(20,32,25,.55);
  padding: clamp(8px, 2vh, 20px);
  overflow: hidden;
  overscroll-behavior: none;
}
@media (min-width: 800px) {
  .nr-set { align-items: center; }
}
.nr-set[hidden] { display: none !important; }
.nr-set-card {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--card, #fbf8f1);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.nr-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 20px 10px;
  background: var(--card, #fbf8f1);
}
.nr-set-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
}
.nr-set-head h2 { margin: 0; font-size: 1.5rem; }
.nr-set-close {
  appearance: none;
  cursor: pointer;
  font: 600 .9rem var(--sans);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 7px 16px;
}
.nr-set-lede { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
.nr-set-section { margin-top: 18px; }
.nr-set-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nr-set-label-row h3 { margin: 0; font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-variation-settings: normal; }
.nr-set-mini { display: flex; gap: 8px; }
.nr-set-mini-btn {
  appearance: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font: 500 .82rem var(--sans);
  padding: 5px 10px;
}
.nr-set-mini-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.nr-set-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nr-set-switch {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  font: 500 1.05rem var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-color: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nr-set-switch[aria-checked="false"] { opacity: .55; }
.nr-set-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper, #f6f1e7);
  background-color: var(--paper, #f6f1e7);
  box-shadow: none;
  pointer-events: none;
  display: inline-flex;
  overflow: hidden;
}
.nr-set-mark {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  background-color: var(--ink);
  transform: scale(0);
  transform-origin: center center;
}
.nr-set-switch.is-on .nr-set-mark,
.nr-check.is-on .nr-set-mark,
.nr-set-switch[aria-checked="true"] .nr-set-mark,
.nr-check[aria-checked="true"] .nr-set-mark {
  transform: scale(1);
}
.nr-set-switch.is-on .nr-set-box,
.nr-check.is-on .nr-set-box,
.nr-set-switch[aria-checked="true"] .nr-set-box,
.nr-check[aria-checked="true"] .nr-set-box {
  background: var(--ink);
  background-color: var(--ink);
}
.nr-set-switch[aria-checked="false"] .nr-set-box,
.nr-check[aria-checked="false"] .nr-set-box {
  background: var(--paper, #f6f1e7);
  background-color: var(--paper, #f6f1e7);
  box-shadow: none;
}
.nr-set-profs.prof-chips { margin-top: 10px; }
.nr-set-profs .nr-set-switch { flex-direction: row; align-items: center; }
.nr-set-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.nr-set-reset { padding: 8px 16px; font-size: .9rem; }

body.nr-settings-open { overflow: hidden; }

@media (min-width: 800px) {
  body.home .nr-prefs-note {
    flex-shrink: 0;
    margin-top: clamp(4px, .6vh, 8px);
    font-size: .82rem;
  }
  body.home .settings-btn { padding: clamp(6px, 1vh, 8px) 12px; }
}

/* Author display rules can override the hidden attribute, so force these off. */
.chip[hidden],
a.card[hidden],
a.pill[hidden],
a.tag[hidden],
.biz-list li[hidden],
.pill-list li[hidden] { display: none !important; }

/* Visible country checkboxes: always on screen so a country can be turned back on. Square boxes. */
.nr-country-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  position: relative;
  z-index: 2;
}
.nr-country-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font: 500 1.05rem var(--sans);
  color: var(--ink);
}
.nr-country-checks-label { color: var(--ink-3); font-weight: 500; font-size: 1.05rem; }
.nr-check {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  padding: 4px 2px;
  min-height: 32px;
  font: inherit;
  color: var(--ink);
  user-select: none;
  background: transparent;
  background-color: transparent;
  border: 0;
  border-radius: var(--r);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nr-check[aria-checked="false"] { opacity: .55; }
.nr-check:focus-visible {
  outline: 2px solid var(--ochre-d, #9c7a33);
  outline-offset: 2px;
}
.nr-country-bar .nr-prefs-note { margin: 0; }
.nrmap-countries { flex-shrink: 0; margin: 8px 0 0; }

@media (min-width: 800px) {
  body.home .nr-country-bar,
  body.home .nr-country-checks {
    flex-shrink: 0;
    font-size: 1.05rem;
  }
  body.home .nr-country-bar { margin: 0 0 clamp(2px, .4vh, 6px); }
  body.home .nr-check { min-height: 32px; }
}

