.wp-site-blocks {
  min-height: 100vh;
  background: var(--bg);
}

.osint4all-fse-main {
  margin-block-start: 0;
}

header.wp-block-template-part {
  position: sticky;
  z-index: 120;
  top: 0;
}

.fse-site-header {
  position: relative;
  border-bottom: 1px solid rgba(173, 178, 182, 0.12);
  background: rgba(3, 6, 11, 0.92);
  backdrop-filter: blur(22px);
}

.fse-site-header-inner {
  display: grid !important;
  grid-template-columns: minmax(330px, 360px) minmax(420px, 1fr) minmax(260px, 310px) auto;
  align-items: center;
  gap: 18px;
  width: min(100%, 1360px);
  min-height: 78px;
  margin-inline: auto;
  padding: 0 32px;
}

.fse-brand {
  min-width: 0;
  margin: 0;
}

.fse-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: none;
  overflow: visible;
}

.fse-brand-symbol,
.fse-brand-wordmark {
  display: block;
  object-fit: contain;
}

.fse-brand-symbol {
  width: 56px;
  height: 50px;
  flex: 0 0 auto;
}

.fse-brand-wordmark {
  width: 260px;
  max-width: min(260px, 100%);
  height: auto;
}

.fse-site-title {
  display: none;
}

.fse-primary-nav {
  justify-self: center;
}

.fse-primary-nav .wp-block-navigation__container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 8px;
}

.fse-primary-nav .wp-block-navigation-item {
  margin: 0;
  white-space: nowrap;
}

.fse-primary-nav .wp-block-navigation-item__content,
.fse-footer-nav .wp-block-navigation-item__content {
  color: var(--text);
  font-family: "Oxanium", "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.fse-primary-nav .wp-block-navigation-item__content {
  min-height: 42px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease;
}

.fse-primary-nav .wp-block-navigation-item__content:hover,
.fse-footer-nav .wp-block-navigation-item__content:hover {
  color: #f2ecff;
}

.fse-primary-nav .wp-block-navigation-item__content:hover {
  background: rgba(173, 178, 182, 0.08);
}

.fse-site-header .osint4all-tool-search {
  justify-self: end;
  width: min(100%, 310px);
  max-width: 310px;
}

.fse-site-header .osint4all-tool-search input {
  width: 100%;
}

.fse-site-header .osint4all-tool-search button {
  position: absolute !important;
  left: -9999px !important;
}

.fse-header-actions {
  justify-self: end;
}

.fse-header-actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  font-family: "Oxanium", "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.osint4all-tool-search {
  display: flex;
  gap: 10px;
  width: min(100%, 620px);
}

.osint4all-tool-search input {
  flex: 1;
  min-width: 0;
}

.osint4all-tool-search button {
  border: 0;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding-inline: 18px;
}

.fse-site-footer {
  border-top: 1px solid rgba(173, 178, 182, 0.1);
  background:
    radial-gradient(circle at 82% 0%, rgba(67, 39, 98, 0.2), transparent 22rem),
    linear-gradient(180deg, rgba(7, 8, 13, 0.98), rgba(3, 6, 11, 1));
  color: var(--text);
}

.fse-site-footer > * {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: 32px;
}

.fse-footer-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 58px;
  text-align: center;
}

.fse-footer-brand .fse-brand-link {
  justify-content: center;
}

.fse-footer-brand .fse-brand-symbol {
  width: 68px;
  height: 60px;
}

.fse-footer-brand .fse-brand-wordmark {
  width: 330px;
  max-width: min(330px, 72vw);
}

.fse-footer-brand p {
  max-width: 72ch;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
}

.fse-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-top: 30px;
}

.fse-footer-grid h3,
.fse-footer-newsletter h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 1rem;
}

.fse-footer-nav .wp-block-navigation__container {
  display: grid;
  gap: 8px;
}

.fse-footer-nav .wp-block-navigation-item__content {
  color: rgba(216, 220, 223, 0.82);
}

