/* =====================================================================
   dc5-public.css  -  the DefCon5 public site (Site.Master, Index, the
   marketing pages, login/signup and the demos).

   Same family as the dashboard (dc5-charts.css + dc5-site.css): the same
   fonts, square corners, neon glow and spaced-capital labels. But where the
   dashboard is a cool violet "Neon night", the public site is a warm
   "Red alert": near-black ink, alarm red, hot magenta and amber, bigger
   editorial type, the thin magenta frame and the red alarm pulse.
   Load after dc5-charts.css (the demos' charts use its colours).
   ===================================================================== */

.pub {
    --ink: #07050a;
    --ink-2: #12090f;
    --ink-3: #1c0d17;
    --panel: rgba(26, 12, 22, 0.84);
    --edge: rgba(255, 70, 120, 0.22);
    --edge-2: rgba(255, 70, 120, 0.45);
    --fg: #fdf0f3;
    --fg-dim: #c39aa9;
    --fg-faint: #8a6676;
    --red: #ff2448;
    --hot: #ff3d9a;
    --amber: #ffb02e;
    --violet: #8c5bff;
    --cyan: #2fd3ff;
    --mint: #3dffb5;
    --accent: var(--red);
    --accent-2: var(--hot);
    --font-display: "Sora", "Trebuchet MS", sans-serif;
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-data: "JetBrains Mono", ui-monospace, Consolas, monospace;
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--fg);
    font: 400 15px/1.6 var(--font-body);
    color-scheme: dark;
}

    .pub *, .pub *::before, .pub *::after {
        box-sizing: border-box;
    }

    .pub a {
        color: var(--hot);
        text-decoration: none;
    }

        .pub a:hover {
            color: var(--fg);
        }

    .pub ::selection {
        background: var(--red);
        color: #fff;
    }

/* ---------- behind every page: a slow red glow and a fine scanline ---------- */
.pub-glow {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(60% 40% at 50% -5%, rgba(255, 36, 72, .28), transparent 70%), radial-gradient(40% 35% at 100% 60%, rgba(255, 61, 154, .14), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(140, 91, 255, .12), transparent 70%);
}

    .pub-glow::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: .07;
        background: repeating-linear-gradient(0deg, rgba(255,255,255,.6) 0 1px, transparent 1px 3px);
    }

/* the thin magenta frame round the window, as before */
.pub-frame i {
    position: fixed;
    z-index: 40;
    background: linear-gradient(var(--hot), var(--red));
    pointer-events: none;
}

.pub-frame .t, .pub-frame .b {
    left: 0;
    right: 0;
    height: 3px;
}

.pub-frame .t {
    top: 0;
}

.pub-frame .b {
    bottom: 0;
    background: linear-gradient(90deg, var(--red), var(--hot), var(--violet));
}

.pub-frame .l, .pub-frame .r {
    top: 0;
    bottom: 0;
    width: 3px;
}

.pub-frame .l {
    left: 0;
}

.pub-frame .r {
    right: 0;
}

/* ---------- the top bar ---------- */
.pub-logo {
    position: fixed;
    z-index: 2147483000;
    top: 6px;
    left: 14px;
}

    .pub-logo img {
        position: static !important;
        height: 118px !important;
        width: auto;
        filter: drop-shadow(0 0 18px rgba(255, 36, 72, .45));
        transition: transform .3s ease;
        transform-origin: 0 0;
    }

        .pub-logo img:hover {
            transform: scale(1.12);
        }

.pub-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(7, 5, 10, .96), rgba(7, 5, 10, .82));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--edge);
}

    .pub-bar::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--red) 30%, var(--hot) 60%, transparent);
        opacity: .8;
    }

    .pub-bar .container {
        min-height: 58px;
    }

    .pub-bar .navbar-brand {
        margin: 0;
        padding: 0;
    }

.pub-bar-gap {
    width: 180px;
    flex: none;
}

.pub-bar .navbar-nav {
    align-items: center;
    gap: 2px;
}

.pub-bar .nav-link {
    position: relative;
    padding: 18px 12px !important;
    font: 500 11.5px var(--font-data) !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-dim) !important;
    transition: color .2s;
}

    .pub-bar .nav-link::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 10px;
        height: 2px;
        background: var(--red);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s cubic-bezier(.2,.8,.2,1);
    }

    .pub-bar .nav-link:hover, .pub-bar .nav-link.active {
        color: var(--fg) !important;
    }

        .pub-bar .nav-link:hover::after, .pub-bar .nav-link.active::after {
            transform: scaleX(1);
        }

.pub-bar .nav-sep {
    width: 1px;
    height: 20px;
    background: var(--edge-2);
    margin: 0 8px;
}

.pub-bar .nav-label {
    font: 500 10px var(--font-data);
    letter-spacing: .16em;
    color: var(--fg-faint);
    padding: 0 4px 0 2px;
}

.pub-bar .nav-link.demo {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

    .pub-bar .nav-link.demo::before {
        content: attr(data-n);
        margin-right: 6px;
        color: var(--accent-of, var(--amber));
    }
/* Login / Dashboard: an outlined red button with the alarm light */
/* Login / Dashboard: no box, just the blinking alarm light beside the word */
.pub-bar .nav-link.cta {
    color: var(--fg) !important;
    border: 0;
    padding-left: 26px !important;
    margin-left: 6px;
    box-shadow: none;
}

    .pub-bar .nav-link.cta::after {
        display: none;
    }

    .pub-bar .nav-link.cta::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin-top: -3.5px;
        background: var(--red);
        box-shadow: 0 0 10px var(--red);
        animation: pub-alarm 1.6s ease-in-out infinite;
    }

    .pub-bar .nav-link.cta:hover {
        background: none;
        color: #ff2448 !important;
    }
/* Logout: red on every page (fixed red, so the demo colours never turn it green or blue) */
.pub-bar .nav-link.quiet {
    color: #ff2448 !important;
}

    .pub-bar .nav-link.quiet:hover {
        color: #ff7a8e !important;
    }

.pub-bar .navbar-toggler {
    border-radius: 0;
    border-color: var(--edge-2);
}

@keyframes pub-alarm {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px var(--red);
    }

    50% {
        opacity: .25;
        box-shadow: 0 0 2px var(--red);
    }
}

/* ---------- where a page goes ---------- */
.pub-main {
    padding: 34px 0 90px;
}

    .pub-main > .container {
        max-width: 1180px;
    }

.pub-page {
    position: relative;
    text-align: left;
}

/* the page heading */
.pub-hero {
    position: relative;
    padding: 92px 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--edge);
}

.pub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font: 500 11px var(--font-data);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}
/* (no square bullet before the small heading: kept symmetrical) */
.pub-hero h1 {
    margin: 0;
    max-width: 900px;
    font: 800 clamp(34px, 5vw, 60px)/1.14 var(--font-display);
    letter-spacing: -.01em;
    padding-bottom: .12em;
    background: linear-gradient(95deg, var(--fg) 0%, var(--fg) 45%, var(--accent-2) 80%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pub-hero .pub-lede {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 18px;
    color: var(--fg-dim);
}

.pub-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* sections, cards, rows */
.pub-section {
    margin: 54px 0;
}

.pub-h2 {
    margin: 0 0 18px;
    font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--font-display);
    color: var(--fg);
}

.pub-h3 {
    margin: 0 0 8px;
    font: 700 18px/1.3 var(--font-display);
    color: var(--fg);
}

.pub-label {
    font: 500 10.5px var(--font-data);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

.pub-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--edge);
    padding: 26px 26px 24px;
    backdrop-filter: blur(8px);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

    .pub-card:hover {
        border-color: var(--edge-2);
    }

    .pub-card p {
        margin: 0;
        color: var(--fg-dim);
    }

    .pub-card .pub-h3 + p {
        margin-top: 6px;
    }

.pub-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
    .pub-grid.g2, .pub-grid.g3, .pub-grid.g4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .pub-grid.g3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pub-grid.g4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* a feature: picture on one side, words on the other */
.pub-row {
    display: grid;
    gap: 30px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 0;
    border-top: 1px solid var(--edge);
}

@media (min-width: 860px) {
    .pub-row {
        grid-template-columns: 1fr 1.25fr;
    }

        .pub-row.flip > :first-child {
            order: 2;
        }
}

.pub-row h2, .pub-row h3 {
    margin-top: 0;
}

.pub-figure {
    position: relative;
    padding: 18px;
    background: var(--ink-2);
    border: 1px solid var(--edge);
}

    .pub-figure img {
        display: block;
        width: 100%;
        height: auto;
    }
/* the accent corners: on all four corners, so the frame is symmetrical */
.pub-figure {
    background: linear-gradient(var(--accent), var(--accent)) left top / 18px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) left top / 2px 18px no-repeat, linear-gradient(var(--accent), var(--accent)) right top / 18px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) right top / 2px 18px no-repeat, linear-gradient(var(--accent), var(--accent)) left bottom / 18px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) left bottom / 2px 18px no-repeat, linear-gradient(var(--accent), var(--accent)) right bottom / 18px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) right bottom / 2px 18px no-repeat, var(--ink-2);
    background-origin: border-box;
}

