/*
Theme Name: CertWork.io
Author: CertWork.io
Description: Independent WordPress theme foundation for CertWork.io. Responsive navigation and Light/Dark/System appearance for an organisation-managed project-management training platform.
Version: 0.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Text Domain: liess
*/


/* =========================================================
   CERTWORK — GLOBAL THEME VARIABLES
   ========================================================= */

:root {
    --bg: #f7fafc;
    --surface: #ffffff;
    --text: #13212a;
    --muted: #536472;
    --line: #d8e2e9;
    --accent: #215b79;
    --soft: #e5eff7;

    color-scheme: light;
    scroll-padding-top: 140px;
}

:root[data-liess-theme="dark"] {
    --bg: #10191f;
    --surface: #18252e;
    --text: #edf4f8;
    --muted: #b3c4d0;
    --line: #354852;
    --accent: #a7d8ef;
    --soft: #203540;

    color-scheme: dark;
}

/* System appearance before / without manual theme preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-liess-theme]) {
        --bg: #10191f;
        --surface: #18252e;
        --text: #edf4f8;
        --muted: #b3c4d0;
        --line: #354852;
        --accent: #a7d8ef;
        --soft: #203540;

        color-scheme: dark;
    }
}


/* =========================================================
   BASE
   ========================================================= */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

body.liess-site,
body.certwork-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#liess-main,
#certwork-main { flex: 1; }

a {
    color: var(--accent);
    text-underline-offset: 4px;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 550;
    margin: 0 0 24px;
}

p { margin: 0 0 20px; }

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.9rem; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #287db0;
    outline-offset: 4px;
}


/* =========================================================
   EXISTING PAGE CONTAINER
   ========================================================= */

.liess-container {
    width: min(1160px, calc(100% - 64px));
    margin-inline: auto;
}

.liess-skip {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 100001;
    background: #ffffff;
    color: #13212a;
    padding: 12px;
}

.liess-skip:focus { top: 8px; }


/* =========================================================
   LEGACY TEMPLATE HEADER
   ========================================================= */

.liess-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
    color-scheme: inherit;
}

.admin-bar .liess-header { top: 32px; }

.liess-header-inner {
    width: min(1320px, calc(100% - 48px));
    margin: auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-block: 12px;
}

.liess-brand { margin-right: auto; flex-shrink: 0; }
.liess-brand a { display: block; }

.liess-brand img {
    display: block;
    width: 160px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    filter: none;
    mix-blend-mode: normal;
}

.liess-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.liess-header a { color: var(--text); text-decoration: none; }
.liess-header a:hover { color: var(--accent); text-decoration: underline; }

.liess-appearance {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.liess-appearance select,
.liess-menu-toggle {
    min-height: 44px;
    padding: 8px 10px;
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.liess-menu-toggle { font-size: 14px; }
.liess-menu-toggle:hover { border-color: var(--accent); }


/* =========================================================
   CERTWORK NEW HEADER — DUAL LOGO SYSTEM
   ========================================================= */

.lh-brand .lh-logo {
    display: block;
    width: 154px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    filter: none;
    mix-blend-mode: normal;
}

.lh-brand .lh-logo-light { display: block; }
.lh-brand .lh-logo-dark { display: none; }

:root[data-liess-theme="dark"] .lh-brand .lh-logo-light { display: none; }
:root[data-liess-theme="dark"] .lh-brand .lh-logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-liess-theme]) .lh-brand .lh-logo-light { display: none; }
    :root:not([data-liess-theme]) .lh-brand .lh-logo-dark { display: block; }
}


/* =========================================================
   CERTWORK HOME PAGE
   Tokens are scoped to .cw-home so header, footer and
   legacy pages are not affected.
   ========================================================= */

