/*
 * kgx.css — Kognition platform-family page design system.
 * Implements WEBSITE_DESIGN_GUIDE.md (tokens §2, type §3, components §4, rhythm §5)
 * for the redesigned /platform/, /architecture/, /privacy-cybersecurity/,
 * /interoperability/ pages. All rules are scoped under .kgx so the legacy
 * Kallyas theme chrome (header/footer) is unaffected.
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600&display=swap');

.kgx {
  --kog-royal: #000b82;
  --kog-royal-deep: #000860;
  --paper: #ffffff;
  --paper-dim: #f8f8f8;
  --ink: #1a2033;
  --ink-soft: #4a5568;
  --electric: #0066ff;
  --electric-bright: #3399ff;
  --midnight-1: #0d1b3e;
  --midnight-2: #12275e;
  --midnight-3: #1b1a52;
  --ink-on-dark: #e8eef8;
  --ink-on-dark-soft: #c9d5e6;
  --accent-cyan: #00e5ff;
  --accent-violet: #7b2fff;
  --accent-violet-soft: #a98aff;
  --card-border: #e6eaf2;

  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
.kgx *,
.kgx *::before,
.kgx *::after {
  box-sizing: border-box;
}
.kgx img {
  max-width: 100%;
  height: auto;
}
.kgx p {
  margin: 0 0 1.1em;
  font-size: 17px;
  line-height: 1.65;
  color: inherit;
}
.kgx a {
  color: var(--kog-royal);
  text-decoration: none;
}
.kgx a:hover {
  color: var(--electric);
}

.kgx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.kgx-narrow {
  max-width: 820px;
}

/* ---------- Type ---------- */
.kgx h1,
.kgx h2,
.kgx h3 {
  font-family: Montserrat, 'Open Sans', sans-serif;
  color: inherit;
  margin: 0 0 18px;
}
.kgx h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.kgx h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
}
.kgx h3 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}
.kgx-eyebrow {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin: 0 0 14px;
}
.kgx-dark .kgx-eyebrow {
  color: var(--accent-violet-soft);
}
.kgx-lede {
  font-size: 19px;
  max-width: 68ch;
}
.kgx-center {
  text-align: center;
}
.kgx-center .kgx-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cyan lead-accent pages (default site accent per design guide §2) ---------- */
.kgx--cyan .kgx-eyebrow {
  color: var(--electric);
}
.kgx--cyan .kgx-dark .kgx-eyebrow {
  color: var(--accent-cyan);
}

/* ---------- Sections ---------- */
.kgx-section {
  padding: 96px 0;
  background: var(--paper);
}
.kgx-section--dim {
  background: var(--paper-dim);
}
.kgx-dark {
  background: linear-gradient(160deg, var(--midnight-1), var(--midnight-2) 55%, var(--midnight-3));
  color: var(--ink-on-dark);
}
.kgx-dark p {
  color: var(--ink-on-dark-soft);
}
.kgx-dark h1,
.kgx-dark h2,
.kgx-dark h3 {
  color: #ffffff;
}

/* ---------- Hero ---------- */
.kgx-hero {
  position: relative;
  overflow: hidden;
  padding: 178px 0 96px; /* clears the absolute Kallyas header */
}
.kgx-hero--tall {
  padding: 200px 0 120px;
}
.kgx-hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 0;
}
.kgx-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    92deg,
    rgba(13, 27, 62, 0.94) 0%,
    rgba(13, 27, 62, 0.82) 38%,
    rgba(13, 27, 62, 0.42) 68%,
    rgba(13, 27, 62, 0.18) 100%
  );
}
.kgx-hero .kgx-wrap {
  z-index: 2;
}
.kgx-hero h1 {
  max-width: 15ch;
}
.kgx-hero .kgx-lede {
  max-width: 52ch;
  font-size: 19px;
}
.kgx-crumbs {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-dark-soft);
  margin: 0 0 34px;
}
.kgx-crumbs a {
  color: var(--ink-on-dark-soft);
}
.kgx-crumbs a:hover {
  color: #ffffff;
}
.kgx-crumbs .kgx-crumb-sep {
  margin: 0 8px;
  opacity: 0.55;
}
.kgx-crumbs .kgx-crumb-here {
  color: #ffffff;
}

