/* =========================================================
   NAGŁÓWEK WĄTKU
   ========================================================= */

.threadLineHeader {
    display: grid;
    gap: 10px;
    width: 100%;
}

.threadLineHeader h1 {
    display: flex;
    min-width: 0;
    align-items: center;
	padding: 5px;
    margin: 0;
    color: var(--biel);
    font-size: 15px;
    font-weight: normal;
    line-height: 1;
}

/* Kafelki nagłówka */

.threadLineHeader .threadLineHome,
.threadLineHeader .threadLineCategory,
.threadLineHeader .threadLineSubject {
    display: flex;
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 35px;
    align-items: center;
    justify-content: center;
    color: var(--biel) !important;
    text-align: center;
	    padding: 10px;
    text-decoration: none;
    background: var(--gradient);
    border: 1px solid var(--borderprofil);
}

.threadLineHeader .threadLineHome:hover,
.threadLineHeader .threadLineCategory:hover {
    background: var(--hoverbordo);
}

/* Kingsroad */

.threadLineHeader .threadLineHome {
    font-family: Ghosthey;
    font-size: 12px;
    font-weight: 100;
    letter-spacing: 1.5px;
    text-transform: none;
}

/* Kategoria */

.threadLineHeader .threadLineCategory {
    font-family: var(--fontp);
    font-size: 11px;
    font-weight: 100;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Tytuł wątku */

.threadLineHeader .threadLineSubject {
    max-width: min(56vw, 620px);
    overflow: hidden;
    font-family: var(--fontp);
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Linie między kafelkami */

.threadLineHeader .threadLineDivider {
    display: block;
    flex: 0 0 38px;
    height: 1px;
    background: var(--borderprofil);
}

.threadLineHeader .threadLine {
    display: block;
    flex: 1 1 auto;
    min-width: 20px;
    height: 1px;
    background: var(--borderprofil);
}

/* Nowy post + ułóż posty */

.threadLineHeader .threadReply {
    display: flex;
    justify-self: end;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
}

.threadLineHeader .threadReply > a,
.threadLineHeader .threadReply > input,
.threadLineHeader .threadReply > button,
.threadLineHeader .threadReply > .krpo-open,
.threadLineHeader .threadReply > .kr-po-trigger {
    display: inline-flex !important;
    box-sizing: border-box !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 14px !important;
    color: var(--biel) !important;
    font-family: var(--kursywa);
    font-size: 13px;
    line-height: 1 !important;
	border-radius: 0px;
    text-decoration: none;
	letter-spacing: 1px;
    text-transform: lowercase;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--borderprofil);
}

.threadLineHeader .threadReply > a:hover,
.threadLineHeader .threadReply > input:hover,
.threadLineHeader .threadReply > button:hover,
.threadLineHeader .threadReply > .krpo-open:hover,
.threadLineHeader .threadReply > .kr-po-trigger:hover {
    background: var(--hoverbordo);
}

/* =========================================================
   UKŁADANIE POSTÓW
   ========================================================= */

.krpo-modal {
    position: fixed;
    z-index: 100500;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
}

.krpo-modal.is-open {
    display: grid;
}

.krpo-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
	opacity: 0.5;
    background: var(--tloprofil);
    border: 0;
}

.krpo-window {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    max-height: min(82vh, 760px);
    overflow: auto;
    padding: 25px;
    color: var(--biel);
    font-family: var(--fontp);
    background: var(--gradient);
    border: 1px solid var(--borderprofil);
}

.krpo-window h2 {
    margin: 0;
    font-family: var(--medieval);
    font-size: 19px;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
}

.krpo-window > p,
.krpo-note {
    margin: 12px 0;
    color: var(--biel);
	text-transform: uppercase;
    font-size: 12px;
    line-height: 1.5;
}

.krpo-close {
    position: absolute;
    top: 7px;
    right: 10px;
    padding: 3px 8px;
    color: var(--biel);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.krpo-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.krpo-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    background: rgba(0, 0, 0, .14);
    border: 1px solid var(--borderprofil);
}

.krpo-item.is-dragging {
    opacity: .35;
}

.krpo-grip {
    color: var(--kolorpost);
    font-size: 18px;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.krpo-label {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.krpo-label b {
    color: var(--kolorpost);
    font-weight: normal;
}

.krpo-label em {
    font-style: normal;
    opacity: .75;
}

.krpo-arrows {
    display: flex;
    gap: 4px;
}

.krpo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.krpo-arrows button,
.krpo-actions button {
    padding: 5px 8px;
    color: var(--biel);
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--borderprofil);
}

.krpo-actions button {
    font-family: var(--kursywa);
    text-transform: lowercase;
}

.krpo-arrows button:hover,
.krpo-actions button:hover {
    background: var(--hoverbordo);
}

/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 650px) {
    .threadLineHeader h1 {
        flex-wrap: wrap;
    }

    .threadLineHeader .threadLineSubject {
        max-width: calc(100% - 110px);
    }

    .threadLineHeader .threadLine {
        flex-basis: 100%;
        width: 100%;
    }

    .threadLineHeader .threadReply {
        width: 100%;
        justify-content: flex-end;
    }
}