/* ============================================
   AEC LANDSCAPE EMBED
   Mounted by <div class="gf-embed" data-embed="aec-landscape"></div> in a
   post body. build.js links this file (and embed.js) only on pages that carry
   the marker. Everything is scoped under .aecl so the article styles in
   knowledge.css (p margins, link colours, img margins) cannot leak in, and
   these rules cannot leak out. The detail panel lives on <body>, outside the
   article, under .aecl-panel.
   ============================================ */

.aecl, .aecl-panel, .aecl-scrim {
    /* Neutrals + blues match the Israeli AI map (/ai-map/styles.css) so the maps read as one family */
    --aecl-ink: #0B1628;
    --aecl-muted: #4A5868;
    --aecl-faint: #8B94A3;
    --aecl-line: rgba(11, 22, 40, 0.08);
    --aecl-line-strong: rgba(11, 22, 40, 0.14);
    --aecl-surface: #ffffff;
    --aecl-surface-2: #F5F9FD;      /* AI map --bg (light blue page ground) */
    --aecl-bg-tone: #E3EDF7;
    --aecl-blue: #3B73B2;
    --aecl-blue-deep: #2A5A91;
    --aecl-link: #047a66;           /* site teal #06c4a2, darkened for text contrast */
    --aecl-teal: #06c4a2;
    /* Phase colours: one navy-to-teal ramp so the four headers read as a single
       process flow (site navy #011132 -> site teal #06c4a2, darkened for white text) */
    --aecl-p1: #0c2348;
    --aecl-p2: #164672;
    --aecl-p3: #1b6585;
    --aecl-p4: #067f6c;
    /* Flags */
    --aecl-gold: #d4a843;           /* Greenfield portfolio */
    --aecl-green: #1fb57a;          /* raised $100M+ (site #3dcf8e) */
    --aecl-font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color-scheme: light;
}

/* ---------- Frame: breaks out of the 860px article column ---------- */
.gf-embed.aecl {
    --aecl-w: min(1320px, calc(100vw - 32px));
    width: var(--aecl-w);
    margin: 40px 0 44px calc((100% - var(--aecl-w)) / 2);
    padding: clamp(18px, 2.4vw, 32px);
    background: var(--aecl-surface);
    border: 1px solid var(--aecl-line);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(1, 12, 51, 0.06);
    font-family: var(--aecl-font);
    font-size: 14px;
    line-height: 1.45;
    color: var(--aecl-ink);
    text-align: left;
    container-type: inline-size;
    container-name: aecl;
}
.aecl *, .aecl-panel * { box-sizing: border-box; }
.aecl [hidden], .aecl-panel[hidden], .aecl-scrim[hidden] { display: none !important; }
.gf-embed.aecl p { margin: 0; }
.gf-embed.aecl a { color: var(--aecl-link); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.gf-embed.aecl a:hover { color: var(--aecl-ink); }
.gf-embed.aecl button { font-family: inherit; }

.aecl-loading, .aecl-error { color: var(--aecl-muted); font-size: 14px; padding: 24px 0; text-align: center; }

/* ---------- Text bits the in-post preview still uses ---------- */
.aecl-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--aecl-faint);
}
.aecl-eyebrow b { color: var(--aecl-link); font-weight: 800; }
.gf-embed.aecl .aecl-lede { color: var(--aecl-muted); font-size: 15px; line-height: 1.6; max-width: 78ch; }

/* ---------- Full map: laid out like the Israeli AI map ----------
   .aecl-page = the map is the page (or fills the overlay): full-bleed light-blue ground,
   a white title band, a sticky search + pill bar, then the phases. */
.gf-embed.aecl.aecl-page {
    width: auto; margin: 0; padding: 0;
    background: var(--aecl-surface-2);
    border: 0; border-radius: 0; box-shadow: none;
}
.aecl-wrap { max-width: 1440px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.aecl-hero { background: var(--aecl-surface); border-bottom: 1px solid var(--aecl-line); }
.aecl-hero .aecl-wrap { padding-top: 22px; padding-bottom: 20px; }
/* Same white-band height as the Israeli AI map's hero (226px, measured at 1280-1440),
   content centred vertically like theirs. Phones just fit the content. */
@container aecl (min-width: 761px) {
    .aecl-hero .aecl-wrap { min-height: 226px; display: flex; flex-direction: column; justify-content: center; }
}
.gf-embed.aecl .aecl-pre {
    font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--aecl-faint);
}
.gf-embed.aecl .aecl-pre a { color: var(--aecl-blue-deep); text-decoration: none; font-weight: 800; }
.gf-embed.aecl .aecl-pre a:hover { color: var(--aecl-ink); }
.gf-embed.aecl .aecl-title {
    margin: 6px 0 0;
    font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
    color: var(--aecl-ink);
    text-wrap: balance;
}
/* "86 Companies  4 Phases  1 Greenfield portfolio": number first, label after, one line */
.aecl-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; }
.aecl-stats div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; }
.aecl-stats dt { font-size: 14px; font-weight: 500; color: var(--aecl-muted); }
.aecl-stats dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--aecl-ink); font-variant-numeric: tabular-nums; }
/* Link to the blog post the map belongs to */
.gf-embed.aecl .aecl-post { margin: 14px 0 0; }
.gf-embed.aecl .aecl-post a {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
    font-size: 15px; font-weight: 800; color: var(--aecl-blue-deep); text-decoration: none;
}
.gf-embed.aecl .aecl-post a:hover { color: var(--aecl-ink); }
.aecl-post-label {
    padding: 3px 9px; border-radius: 999px; background: rgba(42, 90, 145, 0.1);
    font-size: 12px; font-weight: 800;
}
.aecl-post svg { flex: none; transition: transform 0.2s; }
.gf-embed.aecl .aecl-post a:hover svg { transform: translateX(3px); }