.pub-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

    .pub-list li {
        position: relative;
        padding: 9px 0 9px 26px;
        border-bottom: 1px solid rgba(255, 70, 120, .1);
        color: var(--fg-dim);
    }

        .pub-list li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: 17px;
            width: 10px;
            height: 2px;
            background: var(--accent);
            box-shadow: 0 0 8px var(--accent);
        }

/* the big statement band */
.pub-band {
    position: relative;
    margin: 64px 0;
    padding: 46px 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(255, 36, 72, .16), rgba(140, 91, 255, .12));
    border: 1px solid var(--edge-2);
}

    .pub-band p {
        margin: 0 auto;
        max-width: 820px;
        font: 600 clamp(18px, 2.2vw, 24px)/1.45 var(--font-display);
        color: var(--fg);
    }

    .pub-band::before, .pub-band::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .pub-band::before {
        top: 0;
    }

    .pub-band::after {
        bottom: 0;
    }

/* buttons */
.pub .pub-btn, .pub .dc5-btn, .pub input[type="submit"], .pub input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 24px;
    font: 600 12px var(--font-data);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 36, 72, .5);
    transition: box-shadow .25s, background .2s, color .2s;
}

    .pub .pub-btn:hover, .pub .dc5-btn:hover, .pub input[type="submit"]:hover, .pub input[type="button"]:hover {
        color: #fff;
        box-shadow: 0 0 24px rgba(255, 36, 72, .55);
        background: #ff3b5c;
    }

    .pub .pub-btn.ghost, .pub .dc5-btn.ghost {
        background: transparent;
        color: var(--fg);
        border-color: var(--edge-2);
    }

        .pub .pub-btn.ghost:hover, .pub .dc5-btn.ghost:hover {
            border-color: var(--accent);
            color: var(--fg);
            box-shadow: inset 0 0 16px rgba(255, 36, 72, .25);
        }

    .pub .dc5-btn.sm {
        min-height: 32px;
        padding: 0 14px;
        font-size: 10.5px;
    }

.pub .pub-link {
    font: 600 12px var(--font-data);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hot);
}

    .pub .pub-link:hover {
        color: var(--fg);
    }

/* form fields */
.pub input[type="text"], .pub input[type="email"], .pub input[type="password"], .pub input[type="number"], .pub textarea, .pub select, .pub .dc5-input, .pub .dc5-select {
    font: 500 14px var(--font-body);
    color: var(--fg);
    background: rgba(7, 5, 10, .7);
    border: 1px solid var(--edge-2);
    border-radius: 0;
    padding: 10px 12px;
    min-height: 44px;
    max-width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.pub select, .pub .dc5-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--hot) 50%), linear-gradient(-45deg, transparent 50%, var(--hot) 50%);
    background-position: right 16px top 50%, right 11px top 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

    .pub select option {
        background: var(--ink-2);
        color: var(--fg);
    }

    .pub input:focus, .pub textarea:focus, .pub select:focus {
        border-color: var(--hot);
        box-shadow: 0 0 0 1px var(--hot), 0 0 18px rgba(255, 61, 154, .35);
    }

.pub input:-webkit-autofill, .pub input:-webkit-autofill:hover, .pub input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0e0810 inset !important;
    -webkit-text-fill-color: var(--fg) !important;
    caret-color: var(--fg);
    transition: background-color 600000s 0s;
}

.pub input[type="checkbox"], .pub input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    border: 1px solid var(--fg-dim);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

    .pub input[type="checkbox"]:checked, .pub input[type="radio"]:checked {
        background: var(--accent);
        border-color: var(--accent);
        box-shadow: 0 0 12px var(--accent);
    }
/* solid when chosen: no dark ring inside */
.pub input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    outline: none;
}
    /* the slider's knob: a round dot in the colours of the scale it slides on */
    .pub input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 12px var(--accent-2);
    }

    .pub input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 12px var(--accent-2);
    }

/* text tones (used by restyled labels) */
.pub .dc5-warn {
    color: var(--red);
}

.pub .dc5-ok {
    color: var(--mint);
}

.pub .dc5-accent {
    color: var(--hot);
}

.pub .dc5-muted {
    color: var(--fg-dim);
}

.pub .dc5-fs-xs {
    font-size: 12px;
}

.pub .dc5-fs-s {
    font-size: 13.5px;
}

.pub .dc5-fs-m {
    font-size: 15px;
}

.pub .dc5-fs-l {
    font: 600 18px var(--font-display);
}

.pub .dc5-fs-xl {
    font: 700 24px var(--font-display);
}

.pub .dc5-section-title {
    display: block;
    padding: 10px 16px;
    font: 700 15px var(--font-display);
    color: var(--fg);
    text-align: left;
    background: linear-gradient(90deg, rgba(255, 36, 72, .3), transparent 85%);
    border-left: 3px solid var(--accent);
}

/* scrollbars */
.pub, .pub * {
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
}

    .pub ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .pub ::-webkit-scrollbar-thumb {
        background: linear-gradient(var(--red), var(--hot));
        border-radius: 0;
    }

    .pub ::-webkit-scrollbar-track {
        background: transparent;
    }

/* ---------- Alert (News): numbered topics that open in place ---------- */
.pub-acc {
    counter-reset: acc;
    max-width: 900px;
}

.pub-acc-item {
    counter-increment: acc;
    position: relative;
    margin: 0 0 10px;
    background: var(--panel);
    border: 1px solid var(--edge);
    transition: border-color .2s;
}

    .pub-acc-item:hover, .pub-acc-item:has(.pub-acc-a) {
        border-color: var(--edge-2);
    }

    .pub-acc-item:has(.pub-acc-a) {
        box-shadow: 0 0 0 1px var(--red), 0 0 18px rgba(255, 36, 72, .18);
    }

.pub a.pub-acc-q {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 18px 56px 18px 22px;
    position: relative;
    font: 600 16px/1.45 var(--font-body);
    color: var(--fg);
}
/* (no numbers before the Alert items) */
.pub-acc-q::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--hot);
    border-bottom: 2px solid var(--hot);
    transform: rotate(45deg);
    transition: transform .25s;
}

.pub-acc-item:has(.pub-acc-a) .pub-acc-q::after {
    transform: rotate(225deg);
    margin-top: -2px;
}

.pub a.pub-acc-q:hover {
    color: var(--hot);
}