.cw-home {
    --cw-page: #ffffff;
    --cw-alt: #f0f2f5;
    --cw-card: #ffffff;
    --cw-border: #dadde1;
    --cw-text: #0f1114;
    --cw-muted: #3b4047;
    --cw-blue: #000000; 
    --cw-blue-ink: #ffffff;
    --cw-blue-hover: #1c1c1e;
    --cw-blue-tint: #242526;
    --cw-green: #1b7a35;
    --cw-green-tint: #e2f4e7;
    --cw-amber: #7a4d00;
    --cw-amber-tint: #fff1d6;
    --cw-red: #b3261e;
    --cw-red-tint: #fdeae8;
    --cw-band: #1877f2;
    --cw-overlay: rgb(240 242 245 / 92%);
    --cw-head: #111111;
    --cw-panel: #eef3e8;
    --cw-soft-a: #f8f9fb;
    --cw-soft-b: #eceff3;
    --cw-hero-base: #fdf6f2;
    --cw-hero-peach: #fbd9cb;
    --cw-hero-lilac: #e6d8f3;
    --cw-hero-mint: #e0f1e6;
    --cw-note-a: #eaf3ff;
    --cw-note-b: #f3eefc;
    --cw-shadow: 0 10px 30px rgb(15 32 43 / 8%);
    --cw-shadow-hover: 0 24px 50px rgb(15 32 43 / 16%);

    background: var(--cw-page);
    color: var(--cw-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

:root[data-liess-theme="dark"] .cw-home {
    --cw-page: #18191a;
    --cw-alt: #242526;
    --cw-card: #242526;
    --cw-border: #3e4042;
    --cw-text: #f5f6f7;
    --cw-muted: #d0d3d8;
    --cw-blue: #000000;  
    --cw-blue-ink: #ffffff;
    --cw-blue-hover: #242526; 
    --cw-blue-tint: #10191f;
    --cw-green: #5fd07c;
    --cw-green-tint: #1f3a2a;
    --cw-amber: #f5c26b;
    --cw-amber-tint: #3d3220;
    --cw-red: #ff8a84;
    --cw-red-tint: #3f2326;
    --cw-band: #0b3d82;
    --cw-overlay: rgb(24 25 26 / 92%);

    --cw-head: #f5f6f7;
    --cw-panel: #222b25;
    --cw-soft-a: #1b1c1d;
    --cw-soft-b: #212224;
    --cw-hero-base: #1c1a1d;
    --cw-hero-peach: #3f2824;
    --cw-hero-lilac: #2b2640;
    --cw-hero-mint: #1b3029;
    --cw-note-a: #1f2f44;
    --cw-note-b: #2a2540;
    --cw-shadow: 0 10px 30px rgb(0 0 0 / 35%);
    --cw-shadow-hover: 0 24px 50px rgb(0 0 0 / 55%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-liess-theme]) .cw-home {
        --cw-page: #18191a;
        --cw-alt: #242526;
        --cw-card: #242526;
        --cw-border: #3e4042;
        --cw-text: #f5f6f7;
        --cw-muted: #d0d3d8;
        --cw-blue: #000000;
        --cw-blue-ink: #ffffff;
        --cw-blue-hover: #242526;
        --cw-blue-tint: #263951;
        --cw-green: #5fd07c;
        --cw-green-tint: #1f3a2a;
        --cw-amber: #f5c26b;
        --cw-amber-tint: #3d3220;
        --cw-red: #ff8a84;
        --cw-red-tint: #3f2326;
        --cw-band: #0b3d82;
        --cw-overlay: rgb(24 25 26 / 92%);

        --cw-head: #f5f6f7;
        --cw-panel: #222b25;
        --cw-soft-a: #1b1c1d;
        --cw-soft-b: #212224;
        --cw-hero-base: #1c1a1d;
        --cw-hero-peach: #3f2824;
        --cw-hero-lilac: #2b2640;
        --cw-hero-mint: #1b3029;
        --cw-note-a: #1f2f44;
        --cw-note-b: #2a2540;
        --cw-shadow: 0 10px 30px rgb(0 0 0 / 35%);
        --cw-shadow-hover: 0 24px 50px rgb(0 0 0 / 55%);
    }
}


/* Headings: clear, modern display typography with semibold weight and tight tracking. */
.cw-home h1,
.cw-home h2,
.cw-home h3 {
    margin: 0;
    color: var(--cw-head);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    text-transform: none;
}

.cw-home h1 { font-size: clamp(38px, 4.4vw, 56px); }
.cw-home h2 { font-size: clamp(32px, 4vw, 46px); }
.cw-home h3 { font-size: clamp(1.1rem, 1.2vw, 1.35rem); }
.cw-home p { margin: 0; }
.cw-home ul, .cw-home ol { margin: 0; padding: 0; list-style: none; }
.cw-home figure { margin: 0; }

/* Fluid container: grows with the screen, as before */
.cw-container {
    width: 100%;
    padding-inline: clamp(24px, 4vw, 96px);
    margin-inline: auto;
}

.cw-section { padding-block: clamp(72px, 7vw, 120px); background: var(--cw-page); }
.cw-section-alt { background: var(--cw-alt); }

.cw-section-intro { max-width: 780px; margin-bottom: clamp(32px, 3vw, 48px); }
.cw-section-intro h2 { margin-bottom: 16px; }
.cw-section-intro p { max-width: 700px; color: var(--cw-muted); font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; }

/* ---------- Buttons ---------- */

.cw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cw-button-primary { background: var(--cw-blue); border-color: var(--cw-blue); color: #ffffff; }
.cw-button-primary:hover,
.cw-button-primary:focus-visible { background: var(--cw-blue-hover); border-color: var(--cw-blue-hover); color: #ffffff; }

/* CertWork landing-page trial actions use a restrained black CTA. */
.cw-home .cw-hero-actions .cw-button-primary,
.cw-home .cw-trial-actions .cw-button-primary {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}
.cw-home .cw-hero-actions .cw-button-primary:hover,
.cw-home .cw-trial-actions .cw-button-primary:hover {
    background: #242424;
    border-color: #242424;
    color: #ffffff;
}

.cw-button-secondary { background: transparent; color: var(--cw-text); border-color: var(--cw-text); }
.cw-button-secondary:hover { background: var(--cw-alt); color: var(--cw-text); }

.cw-button-light { background: #ffffff; color: #0f1114; }
.cw-button-light:hover { background: #e4e6eb; color: #0f1114; }

/* ---------- Hero ---------- */

.cw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(44px, 5vw, 112px);
    min-height: clamp(620px, 46vw, 820px);
    padding-block: clamp(72px, 7vw, 120px) clamp(84px, 8vw, 140px);
    background-color: var(--cw-hero-base);
    background-image:
        radial-gradient(50% 70% at 6% 12%, var(--cw-hero-mint) 0%, transparent 100%),
        radial-gradient(55% 80% at 70% 30%, var(--cw-hero-peach) 0%, transparent 100%),
        radial-gradient(45% 70% at 100% 10%, var(--cw-hero-lilac) 0%, transparent 100%);
}

.cw-hero-copy h1 { max-width: 760px; margin-bottom: 24px; }

.cw-hero-lead {
    max-width: 640px;
    color: var(--cw-text);
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.55;
}

.cw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.cw-trial-note { margin-top: 16px; color: var(--cw-text); font-size: 14px; }

.cw-hero-visual { position: relative; min-width: 0; isolation: isolate; }

.cw-hero-visual::before {
    content: "";
    position: absolute;
    inset: -18px 24px 28px -18px;
    z-index: -1;
    border-radius: 22px;
    background: var(--cw-blue-tint);
}

.cw-hero-visual > img {
    display: block;
    width: 100%;
    height: clamp(480px, 34vw, 780px);
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 24px 60px rgb(15 32 43 / 16%);
}


/* ---------- Programme pathways ---------- */

.cw-programmes { background: var(--cw-page); }
.cw-programmes-head { padding-top: clamp(72px, 7vw, 120px); }

.cw-pathways { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }

.cw-pathway { position: relative; min-width: 0; }
.cw-pathway-inner { position: relative; height: 100%; padding: clamp(40px, 5vw, 88px) clamp(24px, 4vw, 96px); }

.cw-pathway h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 2.2vw, 2.25rem); letter-spacing: -.03em; }
.cw-pathway-lead { max-width: 560px; margin-bottom: 28px; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.55; }
.cw-pathway h4 { margin: 36px 0 14px; font-size: 16px; font-weight: 700; }

.cw-pathway-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cw-pathway-certs li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 8px; }
.cw-pathway-certs strong { font-size: 16px; font-weight: 700; }
.cw-pathway-certs span { font-size: 14px; line-height: 1.4; }

.cw-pathway-flow { counter-reset: step; display: grid; gap: 10px; }
.cw-pathway-flow li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.5; }
.cw-pathway-flow li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* PMI: light surface */
.cw-pathway-pmi { background: var(--cw-alt); color: var(--cw-text); border-top: 1px solid var(--cw-border); }
.cw-pathway-pmi .cw-pathway-lead { color: var(--cw-muted); }
.cw-pathway-pmi .cw-pathway-certs li { border: 1px solid var(--cw-border); background: var(--cw-card); }
.cw-pathway-pmi .cw-pathway-certs span { color: var(--cw-muted); }
.cw-pathway-pmi .cw-pathway-flow li::before { background: var(--cw-blue-tint); color: var(--cw-blue-ink); }

/* SACPCMP: blue photo background */
.cw-pathway-sacpcmp { background-color: #0b3d82; background-position: center; background-size: cover; background-repeat: no-repeat; color: #ffffff; }
.cw-pathway-sacpcmp::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(6 30 74 / 55%), rgb(6 30 74 / 78%)); }
.cw-pathway-sacpcmp h3,
.cw-pathway-sacpcmp h4 { color: #ffffff; }
.cw-pathway-sacpcmp .cw-pathway-lead { color: #ffffff; }
.cw-pathway-sacpcmp .cw-pathway-certs { grid-template-columns: 1fr; }
.cw-pathway-sacpcmp .cw-pathway-certs li { border: 1px solid rgb(255 255 255 / 35%); background: rgb(255 255 255 / 10%); }
.cw-pathway-sacpcmp .cw-pathway-certs span { color: #ffffff; }
.cw-pathway-sacpcmp .cw-pathway-flow li::before { background: #ffffff; color: #0b3d82; }

/* ---------- Progress report video ---------- */

.cw-report-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cw-border);
    border-radius: 14px;
    background: var(--cw-card);
}

.cw-report-video { display: block; width: 100%; height: auto; }

.cw-video-toggle {
    position: absolute;
    left: 16px;
    bottom: 16px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 6px;
    background: rgb(15 17 20 / 82%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.cw-video-toggle:hover { background: #0f1114; }

/* ---------- Modules slider ---------- */

.cw-modules { background: var(--cw-page); }

.cw-modules-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 80px);
    padding: clamp(28px, 4vw, 72px);
    border-radius: 18px;
    background: linear-gradient(135deg, #0b3d82 0%, #1260c9 100%);
    color: #ffffff;
}

.cw-modules-side h2 { margin-bottom: 16px; color: #ffffff; }
.cw-modules-side > p { max-width: 520px; color: #ffffff; font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; }

.cw-modules-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 28px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 12px;
}

.cw-modules-slider { min-width: 0; }

.cw-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 12px;
}

.cw-slides::-webkit-scrollbar { display: none; }
.cw-slides:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; }

.cw-slide { flex: 0 0 100%; min-height: 360px; scroll-snap-align: start; border-color: transparent; }
.cw-slide h3 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); letter-spacing: -.02em; }

.cw-slider-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.cw-slider-count { min-width: 48px; font-size: 14px; font-weight: 600; text-align: center; }

.cw-slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    transition: background-color .1s ease, color .1s ease;
}

.cw-slider-btn:hover { background: #ffffff; color: #0b3d82; }
.cw-slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cw-modules-panel a:focus-visible,
.cw-modules-panel button:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* ---------- Workspace demonstration (journey list beside the product screen) ---------- */

/* Soft grey/white section background */
.cw-home #certwork-platform {
    background: linear-gradient(180deg, var(--cw-soft-a) 0%, var(--cw-soft-b) 100%);
}

/* List on the left, workspace on the right (swap the two names in grid-template-areas to flip) */
.cw-stage {
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
    grid-template-areas: "list screen" "foot screen";
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
    margin-top: 0;
}

