/* Additions for the server-rendered blog pages (see lib/render.js and blog.js). */
:root {
  --ax-navy: #1a1a42;
  --ax-navy-2: #292966;
  --ax-accent: #4c6aff;
  --ax-bg: #f0f0f9;
  --ax-text: #666;
  --ax-font: "Plus Jakarta Sans", "Plus Jakarta Sans Placeholder", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- scroll reveal */
[data-ax-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
nav[data-ax-reveal] { transform: translateY(-16px); }
[data-ax-reveal].ax-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-ax-reveal] { transition: none; transform: none; }
}

/* ---------------------------------------------------------------- article body */
.ax-prose { word-wrap: break-word; }
.ax-prose h4 {
  font-family: var(--ax-font);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ax-navy);
  margin: 32px 0 12px;
}
.ax-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px auto;
}
.ax-prose figure { margin: 32px 0; }
.ax-prose figcaption { font-family: var(--ax-font); font-size: 14px; color: var(--ax-text); text-align: center; margin-top: 8px; }
.ax-prose blockquote {
  font-family: var(--ax-font);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ax-accent);
  color: var(--ax-navy);
  font-size: 20px;
  line-height: 1.5;
}
.ax-prose hr { border: 0; border-top: 1px solid rgba(26, 26, 66, 0.12); margin: 40px 0; }
.ax-prose iframe.ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 32px 0; }
.ax-prose .ql-align-center { text-align: center; --framer-text-alignment: center; }
.ax-prose .ql-align-right { text-align: right; --framer-text-alignment: right; }
.ax-prose .ql-align-justify { text-align: justify; --framer-text-alignment: justify; }
.ax-prose a { color: var(--ax-accent); text-decoration: underline; text-underline-offset: 2px; }
.ax-prose ol, .ax-prose ul { padding-left: 1.25em; }

.ax-empty {
  font-family: var(--ax-font);
  font-size: 18px;
  color: var(--ax-text);
  text-align: center;
  padding: 72px 20px 96px;
  width: 100%;
}
.ax-empty a {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ax-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------------- topic filter (listing page) */
.ax-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.ax-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--ax-navy);
  font: 500 14px/1 var(--ax-font);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 66, 0.12);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ax-tag:hover { box-shadow: inset 0 0 0 1px var(--ax-navy); }
.ax-tag.is-active { background: var(--ax-accent); color: #fff; box-shadow: none; }
.ax-tag-n { font-size: 12px; color: var(--ax-text); font-variant-numeric: tabular-nums; }
.ax-tag.is-active .ax-tag-n { color: rgba(255, 255, 255, 0.8); }
.ax-tag:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 2px; }
@media (max-width: 809px) {
  /* One scrollable row on phones instead of a tall block of pills. */
  .ax-tags {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 2px 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .ax-tags::-webkit-scrollbar { display: none; }
}

/* Tag pills on cards filter the listing (see blog.js). */
[data-ax-tag] { cursor: pointer; transition: box-shadow 0.15s ease; }
[data-ax-tag]:hover { box-shadow: inset 0 0 0 1px var(--ax-navy); }
.ax-loading [data-ax-card] { opacity: 0.45; transition: opacity 0.2s ease; }

/* ---------------------------------------------------------------- desktop "Expertises" dropdown */
.ax-dd {
  position: absolute;
  z-index: 100;
  min-width: 309px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 26, 66, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.ax-dd.ax-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.ax-dd a {
  font-family: var(--ax-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ax-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ax-dd a:hover, .ax-dd a:focus-visible { color: var(--ax-accent); }
.ax-dd a:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 4px; border-radius: 2px; }
[data-framer-name="Navigation Link"] [data-framer-name="Icon"] { transition: transform 0.2s ease; }

/* ---------------------------------------------------------------- mobile menu */
.ax-mnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--ax-navy);
  color: #fff;
  padding-bottom: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.ax-mnav.ax-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s ease, transform 0.22s ease; }
html.ax-lock { overflow: hidden; }
.ax-mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ax-mnav-logo img { display: block; height: 32px; width: auto; }
.ax-mnav-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ax-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ax-mnav-links { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 20px 8px; }
.ax-mnav-links a, .ax-mnav-cta, .ax-mnav-locale {
  font-family: var(--ax-font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.ax-mnav-links a { padding: 10px 12px; }
.ax-mnav-links a:active { color: var(--ax-accent); }
.ax-mnav-locale { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.ax-mnav-locale select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  padding: 4px 18px 4px 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}
.ax-mnav-locale select option { color: var(--ax-navy); }
.ax-mnav-cta {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  padding: 14px 24px;
  border: 1px solid #fff;
  font-size: 14px;
}
.ax-mnav a:focus-visible, .ax-mnav button:focus-visible, .ax-mnav select:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 3px; }
[data-framer-name="Menu button"] { cursor: pointer; }

/* ---------------------------------------------------------------- admin preview badge */
.ax-preview-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 300;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ax-accent);
  color: #fff;
  font: 600 13px/1 var(--ax-font);
  box-shadow: 0 8px 24px rgba(26, 26, 66, 0.25);
}
