/* ==================================================
   PAGE
================================================== */

.sp-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sp-page-header h1 {
    margin: 0;
    color: var(--h1font);
}


/* ==================================================
   DESCRIPTION
================================================== */

.sp-description {
    padding: 10px;
    line-height: 1.7;
    border: 2px solid rgba(255,255,255,0.03);
}


/* ==================================================
   NAVIGATION
================================================== */

.sp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-nav a {
    padding: 10px 16px;

    border-radius: 10px;

    background: rgba(255,255,255,0.03);

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.sp-nav a:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,0.07);
}


/* ==================================================
   GRID
================================================== */

.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}


/* ==================================================
   SELECT CARDS
================================================== */

.sp-select-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: 14px;
background: rgba(255,255,255,0.03);
    text-decoration: none;
    
}

.sp-select-card:hover {
    background: transparent;
	transition: 0.5s ease;
}

.sp-select-title {
    font-size: 22px;
    font-weight: 700;

    color: var(--h1font);
}

.sp-select-subtitle {
    font-size: 13px;
    line-height: 1.5;

    opacity: .75;

    color: var(--fontkal);
}


/* ==================================================
   TITLES / BACK
================================================== */

.sp-section-title {
    font-size: 30px;
    font-weight: 700;

    color: var(--h1font);
}

.sp-back a {
    text-decoration: none;

    opacity: .75;
}


/* ==================================================
   CARD
================================================== */

.sp-card {
    border: 1px solid var(--hgaccent);
}

.sp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 22px;

    border-bottom: 1px solid var(--hgaccent);

    background: rgba(255,255,255,0.02);
}

.sp-card-title {
    font-size: 24px;
    font-weight: 700;

    color: var(--h1font);
}

.sp-card-subtitle {
    margin-top: 6px;

    font-size: 13px;
    line-height: 1.5;

    opacity: .75;

    color: var(--fontkal);
}


/* ==================================================
   COMPARE
================================================== */

.sp-compare-inline {
    min-width: 260px;

    text-align: right;
}

.sp-compare-inline-label {
    margin-bottom: 6px;

    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;

    opacity: .65;

    color: var(--fontkal);
}

.sp-compare-select {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid var(--hgaccent);
    border-radius: 8px;
    background: var(--hgnormal);
    font: inherit;
}


/* ==================================================
   TABLE
================================================== */

.sp-table-wrapper {
    overflow-x: auto;
}

.sp-table {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

.sp-table th {
    position: sticky;
    top: 0;
    z-index: 1;

    background: var(--hgnormal);

    color: var(--h1font);
}

.sp-table th,
.sp-table td {
    padding: 3px;

    border: 1px solid var(--hgaccent);

    vertical-align: top;
    text-align: center;
}

.sp-table td {
    min-height: 30px;
}

.sp-time {
    width: 170px;

    font-weight: 700;
    text-align: left !important;

    background: rgba(0,0,0,0.12);

    color: var(--fontnormal);
}


/* ==================================================
   TABLE CONTENT
================================================== */

.sp-cell-fach {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
}

.sp-cell-meta {
    font-size: 11px;
    line-height: 1.5;

    opacity: .75;

    color: var(--fontkal);
}


/* ==================================================
   COMPARE STATES
================================================== */

.sp-shared-subject {
    background: rgba(140, 190, 140, 0.14);
}

.sp-shared-free {
    background: rgba(120, 150, 190, 0.12);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .sp-card-header {
        flex-direction: column;
    }

    .sp-compare-inline {
        width: 100%;
        min-width: unset;

        text-align: left;
    }

    .sp-compare-select {
        max-width: 100%;
    }
}

.sp-compare-active {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    padding: 14px 22px;

    border-bottom: 1px solid var(--hgaccent);

    background: rgba(255,255,255,0.02);
}

.sp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;

    color: var(--fontkal);
}

.sp-legend-color {
    display: inline-block;

    width: 14px;
    height: 14px;

    border-radius: 4px;
}

.sp-legend-shared {
    background: rgba(140, 190, 140, 0.35);
}

.sp-legend-free {
    background: rgba(120, 150, 190, 0.25);
}