/* ================================================================
   Base styles (from chearch)
   ================================================================ */
.card {
    background-color: #1A202C;
    box-shadow: none;
}
.card-content {
    padding: 0.75rem 1rem;
}
.wrap {
    overflow-wrap: break-word;
    word-break: break-word;
}
.image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
}
.markdown, .markdown strong, .markdown h1, .markdown h2,
.markdown h3, .markdown code, .markdown table thead tr th {
    color: #F5F5F5;
}
.markdown a, .markdown a strong {
    color: #F14668;
}
.markdown a:hover, .markdown a:hover strong {
    color: #EE1742;
}
.markdown code, .markdown pre {
    background-color: #4A4A4A;
}
span.score {
    white-space: nowrap;
}
.delete, .delete:focus {
    background-color: #F14668;
    margin-left: 3px;
    vertical-align: super;
}
.delete:hover {
    background-color: #EE1742;
}
.closed {
    transform: rotate(45deg);
}
@media screen and (max-width: 768px) {
    .level-left + .level-right {
        margin-top: 0rem;
    }
    figure.image.is-96x96, .image img {
        width: 48px;
        height: 48px;
    }
    footer {
        font-size: 0.75em;
    }
}
@media screen and (min-width: 769px) {
    .field-body > .field:not(.is-narrow) {
        box-flex: 1;
        flex-grow: 1;
    }
    .field-body>.field {
        flex: 1;
    }
}

/* ================================================================
   Auth & navigation additions
   ================================================================ */
.app-navbar {
    border-bottom: 1px solid #2D3748;
}

/* Centre the auth forms vertically */
.auth-section-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

/* Admin table */
.table thead th {
    border-bottom-color: #4A4A4A;
}
.table td, .table th {
    border-color: #2D3748;
    vertical-align: middle;
    color: #A0AEC0;
}
.table tr:hover {
    background-color: rgba(255,255,255,0.03);
}

/* Modal width */
.modal-card {
    max-width: 520px;
    width: 92%;
}

/* Form inputs styled to match result cards */
.input,
.input:focus,
.input:active,
.textarea,
.textarea:focus,
.textarea:active,
.select select,
.select select:focus {
    background-color: #1A202C;
    color: #F5F5F5;
    border-color: #A0AEC0;
    border-radius: 6px;
}
.input::placeholder,
.textarea::placeholder {
    color: #718096;
}
.select::after {
    border-color: #A0AEC0;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.65);
}

/* Mark.js highlight */
mark {
    background-color: #F6E05E;
    color: #1A202C;
    padding: 0 2px;
    border-radius: 2px;
}
