/* PROJECT SINGLE TEMPLATE - ISOLATION WRAPPER */
#tt-product-wrapper {
    --bg-color: #F8F8F6;
    --text-color: #111111;
    --meta-color: #666666;
    --border-color: #D6D6D6;
    --accent-color: #3A5F5F;
    /* --status-color is set inline per-project via PHP based on the
       project's status field (wip/beta -> gold, completed -> green) */
    --status-color: #A07E28;
    --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "Menlo", monospace;
    --space-md: 2rem;
    --space-lg: 4rem;

    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-main) !important;
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
    min-height: 80vh !important;
}

/* TOP NAVIGATION */
#tt-product-wrapper .tt-sub-nav {
    padding: 1rem var(--space-md) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#tt-product-wrapper .tt-back-link {
    font-family: var(--font-mono) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    color: var(--meta-color) !important;
    display: inline-flex !important;
    align-items: center !important;
}

#tt-product-wrapper .tt-back-link:hover {
    color: var(--accent-color) !important;
}

/* GRID LAYOUT */
#tt-product-wrapper .tt-product-grid {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    min-height: 100% !important;
    width: 100% !important;
    border-left: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
}

/* SIDEBAR */
#tt-product-wrapper .tt-sidebar {
    padding: var(--space-lg) var(--space-md) !important;
    border-right: 1px solid var(--border-color) !important;
}

#tt-product-wrapper .tt-meta-block {
    margin-bottom: 2rem !important;
}

#tt-product-wrapper .tt-label {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    color: var(--meta-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

#tt-product-wrapper .tt-data {
    font-size: 1rem !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-family: var(--font-main) !important;
}

/* EXTERNAL LINK STYLE - CLEAN ARROW */
#tt-product-wrapper .tt-ext-link {
    font-family: var(--font-mono) !important;
    font-size: 0.95rem !important;
    color: var(--accent-color) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: opacity 0.2s ease !important;
}
#tt-product-wrapper .tt-ext-link:hover {
    opacity: 0.7 !important;
    border-bottom-color: var(--accent-color) !important;
}

#tt-product-wrapper .tt-arrow {
    font-family: sans-serif !important; /* Forces standard arrow rendering */
    margin-left: 4px !important;
}

/* STATUS INDICATOR */
#tt-product-wrapper .tt-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.9rem !important;
    color: var(--status-color) !important;
    border: 1px solid var(--status-color) !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 99px !important;
}

#tt-product-wrapper .tt-dot {
    width: 8px !important;
    height: 8px !important;
    background-color: var(--status-color) !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    display: inline-block !important;
}

/* MAIN CONTENT */
#tt-product-wrapper .tt-main-content {
    padding: var(--space-lg) var(--space-md) !important;
    max-width: 70ch !important;
}

#tt-product-wrapper .tt-main-content h1 {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.5rem 0 !important;
    line-height: 1 !important;
    color: var(--text-color) !important;
}

#tt-product-wrapper .tt-main-content .tt-intro-lead {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    color: var(--text-color) !important;
    margin-bottom: var(--space-lg) !important;
    font-weight: 400 !important;
}

#tt-product-wrapper .tt-main-content h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 2rem 0 1rem 0 !important;
    color: var(--text-color) !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 2rem !important;
}

#tt-product-wrapper .tt-main-content p {
    margin-bottom: 1.5rem !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--text-color) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #tt-product-wrapper .tt-product-grid { grid-template-columns: 1fr !important; border: none !important; }
    #tt-product-wrapper .tt-sidebar { padding-bottom: 0 !important; border-right: none !important; border-bottom: 1px solid var(--border-color) !important; background-color: rgba(0,0,0,0.02) !important; }
    #tt-product-wrapper .tt-main-content { padding-top: var(--space-md) !important; }
    #tt-product-wrapper .tt-main-content h1 { font-size: 2.5rem !important; }
}