.pub-acc-a {
    padding: 0 26px 22px 22px;
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- Guide: the icon strip and the topic shown ---------- */
/* The icons are black line drawings, so each sits on a bright "light-table" tile. */
.pub-guide-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 36px;
}

    .pub-guide-icons img {
        width: 72px !important;
        height: 72px;
        padding: 11px;
        object-fit: contain;
        background: linear-gradient(160deg, #ffc4d2 0%, #e3c3f3 100%);
        border: 1px solid rgba(255, 210, 225, .6);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35);
        cursor: pointer;
        transition: border-color .2s, box-shadow .2s, transform .2s;
    }

        .pub-guide-icons img:hover {
            border-color: var(--red);
            background: linear-gradient(160deg, #ffd6e0 0%, #ecd4f7 100%);
            box-shadow: 0 0 0 2px var(--red), 0 0 22px rgba(255, 36, 72, .55);
            transform: translateY(-3px);
        }

.pub-guide-topic {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 34px;
    background: var(--panel);
    border: 1px solid var(--edge-2);
    text-align: left;
}

    .pub-guide-topic, .pub-guide-topic > tbody, .pub-guide-topic tr, .pub-guide-topic td {
        display: block;
        width: auto !important;
    }

        .pub-guide-topic td:empty {
            display: none;
        }

        .pub-guide-topic p.pub-guide-h {
            margin: 0 0 12px;
            font: 700 24px/1.2 var(--font-display);
            color: var(--fg);
            text-align: left;
        }

            .pub-guide-topic p.pub-guide-h + p.pub-guide-p + p.pub-guide-h {
                margin-top: 26px;
            }

        .pub-guide-topic p.pub-guide-p {
            margin: 0;
            font-size: 15.5px;
            line-height: 1.7;
            color: var(--fg-dim);
            text-align: left;
        }

.pub .pub-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- login / signup / reset ---------- */
.pub-auth {
    max-width: 460px;
    margin: 30px auto 0;
}

.pub-auth-card {
    position: relative;
    padding: 34px 34px 30px;
    background: var(--panel);
    border: 1px solid var(--edge-2);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 36, 72, .12);
    text-align: left;
}

    .pub-auth-card::before {
        content: "";
        position: absolute;
        left: -1px;
        right: -1px;
        top: -1px;
        height: 3px;
        background: linear-gradient(90deg, var(--red), var(--hot), var(--violet));
    }

    .pub-auth-card h2 {
        margin: 0 0 4px;
        font: 800 28px/1.1 var(--font-display);
        color: var(--fg);
    }

    .pub-auth-card .pub-sub {
        margin: 0 0 22px;
        color: var(--fg-dim);
        font-size: 14px;
    }

    .pub-auth-card label, .pub-auth-card .pub-field-label {
        display: block;
        margin: 14px 0 6px;
        font: 500 10.5px var(--font-data);
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--fg-dim);
    }

    .pub-auth-card input[type="text"], .pub-auth-card input[type="email"], .pub-auth-card input[type="password"], .pub-auth-card select {
        width: 100% !important;
    }

    .pub-auth-card input[type="submit"] {
        width: 100% !important;
        margin-top: 22px;
    }

    .pub-auth-card .pub-two {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pub-auth-card hr {
        border: 0;
        height: 1px;
        margin: 22px 0 6px;
        background: var(--edge);
        opacity: 1;
    }

    .pub-auth-card .pub-msg, .pub-auth-card .dc5-warn {
        display: block;
        margin-top: 12px;
        color: var(--red);
        font-weight: 600;
    }

    .pub-auth-card .pub-plan {
        margin-top: 12px;
        padding: 12px 14px;
        background: rgba(255, 36, 72, .08);
        border: 1px solid var(--edge);
        font-size: 13px;
        color: var(--fg-dim);
    }

        .pub-auth-card .pub-plan span {
            display: block;
        }

    .pub-auth-card .pub-price {
        margin-top: 6px;
        font: 700 20px var(--font-display) !important;
        color: var(--fg) !important;
    }

.pub-auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
}

    .pub-auth-links a {
        font: 500 12px var(--font-data);
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--fg-dim);
    }

        .pub-auth-links a:hover {
            color: var(--hot);
        }

.pub-auth-card a.pub-inline {
    font: 500 12px var(--font-data);
    letter-spacing: .08em;
    color: var(--hot);
}

.pub-auth-card .pub-auth-card {
    padding: 0;
    margin-top: 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
}

    .pub-auth-card .pub-auth-card::before {
        display: none;
    }

/* ---------- Pricing plans (the plan cards come from PricePlans.ascx) ---------- */
.pub-plans table {
    margin: 0 auto;
}

.pub-plans td, .pub-plans span, .pub-plans div {
    color: var(--fg);
}

.pub-logo-rule {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 760px;
    margin: 50px auto 0;
    padding: 24px 28px;
}

    .pub-logo-rule img {
        width: 50px;
        height: 50px;
    }

/* ---------- Contact ---------- */
/* The contact card leads; the two projects sit smaller, side by side, below it. */
.pub-contact {
    display: block;
}

.pub-contact-main {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 34px 36px;
    border-color: var(--edge-2);
    box-shadow: 0 0 0 1px rgba(255, 36, 72, .08), 0 18px 50px rgba(0, 0, 0, .35);
}

@media (min-width: 860px) {
    .pub-contact-main {
        grid-template-columns: 1fr 1.15fr;
    }
}

.pub-card .pub-person {
    font: 700 34px/1.15 var(--font-display);
    color: var(--fg);
    margin: 8px 0 6px;
}

.pub-contact-ways {
    display: grid;
    gap: 12px;
}

.pub-contact-way {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    text-decoration: none;
    background: rgba(255, 36, 72, .06);
    border: 1px solid var(--edge-2);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .pub-contact-way:hover {
        border-color: var(--red);
        background: rgba(255, 36, 72, .12);
        box-shadow: 0 0 20px rgba(255, 36, 72, .3);
    }

.pub-contact-val {
    font: 600 clamp(17px, 2vw, 21px)/1.3 var(--font-data);
    color: var(--fg);
    overflow-wrap: anywhere;
}

.pub-contact-more {
    margin-top: 44px;
}

.pub-contact-more-h {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

    .pub-contact-more-h::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--edge);
    }

.pub-contact-projects {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
    .pub-contact-projects {
        grid-template-columns: 1fr 1fr;
    }
}

.pub-contact-projects .pub-project {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .02);
    border-color: var(--edge);
    opacity: .88;
}

    .pub-contact-projects .pub-project:hover {
        opacity: 1;
    }

    .pub-contact-projects .pub-project > a:has(img) {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    .pub-contact-projects .pub-project > :not(a:has(img)) {
        grid-column: 2;
    }

.pub-project img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid var(--edge);
}

.pub-contact-projects .pub-label {
    font-size: 9.5px;
}

.pub-contact-projects .pub-h3 {
    margin: 4px 0 2px;
    font-size: 15.5px;
}

    .pub-contact-projects .pub-h3 .pub-link {
        font-size: 10px;
    }

.pub-project .pub-h3 a {
    color: var(--fg);
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font: 500 10.5px var(--font-data);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Index: the red alert landing ---------- */
.pub-index {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    transition: background-color .08s linear;
}

    .pub-index::before {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        pointer-events: none;
        z-index: 0;
        opacity: .1;
        background: repeating-linear-gradient(0deg, rgba(255,255,255,.7) 0 1px, transparent 1px 3px);
    }

.pub-classif {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 6px 0;
    text-align: center;
    font: 600 11px var(--font-data);
    letter-spacing: .32em;
    color: #ff5a72;
    background: rgba(0, 0, 0, .45);
    border-color: rgba(255, 36, 72, .5);
    border-style: solid;
    border-width: 0;
}

    .pub-classif.top {
        top: 0;
        border-bottom-width: 1px;
    }

    .pub-classif.bottom {
        bottom: 0;
        border-top-width: 1px;
    }

.pub-index form {
    position: relative;
    z-index: 1;
    width: 100%;
}

.pub-index-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 70px 20px;
}

    .pub-index-stack img.pub-index-logo {
        max-width: min(520px, 86vw);
        height: auto;
        margin-bottom: 26px;
        filter: drop-shadow(0 0 30px rgba(255, 36, 72, .5));
    }

    .pub-index-stack table {
        border-collapse: separate;
    }

    .pub-index-stack td {
        padding: 5px 0 !important;
        border: 0 !important;
    }

.pub-index a.pub-index-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    width: min(420px, 86vw) !important;
    padding: 15px 22px;
    font: 600 13px var(--font-data);
    letter-spacing: .22em;
    color: var(--fg);
    background: rgba(10, 6, 9, .7);
    border: 1px solid rgba(255, 70, 120, .35);
    text-decoration: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .pub-index a.pub-index-btn:hover {
        border-color: var(--red);
        background: rgba(255, 36, 72, .14);
        box-shadow: 0 0 26px rgba(255, 36, 72, .35);
        color: #fff;
    }

    .pub-index a.pub-index-btn.alarm {
        border-color: var(--red);
        color: #fff;
        background: rgba(255, 36, 72, .18);
    }

        .pub-index a.pub-index-btn.alarm::before {
            content: "";
            width: 9px;
            height: 9px;
            background: var(--red);
            box-shadow: 0 0 12px var(--red);
            animation: pub-alarm 1.2s ease-in-out infinite;
        }

