/* Direction artistique d'Early Intelligence, reprise du thème Ghost « early-intelligence » (dérivé de Source, licence MIT).
   Toutes les règles sont limitées aux pages Early Intelligence (.ei-skin). */
@font-face { font-family: "EI Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/intelligence/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "EI Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/intelligence/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EI Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/intelligence/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
.ei-skin { --ghost-accent-color: #3b4a36; font-family: Inter, system-ui, sans-serif; }
.ei-skin .ei-announce { background: #3b4a36; color: #fffdf9; text-align: center; padding: 12px 24px; font-size: 15px; }
.ei-skin .ei-announce a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.ei-skin .ei-subnav { display: flex; gap: 28px; justify-content: center; padding: 18px 24px; border-bottom: 1px solid var(--ei-line); }
.ei-skin .ei-subnav a { font-family: "EI Plex Mono", Menlo, monospace; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ei-ink); text-decoration: none; }
.ei-skin .ei-subnav a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Table of contents
/* ------------------------------------------------------------

This is a development CSS file which is built to a minified
production stylesheet in assets/built/screen.css

1. Variables
2. Fonts
3. Resets
4. Globals
5. Layout
6. Navigation
  6.1. Navigation styles
  6.2. Navigation layouts
  6.3. Dropdown menu
  6.4. Mobile menu
7. Card
8. Header
  8.1. Magazine layout
  8.2. Highlight layout
  8.3. Classic layout
9. CTA
10. Featured posts
11. Container
  11.1. With sidebar
  11.2. Without sidebar
12. Post list
  12.1. List style
  12.2. Grid style
  12.3. No image list
13. Sidebar
14. Post/page
  14.1. Article
  14.2. Page template
  14.3. Page without header
15. Content
16. Cards
17. Comments
18. Recent posts
19. Archive
20. Design settings
21. Footer
  21.1. Footer styles
  21.2. Footer bar
  21.3. Footer signup
  21.4. Social links
22. Lightbox

*/

/* 1. Variables
/* ---------------------------------------------------------- */

.ei-skin {
    --color-white: #fff;
    --color-lighter-gray: rgb(0 0 0 / 0.05);
    --color-light-gray: #e6e6e6;
    --color-mid-gray: #ccc;
    --color-dark-gray: #444;
    --color-darker-gray: #15171a;
    --color-black: #000;
    --color-primary-text: var(--color-darker-gray);
    --color-secondary-text: rgb(0 0 0 / 0.55);
    --color-border: rgb(0 0 0 / 0.08);
    --color-dark-border: rgb(0 0 0 / 0.55);
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-serif: "EB Garamond", Georgia, Times, serif;
    --font-serif-alt: Georgia, Times, serif;
    --font-mono: "JetBrains Mono", Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;
    --container-width: 1320px;
    --container-gap: clamp(24px, 17.032px + 1.9355vw, 48px);
    --grid-gap: 42px;
}

.ei-skin :root.has-light-text {
    --color-lighter-gray: rgb(255 255 255 / 0.1);
    --color-darker-gray: #fff;
    --color-secondary-text: rgb(255 255 255 / 0.64);
    --color-border: rgb(255 255 255 / 0.15);
    --color-dark-border: rgb(255 255 255 / 0.5);
}

/* 2. Fonts
/* ---------------------------------------------------------- */

/* Fonts are preloaded and defined in default.hbs to avoid layout shift */

/* 3. Resets
/* ---------------------------------------------------------- */

.ei-skin *, .ei-skin *::before, .ei-skin *::after {
    box-sizing: border-box;
}

.ei-skin * {
    margin: 0;
}


.ei-skin {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ei-skin img, .ei-skin picture, .ei-skin video, .ei-skin canvas, .ei-skin svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.ei-skin iframe {
    display: block;
}

.ei-skin input, .ei-skin button, .ei-skin textarea, .ei-skin select {
    font: inherit;
}

.ei-skin p, .ei-skin h1, .ei-skin h2, .ei-skin h3, .ei-skin h4, .ei-skin h5, .ei-skin h6 {
    overflow-wrap: break-word;
}

.ei-skin h1, .ei-skin h2, .ei-skin h3, .ei-skin h4, .ei-skin h5, .ei-skin h6 {
    line-height: 1.2;
}

.ei-skin sub, .ei-skin sup {
    line-height: 1;
}

/* 4. Globals
/* ---------------------------------------------------------- */

.ei-skin {
    font-family: var(--gh-font-body, var(--font-sans));
    font-size: 16px;
    background-color: var(--background-color);
    color: var(--color-primary-text);
}

.ei-skin h1, .ei-skin h2, .ei-skin h3, .ei-skin h4, .ei-skin h5, .ei-skin h6 {
    font-family: var(--gh-font-heading, var(--font-sans));
}

.ei-skin a {
    color: var(--color-darker-gray);
    text-decoration: none;
}

.ei-skin a:hover {
    opacity: 0.8;
}

.ei-skin .gh-button {
    display: inline-flex;
    gap: 0.4em;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.4em;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.004em;
    line-height: 1;
    color: var(--color-white);
    cursor: pointer;
    background-color: var(--ghost-accent-color);
    border: 0;
    border-radius: 100px;
}

.ei-skin .gh-button:hover {
    opacity: 0.95;
}

.ei-skin .gh-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--color-darker-gray);
    cursor: pointer;
    background-color: transparent;
    border: 0;
    outline: none;
}

.ei-skin .gh-icon-button:hover :is(svg, span) {
    opacity: 0.8;
}

.ei-skin .gh-icon-button svg {
    width: 20px;
    height: 20px;
}

.ei-skin .gh-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 560px;
    width: 100%;
    height: 56px;
    font-size: 17px;
    font-weight: 450;
    letter-spacing: -0.008em;
    border-radius: 40px;
    background-color: var(--color-lighter-gray);
    transition: background-color 0.2s ease;
}

.ei-skin .gh-form.success {
    pointer-events: none;
}

.ei-skin .gh-form.error {
    box-shadow: 0 0 0 1px red;
}

.ei-skin .gh-form:hover {
    background-color: rgb(0 0 0 / 0.065);
}

.ei-skin .has-light-text .gh-form:hover {
    background-color: rgb(255 255 255 / 0.15);
}

.ei-skin .gh-form-input {
    position: absolute;
    inset: 0;
    padding-inline: 26px;
    width: 100%;
    height: 100%;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: 1.1;
    border: 0;
    border-radius: 40px;
    background-color: transparent;
    outline: none;
    transition: 0.3s ease-in-out;
}

.ei-skin input.gh-form-input {
    position: static;
    flex: 1;
    min-width: 0;
    padding-inline-end: 16px;
    text-overflow: ellipsis;
}

.ei-skin .gh-form-input::placeholder,
.ei-skin button.gh-form-input {
    color: rgb(0 0 0 / 0.3);
}

.ei-skin :is(.has-serif-title, .has-mono-title):not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-form-input, .ei-skin[class*=" gh-font-heading"]:not(.gh-font-heading-fira-sans):not(.gh-font-heading-inter):not(.gh-font-heading-manrope):not(.gh-font-heading-noto-sans):not(.gh-font-heading-nunito):not(.gh-font-heading-poppins):not(.gh-font-heading-roboto):not(.gh-font-heading-space-grotesk) .gh-form-input, .ei-skin[class^="gh-font-heading"]:not(.gh-font-heading-fira-sans):not(.gh-font-heading-inter):not(.gh-font-heading-manrope):not(.gh-font-heading-noto-sans):not(.gh-font-heading-nunito):not(.gh-font-heading-poppins):not(.gh-font-heading-roboto):not(.gh-font-heading-space-grotesk) .gh-form-input {
    padding-inline: 20px;
}

.ei-skin .gh-form.gh-form.success .gh-form-input {
    opacity: 0.5;
}

.ei-skin .has-light-text .gh-form-input {
    color: #fff;
}

.ei-skin .has-light-text .gh-form-input::placeholder,
.ei-skin .has-light-text button.gh-form-input {
    color: rgb(255 255 255 / 0.55);
}

.ei-skin .gh-header.is-classic.has-image .gh-form-input {
    color: #15171a;
}

.ei-skin .gh-header.is-classic.has-image .gh-form-input::placeholder,
.ei-skin .gh-header.is-classic.has-image button.gh-form-input,
.ei-skin .gh-header.is-classic.has-image .gh-form > svg {
    color: rgb(0 0 0 / 0.5);
}

.ei-skin button.gh-form-input {
    padding-inline-start: 56px;
    text-align: left;
    color: var(--color-secondary-text);
    cursor: pointer;
}

