.deeppy-detail {
    --deeppy-radius: 10px;
    max-width: 980px;
    margin: 0 auto;
}

.project-hero {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface), var(--highlight));
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
}

.project-hero h1 {
    margin: 0.2rem 0 0.75rem;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-hero .lead {
    max-width: 760px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.deeppy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.deeppy-section {
    margin-top: 2.25rem;
}

.deeppy-section h2 {
    margin-bottom: 0.55rem;
    font-size: 1.35rem;
    color: var(--text-tertiary);
}

.deeppy-section h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

.deeppy-section p,
.deeppy-section li {
    line-height: 1.65;
}

.deeppy-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.deeppy-feature-grid article {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
}

.deeppy-feature-grid p {
    margin: 0;
    font-size: 0.9rem;
}

.deeppy-diagram,
.deeppy-figure img {
    display: block;
    margin: 0 auto;
    width: 80%;
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
    background: var(--surface);
}

.deeppy-diagram {
    max-height: 430px;
    margin-top: 1rem;
    object-fit: contain;
}

.deeppy-model-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.deeppy-model-list details {
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
}

.deeppy-model-list summary {
    cursor: pointer;
    color: var(--text-tertiary);
    font-weight: 700;
}

.deeppy-model-list ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.deeppy-code-grid,
.deeppy-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

pre {
    overflow-x: auto;
    margin: 0.75rem 0 1rem;
    padding: 1rem;
    color: var(--button-text);
    background: #263025;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.55;
}

code {
    font-family: 'Roboto Mono', monospace;
}

p code,
li code {
    padding: 0.1rem 0.3rem;
    color: var(--text-tertiary);
    background: var(--highlight);
    border-radius: 4px;
}

pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.deeppy-figure {
    margin: 1rem 0 0;
}

.deeppy-figure img {
    max-height: 360px;
    object-fit: contain;
}

.deeppy-figure figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.deeppy-note {
    padding: 0.75rem 1rem;
    background: var(--surface-muted);
    border-left: 3px solid var(--accent);
}

.project-video {
    aspect-ratio: 16 / 9;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
    background: var(--surface);
}

.project-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .deeppy-feature-grid,
    .deeppy-model-list,
    .deeppy-code-grid,
    .deeppy-media-grid {
        grid-template-columns: 1fr;
    }
}


.deeppy-section sl-icon::part(base) {
    color: var(--accent);
    margin-right: 10px;
}

.deeppy-code-section {
    width: 80%;
    margin: 2rem auto 0;
}

.deeppy-code-section h3 {
    margin-bottom: 0.75rem;
}

.deeppy-code-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.deeppy-code-section details {
    width: 100%;
}

.deeppy-code-section summary {
    cursor: pointer;
    margin-bottom: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 700;
}

.deeppy-code-section details details {
    margin-top: 1rem;
}

.deeppy-code-section pre {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.deeppy-code-section pre code {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    tab-size: 4;
}

.deeppy-output {
    background: #111827 !important;
    border-left: 3px solid #8b5cf6;
}

.deeppy-output code {
    color: #d1d5db;
    white-space: pre-wrap;
}

.deeppy-gpt-image {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--deeppy-radius);
}

.deeppy-section a {
    color: var(--accent);
    text-decoration: none;
}

.deeppy-section a:hover {
    text-decoration: underline;
    color : var(--accent-hover);
}