/* ============================================================
   INSIGHTS HUB — Executive Briefing Edition · Aug 2026
   Scoped entirely to hubx-* classes present only on insights.php
   ============================================================ */

.hubx-page .insight-empty-state,
.insight-empty-state[hidden] { display: none !important; }
.hubx-row[hidden] { display: none !important; }

/* ---------- HERO ---------- */
.hubx-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 118vh;
  padding: clamp(120px, 16vw, 220px) 0 clamp(100px, 12vw, 170px);
  background:
    linear-gradient(90deg, rgb(7 17 26 / 0.82) 8%, rgb(7 17 26 / 0.5) 52%, rgb(7 17 26 / 0.12) 100%),
    radial-gradient(58rem 32rem at 85% -18%, rgb(216 137 0 / 0.12), transparent 60%),
    linear-gradient(180deg, rgb(7 17 26 / 0.02) 0%, rgb(7 17 26 / 0.34) 100%),
    url("../img/insights-hero-istock-1427503484.webp") 56% 30% / cover no-repeat,
    #101c26;
}
.hubx-hero-glow { display: none; }
.hubx-hero-inner { position: relative; }
.hubx-kicker {
  margin: 0 0 26px;
  color: var(--jp-amber);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hubx-hero h1 {
  max-width: 1050px;
  margin: 0 0 30px;
  color: var(--jp-warm-white);
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hubx-hero h1 em {
  display: block;
  padding-bottom: 0.14em;
  margin-bottom: -0.06em;
  font-style: normal;
  background: linear-gradient(92deg, #E8A93B, #C97F04);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hubx-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgb(247 244 238 / 0.14);
  color: rgb(247 244 238 / 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hubx-hero-meta strong { color: var(--jp-warm-white); font-weight: 800; }
.hubx-hero-meta i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--jp-amber);
}

/* ---------- LATEST BRIEFINGS ---------- */
.hubx-page { padding: clamp(56px, 8vw, 104px) 0; background: var(--white); }
.hubx-section-head { margin-bottom: 22px; }
.hubx-latest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.hubx-feature {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 44px) clamp(26px, 3vw, 42px) clamp(24px, 2.6vw, 36px);
  border: 1px solid rgb(var(--jp-slate-700-rgb) / 0.12);
  border-radius: 2px;
  background:
    radial-gradient(30rem 18rem at 108% -30%, rgb(216 137 0 / 0.09), transparent 62%),
    linear-gradient(170deg, #FBFAF7 0%, #F4F0E8 100%);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hubx-feature:hover {
  transform: translateY(-3px);
  border-color: rgb(216 137 0 / 0.45);
  box-shadow: 0 24px 54px rgb(7 17 26 / 0.14);
}
.hubx-feature-num {
  position: absolute;
  top: -0.16em;
  right: 0.06em;
  color: rgb(31 51 64 / 0.08);
  font-family: var(--font-serif);
  font-size: clamp(6.5rem, 11vw, 10.5rem);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.hubx-feature-body { position: relative; display: block; }
.hubx-feature-body small {
  display: block;
  margin-bottom: 14px;
  color: var(--jp-amber);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hubx-feature-body h2 {
  max-width: 88%;
  margin: 0 0 14px;
  color: var(--jp-slate-700);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 550;
  line-height: 1.12;
}
.hubx-feature-body p {
  max-width: 92%;
  margin: 0 0 20px;
  color: rgb(var(--jp-slate-700-rgb) / 0.74);
  font-size: 0.98rem;
  line-height: 1.66;
}
.hubx-feature-body em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jp-slate-700);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap 0.25s ease, color 0.25s ease;
}
.hubx-feature:hover .hubx-feature-body em { gap: 14px; color: var(--jp-amber); }

/* ---------- FILTER BAR ---------- */
.hubx-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(44px, 5vw, 68px);
  padding: 24px 0 20px;
  border-top: 2px solid var(--jp-slate-700);
  border-bottom: 1px solid rgb(var(--jp-slate-700-rgb) / 0.14);
}
.hubx-page .insights-filter-groups { display: grid; gap: 12px 44px; }
.hubx-page .insights-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 2px; }
.hubx-page .insights-filter-group > span {
  flex: 0 0 auto;
  min-width: 64px;
  margin-right: 12px;
  color: rgb(var(--jp-slate-700-rgb) / 0.42);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.hubx-page .insights-filter-group button,
.hubx-page .insights-filter-group button:hover,
.hubx-page .insights-filter-group button:focus-visible,
.hubx-page .insights-filter-group button[aria-pressed="true"] {
  min-height: 0;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hubx-page .insights-filter-group button {
  background: transparent !important;
  color: rgb(var(--jp-slate-700-rgb) / 0.66);
  cursor: pointer;
}
.hubx-page .insights-filter-group button:hover {
  background: rgb(31 51 64 / 0.07) !important;
  color: var(--jp-slate-700);
}
.hubx-page .insights-filter-group button[aria-pressed="true"],
.hubx-page .insights-filter-group button[aria-pressed="true"]:hover {
  background: var(--jp-slate-700) !important;
  border-color: var(--jp-slate-700);
  color: var(--jp-warm-white) !important;
}
.hubx-page .insights-search-wrap {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}
.hubx-page .insights-search-wrap input {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid rgb(var(--jp-slate-700-rgb) / 0.22);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  color: var(--jp-slate-700);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hubx-page .insights-search-wrap input:focus {
  border-color: var(--jp-amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(216 137 0 / 0.12);
}
.hubx-page .insights-search-wrap input::placeholder { color: rgb(var(--jp-slate-700-rgb) / 0.38); }
.hubx-page .insights-search-wrap span {
  align-self: flex-end;
  color: rgb(var(--jp-slate-700-rgb) / 0.48);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- INDEX ROWS ---------- */
.hubx-index-head { margin-bottom: 26px; }
.hubx-index-head h2 {
  margin: 6px 0 0;
  color: var(--jp-slate-700);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 550;
  line-height: 1.1;
}
.hubx-index {
  display: grid;
  border-top: 1px solid rgb(var(--jp-slate-700-rgb) / 0.16);
}
.hubx-row {
  display: grid;
  grid-template-columns: 76px 300px minmax(0, 1fr) 40px;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 24px 10px;
  border-bottom: 1px solid rgb(var(--jp-slate-700-rgb) / 0.16);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.hubx-row:hover { background: rgb(247 244 238 / 0.85); padding-left: 22px; }
.hubx-row-num {
  color: rgb(216 137 0 / 0.9);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 550;
  line-height: 1;
}
.hubx-row-body { display: grid; gap: 3px; }
.hubx-row-body small {
  color: rgb(var(--jp-slate-700-rgb) / 0.48);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hubx-row-body h3 {
  margin: 0;
  color: var(--jp-slate-700);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.hubx-row:hover .hubx-row-body h3 { color: var(--jp-amber); }
.hubx-row-body p {
  margin: 2px 0 0;
  color: rgb(var(--jp-slate-700-rgb) / 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}
.hubx-row-arrow {
  color: rgb(var(--jp-slate-700-rgb) / 0.35);
  font-size: 1.3rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
.hubx-row:hover .hubx-row-arrow { transform: translateX(6px); color: var(--jp-amber); }

/* ---------- NEWSLETTER ---------- */
section.insight-newsletter-section.hubx-news {
  background: linear-gradient(160deg, #14212c 0%, #1F3340 100%) !important;
}
.hubx-news .eyebrow { color: var(--jp-amber); }
.hubx-news h2 {
  color: var(--jp-warm-white);
  font-family: var(--font-serif);
  font-weight: 520;
  line-height: 1.12;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1060px) {
  .hubx-row { grid-template-columns: 56px minmax(0, 1fr) 32px; }
  .hubx-row-cat-col { display: none; }
  .hubx-row-body small { display: none; }
}
@media (max-width: 900px) {
  .hubx-latest { grid-template-columns: 1fr; }
  .hubx-filterbar { flex-direction: column; }
  .insights-search-wrap { align-items: flex-start; }
  .insights-search-wrap input { width: 100%; }
}
@media (max-width: 640px) {
  .hubx-row { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 4px; }
  .hubx-row-num { font-size: 1.4rem; }
  .hubx-row-arrow { display: none; }
  .hubx-feature-body h2 { max-width: 100%; }
  .hubx-hero-meta { gap: 10px 16px; }
}

/* ============ DEEP POLISH LAYER — 9/10 pass ============ */

/* Index rows: editorial refinement */
.hubx-page .hubx-row {
  grid-template-columns: 84px minmax(0, 1fr) 44px;
  padding: 26px 14px;
}
.hubx-page .hubx-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--jp-amber);
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hubx-page .hubx-row { position: relative; }
.hubx-page .hubx-row:hover::after { width: 100%; }
.hubx-page .hubx-row-num {
  font-size: 2.1rem;
  font-weight: 500;
  color: rgb(var(--jp-slate-700-rgb) / 0.28);
  transition: color 0.25s ease;
}
.hubx-page .hubx-row:hover .hubx-row-num { color: var(--jp-amber); }
.hubx-page .hubx-row-body h3 { letter-spacing: -0.005em; }

/* Feature panels: sharper executive presence */
.hubx-page .hubx-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--jp-amber), rgb(216 137 0 / 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hubx-page .hubx-feature:hover::before { opacity: 1; }
.hubx-page .hubx-feature-body h2 { letter-spacing: -0.01em; }

/* Hero: finer typography details */
.hubx-hero .container { animation: hubxRise 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
@keyframes hubxRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hubx-hero .container { animation: none; }
}

/* Newsletter band: premium finish */
.hubx-news { position: relative; overflow: hidden; }
.hubx-news::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgb(247 244 238 / 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hubx-news .insight-newsletter-panel > div > p:last-of-type { color: rgb(247 244 238 / 0.66); }
.hubx-news .newsletter-form label { color: rgb(247 244 238 / 0.78); }
.hubx-news .newsletter-form input:not([type="checkbox"]) {
  border-color: rgb(247 244 238 / 0.28);
  background: rgb(247 244 238 / 0.06);
  color: var(--jp-warm-white);
}
.hubx-news .newsletter-form input:focus { border-color: var(--jp-amber); }
.hubx-news .button-primary {
  background: var(--jp-amber) !important;
  color: #14212c !important;
  border: none !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em;
}
.hubx-news .button-primary:hover { filter: brightness(1.08); }

/* Selection + focus ring brand consistency */
.hubx-page ::selection,
.hubx-hero ::selection { background: rgb(216 137 0 / 0.85); color: #fff; }

/* Empty state styling */
.hubx-page .insight-empty-state {
  display: block;
  padding: 48px 20px;
  text-align: center;
  color: rgb(var(--jp-slate-700-rgb) / 0.55);
  font-size: 0.95rem;
}

/* ============ NEWSLETTER — coherent dark styling (final) ============ */
section.insight-newsletter-section.hubx-news {
  background:
    radial-gradient(46rem 30rem at 108% -20%, rgb(216 137 0 / 0.10), transparent 60%),
    linear-gradient(160deg, #14212c 0%, #1F3340 100%) !important;
}
section.insight-newsletter-section.hubx-news .insight-newsletter-panel {
  background: rgb(247 244 238 / 0.05) !important;
  border: 1px solid rgb(247 244 238 / 0.16) !important;
  box-shadow: none !important;
}
section.insight-newsletter-section.hubx-news .eyebrow {
  color: var(--jp-amber) !important;
}
section.insight-newsletter-section.hubx-news h2 {
  color: var(--jp-warm-white) !important;
}
section.insight-newsletter-section.hubx-news p {
  color: rgb(247 244 238 / 0.72) !important;
}
section.insight-newsletter-section.hubx-news .newsletter-form label {
  color: rgb(247 244 238 / 0.85) !important;
}
section.insight-newsletter-section.hubx-news .consent-label span {
  color: rgb(247 244 238 / 0.62) !important;
}
section.insight-newsletter-section.hubx-news .newsletter-form input:not([type="checkbox"]) {
  background: rgb(247 244 238 / 0.07) !important;
  border: 1px solid rgb(247 244 238 / 0.28) !important;
  color: var(--jp-warm-white) !important;
}
section.insight-newsletter-section.hubx-news .newsletter-form input:focus {
  border-color: var(--jp-amber) !important;
}
section.insight-newsletter-section.hubx-news .newsletter-form input[type="checkbox"] {
  accent-color: var(--jp-amber);
}

/* Form card itself was warm-white in styles.css — make it dark glass */
section.insight-newsletter-section.hubx-news .newsletter-form {
  background:
    radial-gradient(circle at 100% 0%, rgb(216 137 0 / 0.14), transparent 12rem),
    rgb(247 244 238 / 0.05) !important;
  border: 1px solid rgb(247 244 238 / 0.18) !important;
}
section.insight-newsletter-section.hubx-news .newsletter-form label,
section.insight-newsletter-section.hubx-news .consent-label {
  color: var(--jp-warm-white) !important;
}
section.insight-newsletter-section.hubx-news .consent-label span {
  color: rgb(247 244 238 / 0.68) !important;
}
