:root {
  --nfs-ink: #102535;
  --nfs-ink-2: #17394b;
  --nfs-muted: #526572;
  --nfs-green: #007a55;
  --nfs-green-dark: #005f43;
  --nfs-green-soft: #e9f7f1;
  --nfs-blue: #0969c3;
  --nfs-blue-dark: #07559d;
  --nfs-gold: #f2b544;
  --nfs-red: #ad1c35;
  --nfs-paper: #ffffff;
  --nfs-mist: #f4f8f7;
  --nfs-line: #dbe5e3;
  --nfs-shadow: 0 14px 40px rgba(16, 37, 53, 0.1);
  --nfs-radius: 18px;
  --nfs-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nfs-serif: Georgia, "Times New Roman", serif;
  --nfs-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background: var(--nfs-paper);
  color: var(--nfs-ink);
  font-family: var(--nfs-sans);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: break-word;
}

body.admin-bar {
  --wp-admin--admin-bar--height: 32px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  display: block;
  fill: currentColor;
  height: 1.25em;
  width: 1.25em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

a {
  color: var(--nfs-blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--nfs-green-dark);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  box-shadow: 0 0 0 3px #ffbf27;
  outline: 3px solid var(--nfs-ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--nfs-ink);
  font-family: var(--nfs-serif);
  line-height: 1.2;
  margin: 0 0 0.65em;
}

p {
  margin: 0 0 1.15em;
}

ul,
ol {
  padding-inline-start: 1.35em;
}

blockquote {
  border-inline-start: 5px solid var(--nfs-green);
  color: var(--nfs-ink-2);
  font-family: var(--nfs-serif);
  font-size: 1.12em;
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--nfs-line);
  margin: 2rem 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  background: var(--nfs-paper);
  box-shadow: var(--nfs-shadow);
  clip: auto !important;
  clip-path: none;
  color: var(--nfs-ink);
  display: block;
  font-weight: 700;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.site-container {
  margin-inline: auto;
  max-width: var(--nfs-container);
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
}

.narrow-container {
  max-width: 800px;
}

.page-container {
  max-width: 920px;
}

.section-space {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.compact-section {
  padding-bottom: 0;
}

.section-tint {
  background: var(--nfs-mist);
}

.eyebrow,
.entry-kicker,
.card-kicker,
.hero-kicker {
  color: var(--nfs-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  line-height: 1.3;
  text-transform: uppercase;
}

.entry-kicker,
.card-kicker,
.hero-kicker {
  text-decoration: none;
}

.button,
button.button,
input[type="submit"],
.wp-block-button__link {
  align-items: center;
  background: var(--nfs-green);
  border: 2px solid var(--nfs-green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  gap: 0.45rem;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--nfs-green-dark);
  border-color: var(--nfs-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--nfs-ink);
}

.button-secondary:hover {
  background: var(--nfs-ink);
  border-color: var(--nfs-ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 0.35rem;
}

.text-link svg,
.button svg {
  flex: 0 0 auto;
}

/* Header */
.site-header {
  background: var(--nfs-paper);
  border-bottom: 1px solid var(--nfs-line);
  position: relative;
  z-index: 20;
}

.utility-bar {
  background: var(--nfs-ink);
  color: #fff;
  font-size: 0.78rem;
}

.utility-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.utility-message {
  margin: 0;
}

.utility-navigation .menu,
.footer-navigation .menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utility-navigation a {
  color: #fff;
  text-decoration: none;
}

.utility-navigation a:hover {
  text-decoration: underline;
}

.branding-row {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto;
  min-height: 98px;
  padding-block: 1rem;
}

.brand-link,
.footer-brand {
  align-items: center;
  color: var(--nfs-ink);
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--nfs-green);
  border-radius: 13px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.brand-mark svg {
  height: 28px;
  width: 28px;
}

.brand-copy {
  display: grid;
}

.site-title {
  font-family: var(--nfs-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.05;
}

.site-description {
  color: var(--nfs-muted);
  font-size: 0.73rem;
  line-height: 1.35;
  margin-top: 0.28rem;
}

.custom-logo-link {
  display: inline-flex;
}

.custom-logo {
  max-height: 72px;
  width: auto;
}

.search-form {
  display: flex;
  position: relative;
  width: 100%;
}

.search-field {
  background: #f4f7f7;
  border: 1px solid #ccd9d6;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.75rem 3.3rem 0.75rem 1.1rem;
  width: 100%;
}

.search-field:focus {
  background: #fff;
  border-color: var(--nfs-green);
}

.search-submit {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--nfs-ink);
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.header-action,
.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--nfs-ink);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 750;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.header-action:hover,
.menu-toggle:hover {
  background: var(--nfs-green-soft);
  color: var(--nfs-green-dark);
}

.menu-toggle {
  display: none;
}

.navigation-shell {
  border-top: 1px solid var(--nfs-line);
}

.primary-navigation .menu {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation .menu-item {
  position: relative;
}

.primary-navigation .menu > .menu-item > a {
  align-items: center;
  color: var(--nfs-ink);
  display: flex;
  font-size: 0.92rem;
  font-weight: 720;
  min-height: 52px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation .menu > .menu-item > a:hover {
  color: var(--nfs-green-dark);
}

.primary-navigation .current-menu-item > a::after,
.primary-navigation .current-menu-ancestor > a::after {
  background: var(--nfs-green);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0.9rem;
  position: absolute;
  right: 0.9rem;
}

.primary-navigation .sub-menu {
  background: #fff;
  border: 1px solid var(--nfs-line);
  border-radius: 12px;
  box-shadow: var(--nfs-shadow);
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 250px;
  opacity: 0;
  padding: 0.45rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 2px);
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  visibility: hidden;
  z-index: 30;
}

.primary-navigation .menu-item:hover > .sub-menu,
.primary-navigation .menu-item:focus-within > .sub-menu,
.primary-navigation .menu-item.submenu-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.primary-navigation .sub-menu a {
  border-radius: 8px;
  color: var(--nfs-ink);
  display: block;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  text-decoration: none;
}

.primary-navigation .sub-menu a:hover {
  background: var(--nfs-green-soft);
}

.submenu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: none;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 0.3rem;
  top: 0.3rem;
  width: 38px;
}

.submenu-toggle::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  transform: rotate(45deg) translateY(-2px);
  width: 7px;
}

.submenu-toggle[aria-expanded="true"]::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

/* Homepage */
.home-hero {
  background: linear-gradient(135deg, #eaf8f2 0%, #f7fbff 55%, #fff6e4 100%);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.hero-primary {
  background: #fff;
  border: 1px solid rgba(0, 122, 85, 0.18);
  border-radius: 24px;
  box-shadow: var(--nfs-shadow);
  display: grid;
  grid-template-rows: minmax(280px, auto) auto;
  overflow: hidden;
}

.hero-image {
  background: var(--nfs-ink);
  display: block;
  min-height: 280px;
}

.hero-image img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-content {
  padding: clamp(1.25rem, 3.4vw, 2.35rem);
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.035em;
  margin: 0.18em 0 0.42em;
}

.hero-content h1 a {
  color: inherit;
  text-decoration: none;
}

.hero-excerpt {
  color: var(--nfs-muted);
  font-size: 1.02rem;
}

.hero-excerpt p {
  margin-bottom: 1rem;
}

.hero-secondary {
  display: grid;
  gap: 0.8rem;
}

.hero-mini-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  padding: 0.55rem;
}

.hero-mini-image {
  border-radius: 9px;
  display: block;
  height: 94px;
  overflow: hidden;
}

.hero-mini-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-mini-card h2 {
  font-family: var(--nfs-sans);
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.hero-mini-card h2 a {
  color: inherit;
  text-decoration: none;
}

.mini-meta {
  color: var(--nfs-muted);
  font-size: 0.73rem;
}


/* Original Notes for SHS Popular Posts feature — full-bleed hero and overlay rail. */
.popular-home-hero {
  background: #0b1422;
  padding: 0;
}

.popular-home-hero .popular-feature {
  position: relative;
  min-height: 438px;
  isolation: isolate;
  overflow: hidden;
  background: #0c1b30;
}

.popular-feature-background,
.popular-feature-shade {
  position: absolute;
  inset: 0;
}

.popular-feature-background {
  display: block;
  z-index: -2;
}

.popular-feature-background img,
.popular-feature-background .image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.popular-feature-shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 10, 23, .35) 0%, rgba(7, 13, 24, .22) 38%, rgba(5, 9, 20, .09) 100%),
    linear-gradient(0deg, rgba(3, 8, 18, .64) 0%, rgba(3, 8, 18, .28) 38%, rgba(0, 0, 0, .03) 100%);
}

.popular-home-hero .popular-feature-shell {
  max-width: 970px;
  min-height: 438px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding-top: 80px;
  padding-bottom: 0;
}

.popular-feature-copy {
  max-width: 600px;
  padding-bottom: 44px;
}

.popular-feature-category {
  display: inline-block;
  background: #2466eb;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font: 800 12px/1.2 var(--nfs-sans);
  padding: 5px 12px;
  text-transform: uppercase;
}

.popular-feature-category:hover,
.popular-feature-category:focus-visible {
  background: #1747b0;
  color: #fff !important;
}

.popular-feature-copy h1 {
  color: #fff !important;
  font: 800 clamp(28px, 3.25vw, 36px)/1.16 var(--nfs-sans);
  letter-spacing: -.035em;
  margin: 20px 0 21px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

.popular-feature-copy h1 a {
  color: #fff !important;
  text-decoration: none;
}

.popular-feature-copy h1 a:hover,
.popular-feature-copy h1 a:focus-visible {
  text-decoration: underline;
}

.popular-feature-author {
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.popular-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 23px 24px;
  background: rgba(16, 21, 35, .78);
  box-shadow: 0 -6px 24px rgba(6, 13, 25, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.popular-mini-story {
  align-items: center;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.popular-mini-image {
  display: block;
  width: 104px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
  background: #182a4b;
}

.popular-mini-image img,
.popular-mini-image .image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-mini-title {
  color: #fff !important;
  font: 800 15px/1.3 var(--nfs-sans);
  letter-spacing: -.015em;
  margin: 0;
}

.popular-mini-title a {
  color: #fff !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-mini-title a:hover,
.popular-mini-title a:focus-visible {
  color: #d3e3ff !important;
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .popular-home-hero .popular-feature-shell {
    max-width: calc(100% - 44px);
  }
}

@media (max-width: 760px) {
  .popular-home-hero .popular-feature,
  .popular-home-hero .popular-feature-shell {
    min-height: 490px;
  }
  .popular-home-hero .popular-feature-shell {
    padding-top: 65px;
    max-width: 100%;
  }
  .popular-feature-copy {
    padding: 0 12px 26px;
    max-width: 560px;
  }
  .popular-mini-strip {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 17px;
  }
  .popular-mini-story {
    scroll-snap-align: start;
    grid-template-columns: 93px minmax(0, 1fr);
    gap: 12px;
  }
  .popular-mini-image {
    width: 93px;
    height: 68px;
  }
}

@media (max-width: 480px) {
  .popular-home-hero .popular-feature,
  .popular-home-hero .popular-feature-shell {
    min-height: 440px;
  }
  .popular-home-hero .popular-feature-shell {
    padding-top: 52px;
  }
  .popular-feature-copy h1 {
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.2;
  }
  .popular-mini-strip {
    grid-template-columns: repeat(3, 240px);
  }
  .popular-mini-title {
    font-size: 13px;
  }
}


.image-placeholder {
  align-items: center;
  background: linear-gradient(145deg, var(--nfs-green), var(--nfs-blue));
  color: #fff;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: inherit;
  width: 100%;
}

.image-placeholder svg {
  height: 42px;
  opacity: 0.84;
  width: 42px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  margin: 0;
}

.topic-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  color: var(--nfs-ink);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto 1fr auto;
  min-height: 88px;
  padding: 0.8rem;
  text-decoration: none;
}

.topic-card:hover {
  border-color: #9bc9ba;
  box-shadow: 0 9px 25px rgba(16, 37, 53, 0.08);
}

.topic-icon {
  align-items: center;
  background: var(--nfs-green-soft);
  border-radius: 10px;
  color: var(--nfs-green-dark);
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.topic-card strong,
.topic-card small {
  display: block;
}

.topic-card strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.topic-card small {
  color: var(--nfs-muted);
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.post-grid {
  display: grid;
  gap: 1.25rem;
}

.post-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card {
  background: #fff;
  border: 1px solid var(--nfs-line);
  border-radius: var(--nfs-radius);
  box-shadow: 0 5px 18px rgba(16, 37, 53, 0.055);
  min-width: 0;
  overflow: hidden;
}

.card-image {
  background: var(--nfs-mist);
  display: block;
  overflow: hidden;
}

.card-image img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.post-card:hover .card-image img {
  transform: scale(1.025);
}

.card-content {
  padding: 1rem 1.05rem 1.15rem;
}

.card-title {
  font-family: var(--nfs-sans);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.35;
  margin: 0.35rem 0 0.55rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--nfs-green-dark);
}

.card-excerpt {
  color: var(--nfs-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.card-excerpt p {
  margin-bottom: 0.65rem;
}

.card-meta {
  align-items: center;
  color: var(--nfs-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 0.35rem;
}

.section-ink {
  background: var(--nfs-ink);
  color: #dce9ed;
}

.section-ink .section-heading h2,
.section-ink .eyebrow,
.section-ink .text-link {
  color: #fff;
}

.section-ink .post-card {
  border-color: rgba(255, 255, 255, 0.16);
}

.deals-banner {
  background: linear-gradient(120deg, #f7e2ac, #fff5d9 50%, #e8f6f1);
}

.deals-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
}

.deals-inner h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.deals-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 240px;
  position: relative;
}

.deals-visual span {
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--nfs-shadow);
  color: var(--nfs-green-dark);
  display: flex;
  height: 150px;
  justify-content: center;
  transform: rotate(-7deg);
  width: 150px;
}

.deals-visual span + span {
  color: var(--nfs-blue);
  margin-left: -22px;
  transform: rotate(7deg) translateY(20px);
}

.deals-visual svg {
  height: 74px;
  width: 74px;
}

/* Archives and sidebars */
.archive-header {
  margin-bottom: 2rem;
  max-width: 830px;
}

.archive-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.035em;
}

.archive-description,
.archive-header > p:last-child {
  color: var(--nfs-muted);
  font-size: 1.05rem;
}

.breadcrumbs {
  font-size: 0.76rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  color: #81929b;
  content: "/";
  margin-left: 0.4rem;
}

.breadcrumbs [aria-current="page"] {
  color: var(--nfs-muted);
}

.content-with-sidebar {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) 300px;
}

.site-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
}

.widget,
.rail-card,
.article-toc {
  background: var(--nfs-mist);
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  padding: 1rem;
}

.widget-title,
.footer-title,
.rail-card h2,
.article-toc h2 {
  font-family: var(--nfs-sans);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.widget ul,
.rail-card ul,
.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li + li,
.rail-card li + li,
.article-toc li + li {
  border-top: 1px solid var(--nfs-line);
  margin-top: 0.48rem;
  padding-top: 0.48rem;
}

.widget a,
.rail-card a,
.article-toc a {
  color: var(--nfs-ink-2);
  font-size: 0.83rem;
}

.sidebar-deals {
  background: #fff5d9;
  border-color: #ead291;
}

.navigation.pagination {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--nfs-line);
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--nfs-green);
  border-color: var(--nfs-green);
  color: #fff;
}

.empty-state,
.error-page {
  background: var(--nfs-mist);
  border: 1px solid var(--nfs-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.empty-state .search-form,
.error-page .search-form {
  margin: 1.5rem auto;
  max-width: 620px;
}

.empty-icon {
  color: var(--nfs-green);
  display: inline-flex;
  margin-bottom: 1rem;
}

.empty-icon svg {
  height: 54px;
  width: 54px;
}

.error-code {
  color: var(--nfs-green);
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Articles and pages */
.article-main {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.article-header-wrap {
  max-width: 1060px;
}

.article-header {
  max-width: 920px;
}

.article-header .entry-title,
.page-header h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.6rem);
  letter-spacing: -0.045em;
  margin: 0.18em 0 0.32em;
}

.entry-meta {
  align-items: center;
  color: var(--nfs-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.4rem;
}

.article-featured-image,
.page-featured-image {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.article-featured-image img,
.page-featured-image img {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  width: 100%;
}

figcaption,
.wp-caption-text {
  color: var(--nfs-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 0.55rem;
  text-align: left;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 780px) minmax(220px, 1fr);
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.article-body,
.page-article {
  min-width: 0;
}

.article-rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
}

.article-toc ol {
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1.5rem 1fr;
}

.article-toc li::before {
  color: var(--nfs-green-dark);
  content: counter(toc, decimal-leading-zero);
  font-size: 0.66rem;
  font-weight: 800;
  padding-top: 0.18rem;
}

.article-toc .toc-h3 {
  padding-left: 0.7rem;
}

.entry-content {
  color: #1d3442;
  font-size: 1rem;
  line-height: 1.75;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > p:first-of-type {
  font-size: 1.06rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: 1.5rem;
}

.entry-content h2 {
  border-bottom: 2px solid var(--nfs-line);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin: 2.15em 0 0.72em;
  padding-bottom: 0.3em;
}

.entry-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin: 1.7em 0 0.55em;
}

.entry-content h4 {
  font-family: var(--nfs-sans);
  font-size: 1.06rem;
  margin-top: 1.6em;
}

.entry-content a:not(.button):not(.wp-block-button__link) {
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  margin-block: 1rem 1.35rem;
}

.entry-content li {
  margin-block: 0.34rem;
}

.entry-content img {
  border-radius: 10px;
}

.entry-content figure {
  margin-inline: 0;
  max-width: 100%;
}

.entry-content .alignwide {
  margin-left: 50%;
  max-width: min(1040px, calc(100vw - 2rem));
  transform: translateX(-50%);
  width: 1040px;
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.entry-content table {
  border-collapse: collapse;
  display: block;
  margin: 1.5rem 0;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.entry-content caption {
  font-weight: 750;
  margin-bottom: 0.5rem;
  text-align: left;
}

.entry-content th,
.entry-content td {
  border: 1px solid #cfdcda;
  min-width: 120px;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--nfs-ink);
  color: #fff;
}

/* Migrated Word comparison tables use white-text column headings in td cells.
   Give those first rows the same readable contrast as native table headers. */
.entry-content table.MsoTable15Grid4Accent2 > tbody > tr:first-child > td,
.entry-content table.MsoTable15Grid4Accent6 > tbody > tr:first-child > td,
.entry-content table[class*="MsoTable"] > tbody > tr:first-child:has([style*="color: white"]) > td {
  background: var(--nfs-ink-2);
  border-color: #9eb5bf;
  color: #fff;
  font-weight: 700;
}

.entry-content pre {
  background: #12232e;
  border-radius: 12px;
  color: #eaf3f5;
  max-width: 100%;
  overflow: auto;
  padding: 1rem;
}

.entry-content code {
  background: #edf2f3;
  border-radius: 4px;
  font-size: 0.88em;
  padding: 0.12em 0.3em;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
}

.entry-content iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  height: auto;
  width: 100%;
}

.affiliate-notice {
  background: #fff8e6;
  border: 1px solid #ead79e;
  border-radius: 10px;
  color: #4d421e;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  padding: 0.72rem 0.85rem;
}

.affiliate-notice a {
  color: inherit;
}

.entry-footer {
  border-top: 1px solid var(--nfs-line);
  display: grid;
  font-size: 0.82rem;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list a {
  background: var(--nfs-mist);
  border: 1px solid var(--nfs-line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  text-decoration: none;
}

.post-navigation .nav-links {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.post-navigation a {
  border: 1px solid var(--nfs-line);
  border-radius: 12px;
  display: grid;
  padding: 0.85rem;
  text-decoration: none;
}

.nav-label {
  color: var(--nfs-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-title {
  color: var(--nfs-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.related-section {
  background: var(--nfs-mist);
}

.comments-wrap {
  max-width: 820px;
}

.comments-area {
  border-top: 1px solid var(--nfs-line);
  padding-block: 2rem 4rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .children {
  list-style: none;
}

.comment-body {
  border-bottom: 1px solid var(--nfs-line);
  padding: 1rem 0;
}

.comment-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  border: 1px solid #c7d5d2;
  border-radius: 8px;
  max-width: 100%;
  padding: 0.65rem;
  width: 100%;
}

/* Native migrated FAQs */
.FAQ-container,
.nfs-faq-list {
  border-top: 1px solid var(--nfs-line);
  margin: 1.8rem 0;
}

details.FAQ-Question,
details.nfs-faq {
  border-bottom: 1px solid var(--nfs-line);
  padding: 0;
}

details.FAQ-Question summary,
details.nfs-faq summary {
  align-items: baseline;
  color: var(--nfs-ink);
  cursor: pointer;
  display: grid;
  font-family: var(--nfs-sans);
  font-size: 1rem;
  font-weight: 750;
  gap: 0.65rem;
  grid-template-columns: 1.3rem 1fr;
  list-style: none;
  padding: 0.9rem 0.15rem;
}

details.FAQ-Question summary::-webkit-details-marker,
details.nfs-faq summary::-webkit-details-marker {
  display: none;
}

details.FAQ-Question summary::before,
details.nfs-faq summary::before {
  color: var(--nfs-green-dark);
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

details.FAQ-Question[open] summary::before,
details.nfs-faq[open] summary::before {
  content: "−";
}

details.FAQ-Question .FAQ-Answer,
details.nfs-faq .FAQ-Answer,
details.nfs-faq > div:not(.FAQ-Answer) {
  color: var(--nfs-muted);
  padding: 0 0.25rem 1rem 1.95rem;
}

/* Migrated affiliate product grids */
#ad-wrapper,
.amazon-ad,
.affiliate-product-ad {
  background: #fff;
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(16, 37, 53, 0.08);
  margin: 1.5rem 0;
  max-width: 100%;
  overflow: hidden;
}

#ad-wrapper .ad-grid,
.amazon-ad .ad-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0.75rem;
}

#ad-wrapper .ad-grid a,
.amazon-ad .ad-grid a {
  border: 1px solid var(--nfs-line);
  border-radius: 9px;
  color: var(--nfs-ink);
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}

#ad-wrapper .ad-grid img,
.amazon-ad .ad-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  display: block;
  object-fit: contain;
  padding: 0.3rem;
  width: 100%;
}

.ad-label,
.ad-price {
  display: block;
  font-size: 0.7rem;
  padding: 0.2rem 0.35rem;
}

.ad-price {
  color: var(--nfs-green-dark);
  font-weight: 800;
}

.ad-footer {
  align-items: center;
  background: var(--nfs-mist);
  border-top: 1px solid var(--nfs-line);
  display: flex;
  font-size: 0.72rem;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
}

a.nfs-static-product-image {
  cursor: default;
  pointer-events: none;
}

ins.adsbygoogle {
  min-height: 90px;
  overflow: hidden;
}

/* Hub pages */
.hub-hero {
  background: linear-gradient(125deg, var(--nfs-ink), #16556c);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.shop-hub-hero {
  background: linear-gradient(125deg, #0d493d, var(--nfs-green));
}

.hub-hero-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hub-hero h1,
.hub-hero .eyebrow {
  color: #fff;
}

.hub-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.hub-hero p:last-child {
  color: #dbeaec;
  font-size: 1.08rem;
  max-width: 720px;
}

.hub-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  display: flex;
  height: 180px;
  justify-content: center;
  transform: rotate(5deg);
  width: 180px;
}

.hub-icon svg {
  height: 86px;
  width: 86px;
}

.hub-notice,
.hub-intro {
  margin-inline: auto;
  max-width: 900px;
}

.deal-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 2rem;
}

.deal-category-grid > a {
  background: var(--nfs-mist);
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  color: var(--nfs-ink);
  display: grid;
  min-height: 130px;
  padding: 1rem;
  text-decoration: none;
}

.deal-category-grid > a:hover {
  background: var(--nfs-green-soft);
  border-color: #9bc9ba;
}

.deal-category-grid span {
  font-weight: 800;
}

.deal-category-grid small {
  align-self: end;
  color: var(--nfs-muted);
  line-height: 1.45;
}

.shop-fallback {
  background: var(--nfs-mist);
  border-radius: 18px;
  padding: clamp(1rem, 4vw, 2rem);
}

/* WooCommerce */
.woocommerce .products,
.woocommerce ul.products {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--nfs-line);
  border-radius: 14px;
  float: none;
  margin: 0;
  overflow: hidden;
  padding: 0 0 1rem;
  width: auto;
}

.woocommerce ul.products li.product img {
  margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-inline: 0.85rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--nfs-green);
  border-radius: 999px;
  color: #fff;
}

.woocommerce span.onsale {
  background: var(--nfs-red);
  min-height: 3.2em;
  min-width: 3.2em;
}

/* Footer */
.site-footer {
  background: #050914;
  color: #d8e1f1;
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.75fr));
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-brand,
.site-footer h2 {
  color: #fff;
}

.footer-brand {
  font-family: var(--nfs-serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-about p {
  font-size: 0.86rem;
  margin-top: 1rem;
  max-width: 420px;
}

.footer-audience {
  color: #9fb4bb;
}

.footer-column ul,
.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li,
.footer-widget li + li {
  margin-top: 0.55rem;
}

/* Store and policy directories, inspired by FrediTech's clear dark footer. */
.footer-grid > .footer-column:nth-child(3) .footer-title,
.footer-grid > .footer-column:nth-child(4) .footer-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-grid > .footer-column:nth-child(3) li + li,
.footer-grid > .footer-column:nth-child(4) li + li {
  margin-top: 0.94rem;
}

.footer-grid > .footer-column:nth-child(3) a,
.footer-grid > .footer-column:nth-child(4) a {
  color: #eef3fc;
  font-size: 0.91rem;
  line-height: 1.5;
}

.footer-grid > .footer-column:nth-child(3) a:hover,
.footer-grid > .footer-column:nth-child(4) a:hover {
  color: #9ec4ff;
}

.site-footer a {
  color: #dce8ea;
}

.footer-column a,
.footer-widget a {
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-column a:hover,
.footer-widget a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  align-items: center;
  display: flex;
  font-size: 0.74rem;
  gap: 1rem;
  justify-content: space-between;
  min-height: 68px;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1050px) {
  .branding-row {
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto;
  }

  .header-action:not(.header-shop) {
    display: none;
  }

  .post-grid-four,
  .topic-grid,
  .deal-category-grid,
  .woocommerce .products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .branding-row {
    grid-template-columns: 1fr auto;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .js .navigation-shell {
    display: none;
  }

  .js .navigation-shell.menu-open {
    display: block;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .primary-navigation .menu {
    align-items: stretch;
    display: block;
    padding-block: 0.5rem 1rem;
  }

  .primary-navigation .menu > .menu-item > a {
    border-bottom: 1px solid var(--nfs-line);
    min-height: 46px;
    padding-right: 3.1rem;
  }

  .primary-navigation .current-menu-item > a::after,
  .primary-navigation .current-menu-ancestor > a::after {
    display: none;
  }

  .primary-navigation .sub-menu {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    min-width: 0;
    opacity: 1;
    padding: 0.3rem 0 0.5rem 1rem;
    pointer-events: auto;
    position: static;
    transform: none;
    visibility: visible;
  }

  .js .primary-navigation .sub-menu {
    display: none;
  }

  .js .primary-navigation .submenu-open > .sub-menu {
    display: block;
  }

  .submenu-toggle {
    display: flex;
  }

  .hero-grid,
  .article-layout,
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

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

  .article-rail,
  .site-sidebar {
    position: static;
  }

  .article-rail {
    grid-row: 1;
  }

  .article-toc {
    display: none;
  }

  .post-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .utility-message {
    display: none;
  }

  .utility-inner {
    justify-content: flex-end;
  }

  .site-description,
  .header-shop span {
    display: none;
  }

  .brand-mark {
    height: 42px;
    width: 42px;
  }

  .branding-row {
    gap: 0.8rem;
    min-height: 82px;
  }

  .header-actions {
    gap: 0;
  }

  .hero-primary {
    grid-template-rows: auto auto;
  }

  .hero-image {
    min-height: 0;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .topic-grid,
  .post-grid-two,
  .post-grid-three,
  .post-grid-four,
  .deal-category-grid,
  .woocommerce .products,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    display: grid;
  }

  .deals-inner,
  .hub-hero-inner {
    grid-template-columns: 1fr;
  }

  .deals-visual,
  .hub-icon {
    display: none;
  }

  .article-header .entry-title,
  .page-header h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .article-featured-image img,
  .page-featured-image img {
    border-radius: 12px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    margin-left: 0;
    max-width: 100%;
    transform: none;
    width: 100%;
  }

  .post-navigation .nav-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #ad-wrapper .ad-grid,
  .amazon-ad .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-inner {
    align-items: start;
    flex-direction: column;
    padding-block: 1rem;
  }
}

@media (max-width: 380px) {
  .site-title {
    font-size: 1.1rem;
  }

  .menu-toggle span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Notes for SHS legacy-inspired single-post reading layout.
   Scoped to posts so the homepage, shop and archives keep their design. */
body.single-post .article-main {
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
}

body.single-post .article-layout {
  max-width: 1018px;
  grid-template-columns: minmax(0, 634px) minmax(0, 300px);
  column-gap: 36px;
  padding-top: 0;
  padding-bottom: 3rem;
  justify-content: start;
}

body.single-post .article-body,
body.single-post .article-rail {
  min-width: 0;
}

body.single-post .breadcrumbs {
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 13px;
  margin-bottom: 1.3rem;
}

body.single-post .article-header {
  margin-bottom: 1.5rem;
}

body.single-post .article-header .entry-title {
  color: #111827;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: clamp(2rem, 3.3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.27;
  margin: 0 0 1.25rem;
}

body.single-post .entry-meta {
  color: #6b7280;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 13px;
  line-height: 1.5;
}

body.single-post .entry-byline strong {
  color: #111827;
  font-weight: 700;
}

body.single-post .entry-content {
  color: #4b5563;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 16px;
  line-height: 1.5;
}

body.single-post .entry-content > p:first-of-type {
  font-size: inherit;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  border: 0;
  color: #111827;
  font-family: "Instrument Sans", var(--nfs-sans);
  letter-spacing: -0.015em;
  padding: 0;
}

body.single-post .entry-content h2 {
  font-size: 30px;
  line-height: 1.24;
  margin: 1.8em 0 0.7em;
}

body.single-post .entry-content h3 {
  font-size: 23px;
  margin: 1.6em 0 0.55em;
}

body.single-post .entry-content h4 {
  font-size: 18px;
  margin: 1.4em 0 0.5em;
}

body.single-post .entry-content p {
  margin-bottom: 1.15em;
}

body.single-post .article-rail {
  display: block;
  position: static;
}

body.single-post .article-rail .site-sidebar {
  display: grid;
  position: static;
  gap: 1.5rem;
}

body.single-post .article-rail .widget {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 0 0 1.5rem;
}

body.single-post .article-rail .widget h2 {
  color: #111827;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

body.single-post .article-rail .widget a {
  color: #1f2937;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 14px;
}

body.single-post .legacy-inline-toc {
  background: #f8fafc;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  display: block;
  font-family: "Instrument Sans", var(--nfs-sans);
  font-size: 14px;
  font-weight: 400;
  margin: 1.4rem 0 2rem;
  padding: 0.75rem 1rem;
}

body.single-post .legacy-inline-toc[hidden] {
  display: none;
}

body.single-post .legacy-inline-toc summary {
  color: #111827;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

body.single-post .legacy-inline-toc ol {
  max-height: 320px;
  overflow-y: auto;
  padding-left: 1.3rem;
}

body.single-post .legacy-inline-toc li {
  margin: 0.35rem 0;
}


/* Notes for SHS reference-style single-post sidebar. */
body.single-post .notes-post-sidebar {
  color: #111827;
  font-family: "Instrument Sans", var(--nfs-sans), Arial, sans-serif;
}
body.single-post .notes-side-section { margin: 0 0 34px; }
body.single-post .notes-side-title {
  color: #111827;
  font-family: "Instrument Sans", var(--nfs-sans), Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 19px;
}
body.single-post .notes-social-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
body.single-post .notes-social {
  align-items: center;
  border-radius: 4px;
  color: #fff;
  display: flex;
  height: 46px;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}
body.single-post .notes-social svg { fill: currentColor; height: 24px; width: 24px; }
body.single-post .notes-facebook { background: #0866ff; }
body.single-post .notes-pinterest { background: #2863e8; }
body.single-post .notes-instagram { background: #833db4; }
body.single-post .notes-youtube { background: #ff0b0b; }
body.single-post .notes-follow-feed svg { height: 12px; margin-right: 4px; width: 12px; }
body.single-post .notes-follow-feed {
  align-items: center;
  background: #2863e8;
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 17px;
  justify-content: center;
  margin-top: 8px;
  min-width: 70px;
  padding: 0 6px;
  text-decoration: none;
}
body.single-post .notes-popular-feature {
  background: #243041;
  border-radius: 4px;
  color: #fff;
  display: block;
  height: 208px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
body.single-post .notes-popular-feature::after {
  background: linear-gradient(180deg,rgba(0,0,0,.04) 10%,rgba(0,0,0,.72) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
body.single-post .notes-popular-feature-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
body.single-post .notes-popular-feature-copy {
  bottom: 20px;
  display: grid;
  gap: 8px;
  left: 23px;
  position: absolute;
  right: 17px;
  z-index: 1;
}
body.single-post .notes-popular-category {
  background: #0866ff;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 11px;
  width: max-content;
}
body.single-post .notes-popular-feature strong {
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.27;
}
body.single-post .notes-popular-feature small { color: #fff; font-size: 12px; font-weight: 700; }
body.single-post .notes-popular-list { list-style: none; margin: 23px 0 0; padding: 0; }
body.single-post .notes-popular-list li { border: 0; margin: 0 0 21px; padding: 0; }
body.single-post .notes-popular-list a {
  align-items: start;
  color: #111827;
  display: grid;
  gap: 14px;
  grid-template-columns: 104px minmax(0,1fr);
  text-decoration: none;
}
body.single-post .notes-popular-thumb {
  background: #eef1f4;
  border-radius: 4px;
  display: block;
  height: 74px;
  overflow: hidden;
  width: 104px;
}
body.single-post .notes-popular-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
body.single-post .notes-popular-list strong {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
body.single-post .notes-latest-grid {
  display: grid;
  gap: 23px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
body.single-post .notes-latest-card { color: #111827; display: block; min-width: 0; text-decoration: none; }
body.single-post .notes-latest-thumb {
  aspect-ratio: 1.4;
  background: #eef1f4;
  border-radius: 4px;
  display: block;
  margin-bottom: 11px;
  overflow: hidden;
}
body.single-post .notes-latest-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
body.single-post .notes-latest-card strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #111827;
  display: -webkit-box;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
}
body.single-post .notes-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.single-post .notes-category-list li { border: 0; margin: 0; padding: 0; }
body.single-post .notes-category-list a {
  background: #f0f1f4;
  border-radius: 4px;
  color: #252d39;
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 14px;
  text-decoration: none;
}
body.single-post .notes-category-list a:hover { background: #e5ebf7; color: #075ccc; }
body.single-post .notes-popular-list a:hover strong,
body.single-post .notes-latest-card:hover strong { color: #075ccc; }
@media (max-width: 900px) {
  body.single-post .notes-post-sidebar { max-width: 400px; }
}

@media (max-width: 1050px) {
  body.single-post .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  body.single-post .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-post .article-rail {
    grid-row: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 680px) {
  body.single-post .article-header .entry-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }
  body.single-post .entry-content {
    font-size: 16px;
    line-height: 1.6;
  }
  body.single-post .entry-content h2 {
    font-size: 25px;
  }
  body.single-post .entry-content h3 {
    font-size: 21px;
  }
}

@media print {

  .site-header,
  .site-footer,
  .article-rail,
  .affiliate-notice,
  .related-section,
  .comments-wrap,
  ins.adsbygoogle,
  #ad-wrapper,
  .amazon-ad {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .entry-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
