/* Case study pages — minimal editorial theme */

.inner-page #subnav {
    display: none !important;
}

/* ---- Hero ---- */
.inner-page section#overview,
.inner-page section.bg-white.py-24.scroll-reveal {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
    text-align: left !important;
}

.inner-page section#overview .container,
.inner-page section#overview .max-w-4xl {
    max-width: var(--max-width) !important;
    margin-left: auto;
    margin-right: auto;
    text-align: left !important;
}

.inner-page section#overview h1 {
    font-size: clamp(2rem, 4.5vw, 3rem) !important;
    text-align: left !important;
    margin-bottom: 1rem !important;
    line-height: 1.12 !important;
}

.inner-page section#overview > .container > .max-w-4xl > p.text-xl {
    font-size: 1.0625rem !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 58ch;
}

/* Hero label badge */
.inner-page section#overview .inline-flex.items-center.gap-2.px-4.py-2 {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent) !important;
}

.inner-page section#overview .inline-flex.items-center.gap-2.px-4.py-2 i {
    display: none;
}

.inner-page section#overview .inline-flex.items-center.gap-2.px-4.py-2 span {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* Meta row */
.inner-page section#overview .flex.flex-wrap.justify-center {
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-secondary) !important;
}

.inner-page section#overview .flex.flex-wrap.justify-center i,
.inner-page section#overview .flex.flex-wrap.justify-center .text-purple-600,
.inner-page section#overview .flex.flex-wrap.justify-center .text-green-600 {
    color: var(--accent) !important;
}

.inner-page section#overview .flex.flex-wrap.justify-center .text-sm {
    font-size: 0.875rem !important;
}

/* Feature / achievement badges → minimal tags */
.inner-page section#overview .flex.flex-wrap.justify-center.gap-4 {
    justify-content: flex-start !important;
    gap: 0.5rem !important;
}

.inner-page section#overview .flex.flex-wrap.justify-center.gap-4 > div {
    background: var(--accent-muted) !important;
    border: 1px solid var(--accent-border) !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.625rem !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent) !important;
}

.inner-page section#overview .flex.flex-wrap.justify-center.gap-4 > div i {
    display: none;
}

.inner-page section#overview .flex.flex-wrap.justify-center.gap-4 > div span {
    color: var(--accent) !important;
}

/* ---- Sections ---- */
.inner-page section.bg-gray-100,
.inner-page section.bg-white.py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    background: var(--bg) !important;
}

.inner-page section.bg-gray-100:nth-of-type(even),
.inner-page section.bg-white.py-20:nth-of-type(even) {
    background: var(--bg-elevated) !important;
}

.inner-page .case-study-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.inner-page .case-study-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    margin-bottom: 1rem !important;
}

.inner-page .case-study-card > .flex.items-center.gap-3 {
    margin-bottom: 1.25rem !important;
}

.inner-page .case-study-card > .flex.items-center.gap-3 > div.w-12 {
    display: none;
}

.inner-page .case-study-card p.text-lg {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.7 !important;
}

