.auth-card { width: min(100%, 36rem); }
.validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding-inline-start: 1.25rem; }
.input-validation-error { border-color: var(--vg-danger); }
.field-validation-valid { display: none; }
.app-mobile-header { display: none; }
.vg-main > .vg-card h1 { line-height: 1.2; }
@media (max-width: 56rem) { .app-mobile-header { display: block; } }
.geo-fieldset { min-width: 0; border: 1px solid var(--vg-border); border-radius: var(--vg-radius-sm); padding: 1rem; }
.geo-fieldset legend { padding-inline: .5rem; font-weight: 600; }
.geo-description { white-space: pre-line; }
/* Application editorial forms and safe Markdown; the shared framework is unchanged. */
.note-content { overflow-wrap: anywhere; line-height: 1.75; }
.note-content img, .note-cover img { max-width: 100%; height: auto; border-radius: .5rem; }
.note-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--vg-surface); }
.note-content blockquote { margin-inline: 0; padding-inline: 1rem; border-inline-start: 3px solid currentColor; }
.note-content > * + * { margin-top: 1rem; }
.note-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.note-photo-grid figure { margin: 0; min-width: 0; display: grid; gap: .5rem; align-content: start; }
.note-photo-grid img { width: 100%; max-height: 220px; object-fit: contain; border-radius: .5rem; }
.note-photo-grid code { overflow-wrap: anywhere; font-size: .8rem; }
#note-editor textarea { width: 100%; resize: vertical; }
#Input_Markdown { min-height: 20rem; font-family: ui-monospace, monospace; }
.note-cover { margin: 0; }
.editorial-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card-image { width: 100%; max-height: 240px; object-fit: cover; border-radius: .5rem; }
.note-cover figcaption { margin-top: .5rem; }
.nav-group-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vg-muted); margin: 1rem .75rem .25rem; }
.editor-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 2rem; align-items: start; }
.editor-writing, .editor-settings { min-width: 0; }
.editor-settings .vg-grid { display: grid; grid-template-columns: 1fr; }
.editor-settings summary, details > summary { cursor: pointer; font-weight: 600; padding-block: .65rem; }
.editor-actions { position: sticky; top: 0; z-index: 10; padding: .75rem; background: var(--vg-surface, white); border: 1px solid var(--vg-border); border-radius: .5rem; }
.cover-preview { width: 100%; max-height: 160px; object-fit: contain; }
.ux-dialog { width: min(900px, calc(100% - 2rem)); max-height: 85dvh; overflow: auto; padding: 1rem; color: var(--vg-text); background: var(--vg-surface, white); border: 1px solid var(--vg-border); border-radius: .75rem; }
.ux-dialog::backdrop { background: rgb(0 0 0 / .5); }
.ux-dialog .media-library { border: 0; margin: 0; }
.ux-dialog .note-photo-grid { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }
.editor-layout .vg-shell { max-width: 1600px; }
@media(min-width: 1100px) { .editor-layout .vg-shell { grid-template-columns: 190px minmax(0,1fr); } }
@media(max-width: 1100px) { .editor-workspace { grid-template-columns: 1fr; } .editor-settings { grid-row: 1; } }
@media(max-width: 56rem) { .editor-actions { position: static; } .ux-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; } }
[hidden] { display: none !important; }
:target { scroll-margin-top: 7rem; }
.catalog-search { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.catalog-search .vg-field { flex: 1 1 200px; }
.filter-chips { margin-block: .5rem; }
.filter-chips:empty { display: none; }
.catalog-form .vg-card__body { gap: 1rem; }
#note-editor .vg-stack { gap: 1.25rem; }
#note-editor #Input_Summary { min-height: 5rem; }
#save-time { margin-top: -.75rem; }
.mfa-qr { width: 240px; max-width: 100%; height: auto; background: white; }
.editor-mobile-save { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); right: 1rem; z-index: 20; box-shadow: 0 2px 12px rgb(0 0 0 / .2); }
@media(max-width:56rem) { .editor-layout { padding-bottom: 5rem; } .editor-layout :focus { scroll-margin-bottom: 6rem; } }
@media(max-width:56rem) { .note-card-image { max-height: 120px; } }

/* Keep the article introduction compact without changing Markdown typography. */
.note-header { display: grid; gap: .75rem; min-width: 0; }
.note-header h1, .note-header p { margin: 0; }
.note-header .note-summary { line-height: 1.6; }
.note-byline { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; overflow-wrap: anywhere; }

.site-toolbar { display: flex; justify-content: flex-end; align-items: center; position: relative; z-index: 30; }
.site-toolbar > .vg-menu-toggle, .toolbar-brand { display: none; }
.site-search > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; padding: .6rem .8rem; border-radius: .5rem; }
.site-search > summary::-webkit-details-marker { display: none; }
.site-search > summary:hover { background: var(--vg-surface); }
.search-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); width: min(600px, calc(100vw - 2rem)); max-height: 75dvh; overflow: auto; padding: 1.25rem; border: 1px solid var(--vg-border); border-radius: .75rem; background: var(--vg-surface); color: var(--vg-text); box-shadow: 0 8px 30px rgb(0 0 0 / .15); }
.search-panel-title { justify-content: space-between; }
.search-panel-title h2 { margin: 0; }
.search-panel [data-search-modes] { gap: 1.5rem; }
@media(max-width:56rem) {
 .site-toolbar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: .5rem; padding-block: .5rem; }
 .site-toolbar > .vg-menu-toggle { display: block; }
 .toolbar-brand { display: flex; justify-content: center; }
 .toolbar-brand .vg-brand { margin: 0; }
 .search-trigger-label { display: none; }
 .site-search > summary { padding: .65rem; }
 .search-panel { width: 100%; max-height: 75dvh; }
}

/* Shared section header keeps search aligned without an extra desktop row. */
.site-toolbar { justify-content: space-between; gap: 1rem; align-items: center; }
.page-heading { flex: 1; min-width: 0; }
.page-heading h1 { margin: 0; font-size: 1.75rem; line-height: 1.25; }
.page-heading p { margin: .4rem 0 0; }
.page-heading nav { margin: 0 0 .35rem; font-size: .875rem; }
.page-heading .vg-breadcrumb { margin: 0; }
.page-section-title { font-size: 1.125rem; font-weight: 600; }
.location-settings { position: relative; font-size: .875rem; }
.location-settings > summary { cursor: pointer; color: var(--vg-primary, #21847c); list-style: none; padding: .5rem 0; }
.location-settings > summary span { display: block; margin: .2rem 0; }
.location-panel { padding: .75rem 0; }
.location-settings select { width: 100%; min-width: 0; }
@media (max-width: 56rem) {
 .site-toolbar { align-items: center; }
 .page-heading { grid-column: 1 / -1; grid-row: 2; padding-top: .75rem; }
 .site-toolbar > .site-search { grid-column: 3; grid-row: 1; }
 .site-toolbar > .toolbar-brand { grid-column: 2; grid-row: 1; }
 .page-heading h1 { font-size: 1.5rem; }
}
