/*
 * Public page document styles.
 * The parent page container (.page-content / .container) is the single
 * content column. This wrapper must not add another max-width or auto
 * margin, or top-level blocks will sit inward of the page title.
 */
.geoexhibit-document,
.gx-content {
    font-size: 16px;
    line-height: 1.65;
    color: #111827;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.geoexhibit-document > * + *,
.gx-content > * + * {
    margin-top: 1rem;
}

.geoexhibit-document p,
.gx-content p {
    margin: 0.75rem 0;
}

.geoexhibit-document h1,
.geoexhibit-document h2,
.geoexhibit-document h3,
.geoexhibit-document h4,
.geoexhibit-document h5,
.geoexhibit-document h6,
.gx-content h1,
.gx-content h2,
.gx-content h3,
.gx-content h4,
.gx-content h5,
.gx-content h6 {
    margin: 1.4rem 0 0.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.geoexhibit-document h1,
.gx-content h1 { font-size: 2rem; }
.geoexhibit-document h2,
.gx-content h2 { font-size: 1.6rem; }
.geoexhibit-document h3,
.gx-content h3 { font-size: 1.3rem; }

.geoexhibit-document ul,
.geoexhibit-document ol,
.gx-content ul,
.gx-content ol {
    padding-left: 1.4rem;
    margin: 0.75rem 0;
}

.geoexhibit-document li + li,
.gx-content li + li {
    margin-top: 0.25rem;
}

.geoexhibit-document blockquote,
.geoexhibit-document .gx-quote,
.gx-content blockquote,
.gx-content .gx-quote {
    border-left: 4px solid #c7d2fe;
    background: #f8fafc;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    color: #334155;
}

.geoexhibit-document hr,
.geoexhibit-document .gx-divider,
.gx-content hr,
.gx-content .gx-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.75rem 0;
}

.geoexhibit-document a,
.gx-content a {
    color: #2563eb;
    text-decoration: none;
}

.geoexhibit-document a:hover,
.gx-content a:hover {
    text-decoration: underline;
}

.geoexhibit-document code,
.gx-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.gx-figure {
    margin: 1.25rem 0;
}

.gx-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.gx-figure.gx-align-center,
.gx-figure.gx-align-full {
    width: 100%;
}

.gx-figure.gx-align-left {
    float: left;
    width: 45%;
    max-width: 45%;
    margin: 0.25rem 1.25rem 1rem 0;
}

.gx-figure.gx-align-right {
    float: right;
    width: 45%;
    max-width: 45%;
    margin: 0.25rem 0 1rem 1.25rem;
}

.gx-caption {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.gx-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 1.25rem 0;
}

.gx-gallery figure {
    margin: 0;
}

.gx-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.gx-resource-frame {
    margin: 1.25rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.gx-resource-frame iframe {
    display: block;
    width: 100%;
    border: 0;
    background: #f8fafc;
}

.gx-doc-card a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.gx-doc-card a:hover {
    background: #f9fafb;
}

.gx-doc-card .name {
    font-weight: 700;
    color: #111827;
}

.gx-doc-card .sub {
    margin-left: auto;
    color: #6b7280;
    font-size: 0.9rem;
}

.gx-callout {
    border-left: 5px solid #93c5fd;
    background: #eff6ff;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.gx-callout-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.gx-callout-tip {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.gx-callout-note {
    border-left-color: #64748b;
    background: #f8fafc;
}

.gx-columns {
    display: grid;
    gap: 1.5rem;
    margin: 1.25rem 0;
}

.gx-columns-2 {
    grid-template-columns: 1fr 1fr;
}

.gx-columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.gx-html-block {
    margin: 1.25rem 0;
}

.gx-video-player {
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    background: #000;
}

@media (max-width: 768px) {
    .gx-columns-2,
    .gx-columns-3,
    .gx-figure.gx-align-left,
    .gx-figure.gx-align-right {
        grid-template-columns: 1fr;
        float: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