/* ---------- Buttons ---------- */
.kgx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.kgx .kgx-btn {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: all 0.25s ease-out;
  text-decoration: none;
  cursor: pointer;
}
.kgx .kgx-btn--royal {
  background: var(--kog-royal);
  color: #ffffff;
}
.kgx .kgx-btn--royal:hover {
  background: var(--kog-royal-deep);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 11, 130, 0.25);
}
.kgx .kgx-btn--electric {
  background: var(--electric);
  color: #ffffff;
}
.kgx .kgx-btn--electric:hover {
  background: var(--electric-bright);
  color: #ffffff;
  box-shadow: 0 0 28px rgba(51, 153, 255, 0.55);
  transform: translateY(-2px);
}
.kgx .kgx-btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}
.kgx .kgx-btn--ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.kgx .kgx-btn--ghost-light {
  background: transparent;
  color: var(--kog-royal);
  border-color: var(--kog-royal);
}
.kgx .kgx-btn--ghost-light:hover {
  color: var(--kog-royal);
  background: rgba(0, 11, 130, 0.06);
}

/* ---------- Cards ---------- */
.kgx-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.kgx-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.kgx-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.kgx-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.kgx-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.07);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.kgx-card:hover {
  transform: translateY(-4px);
  border-color: var(--electric);
  box-shadow: 0 14px 34px rgba(13, 27, 62, 0.12);
}
.kgx-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.kgx-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}
.kgx-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--midnight-1), var(--midnight-3));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.kgx-chip svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kgx-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.kgx-chip--lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.kgx-chip--lg img {
  width: 34px;
  height: 34px;
}
a.kgx-card {
  display: block;
  color: inherit;
}
a.kgx-card:hover {
  color: inherit;
}
a.kgx-card .kgx-card-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--kog-royal);
}
a.kgx-card:hover .kgx-card-more {
  color: var(--electric);
}

/* ---------- Editorial (news) cards ---------- */
.kgx-pill {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--kog-royal);
  background: rgba(0, 11, 130, 0.07);
  border: 1px solid rgba(0, 11, 130, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.kgx-post-date {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Stat band ---------- */
.kgx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.kgx-stat-num {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 10px;
}
.kgx-stat-label {
  font-size: 15px;
  color: var(--ink-on-dark-soft);
}

/* ---------- Checklist ---------- */
.kgx-checks {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.kgx-checks li {
  position: relative;
  padding-left: 34px;
  font-size: 16.5px;
  line-height: 1.5;
}
.kgx-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kog-royal);
}
.kgx-checks li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}
.kgx-dark .kgx-checks li::before {
  background: var(--electric);
}

/* ---------- Diagram figure ---------- */
.kgx-diagram {
  margin: 52px auto 0;
  max-width: 1100px;
}
.kgx-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.kgx-diagram-caption {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Logo strips ---------- */
.kgx-logos {
  margin-top: 34px;
}
.kgx-logos-label {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.kgx-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 48px;
}
/* Single monochrome treatment: uniform dark silhouettes (assets are alpha PNGs),
   full color on hover. Per-logo size classes even out optical weight. */
.kgx-logos-row img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(0.28);
  opacity: 0.85;
  transition: filter 0.25s ease-out, opacity 0.25s ease-out;
}
.kgx-logos-row img:hover {
  filter: none;
  opacity: 1;
}
.kgx-logos-row img.kgx-logo--sm {
  height: 24px;
}
.kgx-logos-row img.kgx-logo--md {
  height: 28px;
}
.kgx-logos-row img.kgx-logo--lg {
  height: 38px;
}
.kgx-logos-row img.kgx-logo--xl {
  height: 44px;
}

/* ---------- CTA closer band ---------- */
.kgx-closer {
  text-align: center;
  padding: 88px 0;
}
.kgx-closer h2 {
  max-width: 24ch;
  margin: 0 auto 14px;
}
.kgx-closer p {
  max-width: 58ch;
  margin: 0 auto;
}
.kgx-closer .kgx-cta-row {
  justify-content: center;
}