/* "Not on the map? Reach out": a tinted callout so it catches the eye */
.gf-embed.aecl .aecl-hnote {
    width: fit-content; max-width: 100%;
    margin-top: 16px; padding: 12px 18px;
    background: linear-gradient(90deg, rgba(6, 196, 162, 0.13), rgba(6, 196, 162, 0.05));
    border: 1px solid rgba(6, 196, 162, 0.35); border-radius: 12px;
}
.gf-embed.aecl .aecl-hnote-txt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--aecl-ink); }
.aecl-hnote-txt strong { font-weight: 800; }
.gf-embed.aecl .aecl-hnote-txt a { font-weight: 700; color: var(--aecl-link); overflow-wrap: anywhere; }

/* Sticky bar (like the AI map's): stays under the site nav, slides up when the nav hides */
.aecl-toolbar {
    position: sticky; top: 80px; z-index: 6;
    background: rgba(245, 249, 253, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--aecl-line);
    transition: top .35s cubic-bezier(.4, 0, .2, 1);
}
body:has(.nav.nav-hidden) .aecl-page:not(.aecl-in-ov) .aecl-toolbar { top: 0; }
.aecl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
.aecl-search-box {
    display: flex; align-items: center; gap: 10px;
    flex: 0 1 260px; min-width: 200px;
    padding: 0 16px;
    background: var(--aecl-surface);
    border: 1px solid var(--aecl-line-strong); border-radius: 999px;
    color: var(--aecl-faint);
}
.aecl-search-box:focus-within { border-color: var(--aecl-blue); }
.gf-embed.aecl .aecl-search {
    flex: 1; min-width: 0; height: 40px;
    padding: 0; border: 0; outline: none; background: transparent;
    font: 14px var(--aecl-font); color: var(--aecl-ink);
}
.gf-embed.aecl .aecl-search::placeholder { color: var(--aecl-faint); }
.aecl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.aecl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gf-embed.aecl .aecl-chip {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 34px; padding: 0 13px;
    border: 1px solid var(--aecl-line-strong);
    border-radius: 999px;
    background: var(--aecl-surface);
    color: var(--aecl-ink);
    font-size: 13px; font-weight: 600; white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.gf-embed.aecl .aecl-chip:hover { border-color: var(--aecl-blue); background: var(--aecl-bg-tone); }
.gf-embed.aecl .aecl-chip[aria-pressed="true"] { background: var(--aecl-blue-deep); border-color: var(--aecl-blue-deep); color: #fff; }
.gf-embed.aecl .aecl-chip:focus-visible { outline: 2px solid var(--aecl-blue); outline-offset: 2px; }
.aecl-chip[aria-pressed="true"] .aecl-b-adsk { background: #fff; }
.aecl-chip .aecl-n { font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
.aecl-statusrow { display: flex; align-items: baseline; gap: 12px; flex-basis: 100%; }
.aecl-statusrow:has(.aecl-status:empty):has(.aecl-clear[hidden]) { display: none; }
.gf-embed.aecl .aecl-clear {
    border: 0; background: none; padding: 4px 2px;
    font-size: 13px; font-weight: 700; color: var(--aecl-blue-deep); cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.gf-embed.aecl .aecl-status { margin: 0; font-size: 13.5px; color: var(--aecl-muted); }
.aecl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.aecl-body { padding-top: 24px; padding-bottom: 56px; }

/* About band: copied from the Israeli AI map (.about / .foot in /ai-map/styles.css) */
.aecl-about { background: var(--aecl-surface); border-top: 1px solid var(--aecl-line); }
.aecl-about-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); padding-top: 40px; padding-bottom: 56px; }
.gf-embed.aecl .aecl-about-title { grid-column: 1 / -1; margin: 0 0 -8px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--aecl-ink); }
.gf-embed.aecl .aecl-about h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--aecl-ink); }
.gf-embed.aecl .aecl-about p { margin: 0; color: var(--aecl-muted); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.gf-embed.aecl .aecl-about p + p { margin-top: 10px; }
.gf-embed.aecl .aecl-about a { color: var(--aecl-blue-deep); font-weight: 400; }
.gf-embed.aecl .aecl-about a:hover { color: var(--aecl-ink); }
.aecl-about .aecl-b { vertical-align: middle; position: relative; top: -1px; margin-right: 3px; }   /* every key badge centred on its text */
.aecl-keyitem { white-space: nowrap; }
.aecl-about .aecl-b-il { font-size: 17px; top: -2px; }   /* the flag reads small next to the 17px badges */
.aecl-about .aecl-b-big { vertical-align: middle; position: relative; top: -1px; margin: 0 4px 0 1px; }   /* centred on the text, not sitting low */

/* ---------- Badges (cards, chips, panel) ---------- */
.aecl-badges { display: inline-flex; gap: 3px; flex: 0 0 auto; align-items: center; }
.aecl-b {
    display: inline-grid; place-items: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 5px;
    font-size: 9.5px; font-weight: 800; line-height: 1; letter-spacing: 0.03em;
}
/* Greenfield portfolio = the website's favicon (same mark the Israeli AI map uses) */
.aecl-b-portco { min-width: 0; width: 17px; padding: 0; border-radius: 4px; background: url("/assets/images/favicon.svg") center / cover no-repeat; }
/* Israeli founders or R&D = the flag emoji */
.aecl-b-il { min-width: 0; padding: 0; background: none; font-size: 14px; line-height: 1; letter-spacing: 0; }
.aecl-b-adsk { background: #fff; color: var(--aecl-ink); box-shadow: inset 0 0 0 1.5px var(--aecl-ink); }
.aecl-b-big { min-width: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; background: var(--aecl-green); margin: 0 2px; }

/* ---------- Map: four phase lanes ---------- */
.aecl-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr 1.6fr;
    /* rows shared by all four lanes (subgrid), so each band lines up across phases:
       arrow / description / "Innovators" / innovator list / incumbents */
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 12px;
    margin-top: 0;
}
.aecl-lane {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    min-width: 0;
}
.aecl-inn { display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; }
/* each band's content sits in the middle of the shared row */
.aecl-lane-head { display: flex; flex-direction: column; justify-content: center; }
.gf-embed.aecl .aecl-inn > .aecl-what { display: flex; align-items: center; }
.aecl-inn > .aecl-role { align-self: center; }
.aecl-lane-head { padding: 14px 30px 14px 16px; margin-bottom: 8px; }
.gf-embed.aecl .aecl-lane-head h3 {
    font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25;
    color: #fff; margin: 6px 0 4px;
}
.gf-embed.aecl .aecl-who { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }

/* ---------- Process-flow chevrons (full-map lane heads + preview heads) ----------
   Each head is a filled arrow in its phase colour; it reaches into the column gap
   so its point sits inside the next head's notch. First head has no notch, last no point. */
.aecl-chev {
    --chev: 14px;                   /* arrow depth */
    --chev-gap: 12px;               /* = the grid column gap */
    position: relative;
    background: var(--pc);
    color: #fff;
    margin-right: calc(var(--chev) - var(--chev-gap) - 6px);
    padding-left: calc(var(--chev) + 12px);
    clip-path: polygon(0 0, calc(100% - var(--chev)) 0, 100% 50%, calc(100% - var(--chev)) 100%, 0 100%, var(--chev) 50%);
}
.aecl-lane:first-child .aecl-chev, .aecl-pv-lane:first-child .aecl-chev {
    padding-left: 16px;
    border-radius: 10px 0 0 10px;
    clip-path: polygon(0 0, calc(100% - var(--chev)) 0, 100% 50%, calc(100% - var(--chev)) 100%, 0 100%);
}
.aecl-lane:last-child .aecl-chev, .aecl-pv-lane:last-child .aecl-chev {
    margin-right: 0;
    padding-right: 16px;
    border-radius: 0 10px 10px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--chev) 50%);
}
.aecl-pkick {
    display: block;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.gf-embed.aecl .aecl-what {
    font-size: 12.5px; color: var(--aecl-ink); line-height: 1.4;
    padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--aecl-line);
}
.aecl-sec { padding: 12px 14px; min-width: 0; }
.aecl-inn {
    background: var(--aecl-surface);
    border: 1px solid var(--aecl-line);
    border-radius: 12px 12px 0 0;
}
.aecl-inc {
    background: var(--aecl-surface);
    border: 1px solid var(--aecl-line); border-top: 0;
    border-radius: 0 0 12px 12px;
}
.aecl-role {
    display: flex; align-items: baseline; justify-content: space-between;
    font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.aecl-role .n { font-weight: 600; color: var(--aecl-muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gf-embed.aecl .aecl-seg { font-size: 12px; font-weight: 600; color: var(--aecl-muted); margin: 12px 0 6px; line-height: 1.25; }
.aecl-inc .aecl-cards { margin-top: 9px; }
/* dense: a full-width card (long name) never leaves a hole in the row above it */
.aecl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-flow: row dense; gap: 6px; }
.aecl-empty { font-size: 12.5px; color: var(--aecl-muted); font-style: italic; padding: 6px 0; }

/* ---------- Company cards ---------- */
.gf-embed.aecl .aecl-card {
    position: relative;
    display: flex; align-items: center; gap: 6px;
    min-width: 0; min-height: 44px;
    padding: 7px 8px;
    border: 1px solid var(--aecl-line);
    border-radius: 8px;
    background: var(--aecl-surface);
    color: var(--aecl-ink);
    text-align: left;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, opacity .2s ease, filter .2s ease;
}
.gf-embed.aecl .aecl-card:hover { border-color: var(--aecl-ink); box-shadow: 0 4px 12px rgba(1, 12, 51, 0.10); }
.gf-embed.aecl .aecl-card:focus-visible { outline: 2px solid var(--aecl-link); outline-offset: 2px; }
.gf-embed.aecl .aecl-card.is-wide, .gf-embed.aecl .aecl-card.is-fit { grid-column: 1 / -1; }
.gf-embed.aecl .aecl-card.is-portco {
    border-color: var(--aecl-gold);
    background: color-mix(in srgb, var(--aecl-gold) 10%, #fff);
}
.gf-embed.aecl .aecl-card.is-dim { opacity: 0.22; filter: grayscale(1); }
.gf-embed.aecl .aecl-card.is-dim:hover { opacity: 0.6; }
.gf-embed.aecl .aecl-card.is-hit { background: #DCEBFA; border-color: rgba(59, 115, 178, 0.55); }
.aecl-cmain { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
/* Flags sit on the card's top-right corner, so a badge never shrinks a logo. */
.aecl-card .aecl-badges {
    position: absolute; top: -7px; right: -5px;
    padding: 2px; border-radius: 7px; background: #fff;
    box-shadow: 0 1px 3px rgba(1, 12, 51, 0.12);
}
.gf-embed.aecl .aecl-cmain { gap: 7px; }
/* words never break: fitNames() in embed.js widens the card instead (the overflow is
   only there for the moment it measures) */
.aecl-cname { font-size: 12px; font-weight: 700; line-height: 1.2; overflow-wrap: normal; min-width: 0; overflow: hidden; }
/* Site icon tile: the favicon fills a 20px rounded square; a faint inner ring keeps
   white icons from dissolving into the card. No icon -> navy tile with initials. */
.aecl-ico {
    position: relative; flex: none;
    width: 20px; height: 20px; border-radius: 5px; overflow: hidden;
    display: grid; place-items: center;
    background: #fff;
}
.aecl-ico::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(1, 12, 51, 0.08); pointer-events: none; }
.gf-embed.aecl .aecl-ico img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: contain; }
.aecl-ico.is-mono { background: var(--aecl-p1); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: 0.02em; }

/* ---------- Key + footnote ---------- */
.aecl-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--aecl-muted); }
.aecl-key span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Detail panel (page level, on <body>) ---------- */
.aecl-scrim { position: fixed; inset: 0; background: rgba(1, 12, 51, 0.45); z-index: 10040; }
.aecl-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(460px, 100%);
    z-index: 10041;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 24px 32px;
    background: var(--aecl-surface);
    color: var(--aecl-ink);
    font-family: var(--aecl-font);
    font-size: 14px; line-height: 1.5;
    box-shadow: -12px 0 40px rgba(1, 12, 51, 0.18);
    animation: aecl-in .22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes aecl-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.aecl-panel p { margin: 0; }
.aecl-panel a { color: var(--aecl-link); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.aecl-ptop { display: flex; align-items: center; gap: 14px; }
.aecl-pmark {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border: 1px solid var(--aecl-line); border-radius: 12px;
    background: #fff;
    display: grid; place-items: center;
    padding: 6px;
    font-weight: 800; font-size: 17px; color: var(--pc, var(--aecl-ink));
}
.aecl-pmark img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.aecl-pmark.has-logo { width: 128px; height: 56px; padding: 8px 12px; }
.aecl-ptitle { min-width: 0; }
.aecl-panel h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.aecl-pphase { font-size: 12.5px; color: var(--aecl-muted); margin-top: 3px !important; }
.aecl-close {
    margin-left: auto; flex: 0 0 auto;
    width: 36px; height: 36px;
    border: 1px solid var(--aecl-line); border-radius: 10px;
    background: #fff; color: var(--aecl-ink);
    font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit;
}
.aecl-close:hover { background: var(--aecl-surface-2); }
.aecl-close:focus-visible { outline: 2px solid var(--aecl-link); outline-offset: 2px; }
.aecl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.aecl-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--aecl-line-strong); color: var(--aecl-muted);
}
.aecl-pill.is-portco { background: color-mix(in srgb, var(--aecl-gold) 16%, #fff); border-color: var(--aecl-gold); color: var(--aecl-ink); }
.aecl-desc { font-size: 15.5px; line-height: 1.55; margin: 16px 0 4px !important; }
.aecl-kv {
    display: grid; grid-template-columns: 112px 1fr; gap: 10px 12px;
    margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--aecl-line);
    font-size: 14px;
}
.aecl-kv dt { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--aecl-faint); padding-top: 3px; }
.aecl-kv dd { margin: 0; overflow-wrap: anywhere; }
.aecl-note { margin-top: 16px; padding: 12px 14px; background: var(--aecl-surface-2); border-radius: 10px; font-size: 14px; }
.aecl-note p + p { margin-top: 8px; }
.aecl-note b { font-weight: 800; }

