/* WakeStory — plain CSS, no build step. Mobile first. Paper by day; a night version on trial since 3 Sept 2026
   (follows the phone, or the reader's choice). Fonts ship with the theme, no call to Google. */

/* ---- fonts shipped with the theme ---- */
@font-face {
    font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("../fonts/literata-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("../fonts/literata-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("../fonts/literata-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("../fonts/literata-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap;
    src: url("../fonts/playfair-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap;
    src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens: the paper by default; the night version follows the phone, or the reader's choice (the "Aa" panel) ---- */
:root {
    --paper: #faf9f6;          /* the card's paper, from carte.py */
    --ink: #1c1a18;
    --muted: #6b675f;
    --line: #e6e2da;
    --card-bg: #fff;           /* behind images, chips, round buttons */
    --overlay: rgba(250, 249, 246, 0.97);
    --img-filter: none;
    --accent: var(--ghost-accent-color, #B0174F);   /* buttons, logo, marks : framboise (Alain, 9 Oct. 2026, 22 h 33) */
    --accent-ink: #9C1446;                           /* the same framboise, darker, for small text (contrast) */
    --serif: "Literata", "Charter", "Georgia", "Iowan Old Style", serif;
    --logo: "Playfair Display", "Georgia", serif;   /* FlashRomance : Playfair Display italic (Alain, 9 Oct. 2026, 22 h 38) ; WakeStory had EB Garamond */
    --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --pad: 16px;
    --gap: 12px;               /* between two cards, rows and list alike */
    --cols: 1;                 /* cards a row: 1 on the phone, 3 on a tablet, 4 on a computer (Alain, 9 Sept. 2026) */
    --radius: 10px;
    --nav-h: 56px;
    --text: 18px;              /* reading size, phone, "moyen" */
    --text-lh: 1.6;
    color-scheme: light;
}
/* the night: warm black, ivory ink, never pure white on pure black; the cards stay paper, slightly dimmed */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #171614; --ink: #e7e2d9; --muted: #a39e95; --line: #2e2b27; --card-bg: #1f1d1a;
        --overlay: rgba(23, 22, 20, 0.97); --img-filter: brightness(0.88); --accent-ink: #F07CA8; color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #171614; --ink: #e7e2d9; --muted: #a39e95; --line: #2e2b27; --card-bg: #1f1d1a;
    --overlay: rgba(23, 22, 20, 0.97); --img-filter: brightness(0.88); --accent-ink: #F07CA8; color-scheme: dark;
}
html.ws-size-s { --text: 16px; }
html.ws-size-l { --text: 21px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0; overflow-x: clip;
    touch-action: pan-y pinch-zoom;        /* the page itself never pans sideways (the rows do, see below) */
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { flex: none; }

.ws-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ws-muted { color: var(--muted); }

/* ---- top bar: folds away when scrolling down, comes back when scrolling up ---- */
.ws-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    min-height: var(--nav-h); padding: 8px 12px;   /* tight on the phone: five things on one line since 4 Sept 2026 */
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10;
    transition: transform .25s ease;
}
.ws-nav-hidden { transform: translateY(-100%); }
.ws-logo {
    font-family: var(--logo); font-style: italic; font-weight: 500;
    font-size: 1.35rem; line-height: 1; color: var(--accent); letter-spacing: -0.01em;   /* FlashRomance (Alain, 9 Oct. 2026, 23 h 00 : « un peu petit ») : as large as the bar allows, measured at 360, 375 and 390 px ; full size again from 640px */
}
@media (max-width: 639px) {
    /* the room for the longer name : the bar's sides, the icons and the button a little tighter */
    .ws-nav { padding-left: 10px; padding-right: 10px; }
    .ws-nav .ws-icon { width: 40px; min-width: 40px; }
    .ws-nav .ws-icon-aa { padding: 0 4px; }
    .ws-nav .ws-btn { padding: 0 12px; }
}
@media (max-width: 370px) { .ws-logo { font-size: 1.2rem; } }
@media (min-width: 390px) and (max-width: 639px) { .ws-logo { font-size: 1.45rem; } }
.ws-nav-actions { display: flex; align-items: center; gap: 0; font-family: var(--ui); font-size: 0.9rem; }
.ws-icon {
    background: none; border: 0; padding: 0; width: 44px; height: 44px; border-radius: 50%;
    color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ws-icon-aa { font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.02em; width: auto; min-width: 44px; padding: 0 7px; border-radius: 999px; }
/* the language in use, carried on the "Aa" button (Alain, 4 Sept 2026) — hidden on FlashRomance : French only, and the bar needs the room */
.ws-icon-lang { display: none; font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.ws-icon-lang::before { content: "\00b7"; margin: 0 3px; opacity: 0.6; }
.ws-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--accent); color: #fff; padding: 0 16px; min-height: 40px; border-radius: 999px;
    border: 1px solid var(--accent); font-family: var(--ui); font-weight: 600; font-size: 0.95rem; white-space: nowrap; cursor: pointer;
}
.ws-btn-ghost { background: transparent; color: var(--accent-ink); }
.ws-nav-actions .ws-btn { padding: 0 12px; font-size: 0.9rem; margin-left: 2px; }
.ws-btn:disabled { opacity: 0.5; cursor: default; }
.ws-round {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-bg);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0;
}
.ws-round svg { width: 22px; height: 22px; }
.ws-round[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); }
.ws-round[aria-pressed="true"] .ws-mark { fill: var(--accent); stroke: var(--accent); }

/* the "Aa" panel */
.ws-aa-panel {
    position: absolute; right: 12px; top: calc(100% + 6px);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.ws-aa-row { display: flex; gap: 6px; align-items: center; }
.ws-aa-label { font-family: var(--ui); font-size: 12px; color: var(--muted); width: 52px; }
.ws-aa-panel[hidden] { display: none; }
.ws-aa-opt {
    background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 40px;
    font-family: var(--ui); font-size: 0.9rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.ws-aa-opt[aria-pressed="true"], .ws-aa-opt[aria-current="true"] { border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 600; }
.ws-aa-sep { height: 1px; background: var(--line); margin: 2px 0; }

/* ---- layout ---- */
/* 1040px until 9 Sept. 2026: on a 1512 screen a third of the width was empty paper (Alain) ; the page now takes the
   window, the side margin is 5 % of it (ReelShort: 6 %), the cap keeps a card under ~420 on a very wide screen */
.ws-main { padding: 0 var(--pad) 40px; max-width: 1800px; margin: 0 auto; }
.ws-row-title {
    font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
    margin: 28px 0 12px; letter-spacing: -0.01em;
}
.ws-row-title a { color: inherit; }
.ws-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.ws-row-head .ws-row-title { margin: 0; }
.ws-row-all { font-family: var(--ui); font-size: 13px; color: var(--accent-ink); white-space: nowrap; padding: 6px 0; }
.ws-page-title { font-size: 1.8rem; margin: 24px 0 12px; }
/* plain pages (about, legal): the title sits on the text column, and links look like links (0.4.7) */
.ws-page .ws-page-title { max-width: calc(33 * var(--text)); margin: 24px auto 12px; }
.ws-page .ws-text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ws-promise {
    font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted);
    text-align: center; margin: 18px auto 4px; max-width: 30em;
}

/* ---- card ---- */
.ws-card { display: flex; flex-direction: column; gap: 8px; }
.ws-card-img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); filter: var(--img-filter);
}
.ws-card-noimg {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 24px; font-style: italic; color: var(--muted);
}
/* under the card: the two words as small rounded buttons, then free/subscribers and the minutes */
.ws-card-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-family: var(--ui); }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card-bg); font-size: 12.5px; line-height: 1.1; color: var(--muted);
}
.ws-chip-cat { border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 600; }   /* the category: a link */
.ws-card-sub { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
/* the bookmark (0.8.1, 14 Sept. 2026, decided by Alain) : at the end of the line « Gratuit · 5 min », under every card and in the head
   of a story — the one line that never wraps ; a 40 px target around a 20 px mark, the line keeps its height */
.ws-card .ws-card-sub { align-self: stretch; }
.ws-card-save {
    margin: -10px -10px -10px auto; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.ws-card-save svg { width: 20px; height: 20px; }
.ws-card-save[aria-pressed="true"] { color: var(--accent-ink); }
.ws-card-save[aria-pressed="true"] .ws-mark { fill: var(--accent); stroke: var(--accent); }
.ws-story-meta .ws-card-save { margin-left: -4px; }   /* centered with the words under the story's card */
.ws-access { display: inline-flex; align-items: center; gap: 4px; }
.ws-access-paid { color: var(--accent-ink); font-weight: 600; }
.ws-duration { font-variant-numeric: tabular-nums; }

/* hero: one card, two buttons */
.ws-hero { margin-top: 16px; }
.ws-hero .ws-card { max-width: 420px; margin: 0 auto; }
.ws-hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }

/* rows: horizontal scroll; the row pans, the page does not. Decided by Alain on 9 Sept. 2026: one card size
   everywhere (rows and list share the column width), the row shows the columns plus a bit of the next card,
   which peeks out under the right margin (margin minus gap) ; on the phone the card is 88 % wide for the same
   reason. Before: 62 % / 220px in rows, 2-3-4 columns in the list, two sizes nobody chose.
   0.8.5 (15 Sept. 2026, Alain : « les images font l'élastique, on ne peut plus scroller la page ») : overflow-x alone makes
   overflow-y auto too ; since 0.8.1 the bookmark's 40-point target hangs 10 points under the card, 2 more than the row's
   padding, so every row could scroll 2 points up and down, and a phone gave it the vertical swipe instead of the page.
   A row pans sideways only (the same line in .ws-next-row). */
.ws-row-scroll {
    display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
    contain: paint; touch-action: pan-x pan-y pinch-zoom;
}
.ws-row-scroll::-webkit-scrollbar { display: none; }
.ws-row-scroll .ws-card { flex: 0 0 88%; scroll-snap-align: start; }

/* the full list: one card a row on the phone (the width the caption was drawn for), then the columns */
.ws-list { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 28px var(--gap); }

/* "more stories": loaded in place by main.js; the page links stay for readers without script */
.ws-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--ui); }
.ws-more-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-js .ws-pages-fallback { display: none; }
.ws-pagination {
    display: flex; justify-content: center; align-items: center; gap: 18px;
    margin: 32px 0 0; font-family: var(--ui); color: var(--muted);
}
.ws-page-arrow { font-size: 1.8rem; line-height: 1; padding: 4px 10px; color: var(--ink); }
.ws-page-off { opacity: 0.3; }

