/* Tech page: brings the hub into the site's warm stone-and-amber style.
   Loaded after style.css on tech.html only. */

/* Header: soft divider instead of the heavy slate rule */
.tech-header {
    border-bottom: 1px solid var(--border-light);
}

/* Jump links: same chips as the rest of the site */
.tech-nav a {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}
.tech-nav a:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
[data-theme="dark"] .tech-nav a {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-light);
}

/* Section headings: amber marker, rounded, aligned with the eyebrow and intro */
.tech-section-head h2 {
    border-left: 4px solid var(--accent);
    border-radius: 2px;
}
.tech-section-eyebrow {
    color: var(--accent);
}
[data-theme="dark"] .tech-section-eyebrow {
    color: var(--gold-light);
}

/* Project cards: the site's standard card, amber accent along the top */
.project-card,
[data-theme="dark"] .project-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 26px 24px 20px;
}
.project-card::before,
.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.85;
}
.project-card:hover,
[data-theme="dark"] .project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 83, 9, 0.35);
    box-shadow: var(--shadow-hover);
}
.project-card-tag {
    border-radius: 999px;
    padding: 4px 10px;
}
.project-card-meta {
    border-top: 1px solid var(--border-light);
}
.project-card-meta dt,
[data-theme="dark"] .project-card-meta dt {
    color: var(--text-light);
}
.project-card-cta {
    font-weight: 600;
}

/* Article cards: the same card as projects, so every section looks alike */
.article-card,
[data-theme="dark"] .article-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 26px 22px 18px;
}
.article-card:hover,
[data-theme="dark"] .article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 83, 9, 0.35);
    box-shadow: var(--shadow-hover);
}
.article-card-meta,
[data-theme="dark"] .article-card-meta {
    color: var(--text-light);
}

/* Difficulty dots: one warm scale instead of traffic-light colours */
.difficulty--beginner     { color: #a3885a; }
.difficulty--intermediate { color: #b45309; }
.difficulty--advanced     { color: #7c2d12; }
[data-theme="dark"] .difficulty--beginner     { color: #c4aa7a; }
[data-theme="dark"] .difficulty--intermediate { color: #f59e0b; }
[data-theme="dark"] .difficulty--advanced     { color: #fb923c; }

/* Phones: one column with comfortable side padding */
@media (max-width: 600px) {
    .project-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }
    .tech-section-head h2 {
        font-size: 1.5rem;
    }
}