/* ============================================
   IN-POST PREVIEW + FULL-SCREEN MAP
   The post shows a compact preview that fits the 860px text column; the full
   map (everything above) renders inside a page-level overlay.
   ============================================ */

/* ---------- Preview: compact card in the text column ---------- */
.gf-embed.aecl.aecl-preview {
    width: auto;
    margin: 36px 0 40px;
    padding: 24px;
    box-shadow: none;
}
.gf-embed.aecl.aecl-preview .aecl-title { font-size: 24px; margin: 6px 0 6px; }
.gf-embed.aecl.aecl-preview .aecl-lede { font-size: 14.5px; }
.aecl-pv-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 0 8px;
    margin-top: 18px;
    cursor: pointer;
}
/* lanes share two subgrid rows so all four arrows are the same height */
.aecl-pv-lane { min-width: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.aecl-pv-head { --chev: 11px; --chev-gap: 8px; padding: 9px 22px 10px 12px; margin-bottom: 6px; }
.aecl-pv-lane:first-child .aecl-pv-head { padding-left: 12px; }
.aecl-pv-lane:last-child .aecl-pv-head { padding-right: 12px; }
.aecl-pv-head .aecl-pkick { font-size: 9.5px; }
.gf-embed.aecl .aecl-pv-head h3 {
    font-size: 12.5px; font-weight: 800; line-height: 1.25; color: #fff;
    margin: 3px 0 0;
}
.aecl-pv-body {
    flex: 1;
    padding: 8px 8px 10px;
    background: color-mix(in srgb, var(--pc) 4%, #fff);
    border: 1px solid var(--aecl-line);
    border-radius: 10px;
    transition: box-shadow .15s;
}
.aecl-pv-map:hover .aecl-pv-body { box-shadow: 0 4px 14px rgba(1, 12, 51, 0.08); }
.aecl-pv-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.aecl-pv-icons span {
    position: relative; aspect-ratio: 1; max-width: 36px; width: 100%; justify-self: center;
    border-radius: 8px; overflow: hidden; background: #fff;
}
.aecl-pv-icons span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(1, 12, 51, 0.08); }
.gf-embed.aecl .aecl-pv-icons img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: contain; }
.gf-embed.aecl .aecl-pv-more { font-size: 11.5px; font-weight: 600; color: var(--aecl-muted); margin-top: 8px; }
.aecl-pv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.aecl-pv-cta span { font-size: 13px; color: var(--aecl-muted); }
.gf-embed.aecl .aecl-pv-open {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 20px;
    border: 0; border-radius: 999px;
    background: var(--aecl-ink); color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.gf-embed.aecl .aecl-pv-open:hover { background: #0a1e3d; }
.gf-embed.aecl .aecl-pv-open:focus-visible { outline: 2px solid var(--aecl-link); outline-offset: 2px; }
.gf-embed.aecl .aecl-pv-note { font-size: 13px; color: var(--aecl-muted); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--aecl-line); }

.aecl-overlay {
    position: fixed; inset: 0;
    z-index: 10030;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #F5F9FD;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}
.aecl-overlay[hidden] { display: none; }
.aecl-ov-bar {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px max(16px, calc((100vw - 1400px) / 2));
    background: rgba(1, 17, 50, 0.97);
    color: #fff; font-size: 14px; font-weight: 700;
}
.aecl-ov-close {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
    background: transparent; color: #fff;
    font: inherit; font-size: 13px; cursor: pointer;
}
.aecl-ov-close:hover { background: rgba(255, 255, 255, 0.1); }
.gf-embed.aecl.aecl-in-ov { width: auto; margin: 0; }
.aecl-in-ov .aecl-toolbar { top: 58px; }


/* ============================================
   PILL CLOUD (full map): companies are pills sized to their name, not boxed
   cards inside the white buckets; segments get a dot in the phase colour.
   Chosen by David, 17 Nov 2026 (buckets plain white, no tint).
   ============================================ */
/* Greenfield portfolio: the one filled pill on the map, so it reads at a glance */
.aecl.aecl-page .aecl-card.is-portco { background: var(--aecl-blue); border-color: var(--aecl-blue); }   /* AI map blue, #3B73B2 */
.aecl.aecl-page .aecl-card.is-portco:hover { background: var(--aecl-blue-deep); border-color: var(--aecl-blue-deep); }
.aecl.aecl-page .aecl-card.is-portco .aecl-cname { color: #fff; font-weight: 800; }
.aecl.aecl-page .aecl-card.is-portco .aecl-b-portco { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); }

.aecl.aecl-page .aecl-what { color: var(--aecl-muted); border-bottom-color: color-mix(in srgb, var(--pc) 14%, #fff); }
.aecl.aecl-page .aecl-seg { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.005em; line-height: 1.25; color: var(--aecl-ink); margin: 28px 0 10px; }
.aecl.aecl-page .aecl-inn-list > .aecl-seg:first-child { margin-top: 14px; }
.aecl.aecl-page .aecl-seg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
.aecl.aecl-page .aecl-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.aecl.aecl-page .aecl-card {
    min-height: 32px; padding: 3px 11px 3px 3px; gap: 6px;
    border-radius: 999px; border-color: var(--aecl-line-strong); background: #fff;
}
.aecl.aecl-page .aecl-card:hover { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 6%, #fff); box-shadow: none; }
.aecl.aecl-page .aecl-ico { width: 24px; height: 24px; border-radius: 50%; }
.aecl.aecl-page .aecl-cname { font-size: 12.5px; font-weight: 600; line-height: 1.25; }   /* wraps only if a pill is wider than its lane */
.aecl.aecl-page .aecl-card .aecl-badges { position: static; padding: 0; background: none; box-shadow: none; }
.aecl.aecl-page .aecl-inc .aecl-card { background: var(--aecl-surface-2); }
/* Text-search matches: light blue fill so they stand out from the greyed-out rest */
.aecl.aecl-page .aecl-card.is-hit,
.aecl.aecl-page .aecl-inc .aecl-card.is-hit { background: #DCEBFA; border-color: rgba(59, 115, 178, 0.55); }
.aecl.aecl-page .aecl-card.is-hit:hover { background: #CCE1F7; border-color: var(--aecl-blue); }


/* ============================================
   PHASE HEADS (full map): slim ribbon. A short arrow holds the phase number and
   name; who it is for sits underneath as quiet text. Chosen by David, 17 Nov 2026.
   ============================================ */
.aecl.aecl-page .aecl-chev,
.aecl.aecl-page .aecl-lane:first-child .aecl-chev,
.aecl.aecl-page .aecl-lane:last-child .aecl-chev {
    background: none; clip-path: none; border-radius: 0; color: var(--aecl-ink);
    margin-right: 0; padding: 0 0 12px;
}
.aecl.aecl-page .aecl-lane-head { justify-content: flex-start; }
.aecl.aecl-page .aecl-pkick { display: none; }
.gf-embed.aecl.aecl-page .aecl-lane-head h3 {
    --chev: 13px;
    display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 0 calc(var(--chev) - 18px) 10px 0;
    padding: 8px calc(var(--chev) + 12px) 8px calc(var(--chev) + 12px);
    background: var(--pc); color: #fff; font-size: 15px; line-height: 1.2;
    clip-path: polygon(0 0, calc(100% - var(--chev)) 0, 100% 50%, calc(100% - var(--chev)) 100%, 0 100%, var(--chev) 50%);
}
.gf-embed.aecl.aecl-page .aecl-lane-head h3::before {
    content: attr(data-n); flex: none; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}
.gf-embed.aecl.aecl-page .aecl-lane:first-child .aecl-lane-head h3 {
    padding-left: 14px; border-radius: 10px 0 0 10px;
    clip-path: polygon(0 0, calc(100% - var(--chev)) 0, 100% 50%, calc(100% - var(--chev)) 100%, 0 100%);
}
.gf-embed.aecl.aecl-page .aecl-lane:last-child .aecl-lane-head h3 {
    margin-right: 0; padding-right: 14px; border-radius: 0 10px 10px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--chev) 50%);
}
.gf-embed.aecl.aecl-page .aecl-who { color: var(--aecl-ink); font-size: 13px; font-weight: 500; padding: 0 4px; }   /* darker than the grey in-bucket descriptions */

/* ---------- Responsive (by the embed's own width) ---------- */
@container aecl (max-width: 560px) {
    .aecl-pv-map { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr auto 1fr; row-gap: 0; }
    .aecl-pv-lane:nth-child(-n+2) .aecl-pv-body { margin-bottom: 8px; }
    /* 2-up: the arrows no longer sit in one row, so heads become plain tabs */
    .aecl-pv-lane .aecl-chev, .aecl-pv-lane:first-child .aecl-chev, .aecl-pv-lane:last-child .aecl-chev {
        margin-right: 0; padding: 9px 12px 10px; border-radius: 10px; clip-path: none;
    }
}
@container aecl (max-width: 1020px) {
    .aecl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; }
    .aecl-lane { display: flex; flex-direction: column; grid-row: auto; }
    .aecl-inn { display: block; }
    .aecl-lane .aecl-chev, .aecl-lane:first-child .aecl-chev, .aecl-lane:last-child .aecl-chev {
        margin-right: 0; padding: 14px 16px; border-radius: 10px; clip-path: none;
    }
    .aecl.aecl-page .aecl-lane .aecl-chev { background: none; padding: 0 0 10px; }
    .gf-embed.aecl.aecl-page .aecl-lane .aecl-lane-head h3,
    .gf-embed.aecl.aecl-page .aecl-lane:first-child .aecl-lane-head h3,
    .gf-embed.aecl.aecl-page .aecl-lane:last-child .aecl-lane-head h3 { margin-right: 0; clip-path: none; border-radius: 10px; padding-left: 14px; padding-right: 14px; }
    .aecl-inn { flex: 1; }
}
@container aecl (max-width: 760px) {
    .aecl-wrap { padding-left: 16px; padding-right: 16px; }
    .aecl-about-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .aecl-bar { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .aecl-search-box { flex-basis: 100%; min-width: 0; padding: 0 14px; }
    /* one swipeable row of pills instead of a tall wrapped block in the sticky bar */
    .aecl-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; margin: 0 -16px; padding: 0 16px; }
    .aecl-filters::-webkit-scrollbar { display: none; }
    .aecl-group { flex-wrap: nowrap; }
    .aecl-stats { gap: 4px 18px; }
}
@container aecl (max-width: 640px) {
    .aecl-grid { grid-template-columns: minmax(0, 1fr); }
    .aecl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .aecl-panel {
        top: auto; left: 0; width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 40px rgba(1, 12, 51, 0.2);
        animation-name: aecl-up;
    }
    @keyframes aecl-up { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    .aecl-panel { animation: none; }
    .gf-embed.aecl .aecl-card, .gf-embed.aecl .aecl-chip { transition: none; }
}

/* ============================================
   LINK CARD (blog post): data-layout="card"
   The live version of the map's share image (maps/global/aec/share.jpg):
   navy glow ground, the title on the left, a tilted wall of the map's logos on
   the right that drifts slowly, and the green button of the Market Maps card in
   Raz's post. The markup (text + button) is static in the post, so the link
   works without JS; embed.js (initCard) adds the wall.
   ============================================ */
.gf-embed[data-layout="card"] { margin: 36px 0; }
.gf-embed .aecl-promo {
    --aecl-promo-bg:
        radial-gradient(60% 85% at 0% 100%, #164a7a 0%, rgba(0,10,31,0) 70%),
        radial-gradient(45% 60% at 100% 0%, #3a2f7a 0%, rgba(0,10,31,0) 75%),
        radial-gradient(50% 55% at 62% 105%, #1d5c63b3 0%, rgba(0,10,31,0) 70%),
        radial-gradient(35% 45% at 30% 15%, rgba(74,144,217,.14) 0%, rgba(0,10,31,0) 70%),
        linear-gradient(155deg, #061d45 0%, #000a1f 48%, #020d2b 100%);
    --aecl-promo-green: #20c997;
    --aecl-mx: 70%; --aecl-my: 40%;
    container-type: inline-size;
    position: relative; isolation: isolate;
    display: block; overflow: hidden;
    aspect-ratio: 1200 / 630;
    border-radius: 16px;
    background: var(--aecl-promo-bg);
    color: #fff; text-decoration: none;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 14px 36px rgba(1, 17, 50, .20);
    transform: translateZ(0);
    transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1);
}
.gf-embed .aecl-promo:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 24px 56px rgba(1, 17, 50, .30); }
.gf-embed .aecl-promo:focus-visible { outline: 3px solid var(--aecl-promo-green); outline-offset: 4px; }

/* the wall, behind everything else */
.aecl-promo-wall {
    position: absolute; inset: 0; z-index: 0;
    transition: transform 1.4s cubic-bezier(.16,1,.3,1), filter .6s;
    transform-origin: 75% 50%;
}
.aecl-promo:hover .aecl-promo-wall { transform: scale(1.045); }
.aecl-promo-tilt {
    --t: 7.2cqw;  --g: 1cqw;
    position: absolute; left: 30%; top: -18%;
    display: flex; gap: var(--g);
    transform: rotate(-6deg); transform-origin: top left;
}
.aecl-promo-col { width: var(--t); flex: none; }
.aecl-promo-track {
    display: flex; flex-direction: column;
    animation: aecl-promo-drift var(--aecl-d, 100s) linear infinite;
    will-change: transform;
}
.aecl-promo-col.is-down .aecl-promo-track { animation-direction: reverse; }
.aecl-promo.is-paused .aecl-promo-track,
.aecl-promo.is-paused .aecl-promo-tile.is-portco { animation-play-state: paused; }
@keyframes aecl-promo-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.aecl-promo-tile {
    display: flex; align-items: center; justify-content: center;
    width: var(--t); height: var(--t); margin-bottom: var(--g);   /* margin, not gap: keeps the -50% loop exact */
    box-sizing: border-box; padding: 15%;
    border-radius: 22%; background: #fff;
    box-shadow: 0 6px 16px rgba(0, 6, 20, .35);
    opacity: 0; transform: translateY(14px) scale(.92);
    transition: opacity .7s ease-out, transform .9s cubic-bezier(.16,1,.3,1);
    transition-delay: calc(var(--aecl-i, 0) * 70ms);
}
.aecl-promo.is-in .aecl-promo-tile { opacity: 1; transform: none; }
.gf-embed .aecl-promo .aecl-promo-tile img {
    display: block; width: 100%; height: 100%; max-width: none;
    margin: 0; border-radius: 0; object-fit: contain;
}
/* the portfolio company: a soft green ring that breathes */
.aecl-promo-tile.is-portco {
    box-shadow: 0 0 0 .35cqw var(--aecl-promo-green), 0 0 2.6cqw rgba(32, 201, 151, .55);
    animation: aecl-promo-glow 3.2s ease-in-out infinite;
}
@keyframes aecl-promo-glow {
    50% { box-shadow: 0 0 0 .35cqw var(--aecl-promo-green), 0 0 4.4cqw rgba(32, 201, 151, .85); }
}

/* the same ground laid over the wall, faded out to the right, so the text sits on clean navy */
.gf-embed .aecl-promo::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: var(--aecl-promo-bg);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 37%, rgba(0,0,0,.85) 46%, rgba(0,0,0,0) 63%);
            mask-image: linear-gradient(90deg, #000 0, #000 37%, rgba(0,0,0,.85) 46%, rgba(0,0,0,0) 63%);
}
/* a light that follows the pointer */
.gf-embed .aecl-promo::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(38cqw 38cqw at var(--aecl-mx) var(--aecl-my), rgba(117, 216, 177, .16), rgba(117, 216, 177, 0) 70%);
    opacity: 0; transition: opacity .5s;
}
.gf-embed .aecl-promo:hover::after { opacity: 1; }

/* copy */
.aecl-promo-copy {
    position: absolute; z-index: 2; left: 5.3cqw; top: 0; bottom: 0; width: 44cqw;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.gf-embed .aecl-promo .aecl-promo-logo {
    display: block; width: auto; height: 2.9cqw; min-height: 20px; max-width: none;
    margin: 0 0 3.2cqw; border-radius: 0;
}
.aecl-promo-title {
    display: block; font-size: max(24px, 5.2cqw); line-height: 1.03; font-weight: 800; letter-spacing: -.035em;
    text-wrap: balance;
}
.aecl-promo-meta {
    display: block; margin-top: 2cqw; font-size: max(14px, 2cqw); font-weight: 600; color: rgba(255, 255, 255, .72);
}
.aecl-promo-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 4.6cqw;
    padding: 11px 18px; border-radius: 999px;
    background: var(--aecl-promo-green); color: #0a0f1c;
    font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    box-shadow: 0 6px 20px rgba(32, 201, 151, .28);
    transition: background .25s, box-shadow .25s;
}
.aecl-promo-btn svg { flex: none; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.aecl-promo:hover .aecl-promo-btn { background: #fff; box-shadow: 0 8px 24px rgba(255, 255, 255, .22); }
.aecl-promo:hover .aecl-promo-btn svg { transform: translateX(4px); }

/* phone: a taller card, the wall across the top, the copy underneath on clean navy */
@media (max-width: 600px) {
    .gf-embed .aecl-promo { aspect-ratio: 4 / 5; }
    .gf-embed .aecl-promo::before {
        -webkit-mask-image: linear-gradient(0deg, #000 0, #000 46%, rgba(0,0,0,.8) 56%, rgba(0,0,0,0) 74%);
                mask-image: linear-gradient(0deg, #000 0, #000 46%, rgba(0,0,0,.8) 56%, rgba(0,0,0,0) 74%);
    }
    .aecl-promo-tilt { --t: 15cqw; --g: 2.2cqw; left: -22%; top: -30%; }
    .aecl-promo-wall { transform-origin: 50% 0; }
    .aecl-promo-copy { left: 6cqw; right: 6cqw; width: auto; top: auto; bottom: 7cqw; justify-content: flex-end; }
    .gf-embed .aecl-promo .aecl-promo-logo { height: 20px; margin-bottom: 14px; }
    .aecl-promo-title { font-size: 26px; }
    .aecl-promo-meta { margin-top: 8px; font-size: 14px; }
    .aecl-promo-btn { margin-top: 18px; font-size: 14px; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .aecl-promo-track, .aecl-promo-tile.is-portco { animation: none; }
    .aecl-promo-tile { opacity: 1; transform: none; transition: none; }
    .gf-embed .aecl-promo, .gf-embed .aecl-promo:hover, .aecl-promo:hover .aecl-promo-wall { transform: none; }
}