.fse-footer-newsletter {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 28px;
  width: min(calc(100% - 64px), 1080px) !important;
  margin: 30px auto 0 !important;
  padding: 28px 32px;
  border: 1px solid rgba(173, 178, 182, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(67, 39, 98, 0.28), transparent 16rem),
    linear-gradient(180deg, rgba(18, 19, 24, 0.74), rgba(8, 9, 14, 0.88));
}

.fse-footer-newsletter > * {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fse-footer-newsletter-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fse-footer-newsletter-copy h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
}

.fse-footer-newsletter-copy p {
  max-width: 28rem;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
}

.fse-footer-newsletter-form {
  min-width: 0;
}

.fse-footer-newsletter .newsletter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 0;
}

.fse-footer-newsletter .newsletter-form > label:first-of-type,
.fse-footer-newsletter .newsletter-form > label:has(input[type="checkbox"]),
.fse-footer-newsletter .newsletter-form > button,
.fse-footer-newsletter .newsletter-form > .osint4all-form-note {
  grid-column: 1 / -1;
}

.fse-footer-newsletter .osint4all-form-note {
  padding: 10px 12px;
  border-left: 2px solid rgba(173, 178, 182, 0.22);
  border-radius: 12px;
  background: rgba(3, 6, 11, 0.22);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fse-footer-newsletter input,
.fse-footer-newsletter select {
  min-height: 44px;
}

.fse-footer-newsletter .newsletter-form > label {
  gap: 6px;
  font-size: 0.86rem;
}

.fse-footer-newsletter .newsletter-form > label:has(input[type="checkbox"]) {
  align-items: center;
  font-size: 0.86rem;
  line-height: 1.45;
}

.fse-footer-newsletter .newsletter-form > button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #f7f3ff;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  font-family: "Oxanium", "Montserrat", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.fse-footer-meta {
  margin: 0;
  padding-block: 30px 42px;
  color: rgba(173, 178, 182, 0.78);
}

@media (max-width: 1160px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(218px, 238px) minmax(0, 1fr) auto;
    gap: 12px;
  }

  .fse-site-header .osint4all-tool-search {
    display: none;
  }

  .fse-brand-symbol {
    width: 42px;
    height: 37px;
  }

  .fse-brand-wordmark {
    width: 178px;
  }
}

@media (max-width: 1280px) and (min-width: 1161px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(286px, 310px) minmax(350px, 1fr) minmax(230px, 280px) auto;
    gap: 14px;
  }

  .fse-brand-symbol {
    width: 48px;
    height: 42px;
  }

  .fse-brand-wordmark {
    width: 224px;
  }

  .fse-primary-nav .wp-block-navigation-item__content {
    padding-inline: 6px;
    font-size: 0.84rem;
  }

  .fse-header-actions .wp-block-button__link {
    min-width: 136px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }
}

@media (max-width: 920px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    min-height: 70px;
    padding-inline: 24px;
  }

  .fse-brand-link {
    gap: 10px;
  }

  .fse-brand-symbol {
    width: 44px;
    height: 39px;
  }

  .fse-brand-wordmark {
    width: 210px;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(173, 178, 182, 0.18);
    border-radius: 14px;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.02);
    font-family: "Oxanium", "Montserrat", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open::after {
    content: "Menu";
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open svg {
    width: 18px;
    height: 18px;
  }

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

  .fse-footer-newsletter {
    grid-template-columns: 1fr;
    width: min(calc(100% - 48px), 720px) !important;
    padding: 24px;
  }

  .fse-footer-newsletter-copy p {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 68px;
    padding-inline: 18px;
  }

  .fse-brand-link {
    gap: 8px;
  }

  .fse-brand-symbol {
    width: 35px;
    height: 31px;
  }

  .fse-brand-wordmark {
    width: 146px;
    max-width: 36vw;
  }

  .fse-primary-nav {
    justify-self: end;
    order: 2;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }

  .fse-header-actions {
    order: 3;
  }

  .fse-header-actions .wp-block-button__link {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0;
  }

  .fse-header-actions .wp-block-button__link::after {
    content: "Submit";
    font-size: 0.78rem;
  }

  .fse-site-footer > * {
    padding-inline: 18px;
  }

  .fse-footer-brand {
    padding-top: 42px;
  }

  .fse-footer-brand .fse-brand-symbol {
    width: 48px;
    height: 42px;
  }

  .fse-footer-brand .fse-brand-wordmark {
    width: 220px;
  }

  .fse-footer-grid {
    gap: 20px 18px;
  }

  .fse-footer-newsletter {
    margin-top: 22px;
    width: min(calc(100% - 36px), 560px) !important;
    padding: 18px;
  }

  .fse-footer-newsletter .newsletter-form {
    grid-template-columns: 1fr;
  }

  .fse-footer-meta {
    padding-block: 24px 32px;
    font-size: 0.86rem;
  }
}

