/* Kill the Avada wrapper + html/body lavender tint on this page specifically —
     the 0.85 white on the site's lavender body creates a visible "boxed"
     container rectangle around the content. We want a clean, uniform page bg. */
  html.avada-html-layout-wide,
  body.page-id-24150 {
    background: #ffffff !important;
    background-image: none !important;
  }
  body.page-id-24150 .fusion-wrapper,
  body.page-id-24150 main.clearfix,
  body.page-id-24150 .post-content,
  body.page-id-24150 .fusion-fullwidth.ap-whatsnew-hero,
  body.page-id-24150 .fusion-fullwidth.ap-whatsnew-body {
    background: #ffffff !important;
  }

  /* Tokens */
  :where(.ap-wn-wrap) { --ap-navy: #071c5d; --ap-navy-deep: #001740; --ap-ink: #0f172a;
    --ap-slate: #475569; --ap-slate-mid: #62748e; --ap-slate-soft: #90a1b9;
    --ap-border: #dce4ff; --ap-border-strong: #c7d3f5; --ap-surface: #f7f9ff;
    --ap-line: #e8edfa; --ap-accent: #1f6fbf; --ap-accent-deep: #003d8c;
    --ap-ease: cubic-bezier(.22,.61,.36,1);
  }

  .ap-wn-wrap { max-width: 960px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); box-sizing: border-box; }
  .ap-wn-wrap *, .ap-wn-wrap *::before, .ap-wn-wrap *::after { box-sizing: border-box; }

  /* ── Hero ────────────────────────────────────────────────────── */
  .ap-wn-hero {
    text-align: left;
    padding: 20px 0 12px;
    position: relative;
  }
  /* Language switcher — minimal row at top of hero */
  .ap-wn-lang-switcher {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    color: var(--ap-slate-mid);
    margin: 0 0 18px;
  }
  .ap-wn-lang {
    color: var(--ap-slate-mid); text-decoration: none;
    transition: color .15s var(--ap-ease);
  }
  .ap-wn-lang:hover { color: var(--ap-navy); }
  .ap-wn-lang-current { color: var(--ap-navy); font-weight: 700; }
  .ap-wn-lang-sep { color: var(--ap-slate-soft); opacity: .5; margin: 0 -4px; }
  /* atmospheric backdrop — removed 2026-04-21 (created a visible soft-edged
     box on the lavender site body; prefer a clean white page). */
  .ap-wn-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ap-accent-deep); margin: 0 0 28px;
    padding: 7px 14px 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid color-mix(in srgb, var(--ap-border-strong) 60%, transparent);
    backdrop-filter: blur(8px);
  }
  .ap-wn-eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: #00a63e;
    box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.18);
    animation: ap-pulse 2.2s var(--ap-ease) infinite;
  }
  @keyframes ap-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
  @media (prefers-reduced-motion: reduce) { .ap-wn-eyebrow::before { animation: none; } }

  .ap-wn-title {
    font-size: clamp(42px, 6.2vw, 68px);
    line-height: 1.02;
    font-weight: 600;
    color: var(--ap-navy);
    margin: 0 0 20px;
    letter-spacing: -0.035em;
  }
  .ap-wn-subtitle {
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--ap-slate-mid);
    max-width: 54ch;
    margin: 0 0 32px;
    font-weight: 400;
  }
  /* simple "Last updated <date>" line under the lede */
  .ap-wn-updated {
    font-size: 13px;
    color: var(--ap-slate-mid);
    font-weight: 500;
    margin: 8px 0 0;
  }
  .ap-wn-updated strong { color: var(--ap-navy); font-weight: 600; }

  /* LinkedIn follow-banner — sits under "Last updated", before the first month */
  .ap-wn-linkedin {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 22px 0 0;
    padding: 10px 16px 10px 12px;
    background: #f0f4ff;
    border: 1px solid #c7d3f5;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ap-navy);
    font-size: 14px; font-weight: 500;
    line-height: 1.4;
    transition: background .2s var(--ap-ease), border-color .2s var(--ap-ease),
                transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease);
    max-width: 640px;
  }
  .ap-wn-linkedin:hover {
    background: #e6eeff;
    border-color: #9ab0eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(7, 28, 93, 0.04), 0 8px 20px -8px rgba(7, 28, 93, 0.10);
  }
  .ap-wn-linkedin-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 4px;
    background: #0a66c2; color: #ffffff;
    font-family: Arial, sans-serif; font-weight: 800; font-size: 13px;
    line-height: 1; flex: 0 0 auto;
  }
  .ap-wn-linkedin-arrow {
    color: var(--ap-accent);
    font-weight: 600;
    transition: transform .2s var(--ap-ease);
  }
  .ap-wn-linkedin:hover .ap-wn-linkedin-arrow { transform: translateX(3px); }
  .ap-wn-lede {
    font-size: 17px; line-height: 1.55; color: var(--ap-slate);
    max-width: 62ch; margin: 18px 0 24px; font-weight: 400;
  }
  .ap-wn-lede a { color: var(--ap-accent); text-decoration: none;
    border-bottom: 1px solid rgba(31,111,191,0.35);
    transition: border-color .15s var(--ap-ease); }
  .ap-wn-lede a:hover { border-bottom-color: var(--ap-accent); }

  /* ── Months: section divider ─────────────────────────────────── */
  .ap-wn-month { padding-top: 56px; }
  .ap-wn-month:first-of-type { padding-top: 8px; }
  .ap-wn-month-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin: 0 0 4px; padding-bottom: 16px;
    position: relative;
  }
  .ap-wn-month-header::after {
    /* subtle accent tick under the month label */
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--ap-navy), var(--ap-accent));
    border-radius: 1px;
  }
  .ap-wn-month-label {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    color: var(--ap-navy);
    margin: 0;
    letter-spacing: -0.028em;
    line-height: 1.05;
  }
  .ap-wn-month-count {
    font-size: 11px;
    color: var(--ap-slate-mid);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* ── Timeline: 3-column (date · rail · content) ─────────────── */
  .ap-wn-entries { display: flex; flex-direction: column; position: relative; }

  /* single continuous line, centered on the rail column — with gradient fades
     at both ends so it doesn't read as a harsh rule */
  .ap-wn-entries::before {
    content: ""; position: absolute; left: 163px;
    top: 40px; bottom: 24px; width: 1px;
    background: linear-gradient(180deg,
      transparent 0%,
      var(--ap-line) 40px,
      var(--ap-line) calc(100% - 40px),
      transparent 100%);
    pointer-events: none;
  }

  .ap-wn-entry { display: grid; grid-template-columns: 130px 10px 1fr; column-gap: 28px;
    padding: 28px 0 0; position: relative; align-items: start; }
  .ap-wn-entry:first-child { padding-top: 16px; }

  /* Each entry's content column gets a soft card treatment — subtle by default,
     more alive on hover. */
  .ap-wn-entry-main {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    padding: 24px 28px 26px;
    transition: border-color .2s var(--ap-ease), box-shadow .2s var(--ap-ease),
                transform .2s var(--ap-ease);
  }
  .ap-wn-entry-main:hover {
    border-color: var(--ap-border-strong);
    box-shadow:
      0 1px 2px rgba(7, 28, 93, 0.03),
      0 8px 24px -12px rgba(7, 28, 93, 0.08),
      0 24px 64px -24px rgba(7, 28, 93, 0.08);
    transform: translateY(-2px);
  }
  .ap-wn-entry-text { min-width: 0; }

  /* Majors keep the gold callout, but nested inside the card treatment.
     We re-open the card to the left so the badge sits on a continuous amber field. */
  .ap-wn-entry.has-major { padding-top: 42px; }
  .ap-wn-entry.is-content { padding-top: 36px; }

  .ap-wn-entry-date {
    font-size: 12.5px; color: var(--ap-slate-mid);
    font-weight: 500; padding-top: 32px;
    text-align: right; line-height: 1.4;
    white-space: nowrap; letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  .ap-wn-entry-anchor {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s var(--ap-ease);
  }
  .ap-wn-entry-anchor:hover { border-bottom-color: var(--ap-slate-mid); }
  .ap-wn-entry-cta {
    margin: 14px 0 0; font-size: 13.5px; color: var(--ap-slate-mid);
    font-weight: 500;
  }
  .ap-wn-entry-cta a {
    color: var(--ap-accent); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid rgba(31,111,191,0.25);
    transition: border-color .15s var(--ap-ease);
  }
  .ap-wn-entry-cta a:hover { border-bottom-color: var(--ap-accent); }
  html { scroll-behavior: smooth; }
  :target { scroll-margin-top: 120px; }

  /* dot: sits inside its own column, centered on the line, at date baseline */
  .ap-wn-entry-rail { position: relative; align-self: stretch; }
  .ap-wn-entry-rail::before {
    content: ""; position: absolute; left: 50%; top: 34px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--ap-accent);
    box-shadow:
      0 0 0 4px #ffffff,
      0 0 0 5px rgba(31, 111, 191, 0.12);
    transform: translateX(-50%);
    z-index: 2;
  }

  /* ── Major release callout (overrides the default card bg) ──── */
  .ap-wn-entry-main.is-major {
    background: linear-gradient(90deg, #fff8e5 0%, #fffaef 70%, #ffffff 100%);
    border: 1px solid #f6d880;
    border-left: 3px solid #ffb900;
    border-radius: 4px 12px 12px 4px;
  }
  .ap-wn-entry-main.is-major:hover {
    box-shadow: 0 2px 4px rgba(61, 46, 0, 0.05), 0 12px 32px -12px rgba(61, 46, 0, 0.10);
  }
  .ap-wn-major-badge { display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 5px 11px 5px 10px; border-radius: 5px;
    background: #ffb900; color: #3d2e00; margin-bottom: 14px; }
  .ap-wn-major-badge::before { content: "★"; font-size: 11px; line-height: 1; }
  /* On the major's own date column, emphasize slightly */
  .ap-wn-entry.has-major .ap-wn-entry-date { color: var(--ap-navy); font-weight: 600; }
  /* The dot marker turns gold on major entries */
  .ap-wn-entry.has-major .ap-wn-entry-rail::before { border-color: #ffb900;
    box-shadow: 0 0 0 5px #fffaef, 0 0 0 6px #ffb900; }

  /* Image slot — compact, framed, not hero-dominant. Only rendered when a
     real image is present OR entry is a major release. */
  .ap-wn-entry-image {
    display: block; width: 100%;
    aspect-ratio: 24 / 10;
    margin: 20px 0 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ap-surface);
    position: relative;
    border: 1px solid color-mix(in srgb, var(--ap-border) 90%, transparent);
    box-shadow: 0 1px 2px rgba(7, 28, 93, 0.04), 0 4px 16px -8px rgba(7, 28, 93, 0.08);
  }
  .ap-wn-entry-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;       /* show the most informative part of a screenshot */
    display: block;
  }
  /* Subtle inset line on hover — signals "clickable-looking" without heavy chrome */
  .ap-wn-entry-image::after {
    content: ""; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(7, 28, 93, 0.05);
    border-radius: inherit; pointer-events: none;
  }

  /* Logo-watermark placeholder — only for major releases without a photo */
  .ap-wn-entry-image--placeholder {
    background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
    display: flex; align-items: center; justify-content: center;
  }
  .ap-wn-entry-image--placeholder svg { width: 96px; height: auto; opacity: .22;
    color: var(--tile-fg); }

  .ap-wn-tag {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 11px 5px 9px; border-radius: 999px;
    line-height: 1.3;
    margin-bottom: 14px;
    background: transparent !important;  /* overrides inline style below */
    border: 1px solid currentColor;
    opacity: .92;
  }
  .ap-wn-tag::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
  }

  .ap-wn-entry-title {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--ap-navy);
    margin: 0 0 14px;
    line-height: 1.22;
    letter-spacing: -0.028em;
    max-width: 36ch;
  }
  .ap-wn-entry-title-text {
    display: inline;
    background: linear-gradient(180deg, transparent 62%, rgba(255, 212, 59, 0.55) 62%);
    padding: 0 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .ap-wn-entry-body {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ap-slate);
    margin: 0;
    max-width: 62ch;
    font-weight: 400;
  }
  .ap-wn-entry-body a { color: var(--ap-accent); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; transition: color .15s var(--ap-ease); }
  .ap-wn-entry-body a:hover { color: var(--ap-accent-deep); }

  /* Optional "Other improvements" nested list */
  .ap-wn-entry-more { margin-top: 18px; }
  .ap-wn-entry-more-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ap-slate-soft); margin: 0 0 10px; }
  .ap-wn-entry-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .ap-wn-entry-more li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55;
    color: var(--ap-slate); }
  .ap-wn-entry-more li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--ap-slate-soft); }

  /* Linked items list (weekly-grouped New Content) — bigger, card-style cluster */
  /* Standalone New-content card (single skill-path or simulation link). Matches
     the amber styling of .ap-wn-entry-items for visual consistency. */
  .ap-wn-content-link {
    display: block; margin: 14px 0 0; padding: 18px 20px 18px 22px;
    background: #fff8e5;
    border: 1px solid #f6d880;
    border-left: 4px solid #ffb900;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s var(--ap-ease), border-color .15s var(--ap-ease),
                transform .15s var(--ap-ease), box-shadow .15s var(--ap-ease);
  }
  .ap-wn-content-link:hover {
    background: #fff4d4;
    border-color: #f0c24b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(61, 46, 0, 0.06), 0 8px 24px -12px rgba(61, 46, 0, 0.12);
  }
  .ap-wn-content-link-title {
    display: block; font-weight: 700; font-size: 17px;
    color: var(--ap-navy); letter-spacing: -0.015em; line-height: 1.35;
  }
  .ap-wn-content-link-body {
    display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55;
    color: var(--ap-slate); font-weight: 400;
  }
  .ap-wn-content-link-cta {
    display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600;
    color: #7a5600; letter-spacing: 0.01em;
  }
  .ap-wn-content-link:hover .ap-wn-content-link-cta { color: #3d2e00; }

  .ap-wn-entry-items { list-style: none; margin: 18px 0 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 10px; }
  .ap-wn-entry-items li { margin: 0; padding: 0; }
  .ap-wn-entry-items a { display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 18px 14px 16px; border-radius: 10px;
    background: #fffaec; border: 1px solid #fde9b1;
    color: var(--ap-navy); text-decoration: none;
    transition: background .15s var(--ap-ease), border-color .15s var(--ap-ease),
                transform .15s var(--ap-ease); }
  .ap-wn-entry-items a::before {
    content: "▶"; display: inline-block; font-size: 11px; line-height: 1;
    color: #9a7100; margin-top: 4px; transition: transform .15s var(--ap-ease); }
  .ap-wn-entry-items a:hover { background: #fff4d4; border-color: #f6d880;
    transform: translateX(2px); }
  .ap-wn-entry-items a:hover::before { transform: translateX(2px); color: #7a5600; }
  .ap-wn-entry-items .ap-wn-item-title { font-weight: 600; font-size: 15px;
    color: var(--ap-navy); line-height: 1.35; }
  .ap-wn-entry-items .ap-wn-item-hook { display: block; margin-top: 3px;
    font-weight: 400; font-size: 13.5px; color: var(--ap-slate);
    line-height: 1.5; }

  /* Library CTA — footer for content entries */
  .ap-wn-items-cta { display: inline-flex; align-items: center; gap: 8px;
    margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ap-accent-deep);
    letter-spacing: 0.02em; text-transform: uppercase; }
  .ap-wn-items-cta::after { content: "→"; font-size: 14px; transition: transform .15s var(--ap-ease); }
  .ap-wn-items-cta:hover { color: var(--ap-accent); }
  .ap-wn-items-cta:hover::after { transform: translateX(3px); }

  /* Title link — single-entry link support */
  .ap-wn-entry-title a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent;
    transition: border-color .15s var(--ap-ease); }
  .ap-wn-entry-title a:hover { border-color: var(--ap-accent); }

  /* "New content" entries: distinct visual accent (warm amber rail dot + left border tint) */
  .ap-wn-entry.is-content .ap-wn-entry-rail::before {
    border-color: #e5a700; background: #fffaec;
    box-shadow: 0 0 0 5px #ffffff; }
  .ap-wn-entry.is-content .ap-wn-entry-date { color: #7a5600; font-weight: 600; }
  /* Content entries get a warm-amber tinted card edge — subtle but distinct */
  .ap-wn-entry.is-content .ap-wn-entry-main {
    border-left: 3px solid #f0c24b;
    padding-left: 24px;
  }

  /* ── Footer ─────────────────────────────────────────────────── */
  .ap-wn-footer { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--ap-line);
    text-align: center; font-size: 14px; color: var(--ap-slate-soft); }
  .ap-wn-footer a { color: var(--ap-accent); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid transparent; transition: border-color .15s var(--ap-ease); }
  .ap-wn-footer a:hover { border-bottom-color: var(--ap-accent); }

  /* ── Mobile ─────────────────────────────────────────────────── */
  @media (max-width: 720px) {
    .ap-wn-entry { grid-template-columns: 1fr; column-gap: 0; row-gap: 8px; padding: 28px 0 0; }
    .ap-wn-entries::before { display: none; }
    .ap-wn-entry-rail { display: none; }
    .ap-wn-entry-date { font-size: 13px; color: var(--ap-slate-soft); padding-top: 0;
      text-align: left; }
    .ap-wn-entry-main { padding: 20px 20px 22px; }
    .ap-wn-entry-image { aspect-ratio: 16 / 9; }
    .ap-wn-entry-title { font-size: 22px; max-width: none; }
    .ap-wn-entry-body { font-size: 15.5px; }
    .ap-wn-month-label { font-size: 32px; }
    .ap-wn-month { padding-top: 56px; }
    .ap-wn-month:first-of-type { padding-top: 32px; }
  }