.cw-monitor {
    grid-area: screen;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vw, 48px);
    border-radius: 12px;
    background: var(--cw-panel);
}
.cw-monitor-bezel {
    padding: 8px;
    border-radius: 10px;
    background: var(--cw-card);
    box-shadow: 0 18px 44px rgb(15 32 43 / 14%);
}
.cw-viewport { position: relative; overflow: hidden; border-radius: 6px; background: #f4f6f9; aspect-ratio: 1120 / 700; }
.cw-monitor-neck,
.cw-monitor-foot { display: none; }

.cw-screen {
    --s-bg: #f4f6f9; --s-card: #ffffff; --s-line: #e3e7ec; --s-text: #16202b; --s-mut: #566270;
    --s-navy: #0f2a47; --s-blue: #1d6fe0; --s-blue-t: #e8f1fd; --s-green: #1b8a4a; --s-green-t: #e3f4ea;
    --s-amber: #c27a00; --s-amber-t: #fff2d9; --s-red: #c62828; --s-red-t: #fdecea;
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 48px minmax(0, 1fr);
    width: 1120px;
    height: 700px;
    transform-origin: 0 0;
    background: var(--s-bg);
    color: var(--s-text);
    font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: left;
}
.cw-screen *, .cw-screen *::before, .cw-screen *::after { box-sizing: border-box; }
.cw-screen button { font-family: inherit; }
.cw-screen p, .cw-screen dl, .cw-screen dd { margin: 0; }
.cw-screen svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.cw-s-top { grid-column: 1; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--s-line); background: #ffffff; }
.cw-s-dots { display: flex; align-items: center; gap: 6px; }
.cw-s-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5db; }
.cw-s-dots::after { content: "EXRA Business"; margin-left: 12px; color: var(--s-text); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.cw-s-search { display: flex; align-items: center; gap: 8px; width: 300px; height: 30px; padding: 0 12px; border: 1px solid var(--s-line); border-radius: 6px; background: var(--s-bg); color: var(--s-mut); font-size: 13px; }
.cw-s-search svg { width: 15px; height: 15px; }
.cw-s-top-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cw-s-sample { padding: 3px 10px; border: 1px solid var(--s-amber); border-radius: 999px; background: var(--s-amber-t); color: #7a4d00; font-size: 12px; font-weight: 700; }
.cw-s-bell { position: relative; display: flex; color: var(--s-mut); }
.cw-s-bell svg { width: 19px; height: 19px; }
.cw-s-bell b { display: none; }
.cw-s-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cw-s-initials { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s-navy); color: #ffffff; font-size: 11px; font-weight: 700; }

/* The sidebar is replaced by the journey list outside the screen */
.cw-s-side { display: none; }
.cw-s-badge { display: none; }
.cw-s-nav-mark { position: absolute; left: -10px; top: 0; width: 3px; height: var(--ind-h, 40px); border-radius: 0 3px 3px 0; background: #4da3ff; transform: translateY(var(--ind-y, 0px)); pointer-events: none; }

/* Main area and views */
.cw-s-main { position: relative; min-width: 0; overflow: hidden; }
.cw-s-view { position: absolute; inset: 0; padding: 20px 24px; overflow: hidden; }
.cw-s-view[hidden] { display: none; }
.cw-s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cw-screen .cw-s-title { margin: 0; color: var(--s-text); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.cw-s-sub { margin: 2px 0 0; color: var(--s-mut); font-size: 13px; }
.cw-s-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px; background: var(--s-blue); color: #ffffff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cw-s-act svg { width: 15px; height: 15px; stroke-width: 2.2; }
.cw-s-act.is-pressed { background: #1558b8; }
.cw-s-act.is-ghost { border: 1px solid var(--s-line); background: #ffffff; color: var(--s-text); }

.cw-s-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cw-s-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-s-stat { padding: 12px 14px; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-card); }
.cw-s-stat span { display: block; color: var(--s-mut); font-size: 12px; font-weight: 600; }
.cw-s-stat b { display: block; margin: 1px 0; font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cw-s-stat b.is-red { color: var(--s-red); }
.cw-s-stat small { display: block; color: var(--s-mut); font-size: 12px; }

.cw-s-card { min-width: 0; overflow: hidden; border: 1px solid var(--s-line); border-radius: 8px; background: var(--s-card); }
.cw-s-card-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--s-line); }
.cw-screen h4 { margin: 0; color: var(--s-text); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.cw-s-foot { padding: 9px 14px; border-top: 1px solid var(--s-line); color: var(--s-mut); font-size: 12px; }
.cw-s-label { display: block; margin: 12px 0 4px; color: var(--s-mut); font-size: 12px; font-weight: 700; }

/* Status dot + text (no pill) */
.cw-s-st { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.cw-s-st::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8a94a0); }
.cw-s-st.is-green { --c: var(--s-green); }
.cw-s-st.is-amber { --c: var(--s-amber); }
.cw-s-st.is-blue { --c: var(--s-blue); }
.cw-s-st.is-red { --c: var(--s-red); }
.cw-s-st.is-grey { --c: #8a94a0; }

.cw-s-bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: #e9edf2; }
.cw-s-bar i { display: block; height: 100%; border-radius: 3px; background: var(--s-blue); }
.cw-s-prog { display: flex; align-items: center; gap: 8px; }
.cw-s-prog .cw-s-bar { width: 72px; }
.cw-s-prog em { min-width: 34px; color: var(--s-mut); font-size: 12px; font-style: normal; }

.cw-screen .cw-avatar { display: block; flex: none; width: 26px; height: 26px; border-radius: 50%; stroke: none; }
.cw-s-who { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* Tables */
.cw-s-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cw-s-tbl th { padding: 9px 12px; border-bottom: 1px solid var(--s-line); background: #fafbfc; color: var(--s-mut); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.cw-s-tbl td { height: 40px; padding: 0 12px; border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.cw-s-tbl tr:last-child td { border-bottom: 0; }
.cw-s-tbl.is-two td { height: 48px; }
.cw-s-two { display: block; line-height: 1.25; }
.cw-s-two b { display: block; font-weight: 600; }
.cw-s-two small { display: block; color: var(--s-mut); font-size: 12px; font-weight: 400; }
.cw-s-tbl tr.is-sel td,
.cw-s-tbl tr.is-hl td { background: var(--s-blue-t); }
.cw-s-tbl tr.is-new td { background: #f1f8ff; }
.cw-s-tbl tr[hidden] { display: none; }
.cw-s-tools { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--s-line); }
.cw-s-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--s-line); border-radius: 14px; background: #ffffff; font-size: 12px; font-weight: 600; }
.cw-s-chip.is-on { border-color: #b9d4f7; background: var(--s-blue-t); color: var(--s-blue); }

/* Overview */
.cw-s-ov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 452px; }
.cw-s-att { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--s-line); background: none; color: var(--s-text); text-align: left; cursor: pointer; }
.cw-s-att:hover { background: #fafbfc; }
.cw-s-att svg { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--s-mut); }
.cw-s-att-n { display: flex; flex: none; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 8px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-s-att-n.t-amber { background: var(--s-amber-t); color: #7a4d00; }
.cw-s-att-n.t-blue { background: var(--s-blue-t); color: var(--s-blue); }
.cw-s-att-n.t-green { background: var(--s-green-t); color: var(--s-green); }
.cw-s-att-l { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cw-s-progs li { padding: 9px 16px; border-bottom: 1px solid var(--s-line); }
.cw-s-progs li:last-child { border-bottom: 0; }
.cw-s-prog-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.cw-s-progs small { display: block; margin-top: 4px; color: var(--s-mut); font-size: 12px; }
.cw-s-tl li { display: flex; gap: 11px; padding: 7px 16px; border-bottom: 1px solid var(--s-line); }
.cw-s-tl li:last-child { border-bottom: 0; }
.cw-s-ico { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s-blue-t); color: var(--s-blue); }
.cw-s-ico svg { width: 15px; height: 15px; stroke-width: 2; }
.cw-s-tl-t { font-size: 13px; line-height: 1.4; }
.cw-s-tl-t small { display: block; color: var(--s-mut); font-size: 12px; }

/* Candidates: invite dialog */
.cw-s-modal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(15 32 43 / 40%); opacity: 0; pointer-events: none; }
.cw-s-modal.is-open { opacity: 1; }
.cw-s-modal-card { width: 400px; padding: 20px; border-radius: 10px; background: #ffffff; box-shadow: 0 12px 40px rgb(15 32 43 / 30%); }
.cw-s-modal-card h4 { font-size: 16px; }
.cw-s-modal-card p { margin: 4px 0 4px; color: var(--s-mut); font-size: 13px; }
.cw-s-input { display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #c5ccd5; border-radius: 6px; font-size: 13px; }
.cw-s-input.is-set { background: #f6f8fa; }
.cw-s-modal-card .cw-s-input span::after { content: "|"; margin-left: 1px; color: var(--s-blue); }
.cw-s-modal-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Review */
.cw-s-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.cw-s-split.is-cert { grid-template-columns: minmax(0, 1fr) 440px; }
.cw-s-detail { padding: 16px; }
.cw-s-detail[hidden] { display: none; }
.cw-s-detail-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cw-s-detail-h .cw-avatar { width: 36px; height: 36px; }
.cw-s-detail-h b { display: block; font-size: 14px; }
.cw-s-detail-h small { display: block; color: var(--s-mut); font-size: 12px; }
.cw-s-detail dl > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--s-line); font-size: 13px; }
.cw-s-detail dt { color: var(--s-mut); }
.cw-s-detail dd { font-weight: 600; }
.cw-s-quote { padding: 10px 12px; border-left: 3px solid var(--s-blue); background: var(--s-blue-t); font-size: 13px; line-height: 1.5; }

/* Emails */
.cw-s-mail { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px; }
.cw-s-mail-f { padding: 10px 8px; border-right: 1px solid var(--s-line); background: #fafbfc; }
.cw-s-mail-f span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.cw-s-mail-f span.is-on { background: var(--s-blue-t); color: var(--s-blue); }
.cw-s-mail-f b { font-weight: 700; }
.cw-s-mail-l li { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--s-line); }
.cw-s-mail-l li.is-sel { background: var(--s-blue-t); }
.cw-s-mail-t { min-width: 0; flex: 1; }
.cw-s-mail-t b, .cw-s-mail-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-s-mail-t b { font-size: 13px; }
.cw-s-mail-t small { color: var(--s-mut); font-size: 12px; }
.cw-s-mail-m { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
.cw-s-mail-m em { color: var(--s-mut); font-style: normal; }
.cw-s-mail-p { padding: 16px; border-left: 1px solid var(--s-line); }
.cw-s-mail-pv[hidden] { display: none; }
.cw-s-mail-pv b { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.3; }
.cw-s-mail-pv small { display: block; margin-bottom: 8px; color: var(--s-mut); font-size: 12px; }
.cw-s-mail-pv p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--s-line); font-size: 13px; line-height: 1.55; }

/* Certificate preview */
.cw-cert { position: relative; overflow: hidden; margin: 12px; aspect-ratio: 1.414; border: 1px solid var(--s-line); background: #ffffff; font-size: 10px; color: #0f2a47; text-align: center; }
.cw-cert::before { content: ""; position: absolute; top: 0; right: 0; width: 26%; height: 14%; background: #0f2a47; }
.cw-cert::after { content: ""; position: absolute; bottom: 0; left: 0; width: 22%; height: 13%; background: #0f2a47; }
.cw-cert-frame { position: absolute; inset: 3.5%; border: 1px solid #d4a91b; }
.cw-cert-in { position: absolute; inset: 7% 9% 6%; display: flex; flex-direction: column; align-items: center; }
.cw-cert-org { display: flex; align-items: center; gap: 5px; font-size: .8em; font-weight: 700; letter-spacing: .08em; }
.cw-cert-org svg { width: 1.5em; height: 1.5em; color: #d4a91b; }
.cw-cert-kicker { margin-top: 1.2em; font-size: .78em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #566270; }
.cw-cert-title { margin-top: .3em; font-family: Georgia, "Times New Roman", serif; font-size: 1.75em; line-height: 1.15; }
.cw-cert-line { margin-top: .9em; font-size: .9em; color: #3b4047; }
.cw-cert-name { min-width: 14em; margin-top: .2em; font-family: Georgia, "Times New Roman", serif; font-size: 2.3em; line-height: 1.2; }
.cw-cert-prog { min-width: 12em; margin-top: .2em; font-family: Georgia, "Times New Roman", serif; font-size: 1.35em; }
.cw-cert-name.is-blank,
.cw-cert-prog.is-blank { min-height: 1.2em; border-radius: 3px; background: #eef1f4; }
.cw-cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.6em; margin-top: 1em; font-size: .85em; }
.cw-cert-sign { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; }
.cw-cert-sig { display: flex; flex-direction: column; align-items: center; width: 30%; font-size: .85em; font-weight: 700; }
.cw-cert-sig svg { width: 80%; height: 2.6em; stroke: #0f2a47; stroke-width: 1.4; }
.cw-cert-sig i { display: block; width: 100%; height: 1px; background: #0f2a47; }
.cw-cert-sig small { font-size: .9em; font-weight: 400; color: #566270; }
.cw-cert-seal svg { width: 5.2em; height: 5.2em; stroke: #d4a91b; stroke-width: 1.5; }
.cw-cert-seal text { fill: #0f2a47; stroke: none; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.cw-cert-note { max-width: 70%; margin: .7em auto 0; font-size: .68em; color: #566270; }
.cw-s-gen { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--s-line); }
.cw-s-gen-info { flex: 1; min-width: 0; }
.cw-s-gen-l { display: block; margin-bottom: 4px; font-size: 12px; color: var(--s-mut); }
.cw-s-gen-info .cw-s-bar[hidden] { display: none; }

.cw-s-toast { position: absolute; right: 20px; top: 14px; z-index: 5; padding: 11px 14px; border-radius: 8px; background: #16202b; color: #ffffff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; }
.cw-s-toast.is-on { opacity: 1; }

/* Entrance behaviour (only when JavaScript is running) */
.cw-js [data-rise]:not(.is-in) { opacity: 0; }
.cw-js [data-cert-reveal]:not(.is-in) { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .cw-js [data-rise] { transition: opacity .3s ease; }
    .cw-js [data-cert-reveal] { transition: opacity .4s ease; }
    .cw-s-nav-mark { transition: transform .22s ease, height .22s ease; }
    .cw-s-view:not([hidden]) { animation: cwViewIn .28s ease; }
    .cw-s-modal, .cw-s-toast { transition: opacity .2s ease; }
}
@keyframes cwViewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Compact layout (phones): smaller canvas, simplified panels */
.cw-screen[data-size="compact"] { grid-template-columns: minmax(0, 1fr); }
.cw-screen[data-size="compact"] .cw-s-search,
.cw-screen[data-size="compact"] .cw-s-uname,
.cw-screen[data-size="compact"] .cw-s-org,
.cw-screen[data-size="compact"] .cw-s-nav-t,
.cw-screen[data-size="compact"] .cw-s-brand-t,
.cw-screen[data-size="compact"] .cw-opt,
.cw-screen[data-size="compact"] .cw-opt-row { display: none; }
.cw-screen[data-size="compact"] .cw-s-view { padding: 14px; }
.cw-screen[data-size="compact"] .cw-s-head { margin-bottom: 10px; }
.cw-screen[data-size="compact"] .cw-s-sub { display: none; }
.cw-screen[data-size="compact"] .cw-s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.cw-screen[data-size="compact"] .cw-s-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-screen[data-size="compact"] .cw-s-stats.is-3 small { display: none; }
.cw-screen[data-size="compact"] .cw-s-stat { padding: 9px 11px; }
.cw-screen[data-size="compact"] .cw-s-stat b { font-size: 22px; }
.cw-screen[data-size="compact"] .cw-s-ov { grid-template-columns: 1fr; height: auto; gap: 10px; }
.cw-screen[data-size="compact"] .cw-s-tl li:nth-child(n+4) { display: none; }
.cw-screen[data-size="compact"] .cw-s-split,
.cw-screen[data-size="compact"] .cw-s-split.is-cert { grid-template-columns: 1fr; gap: 10px; }
.cw-screen[data-size="compact"] .cw-s-mail { grid-template-columns: 1fr; }
.cw-screen[data-size="compact"] .cw-s-tbl th,
.cw-screen[data-size="compact"] .cw-s-tbl td { padding-inline: 10px; }
.cw-screen[data-size="compact"] .cw-s-prog .cw-s-bar { width: 60px; }
.cw-screen[data-size="compact"] .cw-cert { font-size: 11.5px; }
.cw-screen[data-size="compact"] .cw-s-modal-card { width: 340px; }

/* Journey list (Overview to Emails) */
.cw-jr { grid-area: list; }
.cw-jr-item { position: relative; border-bottom: 1px solid var(--cw-border); }
.cw-jr-item:first-child { border-top: 1px solid var(--cw-border); }
.cw-jr-item::before,
.cw-jr-item::after { content: ""; position: absolute; top: 0; left: 0; width: 3px; border-radius: 2px; }
.cw-jr-item.is-active::before { bottom: 0; background: var(--cw-border); }
.cw-jr-item.is-active::after { height: var(--p, 0%); background: var(--cw-head); }
.cw-jr-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 24px 8px 24px 28px;
    border: 0;
    background: none;
    color: var(--cw-head);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", Roboto, sans-serif;
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-align: left;
    cursor: pointer;
}
.cw-jr-btn:hover { color: var(--cw-head); }
.cw-jr-btn:focus-visible { outline: 3px solid var(--cw-text); outline-offset: -3px; }
.cw-jr-chev { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cw-jr-body { display: grid; grid-template-rows: 0fr; padding-left: 28px; }
.cw-jr-inner { min-height: 0; overflow: hidden; }
.cw-jr-inner p { max-width: 430px; margin: 0 0 26px; color: var(--cw-text); font-size: 17px; line-height: 1.55; }
.cw-jr-item.is-active .cw-jr-body { grid-template-rows: 1fr; }
.cw-jr-item.is-active .cw-jr-chev { transform: rotate(180deg); }

/* Pause control and sample-data note under the list */
.cw-jr-foot { grid-area: foot; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; }
.cw-tour-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--cw-border); border-radius: 6px; background: var(--cw-card); color: var(--cw-text); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.cw-tour-btn:hover { background: var(--cw-alt); }
.cw-tour-note { max-width: 420px; margin: 0; color: var(--cw-text); font-size: 13px; }
.cw-tour-note [data-tour-now],
.cw-tour-sep { display: none; }

@media (max-width: 700px) {
    .cw-tour-note [data-tour-now] { display: inline; font-weight: 700; color: var(--cw-text); }
    .cw-tour-sep { display: inline; }
}

/* ---------- Process: three separate cards ---------- */

.cw-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(48px, 5vw, 88px);
}

.cw-process-step {
    padding: clamp(24px, 2.4vw, 40px);
    border: 1px solid var(--cw-border);
    border-radius: 20px;
    background: var(--cw-card);
    box-shadow: var(--cw-shadow);
}

.cw-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--cw-blue-tint);
    color: var(--cw-blue-ink);
    font-size: 14px;
    font-weight: 700;
}

.cw-process-step h3 { margin-bottom: 10px; }
.cw-process-step p { color: var(--cw-muted); font-size: 16px; line-height: 1.55; }

/* ---------- Access note ---------- */

.cw-access-note {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(20px, 2vw, 32px);
    padding: 22px 26px;
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cw-note-a) 0%, var(--cw-note-b) 100%);
    color: var(--cw-blue-ink);
}

.cw-access-note svg {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 50%;
    background: var(--cw-card);
    box-shadow: 0 4px 12px rgb(15 32 43 / 10%);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cw-access-note p { max-width: 760px; color: var(--cw-text); font-size: 17px; line-height: 1.55; }

/* ---------- Cards ---------- */

.cw-grid { display: grid; gap: clamp(16px, 1.5vw, 28px); }
.cw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cw-card {
    padding: clamp(24px, 2.2vw, 40px);
    border: 1px solid var(--cw-border);
    border-radius: 10px;
    background: var(--cw-card);
}

.cw-card h3 { margin-bottom: 10px; }
.cw-card p { color: var(--cw-muted); font-size: 16px; line-height: 1.55; }

.cw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--cw-blue-tint);
    color: var(--cw-blue-ink);
}

.cw-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cw-module { display: flex; flex-direction: column; }
.cw-module > p { margin-bottom: 22px; }
.cw-module ul { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--cw-border); }

.cw-module li {
    position: relative;
    padding-left: 18px;
    color: var(--cw-text);
    font-size: 15px;
    line-height: 1.45;
}

.cw-module li + li { margin-top: 10px; }

.cw-module li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cw-blue-ink);
}

/* ---------- Mentor review ---------- */

.cw-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(44px, 6vw, 120px);
}

.cw-review-image img {
    display: block;
    width: 100%;
    height: clamp(360px, 32vw, 700px);
    border: 1px solid var(--cw-border);
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
}

.cw-review-copy h2 { margin-bottom: 18px; }
.cw-review-copy > p { color: var(--cw-muted); font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; }
.cw-review-copy > p strong { color: var(--cw-text); }

.cw-check-list { margin-top: 28px; border-top: 1px solid var(--cw-border); }

.cw-check-list li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid var(--cw-border);
    color: var(--cw-text);
    font-size: 16px;
}

.cw-check-list li::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 4px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--cw-blue-ink);
    border-bottom: 2px solid var(--cw-blue-ink);
    transform: rotate(-45deg);
}

/* ---------- Trial section ---------- */

.cw-trial {
    padding-block: clamp(56px, 6vw, 88px);
    background: var(--cw-page);
    color: var(--cw-text);
}

.cw-trial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
}

.cw-trial-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.cw-trial-actions .cw-button {
    width: min(100%, 260px);
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    text-align: center;
}

.cw-trial-actions .cw-button:hover {
    background: #242424;
    border-color: #242424;
    color: #ffffff;
}

.cw-trial-actions .cw-trial-create {
    width: min(100%, 220px);
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
}

.cw-trial-copy { width: 100%; text-align: center; }
.cw-trial-copy h2 {
    margin: 0;
    color: var(--cw-head);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 600;
}

.cw-prose { overflow-wrap: anywhere; }
.cw-extra { padding-block: 56px; }

.cw-home a:focus-visible { outline: 3px solid var(--cw-blue); outline-offset: 3px; }
.cw-trial a:focus-visible { outline-color: var(--cw-blue); }

/* ---------- Home responsive ---------- */

@media (max-width: 980px) {
    .cw-hero { grid-template-columns: 1fr; gap: 52px; min-height: 0; padding-block: 64px 80px; }
    .cw-hero-visual > img { height: clamp(360px, 60vw, 520px); }
    .cw-split { grid-template-columns: 1fr; gap: 40px; }
    .cw-pathways { grid-template-columns: 1fr; }
    .cw-modules-panel { grid-template-columns: 1fr; }
    .cw-slides { display: grid; gap: 16px; overflow: visible; scroll-snap-type: none; }
    .cw-slide { min-height: 0; }
    .cw-slider-controls { display: none; }
    .cw-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cw-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "screen" "foot"; grid-template-rows: auto; row-gap: 32px; }
    .cw-jr-foot { margin-top: 0; }
}

@media (max-width: 760px) {
    .cw-container { padding-inline: 18px; }
    .cw-section { padding-block: 56px; }
    .cw-hero { padding-block: 48px 64px; }
    .cw-hero-visual > img { height: min(390px, 80vw); border-radius: 14px; }
    .cw-hero-visual::before { inset: -12px 14px 22px -10px; }
    .cw-actions { flex-direction: column; align-items: stretch; }
    .cw-grid-3, .cw-grid-2, .cw-process { grid-template-columns: 1fr; }
    .cw-pathway-certs { grid-template-columns: 1fr; }
    .cw-modules-panel { padding: 22px; border-radius: 14px; }
    .cw-monitor { padding: 12px; }
    .cw-access-note { padding: 18px; }
    .cw-review-image img { height: min(340px, 72vw); }
    .cw-trial-inner { gap: 24px; }
    .cw-trial-actions { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
    .cw-container { padding-inline: 14px; }
}

/* ---------- Landing motion: cards lift on hover and rise on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
    .cw-jr-item::after { transition: height .2s linear; }
    .cw-jr-body { transition: grid-template-rows .4s cubic-bezier(.22, .75, .25, 1); }
    .cw-jr-chev { transition: transform .3s ease; }
    .cw-process-step {
        transition: transform .28s cubic-bezier(.22, .75, .25, 1), box-shadow .28s ease, border-color .28s ease;
    }
    .cw-process-step:hover {
        transform: translateY(-8px);
        border-color: var(--cw-blue);
        box-shadow: var(--cw-shadow-hover);
    }
    @supports (animation-timeline: view()) {
        .cw-process-step,
        .cw-access-note {
            animation: cwCardRise linear backwards;
            animation-timeline: view();
            animation-range: entry 0% entry 45%;
        }
    }
}
@keyframes cwCardRise {
    from { opacity: 0; transform: translateY(44px) scale(.97); }
    to   { opacity: 1; transform: none; }
}


/* =========================================================
   STANDARD CONTENT
   ========================================================= */

.liess-content { padding-block: 65px; min-height: 55vh; }
.liess-entry { margin-bottom: 48px; }
.liess-prose { overflow-wrap: anywhere; }
.liess-prose h2, .liess-prose h3 { margin-top: 32px; }
.liess-prose table { display: block; max-width: 100%; overflow: auto; }

.liess-prose input:not([type="checkbox"]):not([type="radio"]),
.liess-prose textarea,
.liess-prose select {
    max-width: 100%;
    padding: 10px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
}

.liess-extra { padding-bottom: 60px; }


/* =========================================================
   CERTWORK FOOTER
   ========================================================= */

.cw-footer { border-top: 1px solid rgb(255 255 255 / 10%); background: #122b39; color: #dce8ee; }
.cw-footer a { color: inherit; }

.cw-footer-main,
.cw-footer-utility,
.cw-footer-legal { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.cw-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, .72fr) minmax(230px, .9fr);
    gap: 72px;
    padding-block: 70px 52px;
}

.cw-footer-brand { display: inline-flex; align-items: center; max-width: 170px; margin-bottom: 26px; text-decoration: none; }
.cw-footer-brand img { display: block; width: 154px; height: auto; max-height: 46px; object-fit: contain; }

.cw-footer-summary { max-width: 430px; margin-bottom: 22px; color: #dce8ee; font-size: 16px; line-height: 1.65; }
.cw-footer-entity { max-width: 440px; margin-bottom: 26px; color: #aebfc9; font-size: 13px; }
.cw-footer-entity strong { color: #ffffff; font-weight: 650; }

.cw-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #b8c9d2; font-size: 13px; font-style: normal; }
.cw-footer-contact a { text-decoration-color: rgb(184 201 210 / 45%); }
.cw-footer-contact a:hover { color: #ffffff; text-decoration-color: currentColor; }

.cw-footer-social { display: flex; align-items: center; gap: 10px; margin-top: 26px; }

.cw-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(255 255 255 / 4%);
    color: #dce8ee;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cw-footer-social a:hover { border-color: #ffffff; background: #ffffff; color: #122b39; transform: translateY(-2px); }
.cw-footer-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }

.cw-footer-column h2 { margin: 3px 0 24px; color: #ffffff; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.cw-footer-about { margin: 0 0 22px; color: #b8c9d2; font-size: 13px; line-height: 1.6; }
.cw-footer-column ul { margin: 0; padding: 0; list-style: none; }
.cw-footer-column li + li { margin-top: 13px; }
.cw-footer-column li a { color: #b8c9d2; font-size: 13px; line-height: 1.45; text-decoration: none; }
.cw-footer-column li a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

.cw-footer-access { display: flex; flex-direction: column; align-items: stretch; gap: 13px; margin-top: 30px; }

.cw-footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    background: #ffffff;
    color: #122b39 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cw-footer-button:hover { background: transparent; color: #ffffff !important; }
.cw-footer-text-link { color: #dce8ee !important; font-size: 12px; text-align: center; text-underline-offset: 4px; }

.cw-footer-utility { display: flex; align-items: center; justify-content: flex-end; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / 10%); }
.cw-appearance { display: flex; align-items: center; gap: 10px; color: #b8c9d2; font-size: 12px; }
.cw-appearance[hidden] { display: none !important; }

.cw-appearance select {
    min-height: 42px;
    padding: 8px 34px 8px 11px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 6px;
    background: #193746;
    color: #ffffff;
    font: inherit;
}

.cw-footer-legal { padding-block: 24px 34px; border-top: 1px solid rgb(255 255 255 / 10%); }
.cw-footer-legal-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.cw-footer-legal p { margin: 0; }
.cw-footer-legal-top p { color: #dce8ee; font-size: 12px; }
.cw-footer-disclaimer { max-width: 980px; color: #91a8b4; font-size: 10px; line-height: 1.65; }

.cw-footer a:focus-visible,
.cw-footer select:focus-visible { outline: 3px solid #8ed1f2; outline-offset: 4px; }

@media (max-width: 900px) {
    .cw-footer-main { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 1fr)); gap: 38px; }
}

@media (max-width: 760px) {
    .cw-footer-main, .cw-footer-utility, .cw-footer-legal { width: calc(100% - 36px); }
    .cw-footer-main { grid-template-columns: 1fr; gap: 42px; padding-block: 54px 40px; }
    .cw-footer-summary, .cw-footer-entity { max-width: 540px; }
    .cw-footer-column h2 { margin-bottom: 18px; }
    .cw-footer-column li + li { margin-top: 11px; }
    .cw-footer-access { max-width: 340px; }
    .cw-footer-utility { justify-content: flex-start; }
    .cw-footer-legal-top { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
    .cw-footer-main, .cw-footer-utility, .cw-footer-legal { width: calc(100% - 28px); }
    .cw-footer-button, .cw-footer-access { width: 100%; max-width: none; }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {
    .liess-hero { gap: 30px; padding-block: 65px; }
    .liess-overview { padding: 25px; }
    .liess-card { padding: 22px; }
}

@media (max-width: 782px) {
    .admin-bar .liess-header { top: 46px; }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {
    .liess-container { width: calc(100% - 36px); }
    .liess-header-inner { width: calc(100% - 28px); gap: 12px; min-height: 76px; }
    .liess-brand img { width: 125px; }
    .liess-appearance { margin-left: auto; }
    .liess-appearance select { font-size: 12px; }
    .liess-navigation { order: 4; flex-basis: 100%; padding: 12px 0; }
    .liess-navigation.is-collapsible:not(.is-open) { display: none; }
    .liess-menu { gap: 12px; flex-direction: column; align-items: stretch; }
    .liess-menu a { display: block; padding: 8px; }
    .liess-hero { grid-template-columns: 1fr; gap: 35px; padding-block: 50px; }
    .liess-hero h1 { font-size: clamp(44px, 12vw, 68px); }
    .liess-overview { transform: none; }
    .liess-card-grid { grid-template-columns: 1fr; }
    .liess-modules { padding-block: 50px; }
    .liess-principle { padding-block: 55px; }
    .liess-lead { font-size: 17px; }
    .liess-appearance { font-size: 0; }
    .liess-appearance select { font-size: 12px; }
    .lh-brand .lh-logo { width: 120px; max-height: 38px; }
}

@media (max-width: 600px) {
    .admin-bar .liess-header { top: 0; }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .cw-button, .cw-filter, .cw-slider-btn { transition: none; }
    .cw-slides { scroll-behavior: auto; }
}

/* =========================================================
   CERTWORK HOME — REQUESTED ADDITIONS
   ========================================================= */

/* Progress report: balanced text/video layout */
.cw-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
}
.cw-report-copy { margin: 0; }
.cw-report-copy p + p { margin-top: 14px; }
.cw-report-frame { width: 100%; max-width: 620px; margin: 0 auto; }

/* PMI pathways: retain the original two-column grid on desktop */
.cw-pmi-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cw-pmi-page { display: contents; }
.cw-pmi-controls { display: none; }

@media (max-width: 980px) {
    /* Modules remain a horizontal carousel at tablet/mobile sizes. */
    .cw-slides {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .cw-slide { flex: 0 0 100%; }
    .cw-slider-controls { display: flex; }
}

@media (max-width: 760px) {
    .cw-report-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cw-report-frame { max-width: 100%; }

    /* PMI: three swipeable pages containing 5, 5 and 2 pathway items. */
    .cw-pmi-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .cw-pmi-track::-webkit-scrollbar { display: none; }
    .cw-pmi-page {
        display: grid;
        flex: 0 0 100%;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 10px;
        scroll-snap-align: start;
    }
    .cw-pmi-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 14px;
    }
    .cw-pmi-controls button {
        min-height: 36px;
        padding: 6px 12px;
        border: 1px solid var(--cw-border);
        border-radius: 6px;
        background: var(--cw-card);
        color: var(--cw-text);
        font-size: 13px;
        font-weight: 600;
    }
    .cw-pmi-controls span { min-width: 38px; color: var(--cw-muted); font-size: 13px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .cw-slides, .cw-pmi-track { scroll-behavior: auto; }
}


/* =========================================================
   CERTWORK HOME — MOTION AND PRESENTATION REFINEMENTS
   ========================================================= */

/* Give the report preview a deliberate presentation surface. */
.cw-report-layout {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(30px, 4.5vw, 76px);
}
.cw-report-frame {
    position: relative;
    isolation: isolate;
    max-width: none;
    padding: clamp(12px, 1.5vw, 22px);
    border: 1px solid #d7e3f0;
    border-radius: 22px;
    background: linear-gradient(145deg, #f7faff 0%, #e8f0fa 100%);
    box-shadow: 0 24px 65px rgb(20 55 95 / 16%), 0 5px 16px rgb(20 55 95 / 8%);
}
.cw-report-frame::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 18px -12px -12px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgb(27 91 160 / 18%), rgb(27 91 160 / 3%));
    filter: blur(2px);
}
.cw-report-video {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid rgb(16 45 76 / 10%);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgb(15 32 43 / 12%);
}
.cw-video-toggle { z-index: 2; }

/* Clear, animated swipe affordance shared by the mobile carousels. */
.cw-swipe-cue {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: currentColor;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: .86;
}
.cw-swipe-hand {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    transform-origin: 50% 80%;
    animation: cwSwipeHint 1.35s ease-in-out infinite;
}
@keyframes cwSwipeHint {
    0%, 100% { transform: translateX(-4px) rotate(-12deg); }
    50% { transform: translateX(9px) rotate(8deg); }
}
.cw-slider-controls { justify-content: space-between; }
.cw-swipe-cue-modules { margin-right: auto; }

/* PMI carousel status: automatic page progression, not manual navigation. */
.cw-pmi-indicator { display: none; }

@media (min-width: 761px) {
    .cw-report-layout { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
}

@media (max-width: 760px) {
    .cw-report-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .cw-report-frame {
        width: calc(100% - 10px);
        max-width: none;
        margin: 0 auto 8px;
        padding: 12px;
        border-radius: 17px;
        box-shadow: 0 16px 38px rgb(20 55 95 / 15%);
    }
    .cw-report-frame::before { inset: 12px -6px -7px 12px; border-radius: 18px; }
    .cw-report-video { border-radius: 9px; }

    /* Compact, connected cards instead of isolated floating tiles. */
    .cw-capabilities .cw-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .cw-capabilities .cw-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        column-gap: 14px;
        row-gap: 3px;
        padding: 18px;
        border: 1px solid var(--cw-border);
        border-radius: 10px;
        background: var(--cw-card);
        box-shadow: 0 5px 16px rgb(15 32 43 / 6%);
    }
    .cw-capabilities .cw-card .cw-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }
    .cw-capabilities .cw-card h3 { grid-column: 2; margin: 0; font-size: 16px; }
    .cw-capabilities .cw-card p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.45; }

    /* The PMI pathway pages are advanced automatically every five seconds. */
    .cw-pmi-indicator {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid var(--cw-border);
    }
    .cw-pmi-position {
        flex: 0 0 auto;
        color: var(--cw-muted);
        font-size: 12px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .cw-pmi-progress {
        position: relative;
        display: block;
        flex: 1 1 auto;
        height: 4px;
        overflow: hidden;
        border-radius: 99px;
        background: var(--cw-border);
    }
    .cw-pmi-progress i {
        display: block;
        width: 33.333%;
        height: 100%;
        border-radius: inherit;
        background: var(--cw-blue-ink);
        transition: width .45s ease;
    }
    .cw-swipe-cue-pmi { flex: 0 0 auto; color: var(--cw-muted); }
    .cw-swipe-cue-modules { font-size: 11px; }
    .cw-slider-controls { flex-wrap: wrap; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .cw-swipe-hand { animation: none; }
    .cw-pmi-progress i { transition: none; }
}

/* =========================================================
   LANDING PAGE — QUIET, HIGH-VISIBILITY SECTION LINKS
   Only used for the three approved homepage destinations.
   ========================================================= */
.cw-home .cw-section-link {
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 22px;
    color: var(--cw-text);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: var(--cw-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    transition: color .18s ease, text-decoration-color .18s ease, gap .18s ease;
}
.cw-home .cw-section-link--light {
    padding: 11px 17px;
    border-radius: 6px;
    background: #ffffff;
    color: #0b3d82;
    text-decoration: none;
}

.cw-home .cw-section-link--light span {
    color: #0b3d82;
}

.cw-home .cw-section-link--light:hover,
.cw-home .cw-section-link--light:focus-visible {
    background: #eaf2ff;
    color: #082f65;
    text-decoration: none;
}
.cw-home .cw-section-link span {
    color: currentColor;
    font-size: 19px;
    line-height: 1;
    transition: transform .18s ease;
}
.cw-home .cw-section-link:hover,
.cw-home .cw-section-link:focus-visible {
    color: var(--cw-text);
    text-decoration-color: currentColor;
    gap: 11px;
}
.cw-home .cw-section-link:hover span,
.cw-home .cw-section-link:focus-visible span { transform: translateX(2px); }
.cw-home #cw-pathway-cards,
.cw-home #cw-report-preview,
.cw-home #cw-module-library { scroll-margin-top: 128px; }
@media (prefers-reduced-motion: reduce) {
    .cw-home .cw-section-link,
    .cw-home .cw-section-link span { transition: none; }
}

/* =========================================================
   CERTWORK HOME — clean horizontal STICKY SECTION BAR
   ========================================================= */
.cw-home .cw-programmes {
    background: var(--cw-alt);
}
.cw-home .cw-programmes-head {
    padding-top: clamp(64px, 6vw, 96px);
    padding-bottom: 28px;
}
.cw-home .cw-programmes-head .cw-section-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.cw-home .cw-programmes-head .cw-section-intro h2,
.cw-home .cw-programmes-head .cw-section-intro p {
    margin-inline: auto;
}
.cw-home .cw-programmes-head .cw-section-intro p { max-width: 760px; }
.cw-home .cw-programmes-head .cw-section-link { justify-content: center; }

.cw-sticky-nav {
    position: sticky;
    top: 106px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 64px);
    width: min(1180px, calc(100% - 48px));
    min-height: 66px;
    margin: 0 auto clamp(28px, 3vw, 44px);
    padding: 10px 28px;
    border: 1px solid rgb(17 24 39 / 7%);
    border-radius: 16px;
    background: var(--cw-card);
    box-shadow: 0 8px 28px rgb(15 32 43 / 10%), 0 1px 3px rgb(15 32 43 / 5%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.cw-sticky-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--cw-text);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease;
}
.cw-sticky-nav a:hover { color: var(--cw-blue-ink); }
.cw-sticky-nav a:focus-visible { outline-offset: 3px; }

/* The three workflow steps use the same soft colour language as the hero. */
.cw-home .cw-process-step {
    background-color: var(--cw-hero-base);
    background-image:
        radial-gradient(90% 100% at 0% 0%, var(--cw-hero-mint) 0%, transparent 72%),
        radial-gradient(90% 100% at 100% 100%, var(--cw-hero-lilac) 0%, transparent 76%);
    border-color: var(--cw-border);
    box-shadow: var(--cw-shadow);
}
.cw-home .cw-step-number { display: none !important; }

/* Founder/team cards: editorial image first, then copy and a quiet text CTA. */
.cw-home .cw-org-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 16px;
    background: var(--cw-card);
    box-shadow: var(--cw-shadow);
}
.cw-home .cw-org-card-image {
    display: block;
    width: 100%;
    height: clamp(220px, 24vw, 340px);
    object-fit: cover;
    object-position: center;
}
.cw-home .cw-org-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 2.5vw, 40px);
}
.cw-home .cw-org-card-content h3 { margin-bottom: 12px; }
.cw-home .cw-org-card-content p { margin-bottom: 22px; }
.cw-home .cw-org-card-content .cw-section-link { margin-top: auto; }

/* Centre the organisation introduction and keep the hero action optically aligned. */
.cw-home #cw-orgs-title,
.cw-home #cw-orgs-title + p { margin-inline: auto; text-align: center; }
.cw-home #cw-orgs-title { max-width: 900px; }
.cw-home #cw-orgs-title + p { max-width: 780px; }
.cw-home .cw-org-types .cw-section-intro {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}
/* Centre the hero trial action and its reassurance line as one grouped element. */
.cw-home .cw-hero-trial-group {
    display: flex;
    width: min(100%, 640px);
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    margin: 34px 0 0;
    text-align: center;
}
.cw-home .cw-hero-actions {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.cw-home .cw-hero-actions .cw-button {
    margin-inline: auto;
}
.cw-home .cw-trial-note {
    width: 100%;
    margin: 13px 0 0;
    text-align: center;
}


/* Main navigation — full-width and compact scrolling states */

.cw-sticky-nav {
    position: sticky;
    top: 18px;
    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 66px;

    margin: 0 auto 44px;
    padding: 10px clamp(24px, 5vw, 80px);

    border: 1px solid transparent;
    border-radius: 0;

    background: #ffffff;
    box-shadow: none;

    font-family: "Segoe UI", Arial, sans-serif;

    transition:
        width 0.35s ease,
        border-radius 0.35s ease,
        box-shadow 0.35s ease,
        padding 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

/* Navigation links */

.cw-sticky-nav-links,
.cw-sticky-nav-actions {
    display: flex;
    align-items: center;
}

.cw-sticky-nav-links {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: clamp(22px, 3vw, 46px);
}

.cw-sticky-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    color: #151b22;
    opacity: 1;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;

    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.cw-sticky-nav a:hover {
    color: #294766;
}

.cw-sticky-nav a:focus-visible {
    outline: 2px solid #294766;
    outline-offset: 4px;
}

/* Right-side actions */

.cw-sticky-nav-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.cw-sticky-nav-actions a {
    min-height: 40px;
    padding: 0 16px;

    border: 1px solid #102431;
    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;
}

.cw-sticky-nav-actions .cw-sticky-nav-plans {
    color: #ffffff;
    background: #102431;
}

.cw-sticky-nav-actions .cw-sticky-nav-trial {
    color: #102431;
    background: #ffffff;
}

.cw-sticky-nav-actions .cw-sticky-nav-plans:hover {
    color: #ffffff;
    background: #1d3c54;
}

.cw-sticky-nav-actions .cw-sticky-nav-trial:hover {
    color: #102431;
    background: #f3f6f8;
}

/* Compact floating state */

.cw-sticky-nav.is-compact {
    width: min(1360px, calc(100% - 48px));

    min-height: 60px;
    margin-inline: auto;

    padding: 7px clamp(24px, 3vw, 42px);

    border-color: rgb(17 24 39 / 7%);
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgb(15 32 43 / 10%),
        0 1px 3px rgb(15 32 43 / 5%);

    transform: translateY(0);
}

/* Tablet */

@media (max-width: 1100px) {
    .cw-sticky-nav-links {
        gap: 18px;
    }

    .cw-sticky-nav a {
        font-size: 13px;
    }
}

/* Smaller screens */

@media (max-width: 900px) {
    .cw-sticky-nav {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 5px;
    }

    .cw-sticky-nav-links {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 22px;
    }

    .cw-sticky-nav-actions {
        justify-content: center;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .cw-sticky-nav {
        top: 96px;
        width: 100%;
        min-height: 58px;
        padding: 9px 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .cw-sticky-nav::-webkit-scrollbar {
        display: none;
    }

    .cw-sticky-nav-links,
    .cw-sticky-nav-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .cw-sticky-nav.is-compact {
        width: calc(100% - 28px);
        min-height: 54px;
        padding: 7px 12px;
        border-radius: 14px;
    }

    .cw-sticky-nav-actions {
        gap: 8px;
    }

    .cw-sticky-nav-actions a {
        min-height: 36px;
        padding-inline: 12px;
        font-size: 12px;
    }
}

/* WordPress admin toolbar */

.admin-bar .cw-sticky-nav {
    top: 50px;
}

@media (max-width: 600px) {
    .admin-bar .cw-sticky-nav {
        top: 96px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .cw-sticky-nav {
        transition: none;
    }
}

.cw-home .cw-programme-pathways { background: var(--cw-alt); }

.admin-bar .cw-sticky-nav { top: 138px; }
@media (max-width: 760px) { .admin-bar .cw-sticky-nav { top: 128px; } }


/* =========================================================
   FIXES — CTA HOVER VISIBILITY + SOFT DRAWN LINES
   (Sticky navigation is intentionally untouched.)
   ========================================================= */

/* "Module library" pill: keep dark text/arrow in every state */
.cw-home .cw-section-link.cw-section-link--light,
.cw-home .cw-section-link.cw-section-link--light span { color: #0b3d82; }
.cw-home .cw-section-link.cw-section-link--light:hover,
.cw-home .cw-section-link.cw-section-link--light:focus-visible,
.cw-home .cw-section-link.cw-section-link--light:hover span,
.cw-home .cw-section-link.cw-section-link--light:focus-visible span { background: #eaf2ff; color: #082f65; }

/* Black CTAs: white text in every state; faint edge on dark mode */
.cw-home .cw-button-primary,
.cw-home .cw-button-primary:hover,
.cw-home .cw-button-primary:focus-visible { color: #ffffff; }
:root[data-liess-theme="dark"] .cw-home .cw-button-primary { border-color: rgb(255 255 255 / 35%); }
@media (prefers-color-scheme: dark) {
    :root:not([data-liess-theme]) .cw-home .cw-button-primary { border-color: rgb(255 255 255 / 35%); }
}

/* Sample-data side panel: title keeps its colour on hover */
.cw-jr-btn:hover,
.cw-jr-btn:focus-visible { color: var(--cw-head); }

/* Soft line that draws itself under CTAs on hover */
.cw-button,
.cw-footer-button,
.cw-home .cw-section-link--light,
.cw-jr-btn,
.cw-tour-btn { position: relative; }

.cw-button::after,
.cw-footer-button::after,
.cw-home .cw-section-link--light::after,
.cw-tour-btn::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.cw-footer-button::after,
.cw-tour-btn::after,
.cw-home .cw-section-link--light::after { left: 16px; right: 16px; bottom: 6px; }

.cw-jr-btn::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 8px;
    bottom: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .25;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.cw-button:hover::after,
.cw-button:focus-visible::after,
.cw-footer-button:hover::after,
.cw-footer-button:focus-visible::after,
.cw-home .cw-section-link--light:hover::after,
.cw-home .cw-section-link--light:focus-visible::after,
.cw-tour-btn:hover::after,
.cw-tour-btn:focus-visible::after,
.cw-jr-btn:hover::after,
.cw-jr-btn:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
    .cw-button::after,
    .cw-footer-button::after,
    .cw-home .cw-section-link--light::after,
    .cw-tour-btn::after,
    .cw-jr-btn::after { transition: transform .35s cubic-bezier(.22, .75, .25, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .cw-button:hover::after,
    .cw-jr-btn:hover::after { transition: none; }
}

/* Mobile stability (does not touch the sticky nav) */
.cw-home { overflow-x: clip; }

@media (max-width: 760px) {
    .cw-home .cw-hero-actions .cw-button,
    .cw-trial-actions .cw-button,
    .cw-trial-actions .cw-trial-create { width: 100%; max-width: 420px; min-height: 48px; margin-inline: auto; }
    .cw-hero-copy h1 { overflow-wrap: break-word; }
}


/* =========================================================
   STICKY NAV — SOFT DRAWN HOVER LINES (additive only;
   positioning, sizing and scroll behaviour are unchanged)
   ========================================================= */

.cw-sticky-nav a { position: relative; }

.cw-sticky-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

/* Pill buttons on the right: keep the line inside the rounded edges */
.cw-sticky-nav-actions a::after { left: 16px; right: 16px; bottom: 6px; }

.cw-sticky-nav a:hover::after,
.cw-sticky-nav a:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
    .cw-sticky-nav a::after { transition: transform .35s cubic-bezier(.22, .75, .25, 1); }
}

@media (max-width: 600px) {
    .cw-sticky-nav-actions a::after { left: 12px; right: 12px; }
}