/* ================================================================
   quilt.css — styles for the Donaldson Quilt page
   Requires shared.css (loaded automatically by pageHeader).
   ================================================================ */

/* ---- Main quilt image ---- */
.quilt-image-wrap {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}
.quilt-image-wrap img {
    max-width: 100%;
    height: auto;
}
.quilt-map-hint {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.4rem 0 1rem;
}

/* ---- Main description block ---- */
.quilt-description {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    max-width: 860px;
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* ---- Square detail view ---- */
.quilt-square-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}
.quilt-square-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: block;
}
.quilt-square-meta {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.quilt-square-heading {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1e3a5f;
}

/* ---- Field list (shared with collection pages) ---- */
.field-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.field-list dt {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.field-list dd {
    margin: 0;
    color: #1f2937;
    line-height: 1.5;
}

.quilt-uncertain {
    color: #9ca3af;
    font-size: 0.87em;
}

/* ---- Comments ---- */
.quilt-comments {
    margin-top: 2rem;
    max-width: 800px;
}
.quilt-comments-heading {
    font-size: 1.1rem;
    color: #1e3a5f;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e5e7eb;
}
.quilt-comment {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    margin-bottom: 0.75rem;
}
.quilt-comment-text {
    line-height: 1.6;
    color: #1f2937;
}
.quilt-comment-date {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ---- Search results ---- */
.quilt-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.quilt-search-result {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.quilt-result-square {
    font-weight: 700;
    font-size: 1rem;
    color: #1e3a5f;
    text-decoration: none;
    margin-right: 0.5rem;
}
.quilt-result-square:hover { text-decoration: underline; }
.quilt-result-transcription {
    color: #374151;
    font-size: 0.95rem;
}
.quilt-result-excerpt {
    font-size: 0.87rem;
    color: #6b7280;
    line-height: 1.5;
}
.quilt-result-excerpt mark {
    background: #fef08a;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

