:root {
  --nf-bg: #fbfaf6;
  --nf-surface: #fffefd;
  --nf-surface-warm: #f4efe7;
  --nf-text: #202326;
  --nf-muted: #5f676b;
  --nf-line: #ded8cf;
  --nf-link: #2f6773;
  --nf-link-hover: #224e58;
  --nf-accent: #8a6f2a;
  --nf-research: #2f6773;
  --nf-state: #687f5b;
  --nf-model: #6f5d78;
  --nf-lived: #9b6655;
  --nf-synthesis: #8a6f2a;
  --nf-shadow: 0 18px 48px rgba(32, 35, 38, 0.07);
  --body_bgcolor: var(--nf-bg);
  --header_bgcolor: var(--nf-bg);
  --body_text_color: var(--nf-text);
  --link_color: var(--nf-link);
  --tag_bgcolor: var(--nf-accent);
  --button_bgcolor: var(--nf-link);
  --button_hover_bgcolor: var(--nf-link-hover);
  --footerbg_color: var(--nf-text);
  --footer_color: #fffefd;
  --siteinfo_color: #fffefd;
  --border_color: var(--nf-line);
  --current_menu_link_color: var(--nf-link);
}

body {
  background: var(--nf-bg) !important;
  color: var(--nf-text) !important;
}

body.home .site,
body.home #page,
body.home #content,
body.home .site-content {
  background: var(--nf-bg) !important;
}

body.home .entry-header,
body.page #secondary.thesidebar,
body.page .widget-area {
  display: none !important;
}

body.home #primary.site-main,
body.page #primary.site-main,
body.home article.page,
body.page article.page,
body.home .entry-content,
body.page .entry-content {
  width: 100%;
  max-width: none;
}

body.home .site,
body.page .site,
body.home .container,
body.page .container,
body.home .columns,
body.page .columns,
body.home .column {
  max-width: none;
}

a {
  color: var(--nf-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--nf-link-hover);
}

.main-navigation a,
.site-header a,
.wp-block-navigation a,
.menu-extras a,
.post-edit-link,
.pally-skip-link {
  color: var(--nf-text) !important;
  border-color: var(--nf-line) !important;
}

.main-navigation a:hover,
.site-header a:hover,
.wp-block-navigation a:hover,
.menu-extras a:hover,
.post-edit-link:hover {
  color: var(--nf-link) !important;
}

.menu-toggle,
.desktop-search button,
.wp-block-search__button,
input[type="submit"],
button[type="submit"] {
  background: var(--nf-link) !important;
  border-color: var(--nf-link) !important;
  color: #fffefd !important;
}

.menu-toggle:hover,
.desktop-search button:hover,
.wp-block-search__button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--nf-link-hover) !important;
  border-color: var(--nf-link-hover) !important;
  color: #fffefd !important;
}

.site-footer {
  background: var(--nf-text) !important;
  color: #fffefd !important;
}

.site-footer a {
  color: #fffefd !important;
}

.site-footer .go-to-top,
.site-footer .go-to-top span,
.aticon-gototop {
  background: var(--nf-accent) !important;
  color: #fffefd !important;
}

.admin-bar .adminbar-button {
  background: var(--nf-link) !important;
}

.widget a,
.widget-area a,
.thesidebar a,
.wp-block-latest-posts__post-title,
.wp-block-latest-comments__comment-author,
.wp-block-latest-comments__comment-link {
  background: transparent !important;
  color: var(--nf-link) !important;
  border-color: var(--nf-line) !important;
}

.widget a:hover,
.widget-area a:hover,
.thesidebar a:hover,
.wp-block-latest-posts__post-title:hover,
.wp-block-latest-comments__comment-author:hover,
.wp-block-latest-comments__comment-link:hover {
  color: var(--nf-link-hover) !important;
}

body.home .entry-footer,
body.page .entry-footer,
body.home .edit-link,
body.page .edit-link {
  display: none !important;
}

.entry-content,
.wp-site-blocks {
  font-size: clamp(1.0625rem, 0.98rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
}

.entry-content p,
.entry-content li {
  max-width: 720px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3 {
  color: var(--nf-text);
  line-height: 1.14;
  letter-spacing: 0;
}

.nf-hero {
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--nf-line);
}

.nf-hero h1 {
  max-width: 980px;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
}

.nf-dek {
  max-width: 760px;
  color: var(--nf-muted);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.55;
}

.nf-section {
  padding-top: clamp(2.25rem, 6vw, 5rem);
  padding-bottom: clamp(2.25rem, 6vw, 5rem);
}

.nf-muted-band {
  border-top: 1px solid var(--nf-line);
  border-bottom: 1px solid var(--nf-line);
  background: var(--nf-surface-warm);
}

.nf-eyebrow,
.nf-meta {
  color: var(--nf-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf-meta {
  letter-spacing: 0;
  text-transform: none;
}

.nf-card,
.nf-status-box,
.nf-summary,
.nf-glossary,
.nf-sources,
.nf-related,
.nf-infographic {
  border: 1px solid var(--nf-line);
  border-radius: 8px;
  background: var(--nf-surface);
  box-shadow: var(--nf-shadow);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.nf-card {
  min-height: 100%;
}

.nf-card h3,
.nf-related h3,
.nf-infographic h3 {
  font-size: 1.25rem;
  margin-top: 0;
}

.nf-card p,
.nf-related p,
.nf-infographic p {
  color: var(--nf-muted);
}

.nf-status-box {
  border-left: 6px solid var(--nf-synthesis);
}

.nf-status-research {
  border-left-color: var(--nf-research);
}

.nf-status-state {
  border-left-color: var(--nf-state);
}

.nf-status-model {
  border-left-color: var(--nf-model);
}

.nf-status-lived {
  border-left-color: var(--nf-lived);
}

.nf-status-synthesis {
  border-left-color: var(--nf-synthesis);
}

.nf-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.nf-topic-list li {
  border: 1px solid var(--nf-line);
  border-radius: 999px;
  background: var(--nf-surface);
  padding: 0.45rem 0.8rem;
  color: var(--nf-text);
  font-weight: 650;
}

.nf-alt-text {
  border-top: 1px solid var(--nf-line);
  color: var(--nf-muted);
  padding-top: 1rem;
}

.wp-block-button__link {
  background: var(--nf-link) !important;
  border-radius: 8px;
  color: #fffefd !important;
  font-weight: 700;
  padding: 0.82rem 1.1rem;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link.has-background.is-style-outline {
  background: transparent !important;
  border: 1px solid var(--nf-link) !important;
  color: var(--nf-link) !important;
}

.wp-block-button__link:hover {
  background: var(--nf-link-hover) !important;
  color: #fffefd !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--nf-link) !important;
  color: #fffefd !important;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--nf-text);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .nf-card-grid,
  .nf-info-grid {
    gap: 1rem;
  }

  .nf-hero {
    padding-top: 2.5rem;
  }

  .nf-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
}