/* the footer */
.pub-foot {
    margin-top: 80px;
    padding: 26px 0 10px;
    border-top: 1px solid var(--edge);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    justify-content: space-between;
    font: 500 11px var(--font-data);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

    .pub-foot a {
        color: var(--fg-dim);
    }

        .pub-foot a:hover {
            color: var(--hot);
        }

@media (max-width: 760px) {
    .pub-logo img {
        height: 96px !important;
    }

    .pub-bar-gap {
        width: 100px;
    }

    .pub-hero {
        padding-top: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-bar .nav-link.cta::before, .pub-index a.pub-index-btn.alarm::before {
        animation: none;
    }
}

/* Features: twelve cards, each in its own colour */
.pub-feature {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .pub-feature::before {
        content: "";
        position: absolute;
        left: -1px;
        right: -1px;
        top: -1px;
        height: 2px;
        background: var(--accent);
        box-shadow: 0 0 14px var(--accent);
    }

.pub-feature-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

    .pub-feature-top img {
        width: 56px;
        height: 56px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 50%, transparent));
    }

.pub-feature .pub-h3 {
    color: var(--accent);
}

.pub-feature-kicker {
    font: 500 11px/1.5 var(--font-data) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg) !important;
    opacity: .8;
}

.pub-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pub input, .pub select, .pub textarea {
    text-transform: none;
    letter-spacing: normal;
}


/* =====================================================================
   THE DEMOS - each one its own world.
   The whole page (bar, frame, glow, buttons) is recoloured from the
   demo's <main>, so each demo stands apart from the red public site:
     Demo 1  Colors   "Aurora"   deep ocean blue, teal and aurora green
     Demo 2  Brands   "Retail"   warm amber, with every input in blue
     Demo 3  Sectors  "Signal"   black-green, electric blue and bright lime
   No grey panels: every surface is tinted with its demo's colour.
   ===================================================================== */

/* ---------- shared demo pieces ---------- */
.pub-demo {
    --accent: var(--amber);
    --accent-2: var(--red);
}

    .pub-demo .pub-hero h1 {
        background-image: linear-gradient(95deg, var(--fg) 30%, var(--accent-2) 70%, var(--accent));
    }

.pub-demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 8px;
}

    .pub-demo-tabs a {
        padding: 8px 14px;
        border: 1px solid var(--edge);
        font: 500 11px var(--font-data);
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--fg-dim);
    }

        .pub-demo-tabs a.on {
            border-color: var(--accent);
            color: var(--fg);
            box-shadow: inset 0 -2px 0 var(--accent);
        }

        .pub-demo-tabs a:hover {
            color: var(--fg);
            border-color: var(--edge-2);
        }

.pub-demo-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--edge);
    padding: 26px;
}

    .pub-demo-panel::before {
        content: "";
        position: absolute;
        left: -1px;
        right: -1px;
        top: -1px;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }

.pub-demo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}

    .pub-demo-head h2 {
        margin: 0;
        font: 700 20px var(--font-display);
        color: var(--fg);
    }

.pub-shots {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 18px;
}

    .pub-shots img {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1;
        object-fit: cover;
        margin: 0 !important;
        border: 1px solid var(--edge) !important;
        transition: border-color .2s, transform .3s;
    }

        .pub-shots img:hover {
            border-color: var(--accent) !important;
            transform: scale(1.02);
        }

.pub .pub-demo .pub-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #04070a;
}

    .pub .pub-demo .pub-btn:hover {
        background: var(--accent);
        color: #04070a;
        box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent);
    }

.pub main.pub-demo {
    background: transparent !important;
}

/* the "ranking…" overlay */
.pub .rank-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: wait;
    background: rgba(4, 6, 10, .6);
    backdrop-filter: blur(3px);
}

.pub .rank-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 34px;
    background: var(--panel);
    color: var(--fg);
    border: 1px solid var(--edge-2);
    font: 600 12px var(--font-data);
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent);
}

.pub .rank-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    border-radius: 50%;
    animation: rank-spin .8s linear infinite;
}

@keyframes rank-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================================
   DEMO 1 - "Aurora"
   ===================================================================== */
