/*
 * channel-soon.css: the "Coming soon" channel pages (/channels/facebook, google-business-profile, mastodon,
 * pinterest, substack) and the "Coming soon" row of the /channels hub. Rebuilt 2026-11-19
 * (docs/channel-pages-v3/PLAN.md section 13).
 * Template: views/frontend/channels/frontend_channel_soon.pug. Words: app/content/channel-pages/.
 *
 * The page is the live channel page part for part (it links channel-page-v3.css and carries body.pn-cp3.pn-cp4), so
 * this file only adds what the live page does not have: the status chip, the email form, the greyed "Coming soon"
 * row in the hero picture, and three card pictures (a source with its drafts, a settings panel, a sized frame).
 * Tokens only (--pns-*), no hex of its own except inside data: icons. Every class is pns-soon__*, which the legacy
 * normalisation in pn-system.css section 3 skips ([class*="pns-"]). Rules start with `html body.pn-soon:not(#_)`.
 * Linked outside every usemin build block. Every edit: bump ?v= in the template and in the hub, which links it too.
 */

/* the network marks the live stylesheet does not have (cpIcon reads .cp3-ch-<slug>) */
html body.pn-soon:not(#_) .cp3-ch-facebook { background-image: url(/img/icons/svg/channels/facebook.svg); }
html body.pn-soon:not(#_) .cp3-ch-pinterest { background-image: url(/img/icons/svg/channels/pinterest.svg); }
html body.pn-soon:not(#_) .cp3-ch-google-business-profile { background-image: url(/img/icons/svg/channels/google.svg); }
html body.pn-soon:not(#_) .cp3-ch-mastodon { background-image: url(/img/icons/svg/channels/mastodon.svg); }
html body.pn-soon:not(#_) .cp3-ch-substack { background-image: url(/img/icons/svg/channels/substack.svg); }

/* app-critical draws an animated underline on every link (a:before) */
html body.pn-soon:not(#_) main.pns-soon a::before {
    content: none;
}

/* ---------- inline links inside card text and the FAQ line (copy writes them as [label](/path)) ---------- */
html body.pn-soon:not(#_) p.pns-feature__text a,
html body.pn-soon:not(#_) .pns-faq__head p.pns-lead a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html body.pn-soon:not(#_) p.pns-feature__text a:hover,
html body.pn-soon:not(#_) .pns-faq__head p.pns-lead a:hover {
    text-decoration-thickness: 2px;
}

/* ---------- hero: the status chip above the H1, grey (lime is for the one button) ---------- */
html body.pn-soon:not(#_) p.pns-soon__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 5px 12px;
    border: 1px solid var(--pns-ink-line);
    border-radius: var(--pns-r-chip);
    background: var(--pns-ink-2);
    color: var(--pns-on-ink-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

html body.pn-soon:not(#_) p.pns-soon__status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pns-on-ink-3);
}

/* ---------- the email form: the page's one action ---------- */
html body.pn-soon:not(#_) .pns-soon__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 540px;
    margin: 22px 0 0;
    padding: 0;
}

html body.pn-soon:not(#_) .pns-soon__form[hidden],
html body.pn-soon:not(#_) .pns-soon__done[hidden] {
    display: none;
}

/* without JavaScript the form cannot send: the <noscript> trial button takes its place */
html:not(.pns-soon-js) body.pn-soon:not(#_) .pns-soon__form {
    display: none;
}

html body.pn-soon:not(#_) .pns-soon__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

html body.pn-soon:not(#_) .pns-soon__input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--pns-card);
    border-radius: var(--pns-r-btn);
    background: var(--pns-card);
    box-shadow: none;
    color: var(--pns-text);
    font-size: 16px;
    line-height: 1.2;
    -webkit-appearance: none;
    appearance: none;
}

html body.pn-soon:not(#_) .pns-soon__input::placeholder {
    color: var(--pns-text-3);
    opacity: 1;
}

html body.pn-soon:not(#_) .pns-soon__input:focus {
    border-color: var(--pns-lime);
    background: var(--pns-card);
    box-shadow: none;
    outline: 2px solid var(--pns-lime);
    outline-offset: 2px;
}

html body.pn-soon:not(#_) .pns-soon__input[aria-invalid="true"] {
    border-color: var(--pns-danger);
}

html body.pn-soon:not(#_) .pns-soon__form .pns-btn {
    min-height: 48px;
    margin: 0;
    font-family: inherit;
}

html body.pn-soon:not(#_) .pns-soon__form .pns-btn:focus-visible {
    outline: 2px solid var(--pns-on-ink);
    outline-offset: 3px;
}

html body.pn-soon:not(#_) .pns-soon__form .pns-btn[disabled] {
    opacity: 0.7;
    cursor: default;
}

/* the error sits on a light chip: the danger red is made for light surfaces, not for ink */
html body.pn-soon:not(#_) .pns-soon__msg {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--pns-danger-tint);
    color: var(--pns-danger);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

html body.pn-soon:not(#_) .pns-soon__msg:empty {
    display: none;
}

html body.pn-soon:not(#_) .pns-soon__note {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: var(--pns-on-ink-3);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

html body.pn-soon:not(#_) .pns-soon__done {
    position: relative;
    box-sizing: border-box;
    max-width: 540px;
    margin: 26px 0 0;
    padding: 16px 18px 16px 50px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 16px;
    background: var(--pns-ink-2);
    color: var(--pns-on-ink);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

html body.pn-soon:not(#_) .pns-soon__done::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 18px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381ff3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

html body.pn-soon:not(#_) .pns-soon__done:focus {
    outline: none;
}

/* the one quiet text link under the form: 44px tall to tap */
html body.pn-soon:not(#_) p.pns-soon__more {
    margin: 4px 0 -10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

html body.pn-soon:not(#_) p.pns-soon__more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--pns-on-ink);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
}

html body.pn-soon:not(#_) p.pns-soon__more a:hover,
html body.pn-soon:not(#_) p.pns-soon__more a:focus-visible {
    text-decoration-color: var(--pns-on-ink);
}

/* ---------- hero picture: no lime on the first screen (owner, 2026-11-19). The live networks the post goes to are
 * ink-edged white tiles; this network sits under them, greyed, with the "Coming soon" chip ---------- */
html body.pn-soon:not(#_) .pns-soon__hero .cp3-mock__net4.is-on {
    border-color: var(--pns-text);
    background: var(--pns-card);
}

html body.pn-soon:not(#_) p.pns-soon__later {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    padding: 7px 10px;
    border: 1px dashed var(--pns-field);
    border-radius: 12px;
    background: var(--pns-mist);
    color: var(--pns-text-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

html body.pn-soon:not(#_) p.pns-soon__later img {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    opacity: 0.55;
    filter: grayscale(1);
}

/* the grey "Coming soon" chip (hero picture and the hub row): lime is kept for the one main button */
html body.pn-soon:not(#_) .pns-soon__chip,
html body:not(#_) .pns-soonrow .pns-soon__tag {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-line);
    color: var(--pns-text-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------- card picture: a source (link, feed or post) and the drafts made from it ---------- */
html body.pn-soon:not(#_) .pns-feature__visual > .pns-soon__drafts,
html body.pn-soon:not(#_) .pns-feature__visual > .pns-soon__rows {
    width: min(100%, 500px);
}

html body.pn-soon:not(#_) .pns-soon__drafts {
    display: grid;
    gap: 12px;
}

html body.pn-soon:not(#_) .pns-soon__src-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--pns-line);
    border-radius: 18px;
    background: var(--pns-card);
}

html body.pn-soon:not(#_) .pns-soon__src-ic {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pns-mist);
    color: var(--pns-text);
}

html body.pn-soon:not(#_) img.pns-soon__src-img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

html body.pn-soon:not(#_) .pns-soon__src-txt {
    display: grid;
    gap: 2px;
    min-width: 0;
}

html body.pn-soon:not(#_) .pns-soon__src-k {
    color: var(--pns-text-3);
    font-size: 12px;
    font-weight: 500;
}

html body.pn-soon:not(#_) .pns-soon__src-v {
    overflow: hidden;
    color: var(--pns-text);
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.pn-soon:not(#_) .pns-soon__src-note {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-mist);
    color: var(--pns-text-2);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

html body.pn-soon:not(#_) ul.pns-soon__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body.pn-soon:not(#_) li.pns-soon__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--pns-line);
    border-radius: 16px;
    background: var(--pns-card);
    list-style: none;
}

html body.pn-soon:not(#_) .pns-soon__item-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--pns-mist);
}

html body.pn-soon:not(#_) .pns-soon__item-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

html body.pn-soon:not(#_) .pns-soon__item-name {
    color: var(--pns-text);
    font-size: 13px;
    font-weight: 600;
}

html body.pn-soon:not(#_) .pns-soon__item-text {
    color: var(--pns-text-2);
    font-size: 14px;
    line-height: 1.4;
}

/* the one active element of a lower picture may be lime (PAGE-PATTERN) */
html body.pn-soon:not(#_) .pns-soon__item-state {
    padding: 4px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-lime-tint);
    color: var(--pns-lime-deep);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- card picture: one settings panel ---------- */
html body.pn-soon:not(#_) .pns-soon__rows {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--pns-line);
    border-radius: 18px;
    background: var(--pns-card);
}

html body.pn-soon:not(#_) p.pns-soon__rows-title {
    margin: 0 0 4px;
    color: var(--pns-text);
    font-size: 17px;
    font-weight: 600;
}

html body.pn-soon:not(#_) .pns-soon__rows-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--pns-mist);
    font-size: 15px;
}

html body.pn-soon:not(#_) .pns-soon__rows-k {
    color: var(--pns-text-2);
}

html body.pn-soon:not(#_) .pns-soon__rows-v {
    color: var(--pns-text);
    font-weight: 500;
}

html body.pn-soon:not(#_) .pns-soon__rows-v.is-on {
    padding: 3px 12px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-lime);
    color: var(--pns-on-lime);
    font-size: 13px;
    font-weight: 600;
}

html body.pn-soon:not(#_) p.pns-soon__rows-note {
    margin: 6px 0 0;
    color: var(--pns-text-3);
    font-size: 13px;
}

/* ---------- card picture: a photo in the network's recommended shape, with its size ---------- */
html body.pn-soon:not(#_) .pns-soon__frame {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

html body.pn-soon:not(#_) .pns-soon__frame-box {
    position: relative;
    width: 220px;
    overflow: hidden;
    border: 1px solid var(--pns-line);
    border-radius: 18px;
    background: var(--pns-card);
}

html body.pn-soon:not(#_) .pns-soon__frame-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html body.pn-soon:not(#_) .pns-soon__frame-size {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-card);
    color: var(--pns-text);
    font-size: 13px;
    font-weight: 600;
}

html body.pn-soon:not(#_) .pns-soon__frame-meta {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--pns-line);
    border-radius: 16px;
    background: var(--pns-card);
}

html body.pn-soon:not(#_) .pns-soon__frame-k {
    color: var(--pns-text-3);
    font-size: 12px;
    font-weight: 500;
}

html body.pn-soon:not(#_) .pns-soon__frame-v {
    color: var(--pns-text);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* a long value in a limits tile (a feed address) breaks inside the tile instead of running out of it */
html body.pn-soon:not(#_) ul.cp3-limits4__facts .cp3-fact__v {
    overflow-wrap: anywhere;
}

/* ---------- motion: the drafts arrive one by one; reduced motion and no JS show the finished frame ---------- */
@keyframes pns-soon-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    html.cp3-js body.pn-soon:not(#_) .pns-soon__drafts:not(.is-in) .pns-soon__item { opacity: 0; }
    html.cp3-js body.pn-soon:not(#_) .pns-soon__drafts.is-in .pns-soon__item { animation: pns-soon-in 420ms var(--pns-ease) both; animation-delay: calc(200ms + var(--i, 0) * 140ms); }
}

/* ---------- /channels hub: the coming-soon networks under the live ones (frontend_channels_hub_v3.pug) ---------- */
html body:not(#_) .pns-soonrow {
    margin-top: clamp(32px, 3.4vw, 48px);
    padding-top: clamp(24px, 2.6vw, 36px);
    border-top: 1px solid var(--pns-line);
}

html body:not(#_) .pns-soonrow :is(h2, h3).pns-soonrow__title {
    margin: 0 !important;
    color: var(--pns-text) !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

html body:not(#_) .pns-soonrow p.pns-soonrow__sub {
    margin: 6px 0 18px !important;
    color: var(--pns-text-2) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

html body:not(#_) .pns-soonrow ul.pns-soonrow__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body:not(#_) .pns-soonrow li.pns-soonrow__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

html body:not(#_) .pns-soonrow a.pns-soonrow__link {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--pns-line);
    border-radius: 16px;
    background: var(--pns-card);
    color: var(--pns-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .15s var(--pns-ease);
}

html body:not(#_) .pns-soonrow a.pns-soonrow__link::before {
    content: none;
}

html body:not(#_) .pns-soonrow a.pns-soonrow__link:hover,
html body:not(#_) .pns-soonrow a.pns-soonrow__link:focus-visible {
    border-color: var(--pns-text);
    color: var(--pns-text);
}

html body:not(#_) .pns-soonrow a.pns-soonrow__link img {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
    html body.pn-soon:not(#_) .pns-soon__form {
        grid-template-columns: minmax(0, 1fr);
    }

    html body.pn-soon:not(#_) .pns-soon__form .pns-btn {
        width: 100%;
        white-space: normal;
    }

    html body.pn-soon:not(#_) li.pns-soon__item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    html body.pn-soon:not(#_) .pns-soon__item-ic {
        width: 34px;
        height: 34px;
    }

    html body.pn-soon:not(#_) .pns-soon__item-state {
        display: none;
    }

    html body.pn-soon:not(#_) .pns-soon__src-note {
        display: none;
    }

    html body.pn-soon:not(#_) .pns-soon__frame {
        flex-direction: column;
        align-items: center;
    }

    html body.pn-soon:not(#_) .pns-soon__frame-box {
        width: 180px;
    }
}