/* ---------- Two-column feature ---------- */
.kgx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 12px;
}

/* ---------- Motion (respects reduced motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  .kgx *,
  .kgx *::before,
  .kgx *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 991px) {
  .kgx-hero,
  .kgx-hero--tall {
    padding-top: 76px;
  }
}
@media (max-width: 991px) {
  .kgx-grid--3,
  .kgx-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .kgx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .kgx-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 767px) {
  .kgx-section {
    padding: 56px 0;
  }
  .kgx-hero {
    padding: 40px 0 56px;
  }
  .kgx-hero--tall {
    padding: 40px 0 64px;
  }
  .kgx-grid--2,
  .kgx-grid--3,
  .kgx-grid--4 {
    grid-template-columns: 1fr;
  }
  .kgx-checks {
    grid-template-columns: 1fr;
  }
  .kgx-crumbs {
    margin-bottom: 24px;
  }
}

/* ---------- App icon tiles (real product icons, shown as-is) ---------- */
.kgx-appicon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(13, 27, 62, 0.18);
}

/* ---------- Feature lists (bold-lead bullets inside cards/splits) ---------- */
.kgx-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.kgx-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.kgx-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
}
.kgx-list li strong {
  color: var(--ink);
}
.kgx-card .kgx-list {
  margin-top: 4px;
}
.kgx-card .kgx-list li {
  font-size: 15px;
}

/* ---------- Comparison table ---------- */
.kgx-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.07);
  background: #ffffff;
}
.kgx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15.5px;
}
.kgx-table th {
  background: linear-gradient(160deg, var(--midnight-1), var(--midnight-3));
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 16px 20px;
  white-space: nowrap;
}
.kgx-table th:last-child {
  color: var(--accent-cyan);
}
.kgx-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--card-border);
  color: var(--ink-soft);
  vertical-align: top;
}
.kgx-table td:first-child {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.kgx-table td:last-child {
  color: var(--kog-royal);
  font-weight: 600;
}

/* ---------- Hero art hue variants (family art reuse) ---------- */
.kgx-hero-art--violet {
  filter: hue-rotate(38deg) saturate(0.92);
}
.kgx-hero-art--deep {
  filter: hue-rotate(-14deg) saturate(1.05) brightness(0.92);
}

/* ---------- Section head (h2 + intro copy above a component grid) ---------- */
.kgx-sechead {
  max-width: 820px;
}
.kgx-sechead p {
  color: var(--ink-soft);
}
.kgx-sechead > p:first-of-type {
  color: var(--ink);
}

/* ---------- Numbered step rows ("Getting started" sequences) ---------- */
.kgx-steps {
  list-style: none;
  counter-reset: kgxstep;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.kgx-steps li {
  position: relative;
  counter-increment: kgxstep;
  padding: 18px 22px 18px 68px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 27, 62, 0.05);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.kgx-steps li strong {
  color: var(--ink);
}
.kgx-steps li::before {
  content: counter(kgxstep);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--midnight-1), var(--midnight-3));
  color: var(--accent-cyan);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Team cards (about page): equal heights via clamped bios.
   The full bio stays in the HTML; only the visual box is clamped. ---------- */
.kgx-team-card {
  text-align: center;
  padding-top: 40px;
  align-items: center;
}
.kgx-team-card > * {
  align-self: center;
}
.kgx-team-card .kgx-team-bio {
  align-self: stretch;
  width: 100%;
}
.kgx-team-photo {
  display: block;
  width: 150px !important;
  height: 150px !important;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--electric), 0 10px 28px rgba(13, 27, 62, 0.18);
}
/* per-photo crop fixes (faces off-center in source images) */
.kgx-team-photo[src*="matias2"] {
  object-position: 88% 30% !important;
}
.kgx-team-card h3 {
  margin-bottom: 4px;
  text-align: center !important;
}
.kgx-team-card .kgx-team-role {
  text-align: center !important;
}
.kgx-team-role {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 14px;
}
.kgx-team-bio {
  font-size: 14.5px;
  text-align: left;
}
.kgx-team-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--electric);
  color: #fff !important;
  margin: -4px auto 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kgx-team-li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
  color: #fff;
}
.kgx-team-li svg {
  display: block;
}