.pub:has(.pub-demo1) {
    --ink: #020d18;
    --ink-2: #05182a;
    --ink-3: #0a2238;
    --panel: rgba(6, 30, 52, .78);
    --edge: rgba(70, 220, 210, .22);
    --edge-2: rgba(70, 220, 210, .48);
    --fg: #ecfffb;
    --fg-dim: #94c6cf;
    --fg-faint: #5f8f9c;
    --red: #2f8bff;
    --hot: #2ef2c4;
    --violet: #2fd3ff;
    --amber: #2ef2c4;
    background: #020d18;
}

    .pub:has(.pub-demo1) .pub-glow {
        background: radial-gradient(70% 45% at 20% -10%, rgba(46, 242, 196, .26), transparent 70%), radial-gradient(55% 45% at 95% 15%, rgba(47, 139, 255, .30), transparent 70%), radial-gradient(60% 50% at 50% 110%, rgba(47, 211, 255, .16), transparent 70%);
    }

    .pub:has(.pub-demo1) .pub-frame i {
        background: linear-gradient(#2ef2c4, #2f8bff);
    }

    .pub:has(.pub-demo1) .pub-frame .b {
        background: linear-gradient(90deg, #2f8bff, #2ef2c4, #2fd3ff);
    }

    .pub:has(.pub-demo1) .pub-bar {
        background: linear-gradient(180deg, rgba(2, 13, 24, .96), rgba(2, 13, 24, .82));
    }

    .pub:has(.pub-demo1) .pub-logo img {
        filter: drop-shadow(0 0 18px rgba(46, 242, 196, .4));
    }

.pub-demo1 {
    --accent: #2ef2c4;
    --accent-2: #2f8bff;
}

/* left-aligned like Demo2 and Demo3: the same layout, the line along the bottom and the accent at its left */
.pub-d1-hero h1 {
    margin: 0;
    background: none !important;
    color: var(--fg) !important;
    -webkit-text-fill-color: currentColor;
}

    .pub-d1-hero h1 span {
        display: inline-block;
        background: linear-gradient(95deg, #2ef2c4, #2fd3ff 50%, #2f8bff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        padding-bottom: .12em;
    }

.pub-d1-stage {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
    align-items: start;
}

@media (min-width: 900px) {
    .pub-d1-stage {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

/* the console on the left */
.pub-d1-console {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(165deg, rgba(10, 52, 78, .85), rgba(4, 22, 40, .9));
    border: 1px solid var(--edge-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}

@media (min-width: 900px) {
    .pub-d1-console {
        position: sticky;
        top: 84px;
    }
}

.pub-d1-console > .pub-label:first-child {
    color: var(--accent);
}

.pub-d1-field .pub-label {
    display: block;
    margin-bottom: 8px;
}

.pub-d1 .agebox {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: stretch;
    border: 1px solid var(--edge-2);
    background: rgba(2, 13, 24, .7);
}

    .pub-d1 .agebox input {
        width: 100% !important;
        min-width: 0;
        min-height: 64px;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        text-align: center;
        font: 700 34px/1 var(--font-display) !important;
        color: var(--fg);
        -moz-appearance: textfield;
        appearance: textfield;
    }

        .pub-d1 .agebox input[type=number]::-webkit-inner-spin-button, .pub-d1 .agebox input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    .pub-d1 .agebox button {
        border: 0;
        background: rgba(46, 242, 196, .08);
        color: var(--accent);
        font: 600 22px/1 var(--font-data);
        cursor: pointer;
        transition: background .15s, color .15s;
    }

        .pub-d1 .agebox button:first-child {
            border-right: 1px solid var(--edge);
        }

        .pub-d1 .agebox button:last-child {
            border-left: 1px solid var(--edge);
        }

        .pub-d1 .agebox button:hover {
            background: var(--accent);
            color: #021018;
        }

    .pub-d1 .agebox:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 18px rgba(46, 242, 196, .3);
    }

.pub-d1-console select {
    width: 100%;
}

.pub-d1-steps {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: s;
    display: grid;
    gap: 10px;
}

    .pub-d1-steps li {
        color: var(--fg-dim);
        font-size: 14px;
        line-height: 1.45;
    }
/* no step numbers */
.pub-d1-live {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--edge);
    font: 500 10.5px var(--font-data);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

    .pub-d1-live i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
        animation: pub-d1-pulse 1.8s ease-in-out infinite;
    }

@keyframes pub-d1-pulse {
    50% {
        opacity: .3;
        box-shadow: 0 0 2px var(--accent);
    }
}

/* the leaderboard on the right: one bar per color, filled to its probability */
.pub-d1-board {
    padding: 18px 22px 22px;
    background: rgba(4, 22, 40, .72);
    border: 1px solid var(--edge);
}

.pub-d1-board-head, .pub-d1-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 84px;
    gap: 14px;
    align-items: center;
}

.pub-d1-board-head {
    padding: 0 0 10px;
    border-bottom: 1px solid var(--edge);
    margin-bottom: 8px;
}

    .pub-d1-board-head span:last-child {
        text-align: right;
    }

.pub-d1-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pub-d1-item {
    padding: 6px 0;
}

    .pub-d1-item .rank {
        font: 800 26px/1 var(--font-display);
        color: var(--fg-faint);
        text-align: center;
    }

    .pub-d1-item .pct {
        font: 600 15px var(--font-data);
        color: var(--fg);
        text-align: right;
    }

    .pub-d1-item .bar {
        display: block;
        position: relative;
        height: 38px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .07);
    }
    /* the swatch fills the row (so it's easy to click); the part past its probability is shaded */
    .pub-d1-item a.swatch {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        overflow: hidden;
        font-size: 0 !important;
        color: transparent !important;
        text-decoration: none; /* no color name, no filler text: just the color */
        transition: box-shadow .2s, filter .2s;
    }

        .pub-d1-item a.swatch::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: calc(100% - var(--w, 100%));
            background: rgba(2, 13, 24, .78);
            transition: width .6s cubic-bezier(.2, .8, .2, 1);
        }

        .pub-d1-item a.swatch:hover {
            filter: brightness(1.12);
            box-shadow: 0 0 0 2px var(--fg), 0 0 22px rgba(255, 255, 255, .25);
        }

    .pub-d1-item:first-child .bar {
        height: 54px;
    }

    .pub-d1-item:first-child .rank {
        color: var(--accent);
        font-size: 40px;
        text-shadow: 0 0 18px rgba(46, 242, 196, .5);
    }

    .pub-d1-item:first-child .pct {
        font-size: 20px;
        color: var(--accent);
    }

    .pub-d1-item:nth-child(2) .rank, .pub-d1-item:nth-child(3) .rank {
        color: var(--fg-dim);
    }

@media (max-width: 520px) {
    .pub-d1-board-head, .pub-d1-item {
        grid-template-columns: 34px minmax(0, 1fr) 66px;
        gap: 10px;
    }

    .pub-d1-board {
        padding: 14px;
    }

    .pub-d1-board-head .pub-label {
        font-size: 9px;
        letter-spacing: .08em;
    }
}

/* =====================================================================
   DEMO 2 - "Retail": warm amber, every input in blue
   ===================================================================== */
.pub:has(.pub-demo2) {
    --panel: rgba(34, 20, 6, .82);
    --edge: rgba(255, 176, 46, .22);
    --edge-2: rgba(255, 176, 46, .45);
    --fg-dim: #d4b892;
    --fg-faint: #9a805f;
}

    .pub:has(.pub-demo2) .pub-glow {
        background: radial-gradient(60% 40% at 50% -5%, rgba(255, 176, 46, .22), transparent 70%), radial-gradient(45% 40% at 100% 60%, rgba(255, 106, 43, .14), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(61, 139, 255, .12), transparent 70%);
    }

.pub-demo2 {
    --accent: #ffb02e;
    --accent-2: #ff6a2b;
    --input: #3d8bff;
}

.pub-d2 .pub-demo-panel {
    background: linear-gradient(170deg, rgba(48, 28, 6, .86), rgba(22, 12, 3, .9));
}

.pub-d2 .pub-section {
    margin: 40px 0 0;
}

.pub-d2-body {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
    .pub-d2-body {
        grid-template-columns: 300px 1fr;
    }
}

.pub-d2-note {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.6;
}

    .pub-d2-note b {
        color: var(--fg);
    }

.pub-d2-field {
    margin: 0 0 16px;
}

    .pub-d2-field .pub-label {
        display: block;
        margin-bottom: 8px;
    }

.pub-d2-range {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 500 11px var(--font-data);
    color: var(--fg-faint);
}

    .pub-d2-range input[type=range] {
        flex: 1;
        width: auto !important;
    }

.pub-d2-value {
    font: 700 22px var(--font-display);
    color: var(--fg);
}

.pub-d2 textarea {
    width: 100% !important;
    min-height: 330px;
    font: 500 13px/1.8 var(--font-data) !important;
    color: var(--accent) !important;
    background: rgba(10, 6, 2, .6) !important;
    border: 1px solid var(--edge) !important;
    padding: 14px 16px !important;
}
/* every input factor: the same blue */
.pub-d2 input[type="range"] {
    background: linear-gradient(90deg, var(--input), #7ab4ff);
}

    .pub-d2 input[type="range"]::-webkit-slider-thumb {
        background: linear-gradient(90deg, var(--input), #7ab4ff);
        box-shadow: 0 0 12px #7ab4ff;
    }

    .pub-d2 input[type="range"]::-moz-range-thumb {
        background: linear-gradient(90deg, var(--input), #7ab4ff);
        box-shadow: 0 0 12px #7ab4ff;
    }

.pub-d2 input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-color: var(--input);
}

    .pub-d2 input[type="checkbox"]:checked {
        background: var(--input);
        border-color: var(--input);
        box-shadow: 0 0 12px var(--input);
    }

.pub-d2 .pub-d2-field select {
    width: 100%;
    border-color: rgba(61, 139, 255, .55);
    background-image: linear-gradient(45deg, transparent 50%, var(--input) 50%), linear-gradient(-45deg, transparent 50%, var(--input) 50%);
}

    .pub-d2 .pub-d2-field select:focus, .pub-d2 input:focus {
        border-color: var(--input);
        box-shadow: 0 0 0 1px var(--input), 0 0 18px rgba(61, 139, 255, .35);
    }

.pub-d2 .pub-band {
    background: linear-gradient(120deg, rgba(255, 176, 46, .14), rgba(61, 139, 255, .10));
}

    .pub-d2 .pub-band::before, .pub-d2 .pub-band::after {
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

/* =====================================================================
   DEMO 3 - "Signal": electric blue and bright lime on black-green
   ===================================================================== */
.pub:has(.pub-demo3) {
    --ink: #010a07;
    --ink-2: #03140f;
    --ink-3: #062019;
    --panel: rgba(4, 28, 22, .80);
    --edge: rgba(80, 255, 140, .20);
    --edge-2: rgba(80, 255, 140, .45);
    --fg: #eefff4;
    --fg-dim: #9cc9b0;
    --fg-faint: #5f8c74;
    --red: #1e90ff;
    --hot: #4dff88;
    --violet: #00d5ff;
    --amber: #4dff88;
    background: #010a07;
}

    .pub:has(.pub-demo3) .pub-glow {
        background: radial-gradient(60% 40% at 50% -5%, rgba(30, 144, 255, .26), transparent 70%), radial-gradient(45% 40% at 100% 70%, rgba(77, 255, 136, .16), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(0, 213, 255, .12), transparent 70%);
    }

        .pub:has(.pub-demo3) .pub-glow::after {
            opacity: .10;
            background: linear-gradient(rgba(77, 255, 136, .35) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(77, 255, 136, .35) 1px, transparent 1px) 0 0 / 44px 44px;
        }

    .pub:has(.pub-demo3) .pub-frame i {
        background: linear-gradient(#4dff88, #1e90ff);
    }

    .pub:has(.pub-demo3) .pub-frame .b {
        background: linear-gradient(90deg, #1e90ff, #4dff88, #00d5ff);
    }

    .pub:has(.pub-demo3) .pub-bar {
        background: linear-gradient(180deg, rgba(1, 10, 7, .96), rgba(1, 10, 7, .82));
    }

    .pub:has(.pub-demo3) .pub-logo img {
        filter: drop-shadow(0 0 18px rgba(30, 144, 255, .45));
    }

.pub-demo3 {
    --accent: #4dff88;
    --accent-2: #1e90ff;
}

    .pub-demo3 .pub-hero h1 {
        background-image: linear-gradient(95deg, var(--fg) 25%, #4dff88 60%, #1e90ff);
    }

.pub-d3 .pub-demo-panel {
    background: linear-gradient(170deg, rgba(4, 34, 28, .86), rgba(2, 14, 20, .9));
}

    .pub-d3 .pub-demo-panel::before {
        box-shadow: 0 0 16px rgba(77, 255, 136, .5);
    }

.pub-d3 .dc5-scope {
    background: transparent;
    padding: 0;
}

.pub-d3-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

    .pub-d3-select select {
        min-width: 220px;
    }

.pub-d3-read {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    margin: 18px 0 0;
}

@media (min-width: 860px) {
    .pub-d3-read {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pub-d3-read div {
    padding: 14px 16px;
    border-left: 2px solid var(--accent);
    background: rgba(77, 255, 136, .06);
    color: var(--fg-dim);
    font-size: 14px;
}

.pub-d3-read b {
    display: block;
    color: var(--fg);
    font: 700 14px var(--font-display);
    margin-bottom: 2px;
}
/* the charts: same drawing code as the Dashboard, recoloured blue / green / yellow */
.pub-d3 .dc5-scope, .pub-d3 .dc5-scope[data-dc5-theme="dark"] {
    --bg: #010a07;
    --bg-2: #03140f;
    --panel: rgba(2, 20, 18, .85);
    --panel-edge: rgba(80, 255, 140, .18);
    --fg: #eefff4;
    --fg-dim: #9cc9b0;
    --grid: rgba(120, 255, 180, .10);
    --axis: rgba(160, 255, 200, .35);
    /* blue, green and yellow, clearly apart (no turquoise): neon green, royal blue, warm yellow,
     violet-blue, amber, then lime, sky blue and pale gold for a 6th to 8th factor */
    --c1: #2ee86f;
    --c1b: #2ee86f;
    --c2: #2f6bff;
    --c2b: #2f6bff;
    --c3: #ffd93b;
    --c3b: #ffd93b;
    --c4: #7a5cff;
    --c4b: #7a5cff;
    --c5: #ff9f2e;
    --c5b: #ff9f2e;
    --c6: #b6f23a;
    --c6b: #b6f23a;
    --c7: #5cb8ff;
    --c7b: #5cb8ff;
    --c8: #ffe98a;
    --c8b: #ffe98a;
}

.pub-d3 .dc5-panel {
    border-top: 2px solid rgba(77, 255, 136, .45);
}

/* ===== Justified text =====
   Long paragraphs are justified (straight left and right edges). The last line of each
   paragraph stays left. Words are never split with a hyphen: a long word moves to the next line.
   Headings, buttons, labels, the centered banners and the footer keep their own alignment. */
.pub-hero .pub-lede,
.pub-row p,
.pub-card p,
.pub-acc-a,
.pub-guide-topic p.pub-guide-p,
.pub-d2-note,
.pub-list li {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: manual;
    -webkit-hyphens: manual;
}
/* these stay as designed: centered hero (Demo1), centered banner, short uppercase kickers */
.pub-band p {
    text-align: center !important;
    hyphens: manual;
    -webkit-hyphens: manual;
}

.pub-card p.pub-feature-kicker {
    text-align: left !important;
}
/* on a narrow screen justified lines open big gaps, so text goes back to the left edge */
@media (max-width: 560px) {
    .pub-hero .pub-lede, .pub-row p, .pub-card p, .pub-acc-a, .pub-guide-topic p.pub-guide-p, .pub-d2-note, .pub-list li {
        text-align: left !important;
    }
}

/* ===== Alignment, round 2 ===== */
/* Guide: the topic heading and its text are centered */
.pub-guide-topic p.pub-guide-h, .pub-guide-topic p.pub-guide-p {
    text-align: center !important;
}
/* Default: the three boxes under "Boost revenue", title and text centered */
.pub-card.pub-center, .pub-card.pub-center .pub-h3, .pub-card.pub-center p {
    text-align: center !important;
}
/* Rows with the picture on the right (Default, Integration, Implementation): the text sits on the
   right edge, next to the picture. The columns swap too, so the text is the same distance from
   the picture as in the rows with the picture on the left. */
@media (min-width: 860px) {
    .pub-row.flip {
        grid-template-columns: 1.25fr 1fr;
    }

        .pub-row.flip > :last-child,
        .pub-row.flip > :last-child .pub-h2,
        .pub-row.flip > :last-child .pub-label,
        .pub-row.flip > :last-child p,
        .pub-row.flip > :last-child .pub-list li {
            text-align: right !important;
        }
        /* the list dash moves to the right side of each line */
        .pub-row.flip .pub-list li {
            padding: 9px 26px 9px 0;
        }

            .pub-row.flip .pub-list li::before {
                left: auto;
                right: 2px;
            }
}
/* Features: the cards are narrow, so whole-word justification would leave wide gaps; here, and
   only here, long words may break with a hyphen. Everywhere else words are kept whole. */
.pub-feature p:not(.pub-feature-kicker) {
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}

/* Features: picture on the left, heading beside it on the right */
.pub-feature-top {
    gap: 16px;
    margin-bottom: 10px;
}

    .pub-feature-top img {
        flex: none;
    }

    .pub-feature-top .pub-h3 {
        margin: 0;
        text-align: left;
    }
    /* the Cloud Computing picture is a black line drawing: an uneven silver glow, brighter off-center
   and softly breathing, fades out to transparent behind it (no edge, no box) */
    .pub-feature-top img.pub-ink {
        padding: 4px;
        box-sizing: border-box;
        overflow: visible;
        background: radial-gradient(34% 30% at 38% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%), radial-gradient(34% 32% at 62% 60%, rgba(222, 228, 248, .85), rgba(222, 228, 248, 0) 100%), radial-gradient(50% 50% at 50% 50%, rgba(205, 205, 222, .7) 0%, rgba(205, 205, 222, .25) 70%, rgba(205, 205, 222, 0) 100%);
        filter: drop-shadow(-4px -3px 8px rgba(245, 245, 255, .55)) drop-shadow(5px 4px 12px rgba(190, 200, 240, .45));
        animation: pub-silver 4.5s ease-in-out infinite;
    }

@keyframes pub-silver {
    0%, 100% {
        filter: drop-shadow(-4px -3px 8px rgba(245, 245, 255, .55)) drop-shadow(5px 4px 12px rgba(190, 200, 240, .45));
    }

    50% {
        filter: drop-shadow(-3px -5px 13px rgba(245, 245, 255, .8)) drop-shadow(6px 3px 18px rgba(190, 200, 240, .65));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-feature-top img.pub-ink {
        animation: none;
    }
}

/* Guide: hovering an icon swaps in that topic's box. The boxes held different amounts of text,
   so the page grew and shrank with every hover: the content below jumped, the scrollbar came
   and went (shifting the whole page sideways), and a shorter box could pull a different icon
   under the mouse. Now every box is the height of the tallest one (text centered in it), the
   same space is held before the first hover, and the scrollbar's space is always reserved. */
html:has(.pub-guide-stage) {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

.pub-guide-stage {
    --guide-h: 380px;
    min-height: var(--guide-h);
    max-width: 820px;
    margin: 0 auto;
}

    .pub-guide-stage .pub-guide-topic {
        min-height: var(--guide-h);
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }

@media (max-width: 850px) {
    .pub-guide-stage {
        --guide-h: 430px;
    }
}

@media (max-width: 640px) {
    .pub-guide-stage {
        --guide-h: 480px;
    }
}

@media (max-width: 540px) {
    .pub-guide-stage {
        --guide-h: 535px;
    }
}

@media (max-width: 500px) {
    .pub-guide-stage {
        --guide-h: 560px;
    }
}

@media (max-width: 440px) {
    .pub-guide-stage {
        --guide-h: 615px;
    }
}

@media (max-width: 400px) {
    .pub-guide-stage {
        --guide-h: 670px;
    }
}

/* ---------- Pricing plans, round 2 ----------
   Each plan's heading has no underline; instead a line in the same color runs across its whole
   column, side to side. The dark purple border stays, with a thin red line just inside it and
   thin red lines between the plans, like the edges of the other boxes. */
.pub-plans table.pub-plan-table {
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: inset 0 0 0 1px var(--edge-2);
}

    .pub-plans table.pub-plan-table td {
        padding: 0 0 10px;
    }

        .pub-plans table.pub-plan-table td + td {
            border-left: 1px solid var(--edge-2) !important;
        }

.pub-plans .pub-plan-h {
    display: block !important;
    width: auto !important;
    box-sizing: border-box;
    padding: 8px 10px 0;
    text-decoration: none !important;
    border-bottom: 2px solid darkslategray !important;
    margin-bottom: 6px;
}

/* no underlines when pointing at a link, anywhere on the public pages (Bootstrap underlines every
   link on hover by default); links show they are live by changing colour instead */
.pub a:hover, .pub a:focus, .pub a:active, .pub a:hover *, .pub a:focus * {
    text-decoration: none !important;
}

/* Demo2, the star ratings: five star places on every line (the missing ones invisible), then the
   name, so the names line up. Same look as the results box it stands in for. */
.pub-d2-stars {
    width: 100%;
    min-height: 330px;
    max-height: 420px;
    overflow: auto;
    padding: 14px 16px;
    box-sizing: border-box;
    font: 500 13px/1.8 var(--font-data);
    color: var(--accent);
    background: rgba(10, 6, 2, .6);
    border: 1px solid var(--edge);
}
    /* (named d2-line, not "row": Bootstrap's .row stretches every item to full width, which put each name on its own line) */
    .pub-d2-stars .d2-line {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: .7em;
        white-space: nowrap;
        margin: 0;
    }

        .pub-d2-stars .d2-line > * {
            width: auto;
            max-width: none;
            padding: 0;
        }

    .pub-d2-stars .st {
        flex: none;
        letter-spacing: .08em;
    }

        .pub-d2-stars .st .off {
            visibility: hidden;
            font-style: normal;
        }

    .pub-d2-stars .nm {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Demo3: the legend under each chart sits at the bottom of its box, so the three legends line up
   across the row (the charts above them are different heights) */
.pub-d3 .dc5-panel > div:has(.dc5-chart) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.pub-d3 .dc5-panel .legend {
    margin-top: auto !important;
}

.pub-d3 .dc5-panel > div:has(.dc5-chart) > .dc5-chart {
    flex: none;
}
/* the label after a chart only carries its script: it takes no room, so it leaves no gap */
.pub-d3 .dc5-panel > span {
    display: contents;
}

/* the three circle charts (Factor impact, Relative impact, Product vs. average) line up across the
   row: the boxes share one height for the titles, one for the subtitles and one for the charts
   (whichever is tallest in the row), and each circle is centred in a chart area of the same size */
.pub-d3 .dc5-grid:has(#ringsChart) {
    grid-auto-rows: auto;
}

    .pub-d3 .dc5-grid:has(#ringsChart) > .dc5-panel {
        display: grid !important;
        grid-row: span 3;
        grid-template-rows: subgrid;
        row-gap: 6px;
        align-content: start;
    }

        .pub-d3 .dc5-grid:has(#ringsChart) > .dc5-panel > div:has(.dc5-chart) {
            display: flex;
            flex-direction: column;
        }

    .pub-d3 .dc5-grid:has(#ringsChart) .dc5-chart {
        min-height: 344px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Demo1: the age box and its number are the same size as the sex dropdown beside it
   (44px tall; the number in the dropdown's 14px lettering); the - and + buttons fit to match */
.pub-d1 .agebox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    height: 44px;
    box-sizing: border-box;
}

    .pub-d1 .agebox input {
        min-height: 0 !important;
        height: 42px !important;
        padding: 0 !important;
        font: 500 14px/1 var(--font-body) !important;
    }

    .pub-d1 .agebox button {
        font-size: 16px;
    }

/* Contact, AI Chess and Moneyline: built so every browser lays them out the same.
   (The layout used :has() and the links relied on flex "gap", which some browsers, such as
   older Firefox and Safari, don't support: the picture and the text fell out of their columns
   and "GitHub" ran into "source code".) Now the picture floats in its own 112px column, the
   text sits in its own column beside it, and the links are spaced by a real separator. */
.pub-contact-projects .pub-project {
    display: block !important;
    overflow: hidden;
}

    .pub-contact-projects .pub-project > .pub-project-pic {
        float: left;
        width: 112px;
        margin: 0 16px 0 0;
        grid-column: auto;
        grid-row: auto;
    }

    .pub-contact-projects .pub-project > .pub-project-text {
        overflow: hidden;
        grid-column: auto;
    }

.pub-contact-projects .pub-project-text .pub-label {
    margin: 0;
}

.pub-contact-projects .pub-h3 a {
    white-space: nowrap;
}

.pub-contact-projects .pub-h3 .pub-link {
    display: inline-block;
    margin-left: 6px;
}

.pub-contact-projects .pub-meta {
    display: block;
}

    .pub-contact-projects .pub-meta a {
        white-space: nowrap;
    }

.pub-contact-projects .pub-meta-sep {
    display: inline-block;
    margin: 0 10px;
    color: var(--fg-dim);
}

/* Background squares for Demo1 and Demo2, in the spirit of Demo3's grid (same faint strength):
   Demo1: 44px squares in its teal-cyan, with a small glowing dot where the lines cross.
   Demo2: a blueprint in its amber: fine 22px squares, a bolder line every 4th square. */
.pub:has(.pub-demo1) .pub-glow::after {
    opacity: .13;
    background: radial-gradient(circle, rgba(120, 255, 230, .95) 0 1.4px, transparent 2.2px) -22px -22px / 44px 44px, linear-gradient(rgba(46, 242, 196, .32) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(47, 211, 255, .32) 1px, transparent 1px) 0 0 / 44px 44px;
}

.pub:has(.pub-demo2) .pub-glow::after {
    opacity: .12;
    background: linear-gradient(rgba(255, 176, 46, .55) 1px, transparent 1px) 0 0 / 88px 88px, linear-gradient(90deg, rgba(255, 176, 46, .55) 1px, transparent 1px) 0 0 / 88px 88px, linear-gradient(rgba(255, 176, 46, .22) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 176, 46, .22) 1px, transparent 1px) 0 0 / 22px 22px;
}

/* the demo tabs' numbers in the same colours as the demo links in the top menu */
.pub-demo-tabs .pub-tab-n.n01 {
    color: #ff4fd8;
}

.pub-demo-tabs .pub-tab-n.n02 {
    color: #ffb02e;
}

.pub-demo-tabs .pub-tab-n.n03 {
    color: #2fd3ff;
}

/* Navbar hover/selected lines and the Login alarm light on the demo pages: match each demo's tab number
   (Demo1 pink, Demo2 amber; Demo3 keeps its blue) */
.pub:has(.pub-demo1) .pub-bar .nav-link::after, .pub:has(.pub-demo1) .pub-bar .nav-link.cta::before {
    --red: #ff4fd8;
}

.pub:has(.pub-demo2) .pub-bar .nav-link::after, .pub:has(.pub-demo2) .pub-bar .nav-link.cta::before {
    --red: #ffb02e;
}

/* Contact - Moneyline card: a picture on each side, the text between them.
   The web version sits above the middle line, the Store download starts just below it.
   (Floats and absolute positioning only, so older Safari and Firefox lay it out the same.) */
.pub-contact-projects .pub-project-ml > .pub-project-pic-r {
    float: right;
    margin: 0 0 0 16px;
}

.pub-project-ml .pub-ml-top {
    position: relative;
    height: 56px;
}

.pub-project-ml .pub-ml-top-in {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
}

.pub-project-ml .pub-ml-bottom {
    padding-top: 4px;
}

.pub-project-ml .pub-ml-top .pub-h3 {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .pub-contact-projects .pub-project-ml {
        padding-left: 12px;
        padding-right: 12px;
    }

        .pub-contact-projects .pub-project-ml > .pub-project-pic {
            width: 60px;
            margin-right: 10px;
        }

    .pub-contact-projects .pub-project > .pub-project-pic {
        width: 60px;
    }
    /* AI Chess the same size on phones too */
    .pub-contact-projects .pub-project-ml > .pub-project-pic-r {
        margin: 0 0 0 10px;
    }

    .pub-project-ml .pub-ml-top {
        height: 44px;
    }

    .pub-project-ml .pub-meta-sep {
        margin: 0 6px;
    }
}
/* the Store download lines line up on the right, against the right-hand picture */
.pub-project-ml .pub-ml-bottom, .pub-project-ml .pub-ml-bottom p {
    text-align: right !important;
    text-align-last: right;
}
/* the Moneyline pictures are stretched to the AI Chess picture's size (script in Contact.aspx) */
.pub-project-ml .pub-project-pic img {
    width: 100%;
    object-fit: fill;
}
/* "[Microsoft Windows] Moneyline": the bracket comes first, so its gap goes on the right */
.pub-project-ml .pub-ml-bottom .pub-h3 .pub-link {
    margin-left: 0;
    margin-right: 6px;
}
/* a thin line at the middle, between the web version (left) and the Store download (right) */
.pub-project-ml .pub-ml-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: linear-gradient(90deg, var(--edge-2), var(--edge) 50%, var(--edge-2));
}

.pub-project-ml .pub-ml-top-in {
    bottom: 4px;
}

.pub-project-ml .pub-ml-bottom {
    padding-top: 7px;
}
/* Moneyline card as three columns: left picture at the top, the text, and the right picture at the
   bottom, level with the GitHub line (display: table, so older Safari lays it out the same) */
.pub-contact-projects .pub-project.pub-project-ml {
    display: table !important;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
}

    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic,
    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-text {
        display: table-cell;
        float: none;
        margin: 0;
    }

    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic {
        width: 128px;
        padding-right: 16px;
        vertical-align: top;
        box-sizing: border-box;
    }

    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic-r {
        padding: 0 0 0 16px;
        vertical-align: bottom;
    }

    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-text {
        vertical-align: top;
        overflow: visible;
    }
/* the web version at the very top, then the thin line, then the Store download */
.pub-project-ml .pub-ml-top {
    position: static;
    height: auto;
}

.pub-project-ml .pub-ml-top-in {
    position: static;
}

.pub-project-ml .pub-ml-top::after {
    position: static;
    display: block;
    margin-top: 7px;
}

@media (max-width: 520px) {
    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic {
        width: 70px;
        padding-right: 10px;
    }

    .pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic-r {
        padding: 0 0 0 10px;
    }
}

/* Index on phones: start right under the top bar instead of centering in the (tall) screen,
   so there's no big empty space above the logo */
@media (max-width: 600px) {
    .pub-index {
        justify-content: flex-start;
        min-height: 0;
    }

    .pub-index-stack {
        padding: 44px 16px 56px;
    }

        .pub-index-stack img.pub-index-logo {
            margin-bottom: 14px;
        }
}
/* the right picture lines up at the top, with the left picture and the text */
.pub-contact-projects .pub-project.pub-project-ml > .pub-project-pic-r {
    vertical-align: top;
}
/* Contact: the two project boxes sit side by side only when there's room for the Moneyline text;
   on a sideways phone or a small tablet they stack, full width (equal heights set by Contact.aspx) */
@media (min-width: 760px) and (max-width: 959.98px) {
    .pub-contact-projects {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Default's three-box rows: three side by side from 720px (a sideways phone) up,
   instead of two plus a third left alone on the next line (Features keeps its own layout) */
@media (min-width: 720px) {
    .pub-grid.g3.g3-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Every public page keeps room for the scroll bar, so a page that is only just taller than the
   window (like Contact) doesn't shift sideways when the bar appears after the pictures load */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* =====================================================================
   Plugins page: the promise (store -> two calls -> DefCon1), what you get,
   the two stores, three steps, and the way in
   (grid and plain flex only, so older Safari lays it out the same)
   ===================================================================== */
.pub-plugins p {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

.pub-plug-h {
    margin: 0 0 18px;
    font: 700 13px var(--font-data);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
}

    .pub-plug-h::after {
        content: "";
        flex: 1;
        height: 1px;
        margin-left: 16px;
        background: var(--edge);
    }

/* the flow */
.pub-plug-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin: 0 0 10px;
}

@media (min-width: 900px) {
    .pub-plug-flow {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 0;
    }
}

.pub-plug-node {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 26px 20px;
    background: var(--panel);
    border: 1px solid var(--edge-2);
}

    .pub-plug-node b {
        display: block;
        margin-top: 6px;
        font: 800 26px/1.15 var(--font-display);
        color: var(--fg);
    }

    .pub-plug-node.store b + b {
        margin-top: 2px;
    }

    .pub-plug-node.ai {
        border-color: var(--hot);
        box-shadow: 0 0 0 1px rgba(255, 61, 154, .35), 0 0 26px rgba(255, 61, 154, .22);
    }

        .pub-plug-node.ai b {
            background: linear-gradient(90deg, var(--red), var(--hot));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .pub-plug-node small {
        margin-top: 6px;
        font: 500 11px var(--font-data);
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--fg-faint);
    }

.pub-plug-wire {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 12px;
}

    .pub-plug-wire::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: linear-gradient(90deg, var(--edge-2), var(--hot), var(--edge-2));
    }

@media (max-width: 899.98px) {
    .pub-plug-wire::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: linear-gradient(var(--edge-2), var(--hot), var(--edge-2));
    }
}

.pub-plug-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin: 5px 0;
    padding: 8px 14px 8px 8px;
    font: 600 13px var(--font-body);
    color: var(--fg);
    background: var(--ink-2);
    border: 1px solid var(--edge-2);
}

    .pub-plug-pill i {
        margin-right: 10px;
        padding: 2px 7px;
        font: 700 10.5px var(--font-data);
        font-style: normal;
        letter-spacing: .12em;
    }

    .pub-plug-pill.put i {
        color: #1a0b10;
        background: var(--amber);
    }

    .pub-plug-pill.post i {
        color: #06141c;
        background: var(--cyan);
    }

.pub-plug-wire em {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    padding: 0 8px;
    font: 500 10.5px var(--font-data);
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hot);
    background: var(--ink);
}

.pub-plug-band {
    margin: 36px 0 44px;
}

/* what you get */
.pub-plug-gets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 54px;
}

@media (min-width: 900px) {
    .pub-plug-gets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pub-plug-get {
    position: relative;
    padding: 30px 30px 26px;
    background: var(--panel);
    border: 1px solid var(--edge-2);
}

    .pub-plug-get::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red), var(--hot));
    }

    .pub-plug-get.bi::before {
        background: linear-gradient(90deg, var(--violet), var(--cyan));
    }

.pub-plug-get-n {
    font: 500 11px var(--font-data);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hot);
}

.pub-plug-get.bi .pub-plug-get-n {
    color: var(--cyan);
}

.pub-plug-get h2 {
    margin: 10px 0 10px;
    font: 800 28px/1.2 var(--font-display);
    color: var(--fg);
}

.pub-plug-get > p {
    margin: 0 0 14px;
    color: var(--fg-dim);
    line-height: 1.7;
}

.pub-plug-chips {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

    .pub-plug-chips li {
        margin: 0 8px 8px 0;
        padding: 6px 12px;
        font: 500 11px var(--font-data);
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--fg);
        border: 1px solid rgba(47, 211, 255, .45);
        background: rgba(47, 211, 255, .06);
    }

/* the two stores */
.pub-plug-stores {
    margin: 0 0 54px;
}

.pub-plug-store-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 760px) {
    .pub-plug-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pub-plug-store {
    padding: 24px 26px 18px;
    background: var(--panel);
    border: 1px solid var(--edge);
}

    .pub-plug-store h4 {
        display: inline-block;
        margin: 0;
        font: 800 30px/1.2 var(--font-display);
        color: var(--fg);
    }

    .pub-plug-store.shopify h4 {
        border-bottom: 3px solid var(--mint);
    }

    .pub-plug-store.wix h4 {
        border-bottom: 3px solid var(--violet);
    }

.pub-plug-store-sub {
    margin: 10px 0 8px !important;
    font: 500 11px var(--font-data);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-faint);
    text-align: left !important;
}

.pub-plug-safe {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--fg-faint);
    text-align: left !important;
}

    .pub-plug-safe::before {
        content: "\25CF";
        margin-right: 10px;
        color: var(--mint);
        text-shadow: 0 0 8px var(--mint);
    }

/* three steps */
.pub-plug-path {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0 0 34px;
    border: 1px solid var(--edge);
}

@media (min-width: 760px) {
    .pub-plug-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pub-plug-path-step {
    padding: 22px 24px;
    background: rgba(255, 255, 255, .02);
}

    .pub-plug-path-step + .pub-plug-path-step {
        border-top: 1px solid var(--edge);
    }

@media (min-width: 760px) {
    .pub-plug-path-step + .pub-plug-path-step {
        border-top: 0;
        border-left: 1px solid var(--edge);
    }
}

.pub-plug-path-step span {
    font: 700 13px var(--font-data);
    letter-spacing: .1em;
    color: var(--hot);
}

.pub-plug-path-step h4 {
    margin: 6px 0 6px;
    font: 700 19px/1.3 var(--font-display);
    color: var(--fg);
}

.pub-plug-path-step p {
    margin: 0;
    color: var(--fg-dim);
    line-height: 1.6;
    text-align: left;
}

.pub-plug-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 20px;
}

    .pub-plug-cta .pub-btn {
        margin: 0 8px 10px;
    }