/* ---- reading page ---- */
.ws-story-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px 0 8px; }
.ws-story-figure { position: relative; width: 60%; max-width: 320px; transition: width .3s ease, max-width .3s ease; }
.ws-playing .ws-story-figure {   /* listening (0.6.2, 10 Sept. 2026, Alain: the card overflowed the screen) : the card takes the width,
    but no more than the height leaves once the bar, the words, the buttons and the player are on screen ;
    312 = nav 61 + margin 16 + three gaps 36 + words 53 + buttons 44 + player 86 + 16 under it ; measured on the site */
    width: 100%;
    max-width: min(520px, max(220px, (100vh - 312px) * 0.75));
    max-width: min(520px, max(220px, (100dvh - 312px) * 0.75));
}
.ws-zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.ws-story-card {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); filter: var(--img-filter);
}
.ws-zoom-hint {
    position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;   /* top right, on the drawing : at the bottom it hid the end of the appel on a phone (Alain, 30 Sept. 2026, 21 h 06) */
    background: var(--overlay); border: 1px solid var(--line); color: var(--ink);
    display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.ws-zoom-hint svg { width: 16px; height: 16px; }
.ws-story-meta { align-items: center; }
.ws-story-meta .ws-chips { justify-content: center; }
.ws-head-actions { display: flex; align-items: center; gap: 10px; }
.ws-listen { display: none; }
.ws-has-player .ws-listen { display: inline-flex; }
.ws-playing .ws-listen { display: none; }
/* the wake (0.6.0) : a round button with the W of the logo, violet ; shown when the story carries a wake ; filled while it plays */
.ws-wake { display: none; font-family: var(--logo); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--accent); border-color: var(--accent); }
.ws-wake .ws-wake-w { position: relative; top: -1px; }
.ws-has-wake .ws-wake { display: inline-flex; }
.ws-wake[aria-pressed="true"] { background: var(--accent); color: #fff; }
/* the same wake in the row under the text : the W of the logo and the word */
.ws-wake-action { display: none; }
.ws-has-wake .ws-wake-action { display: inline-flex; }
.ws-wake-action .ws-wake-w { font-family: var(--logo); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1; color: var(--accent); }
.ws-wake-action[aria-pressed="true"] { color: var(--accent-ink); }

/* the image, full screen, on a tap of the card */
.ws-zoom {
    position: fixed; inset: 0; z-index: 40; background: var(--overlay);
    display: flex; align-items: center; justify-content: center; padding: 12px; cursor: zoom-out;
}
.ws-zoom[hidden] { display: none; }
.ws-zoom img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); filter: var(--img-filter); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.ws-zoom-close { position: absolute; top: 10px; right: 10px; }

