/* The war room's public pages (server/publicpages.js: a launch's page for supporters, a creator's
   brief), on top of the partner kit's base.css and kit.css as they are. Only what the kit has no rule
   for: the posts, as the kit's account cards in a grid, a highlighted card still to come, the extra
   words of a part, a picture with no size known, the three ways to show it, words set as prose, the
   copy to post, the invoice, a file with no picture. Its tokens, radii and type only. */

/* the posts: the kit's .acc card, three to a row as its .tiles are four */
.lks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.sec-head + .sub {
    margin-top: 40px;
}
.sub + .lks {
    margin-top: 0;
}
.lks + .sub {
    margin-top: 40px;
}
.lk-mk {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--off);
    box-shadow: 0 0 0 0.5px rgb(19 18 16 / 0.1);
    color: var(--ink);
}
.lk-mk .mark {
    width: 20px;
    height: 20px;
}
.mark[data-mark='youtube'] {
    color: #ff0033;
}
/* on the ink button a mark takes the button's colour, as the X mark already does */
.btn.main .mark[data-mark] {
    color: inherit;
}
.btn.main .mark[data-mark] path {
    fill: currentColor;
}
.acc .btn .mark {
    width: 14px;
    height: 14px;
}

/* one of Patrick's two, before it is up: when it goes live, quiet, not a button */
.btn.soon {
    background: none;
    box-shadow: inset 0 0 0 0.5px rgb(19 18 16 / 0.16);
    color: var(--stone);
    cursor: default;
}
.btn.soon:hover {
    background: none;
}
.btn.soon:active {
    transform: none;
}

/* a part's words after its first line */
.job-more {
    display: grid;
    gap: 12px;
    max-width: 40em;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--espresso);
}
.job-intro a,
.points a,
.job-more a,
.row-v a.ln {
    text-decoration: underline;
    text-decoration-color: rgb(19 18 16 / 0.25);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.job-intro a:hover,
.points a:hover,
.job-more a:hover,
.row-v a.ln:hover {
    text-decoration-color: currentColor;
}

/* a picture from the text, its size not known: as tall as the rail, as wide as it is */
.car-card:not([style]) img {
    width: auto;
}

/* the facts under the account card beside a brief's hero, as the kit's rows */
.watch .rows {
    margin-top: 16px;
}

/* three ways to show it: chalk panels, as the kit's account cards, a number each */
.uses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--col-gap);
    margin-top: 32px;
}
.use {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 16px;
    background: var(--chalk);
}
.use-n {
    font: 12px 'Geist Mono', ui-monospace, monospace;
    color: var(--orange);
}
.use h3 {
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.use p {
    font-size: 15px;
    line-height: 1.4;
    color: var(--espresso);
    text-wrap: pretty;
}

/* words written in the war room (markdown), at the kit's reading size */
.prose {
    max-width: 44em;
    font-size: 16px;
    line-height: 1.5;
    color: var(--espresso);
}
.sec-head + .prose {
    margin-top: 32px;
}
.prose > * + * {
    margin-top: 12px;
}
.prose h3,
.prose h4 {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink);
}
.prose h3:first-child,
.prose h4:first-child {
    margin-top: 0;
}
.prose ul,
.prose ol {
    padding-left: 1.2em;
}
.prose li + li {
    margin-top: 4px;
}
.prose a {
    text-decoration: underline;
    text-decoration-color: rgb(19 18 16 / 0.25);
    text-underline-offset: 3px;
}
.prose code {
    font-size: 13px;
}
.conn-r .prose {
    margin-top: 24px;
}
.brief-p h3 {
    font-size: 15px;
    color: var(--stone);
}

/* the copy signed off for a creator, to copy and post */
.copybox {
    margin-top: 24px;
    padding: 16px 18px 18px;
    border-radius: 16px;
    background: var(--chalk);
}
.copybox-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--stone);
}
.copybox p {
    font-size: 16px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* the invoice: the kit's rows beside what goes on it */
.inv {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 24px;
    align-items: start;
    margin-top: 32px;
}
.inv .rows {
    grid-column: 1 / span 6;
}
.inv .prose {
    grid-column: 8 / span 5;
    font-size: 15px;
    color: var(--stone);
}
.inv .addr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* a file or a link with no picture: its mark, quiet, in the tile */
.tile-mk {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ash);
}
.tile-mk .mark {
    width: 28px;
    height: 28px;
}
a.tile-f {
    cursor: pointer;
}
.says-top {
    margin-top: 32px;
}

/* videos to learn from: their YouTube pictures, 16:9, three to a row, with the kit's play glyph */
.vids {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px var(--col-gap);
    margin-top: 32px;
}
.vid {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.vid-f {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--chalk);
}
.vid-f img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.vid:hover .vid-f img {
    transform: scale(1.015);
}
.vid-t {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.3;
}
.vid-t small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--stone);
}

/* the address of the public pages on its own: the welcome, alone above the footer */
.hero.welcome {
    min-height: 46svh;
}

@media (max-width: 1100px) {
    .lks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .inv .rows {
        grid-column: 1 / span 7;
    }
    .inv .prose {
        grid-column: 8 / span 5;
    }
}
@media (max-width: 900px) {
    .vids {
        grid-template-columns: minmax(0, 1fr);
    }
    .uses {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .inv .rows,
    .inv .prose {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .lks {
        grid-template-columns: minmax(0, 1fr);
    }
    .lk-mk {
        width: 44px;
        height: 44px;
    }
    .acc .btn.soon {
        width: auto;
        padding: 0 12px;
        font-size: 13px;
        gap: 6px;
    }
}

/* a long link in a row (a post's address) breaks instead of running past it */
.row-v a.ln {
    overflow-wrap: anywhere;
}