.ei-skin :is(.has-serif-title,.has-mono-title):not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) button.gh-form-input,.ei-skin[class*=" gh-font-heading"]:not(.gh-font-heading-fira-sans):not(.gh-font-heading-inter):not(.gh-font-heading-manrope):not(.gh-font-heading-noto-sans):not(.gh-font-heading-nunito):not(.gh-font-heading-poppins):not(.gh-font-heading-roboto):not(.gh-font-heading-space-grotesk) button.gh-form-input,.ei-skin[class^="gh-font-heading"]:not(.gh-font-heading-fira-sans):not(.gh-font-heading-inter):not(.gh-font-heading-manrope):not(.gh-font-heading-noto-sans):not(.gh-font-heading-nunito):not(.gh-font-heading-poppins):not(.gh-font-heading-roboto):not(.gh-font-heading-space-grotesk) button.gh-form-input {
    padding-inline-start: 50px;
}

.ei-skin .gh-form .gh-button {
    position: relative;
    flex-shrink: 0;
    margin-inline-end: 6px;
    min-width: 132px;
    padding-inline: 24px;
    height: 44px;
    font-size: inherit;
}

.ei-skin .gh-form > svg {
    position: relative;
    left: 22px;
    width: 20px;
    height: 20px;
    color: var(--color-secondary-text);
}

.ei-skin :is(.has-serif-title,.has-mono-title):not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-form > svg {
    left: 16px;
}

.ei-skin .gh-form .gh-button svg {
    display: none;
    position: absolute;
    margin-top: 1px;
}

.ei-skin .gh-form .gh-button > span:last-child {
    display: none;
}

.ei-skin .gh-form:is(.loading, .success) .gh-button > span:first-child {
    visibility: hidden;
}

.ei-skin .gh-form.loading .gh-button svg:first-of-type {
    display: block;
}

.ei-skin .gh-form.success .gh-button > span:first-child {
    display: none;
}

.ei-skin .gh-form.success .gh-button > span:last-child {
    display: inline;
}

.ei-skin .gh-form [data-members-error] {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
}

/* Choix de la langue sous le champ d'inscription */
.ei-skin .gh-form:has(.ei-lang) {
    margin-bottom: 40px;
}

.ei-skin .gh-form .ei-lang {
    position: absolute;
    top: 100%;
    left: 26px;
    display: flex;
    gap: 18px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-secondary-text);
}

.ei-skin .gh-form .ei-lang-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ei-skin .gh-form .ei-lang label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ei-skin .gh-form .ei-lang input {
    margin: 0;
    accent-color: currentColor;
}

.ei-skin .gh-form:has(.ei-lang) [data-members-error] {
    margin-top: 40px;
}

.ei-skin .gh-form.success .ei-lang {
    display: none;
}

@media (max-width: 576px) {
    .ei-skin .gh-form {
        font-size: 16px;
    }

    .ei-skin .gh-form .gh-button {
        min-width: 104px;
        padding-inline: 12px;
    }
}

/* 5. Layout
/* ---------------------------------------------------------- */

.ei-skin .gh-viewport {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ei-skin .gh-outer {
    padding: 0 max(4vmin, 20px);
}

.ei-skin .gh-outer .gh-outer {
    padding: 0;
}

.ei-skin .gh-inner {
    margin: 0 auto;
    max-width: var(--container-width);
    width: 100%;
}

.ei-skin .gh-main {
    flex-grow: 1;
}

.ei-skin .gh-canvas,
.ei-skin .kg-width-full.kg-content-wide {
    --main: min(var(--content-width, 720px), 100% - var(--container-gap) * 2);
    --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
    --full: minmax(var(--container-gap), 1fr);

    display: grid;
    grid-template-columns:
        [full-start] var(--full)
        [wide-start] var(--wide)
        [main-start] var(--main) [main-end]
        var(--wide) [wide-end]
        var(--full) [full-end];
}

.ei-skin .gh-canvas > * {
    grid-column: main;
}

.ei-skin .kg-width-wide,
.ei-skin .kg-content-wide > div {
    grid-column: wide;
}

.ei-skin .kg-width-full {
    grid-column: full;
}

/* 6. Navigation
/* ---------------------------------------------------------- */

.ei-skin .nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    vertical-align: middle;
}

.ei-skin .nav-icon {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    object-fit: contain;
}

@media (max-width: 767px) {
}

@media (min-width: 768px) {
}

@media (min-width: 768px) and (scripting: enabled) {
}

/* 6.1. Navigation styles */

/* 6.2. Navigation layouts */

/*
======================================================================
LOGO   Home About Collection Author Portal             Login Subscribe
======================================================================
*/

@media (min-width: 768px) {
}

@media (min-width: 992px) {
}

/*
======================================================================
Home About Collection            LOGO                  Login Subscribe
======================================================================
*/

@media (min-width: 992px) {
}

/*
======================================================================
Search                         LOGO                    Login Subscribe
                 Home About Collection Author Portal
======================================================================
*/

@media (max-width: 767px) {
}

@media (min-width: 768px) {
}

/* 6.3. Dropdown menu */

/* 6.4. Mobile menu */

@media (max-width: 767px) {

    .ei-skin #gh-main {
        transition: opacity 0.4s;
    }

    .ei-skin .is-open#gh-main {
        opacity: 0;
    }
}

/* 7. Card
/* ---------------------------------------------------------- */

.ei-skin .gh-card {
    position: relative;
}

.ei-skin .gh-card-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--color-darker-gray);
}

.ei-skin .gh-card-title-link {
    color: inherit;
}

.ei-skin .gh-card-title-link:hover {
    opacity: 1;
}

/* Stretch the title link over the whole card */
.ei-skin .gh-card-title-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ei-skin .gh-card-title-link:focus-visible {
    outline: none;
}

.ei-skin .gh-card-title-link:focus-visible::after {
    outline: auto;
}

.ei-skin .gh-card-image {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
}

.ei-skin .gh-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ei-skin .gh-card-wrapper {
    flex-grow: 1;
}

