/* =========================================================
   TCG — UNIVERSE
   What templates/universe-index.php and universe-chapter.php
   need beyond the Collections stylesheet they are built on
   (assets/collections.css): chapters that are not written
   yet, and a chapter's parts of text and photos.
========================================================= */

/* ---------------------------------------------------------
   INDEX — a chapter that is still to come
--------------------------------------------------------- */

.tcg-col .tcg-col-row.is-soon,
.tcg-col-row.is-soon .tcg-col-row__title {
    color: rgba(255, 255, 255, .46);
}

.tcg-col-row.is-soon .tcg-col-row__line {
    color: rgba(255, 255, 255, .4);
}

.tcg-col-row.is-soon .tcg-col-row__go {
    color: var(--col-mute);
}


/* ---------------------------------------------------------
   CHAPTER — its holding page while it is being written
--------------------------------------------------------- */

.tcg-col-hero.tcg-uni-hero--soon {
    height: auto;
    min-height: 74vh;
    background: #101010;
}

.tcg-col .tcg-uni-soon {
    display: flex;
    align-items: center;
    margin-top: 26px;
    color: var(--col-mute);
    font-family: var(--col-label);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tcg-uni-soon i {
    width: 7px;
    height: 7px;
    margin-right: 10px;
    background: var(--col-signal);
}


/* ---------------------------------------------------------
   CHAPTER — its parts: a name on the left, the text beside
   it, the photos under the text
--------------------------------------------------------- */

.tcg-uni-part {
    padding-top: clamp(40px, 5.4vw, 80px);
    padding-bottom: clamp(40px, 5.4vw, 80px);
}

.tcg-uni-part + .tcg-uni-part {
    border-top: 1px solid var(--col-line);
}

/* only the chapter's opening lines are set large */
.tcg-col .tcg-uni-part:not(.tcg-uni-part--opening) .tcg-col-notes__text > p:first-child {
    margin-bottom: 1.1em;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.6;
}

.tcg-col .tcg-uni-part .tcg-col-notes__text ul,
.tcg-col .tcg-uni-part .tcg-col-notes__text ol {
    margin: 0 0 1.1em;
    padding: 0;
    list-style: none;
}

.tcg-col .tcg-uni-part .tcg-col-notes__text li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 26px;
    border-top: 1px solid var(--col-line);
    color: rgba(255, 255, 255, .82);
}

.tcg-col .tcg-uni-part .tcg-col-notes__text li:last-child {
    border-bottom: 1px solid var(--col-line);
}

.tcg-uni-part .tcg-col-notes__text li::before {
    content: "+";
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--col-signal);
    font-family: var(--col-label);
    font-size: 11px;
    line-height: 1.6;
}

/* the photos of a part sit under its text; more than two take the full width */
.tcg-col-sheet.tcg-uni-part__media {
    grid-column: 2;
    max-width: 780px;
    margin-top: clamp(24px, 3.2vw, 42px);
    padding: 0;
}

.tcg-col-sheet.tcg-uni-part__media--wide {
    grid-column: 1 / -1;
    max-width: none;
}

.tcg-uni-part__media .tcg-col-frame:only-child {
    flex-basis: min(100%, calc(var(--r, 1.5) * 520px));
}



/* ---------------------------------------------------------
   SPONSORSHIP — the application form
--------------------------------------------------------- */

.tcg-uni-apply {
    max-width: 780px;
}

.tcg-uni-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
}

.tcg-col .tcg-uni-form p {
    margin: 0;
}

.tcg-uni-form__field--wide,
.tcg-uni-form__send {
    grid-column: 1 / -1;
}

/* what a visitor fills in is read in their own language, so it is set
   in the text face (the label face has no Greek letters) */
.tcg-uni-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .7);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tcg-col .tcg-uni-form input[type="text"],
.tcg-col .tcg-uni-form input[type="email"],
.tcg-col .tcg-uni-form textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--col-line);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .2s ease, background .2s ease;
}

.tcg-col .tcg-uni-form textarea {
    min-height: 150px;
    resize: vertical;
}

.tcg-col .tcg-uni-form input:focus,
.tcg-col .tcg-uni-form textarea:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, .07);
    outline: 0;
}

.tcg-col .tcg-uni-form .is-wrong input,
.tcg-col .tcg-uni-form .is-wrong textarea {
    border-color: var(--col-signal);
}

/* for machines only */
.tcg-uni-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tcg-uni-form__send {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}

.tcg-col .tcg-uni-form button.tcg-col-button {
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    cursor: pointer;
}

.tcg-col .tcg-uni-form button.tcg-col-button:hover {
    background: #ffffff;
    color: #111111;
}

.tcg-col .tcg-uni-form button.tcg-col-button:disabled {
    opacity: .5;
    cursor: default;
}

.tcg-uni-form__status {
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    line-height: 1.45;
}

.tcg-uni-form.is-sent > :not(.tcg-uni-form__send),
.tcg-uni-form.is-sent button {
    display: none;
}

.tcg-uni-form.is-sent .tcg-uni-form__status {
    color: #ffffff;
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.4;
}


@media (max-width: 1024px) {

    .tcg-uni-part__lead {
        display: none;
    }

    .tcg-col-sheet.tcg-uni-part__media {
        grid-column: 1;
    }
}


@media (max-width: 767px) {

    .tcg-uni-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}