@media (max-width: 430px) {
  .fse-site-header-inner {
    padding-inline: 14px;
  }

  .fse-brand-wordmark {
    width: 132px;
    max-width: 34vw;
  }
}

/* Shared footer system: one footer for FSE and classic PHP templates. */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .wp-site-blocks {
  flex: 1 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .wp-site-blocks > main,
body > .wp-site-blocks > .osint4all-fse-main,
body > .site-header + .container,
body > .site-header + main,
body > .site-header + .section {
  flex: 1 0 auto;
}

.osint4all-unified-footer {
  padding: clamp(50px, 5.5vw, 78px) 0 34px;
  border-top: 1px solid rgba(173, 178, 182, 0.12);
  background:
    radial-gradient(circle at 82% 12%, rgba(67, 39, 98, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(4, 5, 9, 0.98), #03060b 72%);
}

.osint4all-footer-newsletter-section {
  margin-top: auto;
  padding: clamp(38px, 5vw, 72px) 0 clamp(30px, 4vw, 54px);
  border-top: 1px solid rgba(173, 178, 182, 0.1);
  background:
    radial-gradient(circle at 86% 0%, rgba(67, 39, 98, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(3, 6, 11, 0.99), rgba(5, 6, 11, 0.98));
}

.osint4all-unified-footer > * {
  padding-inline: 0;
}

.osint4all-unified-footer .site-footer-shell {
  display: grid;
  gap: clamp(26px, 3vw, 42px);
}

.osint4all-unified-footer .footer-brand {
  max-width: 58rem;
  margin-inline: auto;
  padding-top: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.osint4all-unified-footer .footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  overflow: visible;
}

.osint4all-unified-footer .footer-brand-symbol {
  width: clamp(58px, 5vw, 86px);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.osint4all-unified-footer .footer-brand-wordmark {
  width: clamp(220px, 20vw, 360px);
  max-width: 58vw;
  height: auto;
  object-fit: contain;
}

.osint4all-unified-footer .footer-brand p {
  max-width: 52rem;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.osint4all-unified-footer .footer-grid {
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 52px;
}

.osint4all-unified-footer .footer-grid h3 {
  margin: 0 0 15px;
  color: rgba(245, 246, 247, 0.94);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
}

.osint4all-unified-footer .footer-menu {
  display: grid;
  gap: 10px;
  justify-content: start;
}

.osint4all-unified-footer .footer-menu a {
  color: rgba(216, 220, 223, 0.76);
  text-decoration: none;
}

.osint4all-unified-footer .footer-menu a:hover,
.osint4all-unified-footer .footer-menu a:focus-visible {
  color: #ffffff;
}

.osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
  width: min(100%, 1120px) !important;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(173, 178, 182, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(67, 39, 98, 0.2), transparent 16rem),
    linear-gradient(180deg, rgba(17, 18, 25, 0.94), rgba(7, 8, 13, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.osint4all-footer-newsletter-section .footer-newsletter-copy {
  align-self: center;
}

.osint4all-footer-newsletter-section .footer-newsletter-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
}

.osint4all-footer-newsletter-section .footer-newsletter-copy p {
  max-width: 30rem;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
  line-height: 1.6;
}

.osint4all-footer-newsletter-section .footer-newsletter-form {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.osint4all-footer-newsletter-section .newsletter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.osint4all-footer-newsletter-section .newsletter-form > .osint4all-form-note,
.osint4all-footer-newsletter-section .newsletter-form > label:has(input[type="checkbox"]),
.osint4all-footer-newsletter-section .newsletter-form > button {
  grid-column: 1 / -1;
}

.osint4all-footer-newsletter-section .newsletter-form > .osint4all-form-note {
  padding: 11px 13px;
  border: 1px solid rgba(173, 178, 182, 0.12);
  border-radius: 14px;
  background: rgba(3, 6, 11, 0.38);
  color: rgba(216, 220, 223, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.osint4all-footer-newsletter-section .newsletter-form > label {
  display: grid;
  gap: 7px;
  color: rgba(245, 246, 247, 0.9);
  font-size: 0.88rem;
}

.osint4all-footer-newsletter-section .newsletter-form input[type="email"],
.osint4all-footer-newsletter-section .newsletter-form select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
}

.osint4all-footer-newsletter-section .newsletter-form > label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 44rem;
  color: rgba(216, 220, 223, 0.82);
  line-height: 1.45;
}

.osint4all-footer-newsletter-section .newsletter-form input[type="checkbox"] {
  margin-top: 4px;
  flex: 0 0 auto;
}

.osint4all-footer-newsletter-section .newsletter-form > button {
  justify-self: start;
  min-width: 180px;
  min-height: 46px;
}

.osint4all-unified-footer .footer-meta {
  margin: 0;
  padding: 0;
  color: rgba(173, 178, 182, 0.7);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .osint4all-unified-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .osint4all-footer-newsletter-section {
    padding-block: 32px 28px;
  }

  .osint4all-unified-footer {
    padding-block: 42px 32px;
  }

  .osint4all-unified-footer .footer-brand {
    text-align: center;
    justify-items: center;
  }

  .osint4all-unified-footer .footer-brand-link {
    max-width: 100%;
  }

  .osint4all-unified-footer .footer-brand-symbol {
    width: 44px;
  }

  .osint4all-unified-footer .footer-brand-wordmark {
    width: min(190px, 58vw);
    max-width: 58vw;
  }

  .osint4all-unified-footer .footer-grid,
  .osint4all-footer-newsletter-section .newsletter-form {
    grid-template-columns: 1fr;
  }

  .osint4all-unified-footer .footer-grid {
    gap: 22px;
  }

  .osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
    border-radius: 22px;
  }

  .osint4all-footer-newsletter-section .newsletter-form > button {
    justify-self: stretch;
  }
}

/*
 * Premium FSE header/footer pass.
 * Mirrors the classic PHP header so the homepage and archive pages feel unified.
 */
.fse-site-header {
  border-bottom-color: rgba(232, 235, 238, 0.11);
  background: rgba(9, 10, 13, 0.92);
  box-shadow: none;
}

.fse-site-header-inner {
  grid-template-columns: minmax(180px, 238px) minmax(0, 1fr) minmax(190px, 250px) auto;
  gap: 16px;
  min-height: 68px;
  padding-inline: 32px;
}

.fse-brand-link {
  gap: 9px;
}

.fse-site-header .fse-brand-symbol {
  width: 34px;
  height: 30px;
  filter: none;
}

.fse-site-header .fse-brand-wordmark {
  width: 178px;
  max-width: 178px;
}

.fse-primary-nav {
  justify-self: start;
}

.fse-primary-nav .wp-block-navigation__container {
  gap: 2px;
}

.fse-primary-nav .wp-block-navigation-item__content,
.fse-footer-nav .wp-block-navigation-item__content {
  color: rgba(238, 240, 242, 0.74);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.fse-primary-nav .wp-block-navigation-item__content {
  min-height: 38px;
  padding-inline: 10px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.fse-primary-nav .wp-block-navigation-item__content:hover,
.fse-footer-nav .wp-block-navigation-item__content:hover {
  color: #f3f1ec;
}

.fse-primary-nav .wp-block-navigation-item__content:hover {
  background: rgba(255, 255, 255, 0.055);
}

.fse-site-header .osint4all-tool-search {
  width: min(100%, 250px);
  max-width: 250px;
}

.fse-site-header .osint4all-tool-search input {
  min-height: 40px;
  border-radius: 8px;
  border-color: rgba(232, 235, 238, 0.14);
  background: #0f1116;
}

.fse-header-actions .wp-block-button__link {
  min-width: 136px;
  min-height: 40px;
  border: 1px solid rgba(232, 235, 238, 0.18);
  border-radius: 8px;
  color: rgba(238, 240, 242, 0.86);
  background: transparent;
  box-shadow: none;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
}

.fse-header-actions .wp-block-button__link:hover {
  color: #f3f1ec;
  background: rgba(255, 255, 255, 0.055);
}

.fse-footer-newsletter,
.osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
  border-radius: 8px;
  border-color: rgba(232, 235, 238, 0.11);
  background: #111318;
}

.fse-footer-newsletter .newsletter-form > button {
  border-color: #c8b88d;
  border-radius: 8px;
  color: #111216;
  background: linear-gradient(180deg, #e1d1a5, #c8b88d);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

@media (max-width: 1280px) and (min-width: 1161px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(180px, 230px) auto;
    gap: 12px;
  }

  .fse-site-header .fse-brand-symbol {
    width: 31px;
    height: 28px;
  }

  .fse-site-header .fse-brand-wordmark {
    width: 158px;
  }

  .fse-primary-nav .wp-block-navigation-item__content {
    padding-inline: 7px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1160px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(168px, 210px) minmax(0, 1fr) auto;
  }

  .fse-site-header .fse-brand-wordmark {
    width: 150px;
  }
}

@media (max-width: 720px) {
  .fse-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-inline: 18px;
  }

  .fse-brand-link {
    max-width: 150px;
    overflow: hidden;
  }

  .fse-site-header .fse-brand-symbol {
    width: 30px;
    height: 26px;
  }

  .fse-site-header .fse-brand-wordmark {
    width: 112px;
    max-width: 112px;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown),
  .fse-header-actions .wp-block-button__link {
    min-height: 40px;
    border-radius: 8px;
  }

  .fse-header-actions .wp-block-button__link {
    min-width: 0;
    padding-inline: 10px;
    font-size: 0;
  }

  .fse-header-actions .wp-block-button__link::after {
    content: "Submit";
    font-size: 0.78rem;
  }
}

/* Launch polish for FSE shell pages. Mirrors the classic header without extra markup. */
.fse-site-header {
  position: relative;
  border-bottom-color: rgba(238, 240, 242, 0.08);
  background: rgba(4, 6, 10, 0.84);
}

.fse-site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(200, 184, 141, 0.22), rgba(134, 200, 157, 0.14), transparent);
}

.fse-primary-nav .wp-block-navigation-item__content {
  position: relative;
}

.fse-primary-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 184, 141, 0.78), rgba(134, 200, 157, 0.48));
  opacity: 0;
  transform: scaleX(0.36);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.fse-primary-nav .wp-block-navigation-item__content:hover::after,
.fse-primary-nav .wp-block-navigation-item__content:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .osint4all-unified-footer .site-footer-shell {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .osint4all-unified-footer .footer-grid {
    width: 100%;
    gap: 22px;
    padding-top: 28px;
  }

  .osint4all-unified-footer .footer-grid h3 {
    margin-bottom: 8px;
  }

  .osint4all-unified-footer .footer-menu {
    gap: 7px;
  }
}

.fse-site-header .osint4all-tool-search input {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.fse-site-header .osint4all-tool-search input:focus {
  border-color: rgba(200, 184, 141, 0.42);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(200, 184, 141, 0.08);
}

@media (max-width: 720px) {
  .fse-site-header {
    background: rgba(4, 6, 10, 0.92);
  }

  .fse-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    background:
      radial-gradient(circle at 92% 8%, rgba(67, 39, 98, 0.26), transparent 13rem),
      rgba(10, 12, 17, 0.98);
  }
}

/*
 * Header parity fix: FSE pages inherit WordPress constrained-width block rules.
 * Force the homepage header onto the same container rhythm as classic templates.
 */
.fse-site-header {
  max-width: none !important;
}

.fse-site-header > .fse-site-header-inner {
  width: 100%;
  max-width: 1360px !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

.fse-site-header .fse-primary-nav,
.fse-site-header .osint4all-tool-search,
.fse-header-actions {
  min-width: 0;
}

@media (min-width: 1161px) {
  .fse-site-header > .fse-site-header-inner {
    grid-template-columns: minmax(188px, 222px) minmax(0, 1fr) minmax(176px, 230px) auto;
    column-gap: clamp(10px, 1.2vw, 18px);
  }

  .fse-site-header .osint4all-tool-search {
    width: 100%;
    max-width: 230px;
  }

  .fse-primary-nav .wp-block-navigation__container {
    justify-content: flex-start;
    gap: 0;
  }

  .fse-primary-nav .wp-block-navigation-item__content {
    padding-inline: clamp(7px, 0.65vw, 10px);
    font-size: 0.78rem;
  }
}

@media (min-width: 1161px) and (max-width: 1320px) {
  .fse-site-header .osint4all-tool-search {
    display: none;
  }

  .fse-site-header > .fse-site-header-inner {
    grid-template-columns: minmax(188px, 222px) minmax(0, 1fr) auto;
  }
}

@media (max-width: 1160px) {
  .fse-site-header > .fse-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .fse-site-header .osint4all-tool-search {
    display: none;
  }

  .fse-primary-nav {
    justify-self: end;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(232, 235, 238, 0.18);
    border-radius: 8px;
    color: #eef0f2;
    background: rgba(255, 255, 255, 0.035);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 750;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open::after {
    content: "Menu";
  }

  .fse-primary-nav .wp-block-navigation__responsive-container-open svg {
    width: 18px;
    height: 18px;
  }
}

/*
 * Fold correction: keep the homepage header visually centered and deliberate.
 * The homepage uses the FSE header, so this is the source of truth there.
 */
@media (min-width: 1161px) {
  .fse-site-header > .fse-site-header-inner {
    min-height: 64px !important;
    align-items: center !important;
    grid-template-columns: minmax(220px, 300px) minmax(430px, 1fr) minmax(210px, 250px) auto !important;
    column-gap: 18px !important;
  }

  .fse-primary-nav {
    justify-self: center !important;
    width: 100%;
  }

  .fse-primary-nav .wp-block-navigation__container {
    justify-content: center !important;
    gap: 2px !important;
  }

  .fse-primary-nav .wp-block-navigation-item__content {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding-inline: 11px !important;
    font-size: 0.83rem !important;
    line-height: 1 !important;
  }

  .fse-site-header .osint4all-tool-search {
    justify-self: end !important;
    width: 100% !important;
    max-width: 250px !important;
  }

  .fse-site-header .osint4all-tool-search input {
    min-height: 42px !important;
  }

  .fse-header-actions .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
}

/*
 * Footer consolidation parity with the PHP-rendered footer. fse.css loads after
 * theme-main.css, so the final footer rhythm belongs here.
 */
.osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
  border-radius: 10px;
}

.osint4all-footer-newsletter-section .newsletter-form > .osint4all-form-note {
  border-color: rgba(238, 240, 242, 0.08);
  color: rgba(238, 240, 242, 0.7);
  background: rgba(3, 6, 11, 0.24);
}

@media (max-width: 640px) {
  .osint4all-unified-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .osint4all-unified-footer .footer-grid-column {
    min-width: 0;
  }

  .osint4all-unified-footer .footer-menu a {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
    border-radius: 10px;
  }
}