.ei-skin .gh-card-tag {
    display: none;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.ei-skin .gh-card-title {
    font-size: calc(19px * var(--factor, 1));
    font-weight: 725;
    letter-spacing: -0.014em;
    line-height: 1.3;
}

.ei-skin .gh-card-link:hover .gh-card-title {
    opacity: 0.8;
}

.ei-skin .gh-card-excerpt {
    display: -webkit-box;
    overflow-y: hidden;
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ei-skin .gh-card-meta {
    align-items: center;
    padding-bottom: 1px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.004em;
    color: var(--color-secondary-text);
}

.ei-skin .gh-card-meta svg {
    position: relative;
    top: 1px;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 2px;
}

.ei-skin .gh-card-meta:not(:empty) {
    margin-top: 8px;
}

.ei-skin .gh-card-author + .gh-card-date::before {
    content: "—";
    margin-right: 4px;
}

/* 8. Header
/* ---------------------------------------------------------- */

.ei-skin .gh-header {
    position: relative;
    margin-top: 40px;
}

.ei-skin .gh-header-inner {
    position: relative;
    overflow: hidden;
}

/* 8.1. Magazine layout */

.ei-skin .gh-header.is-magazine .gh-header-inner {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: var(--grid-gap);
}

.ei-skin .gh-header.is-magazine .gh-header-inner > div {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    grid-row: 1;
}

.ei-skin .gh-header.is-magazine .gh-header-left {
    grid-column: 1 / span 4;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card {
    position: relative;
    grid-column: 5 / span 8;
}

.ei-skin .gh-header.is-magazine .gh-header-right {
    grid-column: 13 / -1;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-link {
    gap: 28px;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-image {
    aspect-ratio: 1.618033;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-tag {
    display: block;
    margin-bottom: 12px;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-title {
    font-size: clamp(28px, 1.36vw + 22.5px, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.022em;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-excerpt {
    margin-top: clamp(12px, 0.45vw + 10.18px, 16px);
    font-size: 18px;
    letter-spacing: -0.02em;
    max-width: 90%;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-meta:not(:empty) {
    margin-top: 14px;
}

.ei-skin .gh-header.is-magazine :is(.gh-header-left, .gh-header-right) .gh-card:last-child .gh-card-image {
    display: none;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > div .gh-card-excerpt {
    display: none;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card::before,
.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card::after {
    position: absolute;
    top: 0;
    left: calc(var(--grid-gap) / -2);
    content: "";
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

.ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card::after {
    right: calc(var(--grid-gap) / -2);
    left: auto;
}

.ei-skin .gh-header.is-magazine .gh-header-inner > div .gh-card + .gh-card::before {
    position: absolute;
    top: calc(var(--grid-gap) / -2);
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}

@media (max-width: 1199px) {
    .ei-skin .gh-header.is-magazine .gh-header-inner {
        grid-template-columns: repeat(12, 1fr);
    }

    .ei-skin .gh-header.is-magazine .gh-header-inner > .gh-card {
        grid-column: 1 / span 8;
    }

    .ei-skin .gh-header.is-magazine .gh-header-left {
        grid-column: 9 / -1;
    }

    .ei-skin .gh-header.is-magazine .gh-header-inner > div.gh-header-right {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
    }

    .ei-skin .gh-header.is-magazine .gh-header-right .gh-card {
        flex: 1;
    }

    .ei-skin .gh-header.is-magazine .gh-header-right .gh-card:last-child .gh-card-image {
        display: block;
    }

    .ei-skin .gh-header.is-magazine .gh-header-right {
        position: relative;
    }

    .ei-skin .gh-header.is-magazine .gh-header-right::before {
        position: absolute;
        top: calc(var(--grid-gap) / -2);
        left: 0;
        content: "";
        width: 100%;
        height: 1px;
        background-color: var(--color-border);
    }

    .ei-skin .gh-header.is-magazine .gh-header-right .gh-card::before {
        display: none;
    }

    .ei-skin .gh-header.is-magazine .gh-header-right .gh-card::after {
        position: absolute;
        top: 0;
        right: calc(var(--grid-gap) / -2);
        content: "";
        width: 1px;
        height: 100%;
        background-color: var(--color-border);
    }
}

@media (max-width: 991px) {
    .ei-skin .gh-header.is-magazine .gh-header-left .gh-card:nth-child(2) .gh-card-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .ei-skin .gh-header.is-magazine .gh-header-inner {
        display: flex;
        flex-direction: column;
        gap: var(--grid-gap);
    }

    .ei-skin .gh-header.is-magazine .gh-header-inner > div.gh-header-right {
        flex-direction: column;
    }

    .ei-skin .gh-header.is-magazine .gh-card-image {
        display: block !important;
    }

    .ei-skin .gh-header.is-magazine .gh-card::before {
        display: block !important;
        position: absolute;
        top: calc(var(--grid-gap) / -2);
        left: 0;
        content: "";
        width: 100%;
        height: 1px;
        background-color: var(--color-border);
    }
}

/* 8.2. Highlight layout */

.ei-skin .gh-header.is-highlight .gh-header-inner {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: var(--grid-gap);
}

.ei-skin .gh-header.is-highlight .gh-header-left {
    position: relative;
    grid-column: span 8;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card {
    grid-column: span 8;
    grid-row: span 3;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-link {
    gap: 28px;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-image {
    aspect-ratio: 3 / 2;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-tag {
    display: block;
    margin-bottom: 12px;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-title {
    font-size: clamp(28px, 1.36vw + 22.5px, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.022em;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-excerpt {
    margin-top: clamp(12px, 0.45vw + 10.18px, 16px);
    font-size: 18px;
}

.ei-skin .gh-header.is-highlight .gh-header-left .gh-card .gh-card-meta:not(:empty) {
    margin-top: 12px;
}

.ei-skin .gh-header.is-highlight .gh-header-middle {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    grid-column: 9 / span 4;
}

.ei-skin .gh-header.is-highlight .gh-header-middle .gh-card:last-child .gh-card-image {
    display: none;
}

.ei-skin .gh-header.is-highlight .gh-header-middle .gh-card .gh-card-excerpt {
    display: none;
}

.ei-skin .gh-header.is-highlight .gh-header-right {
    grid-column: 13 / -1;
}

.ei-skin .gh-header.is-highlight .gh-header-left::after,
.ei-skin .gh-header.is-highlight .gh-header-middle::after {
    position: absolute;
    top: 0;
    right: calc(var(--grid-gap) / -2);
    content: "";
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

.ei-skin .gh-header.is-highlight .gh-card::before {
    position: absolute;
    top: calc(var(--grid-gap) / -2);
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}

@media (max-width: 1199px) {
    .ei-skin .gh-header.is-highlight .gh-header-inner {
        grid-template-columns: repeat(9, 1fr);
    }

    .ei-skin .gh-header.is-highlight .gh-header-left {
        grid-column: span 6;
    }

    .ei-skin .gh-header.is-highlight .gh-header-middle {
        grid-column: 7 / -1;
    }

    .ei-skin .gh-header.is-highlight .gh-header-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .ei-skin .gh-header.is-highlight .gh-header-middle .gh-card:nth-child(2) .gh-card-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .ei-skin .gh-header.is-highlight .gh-header-inner {
        display: flex;
        flex-direction: column;
    }

    .ei-skin .gh-header.is-highlight .gh-card-image {
        display: block !important;
    }

    .ei-skin .gh-header.is-highlight .gh-header-middle .gh-card .gh-card-excerpt {
        display: -webkit-box;
    }
}

/* 8.3. Classic layout */

.ei-skin .gh-header.is-classic {
    display: flex;
    margin-top: 0;
    padding-block: 160px;
}

.ei-skin .gh-header.is-classic .gh-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    overflow: unset;
    margin: auto;
    max-width: 1020px;
    text-align: center;
}

.ei-skin .gh-header.is-classic .gh-header-title {
    font-size: calc(clamp(30px, 1.82vw + 22.7px, 46px) * var(--factor, 1));
    line-height: 1.1;
    letter-spacing: -0.028em;
}

.ei-skin .gh-header.is-classic.has-image {
    margin-top: 0;
}

.ei-skin .gh-header.is-classic.has-image::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.3;
    background-color: var(--color-black);
    transition: opacity 1.5s ease;
}

.ei-skin .gh-header.is-classic.has-image .gh-header-inner {
    color: #fff;
}

.ei-skin .gh-header.is-classic.has-image .gh-header-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ei-skin .gh-header.is-classic.has-image .gh-form {
    background-color: #fff;
}

/* 9. CTA
/* ---------------------------------------------------------- */

/* 10. Featured posts
/* ---------------------------------------------------------- */

@container featured-card (width < 240px) {
}

@container featured-card (240px <= width <= 270px) {
}

@container featured-card-wrapper (width < 170px) {
}

@media (max-width: 1199px) {
}

@media (max-width: 767px) {
}

/* 11. Container
/* ---------------------------------------------------------- */

.ei-skin .gh-container {
    flex-grow: 1;
    margin-top: 64px;
}

.ei-skin .gh-container-inner {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    column-gap: var(--grid-gap);
}

.ei-skin .gh-header.is-classic:not(.has-image) + .gh-container {
    margin-top: 0;
}

.ei-skin :is(.paged, .tag-template, .author-template) .gh-container:not(.has-sidebar) .gh-container-title {
    display: none;
}

.ei-skin .gh-more {
    display: none;
    grid-column: 1 / -1;
    margin-top: 48px;
    font-size: calc(19px * var(--factor, 1));
    font-weight: 725;
    letter-spacing: -0.014em;
}

.ei-skin .gh-container.has-sidebar .gh-more {
    grid-column: span 12;
}

.ei-skin .home-template .gh-feed:has(> :nth-child(12):last-child) ~ .gh-more {
    display: block;
}

.ei-skin .gh-more a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ei-skin .gh-more svg {
    margin-top: -1px;
    width: 18px;
    height: 18px;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-more svg {
    margin-top: 0;
}

/* 11.1. With sidebar */

.ei-skin .gh-container.has-sidebar .gh-main {
    grid-column: 1 / span 12;
    position: relative;
}

.ei-skin .gh-container.has-sidebar .gh-main::after {
    position: absolute;
    top: 0;
    right: calc(var(--grid-gap) / -2);
    content: "";
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

/* 11.2. Without sidebar */

.ei-skin .gh-container:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
    grid-column: 3 / span 12;
}

.ei-skin .gh-container.is-list.no-image:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
    grid-column: 4 / span 10;
}

.ei-skin .gh-header:is(.is-highlight, .is-magazine) ~ .gh-container.is-grid:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
    grid-column: 1 / -1;
}

@media (max-width: 1199px) {
    .ei-skin .gh-container-inner {
        display: block;
        overflow: hidden;
    }
}

/* 12. Post list
/* ---------------------------------------------------------- */

.ei-skin .gh-container-title {
    grid-column: 1 / -1;
    margin-bottom: calc(var(--grid-gap) / 2);
    padding-bottom: 12px;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
}

.ei-skin .gh-container:not(:has(.gh-card)) .gh-container-title {
    display: none;
}

.ei-skin .gh-container .gh-feed {
    gap: var(--grid-gap);
}

.ei-skin .gh-container .gh-card-meta:not(:empty) {
    margin-top: 12px;
}

/* 12.1. List style */

.ei-skin .gh-container.is-list .gh-feed {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: list-feed;
}

.ei-skin .gh-container.is-list .gh-card-link {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.ei-skin .gh-container.is-list .no-image .gh-card-link {
    padding-block: 20px;
}

.ei-skin .gh-container.is-list .gh-card-image {
    flex-shrink: 0;
    width: 220px;
    aspect-ratio: 1.618033;
}

@container list-feed (width < 600px) {
    .ei-skin .gh-container.is-list .gh-card-image {
        width: 160px;
    }
}

.ei-skin .gh-container.is-list .gh-card:not(.no-image) .gh-card-wrapper {
    max-width: 600px;
}

.ei-skin .gh-container.is-list .gh-card-title {
    --factor: 1.05;
}

.ei-skin .gh-container.is-list .no-image .gh-card-title {
    --factor: 1.2;
}

.ei-skin .gh-container.is-list .gh-card-excerpt {
    margin-top: 6px;
}

.ei-skin .gh-container.is-list .gh-card + .gh-card::before {
    position: absolute;
    top: calc(var(--grid-gap) / -2);
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}

.ei-skin .home-template .gh-container.is-list .gh-card:first-child:before {
    display: none;
}

@media (max-width: 767px) {
    .ei-skin .gh-container.is-list .gh-card-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .ei-skin .gh-container.is-list .gh-card-image {
        width: 100%;
    }
}

/* 12.2. Grid style */

.ei-skin .gh-container.is-grid .gh-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    row-gap: calc(var(--grid-gap) * 1.5);
    overflow: hidden;
}

.ei-skin .gh-container.is-grid .gh-card::before {
    position: absolute;
    top: calc(var(--grid-gap) / -2);
    right: calc(var(--grid-gap) / -2);
    left: calc(var(--grid-gap) / -2);
    content: "";
    height: 1px;
    background-color: var(--color-border);
}

.ei-skin .gh-container.is-grid .gh-card::after {
    position: absolute;
    top: 0;
    left: calc(var(--grid-gap) / -2);
    content: "";
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

@media (max-width: 767px) {
    .ei-skin .gh-container.is-grid .gh-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ei-skin .gh-container.is-grid .gh-feed {
        display: flex;
        flex-direction: column;
    }
}

/* 12.3. No image list */

.ei-skin .gh-container.is-list.no-image .gh-card-image {
    display: none;
}

/* 13. Sidebar
/* ---------------------------------------------------------- */

.ei-skin .gh-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    min-height: 380px;
    text-align: center;
    background-color: var(--color-lighter-gray);
}

.ei-skin .gh-about-icon {
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.ei-skin .gh-about-title {
    font-size: calc(24px * var(--factor, 1));
    font-weight: 700;
    letter-spacing: -0.019em;
}

.ei-skin .gh-about-description {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.4;
}

.ei-skin .gh-about .gh-button {
    margin-top: 32px;
}

.ei-skin .gh-recommendations {
    margin-top: 48px;
}

.ei-skin .gh-recommendations .recommendations {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.ei-skin .gh-recommendations .recommendation:first-child {
    margin-top: 4px;
}

.ei-skin .gh-recommendations .recommendation a {
    display: grid;
    grid-template-columns: 24px auto;
    gap: 4px 12px;
}

.ei-skin .gh-recommendations .recommendation a:hover {
    opacity: 1;
}

.ei-skin .gh-recommendations .recommendation-favicon {
    grid-row: span 2;
    width: 100%;
    border-radius: 4px;
}

.ei-skin .gh-recommendations .recommendation-title {
    margin-top: -2px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.009em;
}

.ei-skin .gh-recommendations .recommendation a:hover .recommendation-title {
    opacity: 0.8;
}

.ei-skin .gh-recommendations .recommendation-url {
    order: 1;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    color: var(--color-secondary-text);
    text-overflow: ellipsis;
}

.ei-skin .gh-recommendations .recommendation-description {
    display: -webkit-box;
    display: none;
    overflow-y: hidden;
    grid-column: 2;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-secondary-text);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ei-skin .gh-recommendations button {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 24px;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    background-color: transparent;
    border: 0;
    color: var(--color-darker-gray);
}

.ei-skin .gh-recommendations button svg {
    margin-top: -1px;
    width: 12px;
}

.ei-skin .gh-recommendations button:hover {
    opacity: 0.8;
}

/* 14. Post/page
/* ---------------------------------------------------------- */

/* 14.1. Article */

.ei-skin .gh-article {
    --container-width: 1120px;

    word-break: break-word;
}

.ei-skin .gh-article-header {
    margin: clamp(40px, 3.64vw + 25.45px, 72px) 0 40px;
}

.ei-skin .gh-article-tag {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ghost-accent-color);
}

.ei-skin .gh-article-title {
    font-size: calc(clamp(34px, 1.36vw + 28.5px, 46px) * var(--factor, 1));
    line-height: 1.1;
    letter-spacing: -0.022em;
}

.ei-skin .gh-article-excerpt {
    margin-top: clamp(12px, 0.45vw + 10.18px, 16px);
    max-width: 720px;
    font-size: clamp(17px, 0.23vw + 16.1px, 19px);
    line-height: 1.45;
    letter-spacing: -0.018em;
}

.ei-skin .gh-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.ei-skin .gh-article-author-image {
    display: flex;
    margin-right: 8px;
}

.ei-skin .gh-article-author-image a {
    position: relative;
    margin: 0 -8px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    background-color: var(--color-light-gray);
    border-radius: 50%;
    border: 3px solid var(--background-color);
}

.ei-skin .gh-article-author-image a:first-child {
    z-index: 10;
}

.ei-skin .gh-article-author-image a:nth-child(2) {
    z-index: 9;
}

.ei-skin .gh-article-author-image a:nth-child(3) {
    z-index: 8;
}

.ei-skin .gh-article-author-image :is(img, svg) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ei-skin .gh-article-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ei-skin .gh-article-author-name {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.013em;
}

.ei-skin .gh-article-meta-content {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.006em;
    color: var(--color-secondary-text);
}

.ei-skin .gh-article-image {
    grid-column: wide;
    margin-top: 40px;
}

.ei-skin .gh-article-image img {
    width: 100%;
}

/* 14.2. Page template */

.ei-skin .page-template .gh-article-header {
    margin-block: 72px 32px;
}

/* 14.3. Page without header */

.ei-skin .page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
    margin-top: 64px;
}

.ei-skin .page-template .gh-content > *:last-child:not(.kg-width-full) {
    margin-bottom: 6vw;
}

/* 15. Content
/* ---------------------------------------------------------- */

/* Content refers to styling all page and post content that is
created within the Ghost editor. The main content handles
headings, text, images and lists. We deal with cards lower down. */

.ei-skin .gh-content {
    font-size: var(--content-font-size, 17px);
    letter-spacing: -0.01em;
}

/* Default vertical spacing */
.ei-skin .gh-content > * + * {
    margin-top: calc(28px * var(--content-spacing-factor, 1));
    margin-bottom: 0;
}

/* Remove space between full-width cards */
.ei-skin .gh-content > .kg-width-full + .kg-width-full:not(.kg-width-full.kg-card-hascaption + .kg-width-full) {
    margin-top: 0;
}

/* Add back a top margin to all headings,
unless a heading is the very first element in the post content */
.ei-skin .gh-content > [id]:not(:first-child) {
    margin-top: calc(56px * var(--content-spacing-factor, 1));
}

/* Add drop cap setting */
.ei-skin .post-template .gh-content.drop-cap > p:first-of-type:first-letter {
    margin :0 0.2em 0em 0;
    font-size: 3.1em;
    float:left;
    line-height: 1;
    margin-left: -1px;
    font-weight: 700;
}

.ei-skin .has-serif-body.post-template:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content.drop-cap > p:first-of-type:first-letter {
    font-size: 3.2em;
}

/* Add a small margin between a heading and paragraph after it */
.ei-skin .gh-content > [id] + p {
    margin-top: calc(12px * var(--content-spacing-factor, 1));
}

/* A larger margin before/after dividers, blockquotes and embeds */
.ei-skin .gh-content > :is(hr, blockquote, iframe) {
    position: relative;
    margin-top: calc(48px * var(--content-spacing-factor, 1)) !important;
}

.ei-skin .gh-content > :is(hr, blockquote, iframe) + * {
    margin-top: calc(48px * var(--content-spacing-factor, 1)) !important;
}

/* Now the content typography styles */
.ei-skin .gh-content h1 {
    font-size: calc(2.2em * var(--factor, 1));
    letter-spacing: -0.02em;
}

.ei-skin .gh-content h2 {
    font-size: calc(1.6em * var(--factor, 1));
    letter-spacing: -0.02em;
}

.ei-skin .gh-content h3 {
    font-size: calc(1.3em * var(--factor, 1));
    letter-spacing: -0.017em;
}

.ei-skin .gh-content a {
    color: var(--ghost-accent-color);
    text-decoration: underline;
}

.ei-skin .gh-content .kg-callout-card .kg-callout-text,
.ei-skin .gh-content .kg-toggle-card .kg-toggle-content > :is(ul, ol, p) {
    font-size: 0.95em;
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content > blockquote,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content > ol,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content > ul,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content > dl,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content > p,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content .kg-callout-text,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content .kg-toggle-content > ol,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content .kg-toggle-content > ul,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-content .kg-toggle-content > p {
    font-family: var(--font-serif-alt);
}

.ei-skin .gh-content :is(ul, ol) {
    padding-left: 28px;
}

.ei-skin .gh-content :is(li + li, li :is(ul, ol)) {
    margin-top: 8px;
}

.ei-skin .gh-content ol ol li {
    list-style-type: lower-alpha;
}

.ei-skin .gh-content ol ol ol li {
    list-style-type: lower-roman;
}

.ei-skin .gh-content hr {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    border: 0;
}

.ei-skin .gh-content .gh-table {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
}

.ei-skin .gh-content .gh-table table {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    white-space: nowrap;
    vertical-align: top;
    border-spacing: 0;
    border-collapse: collapse;
}

.ei-skin .gh-content .gh-table table th {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-darkgrey);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.ei-skin .gh-content .gh-table table :is(th, td), .ei-skin .gh-content .gh-table table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--color-border);
}

.ei-skin .gh-content .gh-table table :is(th, td):first-child {
    padding-left: 0;
}

.ei-skin .gh-content .gh-table table :is(th, td):last-child {
    padding-right: 0;
}

.ei-skin .gh-content pre {
    overflow: auto;
    padding: 16px;
    font-size: 15px;
    line-height: 1.5em;
    background: var(--color-lighter-gray);
    border-radius: 6px;
    font-family: var(--font-mono);
}

.ei-skin .gh-content :not(pre) > code {
    vertical-align: baseline;
    padding: 0.15em 0.4em;
    font-weight: 400;
    font-size: 0.95em;
    line-height: 1em;
    background: var(--color-lighter-gray);
    border-radius: 0.25em;
    font-family: var(--font-mono);
}

/* 16. Cards
/* ---------------------------------------------------------- */

/* Add extra margin before/after any cards, except for when immediately preceeded by a heading */

.ei-skin .gh-content :not(.kg-card):not(table):not([id]) + :is(.kg-card, table) {
    margin-top: calc(48px * var(--content-spacing-factor, 1));
}

.ei-skin .gh-content :is(.kg-card, table) + :not(.kg-card):not(table):not([id]) {
    margin-top: calc(48px * var(--content-spacing-factor, 1));
}

.ei-skin .gh-content :not(.kg-card):not([id]) + .kg-card.kg-width-full {
    margin-top: calc(68px * var(--content-spacing-factor, 1));
}

.ei-skin .gh-content .kg-card.kg-width-full + :not(.kg-card):not([id]) {
    margin-top: calc(68px * var(--content-spacing-factor, 1));
}

/* Image */

.ei-skin .kg-image {
    margin-right: auto;
    margin-left: auto;
}

/* Embed */

.ei-skin .kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Gallery */

.ei-skin .kg-image[width][height],
.ei-skin .kg-gallery-image,
.ei-skin .gh-feature-image {
    cursor: pointer;
}

.ei-skin .kg-image-card a:hover,
.ei-skin .kg-gallery-image a:hover {
    opacity: 1 !important;
}

/* Toggle */

.ei-skin .kg-card.kg-toggle-card .kg-toggle-heading-text {
    font-size: 20px;
    font-weight: 700;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-toggle-card .kg-toggle-heading-text {
    font-family: var(--font-serif);
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-toggle-card .kg-toggle-heading-text {
    font-family: var(--font-mono);
}

/* Callout */

.ei-skin .kg-callout-card.kg-card {
    border-radius: 0.25em;
}

.ei-skin .kg-callout-card-accent a {
    text-decoration: underline;
}

/* Blockquote */

.ei-skin blockquote:not([class]) {
    padding-left: 20px;
    border-left: 4px solid var(--ghost-accent-color);
}

.ei-skin blockquote.kg-blockquote-alt {
    font-style: normal;
    font-weight: 400;
    color: var(--color-secondary-text);
}

/* Button */

.ei-skin .kg-card.kg-button-card .kg-btn {
    height: unset;
    padding: .6em 1.2em;
    text-align: center;
    font-size: 1em;
    line-height: 1.2em;
}

/* Header */

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-card.kg-header-card h2.kg-header-card-header {
    font-family: var(--font-serif);
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-card.kg-header-card h2.kg-header-card-header {
    font-family: var(--font-mono);
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .kg-header-card h3.kg-header-card-subheader {
    font-family: var(--font-serif);
}

/* Bookmark */

.ei-skin .kg-bookmark-card .kg-bookmark-container {
    border-radius: 0.25em !important;
}

.ei-skin .kg-bookmark-card .kg-bookmark-container:hover {
    opacity: 1;
}

.ei-skin .kg-bookmark-card a.kg-bookmark-container,
.ei-skin .kg-bookmark-card a.kg-bookmark-container:hover {
    background: var(--background-color) !important;
    color: var(--color-darker-gray) !important;
}

.ei-skin .kg-bookmark-card .kg-bookmark-content {
    padding: 1.15em;
}

.ei-skin .kg-bookmark-card .kg-bookmark-title {
    font-size: 0.9em;
}

.ei-skin .kg-bookmark-card .kg-bookmark-description {
    max-height: none;
    margin-top: 0.3em;
    font-size: 0.8em;
}

.ei-skin .kg-bookmark-card .kg-bookmark-metadata {
    font-size: 0.8em;
}

.ei-skin .kg-bookmark-card .kg-bookmark-thumbnail img {
    border-radius: 0 0.2em 0.2em 0;
}

/* Product */

.ei-skin .kg-product-card.kg-card .kg-product-card-image {
    margin-bottom: 12px;
}

.ei-skin .kg-product-card.kg-card a.kg-product-card-button {
    height: 2.8em;
    margin-top: 12px;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-product-card.kg-card .kg-product-card-title {
    font-family: var(--font-serif);
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .kg-product-card.kg-card .kg-product-card-title {
    font-family: var(--font-mono);
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .kg-product-card-description :is(p, ul, ol) {
    font-family: var(--font-serif-alt);
}

/* File */

.ei-skin .kg-file-card.kg-card .kg-file-card-container {
    padding: 0.6em;
}

.ei-skin .kg-file-card.kg-card .kg-file-card-contents {
    margin: 4px 8px 6px;
}

.ei-skin .kg-file-card.kg-card .kg-file-card-metadata {
    font-size: 0.9em;
}

.ei-skin .kg-file-card.kg-card .kg-file-card-filesize::before {
    margin-right: 6px;
    margin-left: 6px;
}

/* Caption */

.ei-skin figcaption {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.ei-skin .kg-card.kg-width-full figcaption {
    padding: 0 16px;
}

.ei-skin figcaption a {
    color: var(--ghost-accent-color);
    text-decoration: underline;
}

/* 17. Comments
/* ---------------------------------------------------------- */

/* 18. Recent posts
/* ---------------------------------------------------------- */

.ei-skin .post-template .gh-container {
    margin-top: 120px;
}

.ei-skin .post-template .gh-container-inner {
    display: block;
}

.ei-skin .post-template .gh-container.is-grid .gh-feed {
    grid-template-columns: repeat(4, 1fr);
}

.ei-skin .post-template .gh-container .gh-container-title {
    display: block;
}

/* 19. Archive
/* ---------------------------------------------------------- */

.ei-skin .gh-archive {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: var(--grid-gap);
    margin-block: 80px 24px;
}

.ei-skin .gh-archive.has-image {
    margin-top: 48px;
}

.ei-skin .gh-archive-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    grid-column: 1 / -1;
    padding-bottom: clamp(40px, 2.73vw + 29.09px, 64px);
    border-bottom: 1px solid var(--color-border);
}

.ei-skin .gh-archive.has-image .gh-archive-inner {
    align-items: center;
    grid-column: 1 / -1;
}

.ei-skin .gh-archive:not(.has-sidebar):not(.has-image) .gh-archive-inner {
    grid-column: 3 / span 12;
}

.ei-skin .gh-archive .gh-article-image {
    grid-column: auto;
    margin-top: 0;
}

.ei-skin :is(.tag-template, .author-template) .gh-container {
    margin-top: 0;
}

.ei-skin .author-template .gh-archive-inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 24px;
}

.ei-skin .author-template .gh-article-image {
    margin-top: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.ei-skin .author-template .gh-article-title {
    font-size: 36px;
}

.ei-skin .gh-author-meta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 550;
    color: var(--color-secondary-text);
}

.ei-skin .gh-author-meta a {
    color: inherit;
}

.ei-skin .gh-author-social {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-left: 3px;
}

.ei-skin .gh-author-social svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1199px) {
    .ei-skin .gh-archive {
        display: block;
    }
}

@media (max-width: 767px) {
    .ei-skin .gh-archive-inner {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .ei-skin .author-template .gh-archive-inner {
        flex-direction: column-reverse;
    }
}

/* 20. Design settings
/* ---------------------------------------------------------- */

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) {
    --factor: 1.15;
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) {
    --factor: 1.1;
}

.ei-skin .has-sans-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) :is(.is-title, .gh-content :is(h2, h3)) {
    font-family: var(--gh-font-heading, var(--font-sans));
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) :is(.is-title, .gh-content :is(h2, h3)) {
    font-family: var(--gh-font-heading, var(--font-serif));
    font-weight: 550;
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) :is(.is-title, .gh-content :is(h2, h3)) {
    font-family: var(--gh-font-heading, var(--font-mono));
}

.ei-skin .has-sans-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .is-body {
    font-family: var(--gh-font-body, var(--font-sans));
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .is-body {
    font-family: var(--gh-font-body, var(--font-serif-alt));
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-header.is-classic .gh-header-title {
    font-weight: 550;
    letter-spacing: -0.015em;
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-header.is-classic .gh-header-title {
    letter-spacing: -0.01em;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-card-title {
    line-height: 1.15;
    letter-spacing: -0.006em;
    font-size: calc(20px*var(--factor, 1))
}

.ei-skin .has-mono-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-card-title {
    font-size: calc(18px*var(--factor, 1));
    line-height: 1.2;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-about-title {
    letter-spacing: -0.009em;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-article-title {
    letter-spacing: -0.019em;
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) {
    --content-font-size: 19px;
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-card-excerpt {
    font-size: 16.5px;
    line-height: 1.4;
    letter-spacing: 0.0005em;
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-header.is-magazine .gh-header-inner > .gh-card .gh-card-excerpt,
.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-header.is-highlight .gh-card:first-child .gh-card-excerpt {
    font-size: 18px;
    letter-spacing: -0.001em;
}

.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-header.is-magazine .gh-header-inner>.gh-card .gh-card-title,
.ei-skin .has-serif-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) .gh-header.is-highlight .gh-header-left .gh-card-title {
    font-weight: 550;
    font-size: clamp(32px,1.82vw + 24.7px,49px)
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-about-description {
    font-size: 16px;
}

.ei-skin .has-serif-body:not([class*=" gh-font-body"]):not([class^="gh-font-body"]) .gh-article-excerpt {
    letter-spacing: 0;
}

/* Règle du thème d’origine retirée : elle imposait des angles droits aux boutons et champs avec les titres serif. Early Intelligence arrondit tout ce qu’on clique ou remplit. */

/* 21. Footer
/* ---------------------------------------------------------- */

/* 21.1 Footer styles */

/* 21.2. Footer bar */

/* 21.3. Footer signup */

@media (max-width: 991px) {
}

/* 21.4. Social links */

/* 22. Lightbox
/* ---------------------------------------------------------- */

@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
}

@media screen and (max-width: 1024px) {
}

@keyframes clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes donut-rotate {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(-140deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* SHARE */
.ei-skin .gh-meta-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.ei-skin .has-light-text .gh-button-share {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.ei-skin .has-light-text .gh-button-share:hover {
    border-color: rgba(255, 255, 255, 0.85);
}

.ei-skin .gh-button-share {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.85);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.ei-skin .gh-button-share:hover {
    border-color: rgba(0, 0, 0, 0.5);
}

/* 23. Early Intelligence
/* ----------------------------------------------------------
   Direction : titres en Inter Tight gras, texte en Inter,
   repères en IBM Plex Mono, fond pierre, accents rose poudré
   et terracotta, grandes illustrations.
/* ---------------------------------------------------------- */

.ei-skin {
    --gh-font-heading: "EI Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "EI Plex Mono", Menlo, Consolas, monospace;
    --color-darker-gray: #1f1f1b;
    --ei-ink: #1f1f1b;
    --ei-ink-soft: #3a3832;
    --ei-muted: #6e685d;
    --ei-olive: #3b4a36;
    --ei-terracotta: #d4573d;
    --ei-terracotta-deep: #a93e27;
    --ei-rose: #f3d8cb;
    --ei-sage: #dde2d3;
    --ei-paper: #f6f2ea;
    --ei-white: #fffdf9;
    --ei-line: #dcd3c3;
    --ei-gutter: clamp(20px, 5.5vw, 80px);
}

.ei-skin {
    color: var(--ei-ink);
}

/* Titres : grotesque grasse et serrée */
.ei-skin :is(.is-title, .gh-article-title, .gh-card-title, .gh-content :is(h2, h3), .ei-fh-title, .ei-fiche-title) {
    font-family: var(--gh-font-heading);
    font-weight: 650;
    letter-spacing: -0.03em;
}

/* Repère : petites capitales mono espacées */
.ei-skin .ei-label,
.ei-skin .gh-article-tag,
.ei-skin .gh-card-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.ei-skin .ei-label a {
    color: inherit;
    text-decoration: none;
}

.ei-skin .ei-label a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ei-skin .ei-label svg {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
}

/* Sans illustration, le texte de l'en-tête prend la largeur */
.ei-skin .ei-fh:not(.has-image) .ei-fh-text {
    max-width: 1180px;
}

.ei-skin .ei-fh:not(.has-image) .ei-fh-title {
    max-width: 1000px;
}

.ei-skin .gh-article-tag,
.ei-skin .gh-card-tag,
.ei-skin .ei-crumb {
    color: var(--ei-terracotta-deep);
}

.ei-skin .gh-content a {
    color: var(--ei-terracotta-deep);
    text-underline-offset: 3px;
}

/* En-tête du site */

/* En-tête de fiche et de bibliothèque : texte à gauche, illustration à droite */
.ei-skin .ei-fh {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 1px solid var(--ei-line);
}

/* L'illustration (format paysage) passe en bandeau sous le texte */
.ei-skin .ei-fh.has-image .ei-fh-text {
    max-width: 1180px;
    padding-bottom: clamp(32px, 4vw, 48px);
}

.ei-skin .ei-fh.has-image .ei-fh-title {
    max-width: 1000px;
}

.ei-skin .ei-fh-text {
    max-width: 820px;
    padding: clamp(48px, 7vw, 96px) var(--ei-gutter) clamp(40px, 5vw, 72px);
}

.ei-skin .ei-fh-title {
    margin: 22px 0 22px;
    font-size: clamp(40px, 18px + 4.2vw, 78px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.ei-skin .ei-fh-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    color: var(--ei-muted);
}

.ei-skin .ei-fh-lead {
    max-width: 640px;
    margin-top: 26px;
    font-size: clamp(17px, 15px + 0.4vw, 20px);
    line-height: 1.55;
    color: var(--ei-ink-soft);
}

.ei-skin .ei-fh-image {
    margin: 0;
}

.ei-skin .ei-fh-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* Corps de fiche : sommaire à gauche, contenu à droite */
.ei-skin .ei-fb {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(40px, 5vw, 64px) var(--ei-gutter) 0;
}

.ei-skin .ei-fb-sticky {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.ei-skin .ei-fb-label {
    margin-bottom: 14px;
    color: var(--ei-muted);
}

.ei-skin .ei-toc a {
    display: grid;
    grid-template-columns: 36px 1fr 16px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--ei-line);
    color: var(--ei-ink);
    font-size: 14.5px;
    line-height: 1.35;
    text-decoration: none;
}

.ei-skin .ei-toc a:last-child {
    border-bottom: 1px solid var(--ei-line);
}

.ei-skin .ei-toc a:hover,
.ei-skin .ei-toc a.is-active {
    color: var(--ei-terracotta-deep);
}

.ei-skin .ei-toc-num {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ei-muted);
}

.ei-skin .ei-toc a.is-active .ei-toc-num {
    color: inherit;
}

.ei-skin .ei-brief {
    margin-bottom: 32px;
    padding: 26px 26px 14px;
    background: var(--ei-rose);
}

.ei-skin .ei-brief .ei-label {
    margin-bottom: 8px;
    color: var(--ei-terracotta-deep);
}

.ei-skin .ei-brief-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(169, 62, 39, 0.18);
    font-size: 14.5px;
}

.ei-skin .ei-brief-row:last-child {
    border-bottom: 0;
}

.ei-skin .ei-brief-row b {
    font-family: var(--gh-font-heading);
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

/* Contenu de fiche */
.ei-skin .ei-fb-content {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ei-ink-soft);
}

.ei-skin .ei-fb-content > p:first-child {
    margin-top: 0;
}

.ei-skin .ei-fb-content h2 {
    display: block;
    margin-top: 64px;
    margin-bottom: 4px;
    font-size: clamp(28px, 20px + 1.4vw, 38px);
    line-height: 1.1;
    color: var(--ei-ink);
}

.ei-skin .ei-fb-content h2:first-child {
    margin-top: 0;
}

.ei-skin .ei-fb-content h2[data-num]::before {
    content: attr(data-num);
    flex: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--ei-terracotta-deep);
    /* Le numéro passe au-dessus du titre : le titre reste aligné sur le texte */
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.ei-skin .ei-fb-content h2 + * {
    margin-top: 22px;
}

.ei-skin .ei-fb-content h3 {
    margin-top: 0;
    padding-top: 22px;
    border-top: 1px solid var(--ei-line);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ei-ink);
}

.ei-skin .ei-fb-content h3 + p {
    margin-top: 6px;
}

.ei-skin .ei-fb-content strong {
    color: var(--ei-ink);
    font-weight: 600;
}

/* Listes numérotées : lignes séparées par des filets */
.ei-skin .ei-fb-content ol {
    padding: 0;
    list-style: none;
    counter-reset: ei-ol;
}

.ei-skin .ei-fb-content ol > li {
    position: relative;
    margin: 0;
    padding: 16px 0 16px 48px;
    border-top: 1px solid var(--ei-line);
    counter-increment: ei-ol;
}

.ei-skin .ei-fb-content ol > li:last-child {
    border-bottom: 1px solid var(--ei-line);
}

.ei-skin .ei-fb-content ol > li::before {
    content: counter(ei-ol, decimal-leading-zero);
    position: absolute;
    top: 19px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--ei-terracotta-deep);
}

/* Listes à puces : petit carré terracotta */
.ei-skin .ei-fb-content ul {
    padding: 0;
    list-style: none;
}

.ei-skin .ei-fb-content ul > li {
    position: relative;
    margin: 0;
    padding: 8px 0 8px 24px;
}

.ei-skin .ei-fb-content ul > li::before {
    content: "";
    position: absolute;
    top: 1.05em;
    left: 2px;
    width: 7px;
    height: 7px;
    background: var(--ei-terracotta);
}

/* Données / Action d'un scénario : liste qui suit le descriptif */
.ei-skin .ei-fb-content h3 + p + ul {
    margin-top: 12px;
    padding-bottom: 22px;
}

.ei-skin .ei-fb-content h3 + p + ul > li {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--ei-line);
}

.ei-skin .ei-fb-content h3 + p + ul > li:last-child {
    border-bottom: 1px solid var(--ei-line);
}



.ei-skin .ei-fb-content h3 + p + ul > li::before {
    display: none;
}

/* L'intitulé passe au-dessus du texte : pas de colonne vide sous l'intitulé */
.ei-skin .ei-fb-content h3 + p + ul > li > strong:first-child {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ei-muted);
}

.ei-skin .ei-fb-content blockquote {
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--ei-terracotta);
    font-size: 19px;
    font-style: normal;
    line-height: 1.5;
    color: var(--ei-ink);
}

/* Bibliothèque : sections */
.ei-skin .ei-section {
    padding-block: clamp(40px, 5vw, 64px) 0;
}

.ei-skin .ei-section:last-child {
    padding-bottom: clamp(48px, 6vw, 80px);
}

.ei-skin .ei-section-title {
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ei-muted);
}

.ei-skin .ei-intro {
    margin-top: 48px;
}

.ei-skin .ei-empty {
    color: var(--ei-muted);
    font-size: 16px;
}

/* Thèmes : lignes numérotées avec flèche */
.ei-skin .ei-themes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 40px;
    counter-reset: ei-theme;
}

.ei-skin .ei-theme {
    display: grid;
    grid-template-columns: 40px 1fr 16px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--ei-line);
    color: var(--ei-ink);
    text-decoration: none;
    counter-increment: ei-theme;
}

.ei-skin .ei-theme::before {
    content: counter(ei-theme, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ei-terracotta-deep);
}

.ei-skin .ei-theme::after {
    content: "→";
}

.ei-skin .ei-theme:hover {
    color: var(--ei-terracotta-deep);
}

.ei-skin .ei-theme-name {
    font-size: 16px;
    font-weight: 500;
}

.ei-skin .ei-theme-desc {
    grid-column: 2;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ei-muted);
}

/* Cartes de fiche */
.ei-skin .ei-fiches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ei-skin .ei-fiche-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ei-white);
    border: 1px solid var(--ei-line);
    transition: border-color 0.2s ease;
}

.ei-skin .ei-fiche-card:hover {
    border-color: var(--ei-ink);
}

.ei-skin .ei-fiche-img {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ei-skin .ei-fiche-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ei-skin .ei-fiche-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px 26px 22px;
}

.ei-skin .ei-fiche-tag {
    color: var(--ei-terracotta-deep);
}

.ei-skin .ei-fiche-title {
    font-size: 26px;
    line-height: 1.08;
}

.ei-skin .ei-fiche-title a {
    color: var(--ei-ink);
    text-decoration: none;
}

/* Toute la carte est cliquable */
.ei-skin .ei-fiche-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ei-skin .ei-fiche-excerpt {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ei-ink-soft);
}

.ei-skin .ei-fiche-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--ei-line);
    color: var(--ei-muted);
}

.ei-skin .ei-fiche-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ei-terracotta-deep);
}

/* Listes de numéros */
.ei-skin .ei-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ei-skin .ei-list-item {
    display: grid;
    grid-template-columns: 130px 1fr 16px;
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--ei-line);
    font-size: 16px;
}

.ei-skin .ei-list-item:last-child {
    border-bottom: 1px solid var(--ei-line);
}

.ei-skin .ei-list-item::after {
    content: "→";
}

.ei-skin .ei-list-item time {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ei-muted);
}

.ei-skin .ei-list-item a {
    color: var(--ei-ink);
    font-weight: 500;
    text-decoration: none;
}

.ei-skin .ei-list-item a:hover {
    color: var(--ei-terracotta-deep);
}

/* Pages de thème */
.ei-skin .ei-archive {
    padding-bottom: 32px;
}

/* Accueil : texte à gauche, illustration à droite, trois blocs en dessous */
.ei-skin .gh-header.is-classic .gh-header-inner:has(.ei-home-copy) {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    text-align: left;
}

.ei-skin .gh-header.is-classic:has(.ei-home-copy) {
    padding-block: 80px 64px;
}

.ei-skin .ei-home-copy {
    min-width: 0;
}

.ei-skin .ei-home-copy .gh-header-title {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 3.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: initial;
    color: var(--ei-ink);
}

.ei-skin .ei-header-subtitle {
    max-width: 540px;
    margin: 26px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ei-muted);
}

.ei-skin .ei-header-byline {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ei-olive, #3b4a36);
}

.ei-skin .ei-home-copy .gh-form {
    max-width: 540px;
    margin-top: 30px;
}

.ei-skin .ei-home-copy .gh-form .ei-lang {
    left: 0;
}

.ei-skin .ei-home-copy .ei-lang input {
    accent-color: var(--ei-olive, #3b4a36);
}

.ei-skin .ei-home-visual {
    min-width: 0;
    margin: 0;
}

.ei-skin .ei-home-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.ei-skin .ei-home-visual figcaption,
.ei-skin .ei-home-details .ei-detail-number {
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.ei-skin .ei-home-visual figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--ei-line, #dcd3c3);
    font-size: 10px;
    color: var(--ei-olive, #3b4a36);
}

.ei-skin .ei-home-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--ei-line, #dcd3c3);
}

.ei-skin .ei-home-details article {
    min-width: 0;
}

.ei-skin .ei-home-details .ei-detail-number {
    font-size: 11px;
    color: var(--ei-terracotta-deep, #a93e27);
}

.ei-skin .ei-home-details h2 {
    margin: 12px 0 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ei-skin .ei-home-details p {
    max-width: 340px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ei-muted);
}

@media (max-width: 900px) {
    .ei-skin .gh-header.is-classic:has(.ei-home-copy) {
        padding-block: 40px 36px;
    }

    .ei-skin .gh-header.is-classic .gh-header-inner:has(.ei-home-copy) {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        max-width: 640px;
    }

    .ei-skin .ei-home-copy .gh-header-title {
        font-size: clamp(34px, 6.5vw, 48px);
    }

    .ei-skin .ei-header-subtitle {
        font-size: 17px;
    }

    .ei-skin .ei-home-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 24px;
    }
}

/* Pied de page */

@media (max-width: 991px) {
}

/* Écrans étroits */
@media (max-width: 900px) {
    .ei-skin .ei-fh-image img {
        aspect-ratio: 16 / 10;
    }

    .ei-skin .ei-fb {
        grid-template-columns: minmax(0, 1fr);
    }

    .ei-skin .ei-fb-sticky {
        position: static;
    }

    .ei-skin .ei-fb-content h3 + p + ul > li {
        grid-template-columns: 1fr;
    }

    .ei-skin .ei-list-item {
        grid-template-columns: 1fr 16px;
    }

    .ei-skin .ei-list-item time {
        grid-column: 1 / -1;
    }
}

/* Tableaux et schémas des fiches */
.ei-skin .gh-content table.ei-table {
    display: table;
    width: 100%;
    white-space: normal;
    overflow: visible;
    background: none;
    font-size: 15px;
    line-height: 1.5;
}

.ei-skin .gh-content table.ei-table th,
.ei-skin .gh-content table.ei-table td {
    white-space: normal;
    vertical-align: top;
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--ei-line, #dcd3c3);
}

.ei-skin .gh-content table.ei-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ei-olive, #3b4a36);
}

.ei-skin .gh-content figure.ei-diagram {
    margin: 40px 0;
}

.ei-skin .gh-content figure.ei-diagram svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .ei-skin .gh-content table.ei-table {
        display: block;
        overflow-x: auto;
    }
}

/* Fiche : en-tête et corps centrés sur la même colonne (sommaire 280 + texte 760) */
.ei-skin .ei-fiche-page {
    --ei-frame: 1136px;
}

.ei-skin .ei-fiche-page .ei-fh-text,
.ei-skin .ei-fiche-page .ei-fb,
.ei-skin .ei-fiche-page .ei-fh.has-image .ei-fh-text,
.ei-skin .ei-fiche-page .ei-fh:not(.has-image) .ei-fh-text {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--ei-frame) + 2 * var(--ei-gutter));
    margin-right: auto;
    margin-left: auto;
}

.ei-skin .ei-fiche-page .ei-fh-title {
    max-width: 900px;
    font-size: clamp(38px, 18px + 3.4vw, 64px);
    line-height: 1.02;
}

.ei-skin .ei-fiche-page .ei-fb {
    grid-template-columns: 280px minmax(0, 760px);
    gap: 96px;
}

@media (max-width: 1100px) {
    .ei-skin .ei-fiche-page .ei-fb {
        gap: clamp(32px, 4vw, 64px);
    }
}

@media (max-width: 900px) {
    .ei-skin .ei-fiche-page .ei-fb {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tableaux de fiche : première colonne lisible */
.ei-skin .gh-content table.ei-table th,
.ei-skin .gh-content table.ei-table td {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.ei-skin .gh-content table.ei-table td:first-child {
    min-width: 8.5em;
}

/* Early Intelligence : pas de pastilles grises quand les autrices n'ont pas de photo */
.ei-skin .gh-article-author-image:not(:has(img)) {
    display: none;
}

/* Early Intelligence : dans la newsletter, image et schémas alignés sur la colonne de texte */
.ei-skin .tag-newsletter .gh-article-image,
.ei-skin .tag-newsletter .gh-content > .kg-width-wide {
    grid-column: main;
}

/* Early Intelligence : un rond orange devant chaque titre de section (sauf les titres numérotés des fiches) */
.ei-skin .gh-content > h2:not([data-num])::before {
    content: "";
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-right: 0.45em;
    border-radius: 50%;
    background: #c9533a;
    vertical-align: 0.14em;
}

/* Early Intelligence : puces orange */
.ei-skin .gh-content :is(ul, ol) > li::marker {
    color: #c9533a;
}
.ei-skin .gh-content ol > li::marker {
    font-weight: 650;
}

/* Early Intelligence : titres équilibrés, pas de mot seul sur la dernière ligne */
.ei-skin .gh-article-title,
.ei-skin .gh-content > h2 {
    text-wrap: balance;
}

/* Early Intelligence : formulaire d'abonnement aligné sur les boutons de la newsletter (filet fin, pilule anthracite) */
.ei-skin .gh-form[data-members-form] {
    background: transparent;
    border: 1px solid #1f1d1a;
    /* !important : la règle du thème pour les titres serif force des angles droits */
    border-radius: 999px !important;
}
.ei-skin .gh-form[data-members-form]:hover {
    background: transparent;
}
.ei-skin .gh-form[data-members-form] .gh-button {
    background: #1f1d1a;
    color: #f4efe6;
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ei-skin .gh-form[data-members-form] .gh-button svg {
    color: #e07a5f;
}

/* Early Intelligence : fiche avec illustration, texte à gauche et image à droite sur grand écran */
.ei-skin .ei-fh-title {
    text-wrap: balance;
}
@media (min-width: 1000px) {
    .ei-skin :is(.ei-fiche-page, .ei-library) .ei-fh.has-image {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
        align-items: center;
        gap: clamp(32px, 4vw, 64px);
        box-sizing: border-box;
        width: 100%;
        max-width: calc(var(--ei-frame) + 2 * var(--ei-gutter));
        margin: 0 auto;
        padding: 0 var(--ei-gutter);
    }
    .ei-skin :is(.ei-fiche-page, .ei-library) .ei-fh.has-image .ei-fh-text {
        max-width: none;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .ei-skin :is(.ei-fiche-page, .ei-library) .ei-fh.has-image .ei-fh-title {
        font-size: clamp(36px, 16px + 2.6vw, 54px);
    }
    .ei-skin :is(.ei-fiche-page, .ei-library) .ei-fh.has-image .ei-fh-image {
        padding: clamp(40px, 5vw, 72px) 0;
    }
    .ei-skin :is(.ei-fiche-page, .ei-library) .ei-fh.has-image .ei-fh-image img {
        aspect-ratio: auto;
    }
}

/* Ajouts du site Ghost (injection de code) */

.ei-skin .ei-lang{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;border:0;padding:0;margin:14px 0 0;min-width:0}
.ei-skin .ei-lang .ei-lang-legend{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;float:left;margin:0 6px 0 0;padding:0;font-family:"EI Plex Mono",Menlo,monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ei-muted,#6e685d)}
.ei-skin .ei-lang label{position:relative;display:inline-flex;align-items:center;padding:7px 15px;border:1px solid var(--ei-line,#dcd3c3);border-radius:999px;cursor:pointer;font-size:14px;line-height:1.2;color:var(--ei-ink-soft,#3a3832);background:transparent;margin:0;transition:background .15s,color .15s}
.ei-skin .ei-lang input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.ei-skin .ei-lang label:has(input:checked){background:var(--ei-olive,#3b4a36);border-color:var(--ei-olive,#3b4a36);color:var(--ei-white,#fffdf9)}
.ei-skin .ei-lang label:has(input:focus-visible){outline:2px solid var(--ei-terracotta,#d4573d);outline-offset:2px}
/* Early: taille du titre d'accueil */
.ei-skin .gh-header-title{font-size:clamp(24px,4.4vw,46px)!important;line-height:1.08!important}
.ei-skin .ei-price-line{display:none!important}
/* Early: choix de langue discret en page d'accueil */
.ei-skin .ei-home-copy .ei-lang{display:none!important}
.ei-skin .ei-lang-switch{display:inline-block;margin-top:12px;font-size:.85em;color:inherit;opacity:.7;text-decoration:underline;text-underline-offset:3px}
.ei-skin .ei-lang-switch:hover{opacity:1}
/* Early: lien English edition colle au formulaire */
.ei-skin .ei-home-copy .gh-form{margin-bottom:0!important}
.ei-skin .ei-home-copy .ei-lang-switch{margin-bottom:28px}
.ei-skin .ei-home-copy .ei-lang-switch{margin-left:21px}
/* Early: bloc prix fondateur en page d'accueil */
.ei-skin .ei-pricing{grid-column:1/-1;display:grid;grid-template-columns:1.35fr 1fr;gap:56px;align-items:start;border-top:1px solid rgb(220,211,195);padding-top:48px;margin-top:24px}
.ei-skin .ei-pricing h2{font-size:clamp(19px,3.2vw,28px);line-height:1.1;margin:0 0 22px;letter-spacing:-.01em}
.ei-skin .ei-pricing p{margin:0 0 14px;line-height:1.6}
.ei-skin .ei-pricing .ei-pricing-lead{font-weight:600;font-size:1.1em}
.ei-skin .ei-price-card{border:1px solid #1f1e1a;border-radius:20px;padding:32px}
.ei-skin .ei-price-kicker{font-family:"EI Plex Mono",Menlo,monospace;font-size:7.5px;letter-spacing:.18em;text-transform:uppercase;color:rgb(169,62,39);margin-bottom:14px}
.ei-skin .ei-price-amount{font-size:17px;font-weight:700;line-height:1.25;margin:0 0 10px}
.ei-skin .ei-price-card .ei-price-note{font-size:.92em;opacity:.8}
.ei-skin .ei-price-cta{display:inline-block;margin-top:14px;padding:14px 26px;border-radius:999px;background:#1f1e1a;color:#f5f0e6!important;font-weight:600;text-decoration:none!important}
.ei-skin .ei-price-cta:hover{opacity:.88}
@media (max-width:800px){.ei-skin .ei-pricing{grid-template-columns:1fr;gap:28px}}
.ei-skin .ei-price-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ei-skin .ei-price-ctas .ei-price-cta{margin-top:0}
.ei-skin .ei-price-cta-alt{background:transparent!important;color:#1f1e1a!important;border:1px solid #1f1e1a}
.ei-skin .ei-free-note{margin:10px 0 0 21px;font-size:.85em;opacity:.75;line-height:1.5}
.ei-skin .ei-home-copy .ei-free-note + .ei-lang-switch{margin-top:6px}
.ei-skin .ei-price-free{font-size:.95em;padding-bottom:14px;margin-bottom:16px!important;border-bottom:1px solid rgb(220,211,195)}
.ei-skin .ei-pricing-post{grid-template-columns:1fr!important;gap:28px!important;margin:48px 0 32px}

/* En-tête Early Intelligence sur le site Early Group (remplace l'en-tête du site sur ces pages) */
.ei-skin .ei-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px var(--ei-gutter); border-bottom: 1px solid var(--ei-line); }
.ei-skin .ei-head-left, .ei-skin .ei-head-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ei-skin .ei-head-logo { font-family: "EI Inter Tight", Inter, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ei-ink); text-decoration: none; }
.ei-skin .ei-head-nav { display: flex; gap: 28px; }
.ei-skin .ei-head a:not(.ei-head-logo) { font-family: "EI Plex Mono", Menlo, monospace; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ei-ink); text-decoration: none; }
.ei-skin .ei-head a:not(.ei-head-logo):hover { text-decoration: underline; text-underline-offset: 3px; }
.ei-skin .ei-head .ei-head-back { color: var(--ei-muted); }
.ei-skin .ei-head .ei-head-cta { padding: 12px 18px; border-radius: 999px; background: var(--ei-rose); font-weight: 500; }
.ei-skin .ei-head .ei-head-cta:hover { background: #eccabb; text-decoration: none; }
@media (max-width: 900px) { .ei-skin .ei-head-nav { display: none; } }
.ei-skin .ei-free-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