/* Insight / challenge blocks — unified accent */
.inner-page .border-l-4 {
    border-left-color: var(--accent) !important;
    border-left-width: 2px !important;
    background: var(--bg-elevated) !important;
    border-radius: var(--radius) !important;
    padding: 1.25rem 1.5rem !important;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.inner-page .border-l-4 h3 {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.inner-page .border-l-4 h3 i {
    color: var(--accent) !important;
}

.inner-page .border-l-4 p {
    font-size: 0.9375rem !important;
    color: var(--text-secondary) !important;
}

.inner-page .space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Section headings (tech stack, links, other projects) */
.inner-page section .text-center.mb-12 h2 {
    text-align: left !important;
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
}

.inner-page section .text-center.mb-12 p {
    text-align: left !important;
    color: var(--text-secondary) !important;
}

.inner-page section .text-center.mb-12 {
    text-align: left !important;
    margin-bottom: 2rem !important;
}

/* ---- Tech stack grid ---- */
.inner-page .tech-icon-clean {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--accent-muted) !important;
    border: 1px solid var(--accent-border) !important;
    border-radius: var(--radius) !important;
}

.inner-page .tech-icon-clean i {
    color: var(--accent) !important;
}

.inner-page .grid.grid-cols-3 .text-sm.font-semibold,
.inner-page .grid.grid-cols-3 p.text-sm {
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
}

.inner-page .grid.grid-cols-3 .group-hover\:text-blue-600:hover {
    color: var(--accent) !important;
}

/* ---- Project links ---- */
.inner-page a.case-study-card.p-6 {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inner-page a.case-study-card.p-6:hover {
    border-color: var(--accent-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

.inner-page a.case-study-card .w-14 {
    width: 40px !important;
    height: 40px !important;
    background: var(--accent-muted) !important;
    border-radius: var(--radius) !important;
}

.inner-page a.case-study-card .w-14 i {
    color: var(--accent) !important;
    font-size: 1rem !important;
}

.inner-page a.case-study-card h3 {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.inner-page a.case-study-card:hover h3 {
    color: var(--accent) !important;
}

/* ---- Related projects ---- */
.inner-page a.project-grid-card {
    text-decoration: none !important;
    color: inherit !important;
    transform: none !important;
}

.inner-page a.project-grid-card:hover {
    transform: none !important;
}

.inner-page .project-card-icon {
    background: var(--accent-muted) !important;
    color: var(--accent) !important;
}

.inner-page .project-card-icon.icon-indigo,
.inner-page .project-card-icon.icon-blue {
    background: var(--accent-muted) !important;
    color: var(--accent) !important;
}

.inner-page .project-card-badge {
    color: var(--accent) !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600 !important;
}

.inner-page .project-card-title {
    font-family: var(--font-serif) !important;
    font-weight: 400 !important;
    font-size: 1.25rem !important;
}

.inner-page .project-card-tags span {
    background: var(--accent-muted) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent-border) !important;
    font-size: 0.6875rem !important;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.inner-page .project-card-link {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.8125rem;
}

.inner-page .project-card-link:hover {
    color: var(--accent) !important;
}

/* Hide duplicate inline contact blocks before footer */
.inner-page main > section.bg-gradient-to-br,
.inner-page main > section:has(.btn-primary-blue) {
    display: none !important;
}

/* Neutralize remaining Tailwind accent colors */
.inner-page .text-red-600,
.inner-page .text-green-600,
.inner-page .text-yellow-600,
.inner-page .text-purple-600,
.inner-page .text-orange-600,
.inner-page .text-indigo-600 {
    color: var(--accent) !important;
}

.inner-page .bg-red-50,
.inner-page .bg-green-50,
.inner-page .bg-yellow-50,
.inner-page .bg-purple-50,
.inner-page .bg-orange-50,
.inner-page .bg-red-50\/50,
.inner-page .bg-green-50\/50,
.inner-page .bg-blue-50\/50,
.inner-page .bg-purple-50\/50,
.inner-page .bg-yellow-50\/50,
.inner-page .bg-orange-50\/50 {
    background: var(--bg-elevated) !important;
}

.inner-page .border-red-500,
.inner-page .border-green-500,
.inner-page .border-yellow-500,
.inner-page .border-purple-500,
.inner-page .border-orange-500 {
    border-color: var(--accent) !important;
}

.inner-page .border-yellow-200,
.inner-page .border-green-200,
.inner-page .border-purple-200 {
    border-color: var(--accent-border) !important;
}

.inner-page .text-yellow-700,
.inner-page .text-green-700,
.inner-page .text-yellow-700 {
    color: var(--accent) !important;
}

.inner-page .bg-blue-100,
.inner-page .bg-purple-100 {
    background: var(--accent-muted) !important;
}

.inner-page .hover\:border-blue-500:hover,
.inner-page .hover\:border-purple-500:hover,
.inner-page .group-hover\:bg-blue-200:hover,
.inner-page .group-hover\:bg-purple-200:hover {
    border-color: var(--accent-border) !important;
    background: var(--accent-muted) !important;
}

.inner-page .group-hover\:text-blue-600:hover,
.inner-page .group-hover\:text-purple-600:hover {
    color: var(--accent) !important;
}

.inner-page .text-gray-600,
.inner-page .text-gray-700 {
    color: var(--text-secondary) !important;
}

.inner-page .text-gray-900 {
    color: var(--text) !important;
}

/* Back to portfolio link */
.inner-page .back-to-portfolio,
.inner-page a[href="/portfolio/"].inline-flex {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.875rem;
}
