.home-page #header {
    padding-top: 2.5em;
}

.home-page #header .logo .symbol img {
    width: 5em;
    height: 5em;
}

.search-help {
    margin: 0.6em 0 0;
    font-size: 0.9em;
}

.public-projects {
    margin: 2em 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4em;
}

.project-card-item {
    min-width: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5em;
    border: 1px solid #ccd4dd;
    border-radius: 12px;
    background: #ffffff;
    color: #343d49;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus-visible {
    border-color: #52638b;
    box-shadow: 0 6px 20px rgba(33, 47, 67, 0.12);
    color: #343d49 !important;
}

.project-card img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 1.2em;
}

.project-card h3 {
    margin-bottom: 0.8em;
    font-size: 1.05em;
    letter-spacing: 0.04em;
}

.project-card .content {
    flex: 1;
}

.project-card p {
    margin-bottom: 1.2em;
}

.project-cta {
    font-weight: 700;
    color: #334a79;
}

.personal-services,
.service-directory {
    margin: 2em 0;
    padding: 1.3em;
    border: 1px solid #ccd4dd;
    border-radius: 10px;
}

.personal-services > summary,
.service-directory > summary {
    cursor: pointer;
    font-weight: 700;
}

.personal-services[open] > summary,
.service-directory[open] > summary {
    margin-bottom: 1.2em;
}

.resource-note {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    border-left: 4px solid #52638b;
    background: #edf1f7;
}

.reference-example {
    margin: 1.5em 0;
    padding: 1.2em;
    border: 1px solid #ccd4dd;
    border-radius: 8px;
    background: #ffffff;
    overflow-wrap: anywhere;
}

.reference-example h3 {
    margin-bottom: 0.8em;
}

.reference-example p:last-child {
    margin-bottom: 0;
}

.example-fields {
    font-size: 0.95em;
}

@media screen and (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none;
    }
}
