/* WordPress integration only. The approved visual system remains in app.min.css. */

@font-face {
  font-family: "Libre Bodoni";
  src: url("../fonts/LibreBodoni-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Libre Bodoni";
  src: url("../fonts/LibreBodoni-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

/*
 * PageLayer compatibility: legacy Theme Builder templates can remain stored
 * and the plugin can remain active, but its global header/footer must not sit
 * above or below the N&L theme shell.
 */
body.wp-theme-nyl-gestion > header.pagelayer-header,
body.wp-theme-nyl-gestion > footer.pagelayer-footer {
  display: none !important;
}

/*
 * Typography guard: PageLayer and WordPress global styles can inject font
 * declarations after the theme stylesheet. Keep the approved N&L hierarchy
 * authoritative without changing any component sizing or spacing.
 */
body.wp-theme-nyl-gestion,
body.wp-theme-nyl-gestion :where(p, li, dt, dd, a, button, input, textarea, select, label, small, figcaption, table, blockquote):not(:is(h1, h2, h3, h4, h5, h6) *) {
  font-family: "Poppins", system-ui, sans-serif !important;
}

body.wp-theme-nyl-gestion :is(h1, h2, h3, h4, h5, h6),
body.wp-theme-nyl-gestion :is(h1, h2, h3, h4, h5, h6) * {
  font-family: "Libre Bodoni", "Bodoni Std", "Bodoni MT", Didot, Georgia, serif !important;
  font-weight: 500 !important;
}

/* These compact component headings intentionally belong to the Poppins UI layer. */
body.wp-theme-nyl-gestion .indicator-grid h2,
body.wp-theme-nyl-gestion .indicator-grid h2 *,
body.wp-theme-nyl-gestion .accordion-item h3,
body.wp-theme-nyl-gestion .accordion-item h3 * {
  font-family: "Poppins", system-ui, sans-serif !important;
  font-weight: 500 !important;
}

/* WordPress/PageLayer can reapply a global H2 scale after app.min.css. */
body.wp-theme-nyl-gestion .indicator-grid h2,
body.wp-theme-nyl-gestion .indicator-grid h2 * {
  font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
  line-height: 1.3 !important;
}

body.wp-theme-nyl-gestion .lead-form legend,
body.wp-theme-nyl-gestion .footer-brand p,
body.wp-theme-nyl-gestion .team-placeholder {
  font-family: "Libre Bodoni", "Bodoni Std", "Bodoni MT", Didot, Georgia, serif !important;
  font-weight: 500 !important;
}

body.wp-theme-nyl-gestion .footer-layout h2,
body.wp-theme-nyl-gestion .footer-layout h2 * {
  margin-bottom: 1.2rem !important;
  font-family: "Poppins", system-ui, sans-serif !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.admin-bar .site-header,
.admin-bar .scroll-progress {
  top: 32px;
}

.footer-contact-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .45rem;
}

.footer-contact-links a:hover {
  color: var(--nl-cream);
}

.category-list a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.article-media {
  color: white;
}

.post-pagination {
  margin-top: 3rem;
}

.post-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.post-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 .8rem;
  color: var(--nl-text);
  background: var(--nl-bg);
  border: 1px solid var(--nl-border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.post-pagination .page-numbers.current,
.post-pagination a.page-numbers:hover {
  color: var(--nl-ink);
  background: var(--nl-green);
  border-color: var(--nl-green);
}

.empty-state {
  padding: 3rem;
  color: var(--nl-text);
  background: var(--nl-bg);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius-md);
}

.archive-hero {
  min-height: 620px;
}

.single-hero {
  min-height: max(680px, 82svh);
}

.single-hero-copy {
  max-width: 960px;
}

.single-hero-copy h1 {
  max-width: 960px;
  font-size: clamp(3rem, 5.6vw, 5.5rem);
}

.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, .8);
  font-size: .78rem;
}

.single-content-section {
  background: var(--nl-surface);
}

.single-content-layout {
  width: min(860px, calc(100% - 64px));
}

.single-content {
  color: var(--nl-text);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.85;
}

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

.single-content h2,
.single-content h3,
.single-content h4 {
  margin: 2.5rem 0 1rem;
  color: var(--nl-text);
  font-family: "Bodoni Std", "Bodoni MT", Didot, Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

.single-content h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.single-content h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote {
  margin: 0 0 1.4rem;
}

.single-content a {
  color: var(--nl-green);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.single-content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--nl-green);
  background: var(--nl-bg);
  border-radius: 0 var(--nl-radius-sm) var(--nl-radius-sm) 0;
}

.single-content img {
  height: auto;
  margin: 2rem auto;
  border-radius: var(--nl-radius-md);
}

.single-content figure {
  margin: 2rem 0;
}

.single-content figcaption {
  margin-top: .65rem;
  color: var(--nl-muted);
  font-size: .75rem;
}

.single-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

.single-content th,
.single-content td {
  padding: .8rem;
  border: 1px solid var(--nl-border);
  text-align: left;
}

.single-article-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nl-border);
}

.single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.single-categories a {
  padding: .4rem .7rem;
  color: var(--nl-green);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.single-post-nav a {
  padding: 1rem;
  color: var(--nl-text);
  background: var(--nl-bg);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius-sm);
}

.single-post-nav a:last-child {
  text-align: right;
}

.generic-content-section {
  min-height: 70svh;
  padding-top: 12rem;
}

.form-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .scroll-progress {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .single-content-layout {
    width: min(100% - 32px, 860px);
  }

  .single-post-nav {
    grid-template-columns: 1fr;
  }

  .single-post-nav a:last-child {
    text-align: left;
  }
}