/* the player, built by main.js from Ghost's audio card */
.ws-player { display: none; width: 100%; max-width: 520px; flex-direction: column; gap: 6px; font-family: var(--ui); }
.ws-playing .ws-player { display: flex; }
.ws-player-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ws-player-btn {
    background: none; border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.ws-player-play { width: 56px; height: 56px; background: var(--accent); border-color: var(--accent); color: #fff; }
.ws-player-speed { font-size: 0.8rem; font-weight: 600; width: auto; padding: 0 10px; border-radius: 999px; min-width: 44px; }
.ws-player-bar { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-player-range { flex: 1; accent-color: var(--accent); margin: 0; height: 24px; }
.ws-js .kg-audio-card { display: none; }   /* Ghost's own player UI stays for readers without script */

/* the bar that sticks to the bottom while it plays and the player is out of sight */
.ws-minibar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 12px; padding: 8px var(--pad);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(100%); transition: transform .25s ease; font-family: var(--ui);
}
.ws-minibar-on { transform: none; }
.ws-minibar .ws-player-btn { width: 40px; height: 40px; }
.ws-minibar .ws-player-play { width: 44px; height: 44px; }
.ws-minibar-time { margin-left: auto; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.ws-text {
    max-width: 33em; margin: 24px auto 0;
    font-size: var(--text); line-height: var(--text-lh);
    hyphens: auto; -webkit-hyphens: auto;
}
/* a word with an apostrophe is never cut: the browser would write « aujourd'-hui » (main.js wraps them) */
.ws-nohyph { hyphens: manual; -webkit-hyphens: manual; }
.ws-text p { margin: 0 0 1.05em; }
.ws-text .kg-audio-card { margin: 0 0 28px; }

/* the end: three quiet actions, then what comes next */
.ws-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 28px; font-family: var(--ui); font-size: 0.9rem; }
.ws-action {
    background: none; border: 0; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink); cursor: pointer;
}
.ws-action svg { width: 20px; height: 20px; }
.ws-action[aria-pressed="true"] { color: var(--accent-ink); }
.ws-action[aria-pressed="true"] .ws-mark { fill: var(--accent); stroke: var(--accent); }
/* the address under the story (0.8.0, 14 Sept. 2026) : Ghost's members form ; Portal puts loading / success / error on it */
.ws-signup { max-width: 30em; margin: 32px auto 0; padding: 22px 18px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--ui); }
.ws-signup-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 14px; }
.ws-signup-row { display: flex; gap: 8px; }
.ws-signup-input {
    flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card-bg); color: var(--ink); font-family: var(--ui); font-size: 16px;   /* 16 px : the phone does not zoom in */
}
.ws-signup-btn { min-height: 44px; }
.ws-signup-small { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.ws-signup-small a { text-decoration: underline; }
.ws-signup-ok, .ws-signup-err { display: none; margin: 0; font-size: 0.95rem; }
.ws-signup-err { margin-top: 10px; color: var(--accent-ink); }
.ws-signup .success .ws-signup-row, .ws-signup .success .ws-signup-small { display: none; }
.ws-signup .success .ws-signup-ok { display: block; }
.ws-signup .error .ws-signup-err { display: block; }
.ws-signup .loading .ws-signup-btn { opacity: 0.6; pointer-events: none; }
.ws-page .ws-signup { margin-top: 48px; }                                 /* the page /recevoir/ */
.ws-signup-already { text-align: center; margin: 48px auto 0; font-size: 0.95rem; color: var(--muted); }
.ws-signup-already a { text-decoration: underline; }
.ws-signup-row-member { justify-content: center; }                        /* 0.8.3 : a member, one button, no field */
.ws-signup[hidden], .ws-signup-already[hidden] { display: none; }
[data-aborted-get-helper] { display: none; }                               /* 0.8.4 : Ghost's « Could not load content », in English ; main.js asks for the page again */

/* "next" (0.8.0, 14 Sept. 2026, decided by Alain) : three small cards, a row to swipe on the phone like the home rows,
   side by side from 640px ; then a link home. Without script, the first three candidates */
.ws-next { margin-top: 36px; }
.ws-next-cand[hidden] { display: none; }
.ws-next-row {
    display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
    contain: paint; touch-action: pan-x pan-y pinch-zoom;
}
.ws-next-row::-webkit-scrollbar { display: none; }
.ws-next-row > .ws-next-cand { flex: 0 0 88%; scroll-snap-align: start; }
.ws-next-row:not(.ws-next-ready) > .ws-next-cand:nth-child(n+4) { display: none; }
.ws-next-more { text-align: center; font-family: var(--ui); font-size: 0.95rem; margin: 10px 0 0; }
.ws-next-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--accent-ink); font-weight: 600; }
.ws-next-line { text-align: center; font-family: var(--ui); font-size: 0.9rem; color: var(--muted); margin: 22px 0 0; }
.ws-next-line a { color: var(--accent-ink); font-weight: 600; }
.ws-next-line[hidden] { display: none; }

