/*
 * TTO CPT Single Page styles
 *
 * Standardized single CPT layout for hero, sidebar metadata, and related entities.
 */

.tto-single-page {
    margin: 24px auto 40px;
    max-width: 1140px;
    padding: 0 16px;
}

.tto-single-hero {
    padding: 28px 30px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 14px 32px rgba(15, 23, 42, 0.10);
    margin-bottom: 30px;
}

.tto-single-type-label {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tto-single-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    color: #0f172a;
}

.tto-single-excerpt {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    max-width: 760px;
}

.tto-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
}

.tto-single-main {
    min-width: 0;
}

.tto-single-content-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tto-single-section-title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.tto-single-body-content,
.tto-single-body-content p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
}

.tto-single-sidebar {
    min-width: 0;
}

.tto-single-featured-image {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.tto-single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tto-meta-block {
    position: sticky;
    top: 28px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tto-meta-block h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.tto-meta-list {
    margin: 0;
    padding: 0;
}

.tto-meta-list dt {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tto-meta-list dd {
    margin: 6px 0 16px;
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

.tto-meta-list dd a {
    color: #2563eb;
    text-decoration: none;
}

.tto-single-related {
    margin-top: 12px;
}

.tto-single-related-heading h2 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #111827;
}

.tto-related-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tto-related-card {
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tto-related-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 18px 30px rgba(15, 23, 42, 0.12);
}

.tto-related-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #111827;
}

.tto-related-card a {
    color: inherit;
    text-decoration: none;
}

.tto-related-type {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tto-related-excerpt {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .tto-single-layout {
        grid-template-columns: 1fr;
    }

    .tto-meta-block {
        position: static;
        top: auto;
    }
}

@media (max-width: 680px) {
    .tto-single-page {
        padding: 0 12px;
    }

    .tto-single-hero {
        padding: 22px 18px;
    }

    .tto-single-title {
        font-size: 28px;
    }

    .tto-single-meta-block,
    .tto-single-content-wrap {
        padding: 20px;
    }
}