/* ---------- Long-form prose sections (industry / landing pages) ---------- */
.kgx-prose {
  max-width: 860px;
}
.kgx-prose h2 {
  margin-top: 0;
}
.kgx-prose h3 {
  margin-top: 28px;
  font-size: 19px;
}
.kgx-prose p {
  color: var(--ink-soft);
}
.kgx-prose > p:first-of-type,
.kgx-prose h2 + p {
  color: var(--ink);
}
.kgx-prose ul,
.kgx-prose ol {
  list-style: none;
  margin: 0 0 1.3em;
  padding: 0;
}
.kgx-prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.kgx-prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
}
.kgx-prose li ul {
  margin-top: 9px;
}
.kgx-prose li li::before {
  background: var(--accent-cyan);
  width: 6px;
  height: 6px;
  top: 11px;
}
.kgx-prose strong {
  color: var(--ink);
}
.kgx-prose .kgx-btn {
  margin-top: 6px;
}

/* ---------- News category filter pills ---------- */
.kgx-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
.kgx-filter-pill {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kog-royal);
  background: #ffffff;
  border: 1.5px solid rgba(0, 11, 130, 0.22);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.kgx-filter-pill:hover {
  border-color: var(--electric);
  color: var(--electric);
}
.kgx-filter-pill.is-active {
  background: var(--kog-royal);
  border-color: var(--kog-royal);
  color: #ffffff;
}
.kgx-filter-pill:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

/* ---------- Social media tile gallery (/news/social-media/) ---------- */
.kgx-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .kgx-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .kgx-social-grid {
    grid-template-columns: 1fr;
  }
}
.kgx-social-tile {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(13, 27, 62, 0.07);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.kgx-social-tile:hover {
  transform: translateY(-4px);
  border-color: var(--electric);
  box-shadow: 0 14px 34px rgba(13, 27, 62, 0.12);
}
.kgx-social-tile img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-dim);
}
.kgx-social-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.kgx-social-tile-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 14px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.kgx-social-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.kgx-social-tile-date {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.kgx-social-tile-link {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--kog-royal);
  white-space: nowrap;
}
.kgx-social-tile-link:hover {
  color: var(--electric);
}
.kgx-social-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed rgba(0, 11, 130, 0.22);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.kgx-social-empty a {
  color: var(--kog-royal);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Contact form (2026-08-19, reCAPTCHA v3) ---------- */
.kgx-form {
  max-width: 820px;
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 44px 48px 36px;
  box-shadow: 0 12px 40px rgba(13, 27, 62, 0.08);
}
.kgx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.kgx-field { display: block; margin: 0; }
.kgx-field--full { grid-column: 1 / -1; }
.kgx-field > span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.kgx-field > span em { color: var(--electric); font-style: normal; }
.kgx-field input,
.kgx-field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.kgx-field input::placeholder,
.kgx-field textarea::placeholder { color: #9aa5b8; }
.kgx-field input:focus,
.kgx-field textarea:focus {
  background: #fff;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.kgx-field textarea { resize: vertical; min-height: 130px; }
.kgx-form-status { display: none; margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.kgx-form-status--ok { display: block; background: #e8f9f2; color: #0a6e46; border: 1px solid #bfe9d6; }
.kgx-form-status--err { display: block; background: #fdeeee; color: #a12626; border: 1px solid #f2c7c7; }
.kgx-form-actions { text-align: center; margin-top: 28px; }
.kgx-form-actions .kgx-btn { min-width: 240px; }
.kgx-form button[disabled] { opacity: 0.6; cursor: default; }
.kgx-recaptcha-note { font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; }
.kgx-recaptcha-note a { color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 720px) {
  .kgx-form { padding: 28px 22px 26px; }
  .kgx-form-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Hide the reCAPTCHA v3 badge — it overlaps the AI Advisor widget button.
   Permitted by Google since the reCAPTCHA disclosure text is shown in the forms. */
.grecaptcha-badge { visibility: hidden !important; }