/* the gate on a subscribers' story (partials/content-cta.hbs) */
.ws-cta {
    max-width: 30em; margin: 12px auto 0; padding: 24px 20px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--ui);
}
.ws-cta-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 8px; }
.ws-cta-text { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.ws-cta-signin { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); text-decoration: underline; }

/* ---- "my stories" ---- */
.ws-mine-note { font-family: var(--ui); font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.ws-mine-empty { font-family: var(--ui); color: var(--muted); font-size: 0.95rem; }

/* ---- footer: one grey line ---- */
.ws-footer {
    border-top: 1px solid var(--line); margin-top: 24px; padding: 20px var(--pad) 36px;
    font-family: var(--ui); font-size: 13px; color: var(--muted);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px;
}
.ws-footer a, .ws-footer span { padding: 6px 0; }
.ws-footer a:hover { color: var(--ink); }
.ws-social { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }

/* ---- 404 ---- */
.ws-error .ws-list { margin-top: 16px; }

/* ---- desktop ---- */
@media (min-width: 640px) {
    :root { --pad: max(24px, 5vw); --gap: 16px; --cols: 3; --text: 19px; }
    html.ws-size-s { --text: 17px; }
    html.ws-size-l { --text: 22px; }
    body { font-size: 18px; }
    .ws-logo { font-size: 2.15rem; }
    .ws-nav { padding: 8px var(--pad); gap: 8px; }
    .ws-nav-actions { gap: 4px; }
    .ws-nav-actions .ws-btn { padding: 0 16px; font-size: 0.95rem; }
    .ws-aa-panel { right: var(--pad); }
    .ws-row-scroll .ws-card { flex-basis: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
    .ws-story-figure { width: 40%; }
    .ws-next-row { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; contain: none; margin: 0 auto; padding: 0; max-width: 1040px; }
    .ws-next-row > .ws-next-cand { flex: none; }
    .ws-zoom { padding: 32px; }
}
@media (min-width: 1024px) {
    :root { --text: 20px; --cols: 4; }
    html.ws-size-s { --text: 18px; }
    html.ws-size-l { --text: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-nav, .ws-minibar, .ws-story-figure { transition: none; }
}

/* ---- editor cards: wide and full-bleed images, custom fonts from Ghost's design settings ---- */
body { font-family: var(--gh-font-body, var(--serif)); }
.ws-row-title, .ws-page-title { font-family: var(--gh-font-heading, var(--serif)); }
.ws-text .kg-width-wide { max-width: 1040px; width: calc(100vw - 2 * var(--pad)); margin-left: 50%; transform: translateX(-50%); }
.ws-text .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.ws-text .kg-width-wide img, .ws-text .kg-width-full img { width: 100%; }
