/* Scoped styles for the restored GeoCities public exhibit. No global theme changes. */
.gc-art { text-align: center; margin: 1.3rem 0; }
.gc-art img { display: inline-block; max-width: 100%; height: auto; }
.gc-neighbourhoods { display: grid; gap: .75rem; }
.gc-neighbourhood { border: 2px ridge var(--border-soft); background: var(--panel); color: var(--text); }
.gc-neighbourhood summary { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; padding: .7rem .85rem; cursor: pointer; font-weight: bold; }
.gc-neighbourhood summary:hover, .gc-neighbourhood summary:focus-visible { background: var(--interactive-hover); }
.gc-neighbourhood details[open] > summary { background: var(--archive-filled); }
.gc-neighbourhood summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gc-neighbourhood summary img { flex: none; width: 88px; height: 31px; object-fit: contain; image-rendering: auto; }
.gc-neighbourhood-title { display: flex; flex-direction: column; gap: .1rem; }
.gc-neighbourhood-title small { font-size: .8rem; font-weight: normal; }
.gc-neighbourhood-body { border-top: 1px solid var(--border-soft); padding: .7rem .85rem 1rem; }
.gc-neighbourhood-body p { margin: .45rem 0 .75rem; }
.gc-neighbourhood-mast img { max-width: 100%; height: auto; }
.gc-suburbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .4rem .7rem; margin-top: .65rem; }
.gc-neighbourhood a, .gc-neighbourhood a:visited { color: var(--link); text-decoration: underline; }
.gc-neighbourhood a:hover, .gc-neighbourhood a:focus-visible { color: var(--link-hover); }
.gc-neighbourhood a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-credit, .gc-archive-note { font-size: .9rem; }
.gc-cool-pages { padding: .6rem 1.1rem; border: 1px solid var(--border-soft); }
.gc-cool-pages p { margin: .7rem 0; }
.gc-historic-update { padding: 1rem; border: 1px solid var(--border-soft); overflow-wrap: anywhere; }
@media (max-width: 550px) { .gc-neighbourhood summary { gap: .5rem; } .gc-suburbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Public navigation uses restored GIFs, without altering global layouts. */
.gc-home-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .9rem; margin: 1.4rem 0 1.8rem; }
.gc-home-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 0; padding: 1rem .8rem; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--panel); color: var(--link); text-align: center; text-decoration: none; }
.gc-home-card:visited { color: var(--link); }
.gc-home-card:hover { background: var(--interactive-hover); border-color: var(--link); color: var(--link-hover); }
.gc-home-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-home-card-art { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 82px; }
.gc-home-card-art img { display: block; max-width: 100%; max-height: 82px; width: auto; height: auto; object-fit: contain; }
.gc-home-card strong { font-family: Montserrat, sans-serif; font-size: .95rem; }
.gc-home-card small { color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* Search and expansion progressively enhance the full accessible directory. */
.gc-browser-tools { margin: .95rem 0 1.1rem; padding: .85rem 1rem; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--panel-subtle); color: var(--text); }
.gc-browser-tools[hidden], .gc-neighbourhood[hidden] { display: none; }
.gc-browser-tools label { display: block; margin-bottom: .5rem; font-family: Montserrat, sans-serif; font-weight: 700; }
.gc-browser-search-row { margin: .1rem 0 .65rem; }
.gc-browser-search-row input { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 3px; background: var(--input-bg); color: var(--text); font: inherit; }
.gc-browser-tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.gc-browser-tool-row button, .gc-search-share button { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 3px; background: var(--panel); color: var(--text); font: 600 .8rem Montserrat, sans-serif; cursor: pointer; }
.gc-browser-tool-row button:hover, .gc-search-share button:hover { background: var(--interactive-hover); border-color: var(--link); }
.gc-browser-search-row input:focus-visible, .gc-browser-tool-row button:focus-visible, .gc-search-share button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-browser-status { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; justify-content: space-between; margin-top: .7rem; }
#gc-neighbourhood-results { display: block; font-size: .88rem; color: var(--muted); }
.gc-search-share { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.gc-search-share[hidden] { display: none; }
@media (max-width: 550px) { .gc-home-nav { grid-template-columns: 1fr; } }

/* Extra directory controls; only the GeoCities directory loads these rules. */
.gc-directory-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.4rem; margin: .9rem 0; padding: .7rem .9rem; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--panel); color: var(--text); font-size: .88rem; }
.gc-directory-stats strong { font-size: 1.12em; font-variant-numeric: tabular-nums; }
.gc-neighbourhood mark { background: #FFE389; color: #171717; box-decoration-break: clone; border-radius: 2px; padding: 0 .06em; }
:root[data-theme="dark"] .gc-neighbourhood mark { background: #BCE9A9; color: #111A13; }
.gc-neighbourhood a[target="_blank"][href^="http://geocities.mcretro.net/"]::after,
.gc-cool-pages a[target="_blank"][href^="http://geocities.mcretro.net/"]::after,
.gc-private-gateway[target="_blank"]::after { content: " ↗"; font-size: .82em; white-space: nowrap; }
.gc-back-to-top { margin: 1.2rem 0 .8rem; text-align: right; }
.gc-back-to-top a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* The full public artwork exhibit only reuses already-published GIF files. */
.gc-home-card-badges { flex-wrap: wrap; align-content: center; gap: .3rem; }
.gc-home-card-badges img { max-width: min(88px, 46%); max-height: 31px; }
.gc-artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 135px), 1fr)); gap: .7rem; margin: 1.2rem 0 1.9rem; }
.gc-artwork-featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.gc-artwork-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-width: 0; min-height: 88px; margin: 0; padding: .85rem .5rem; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--panel); color: var(--text); text-decoration: none; text-align: center; }
a.gc-artwork-tile, a.gc-artwork-tile:visited { color: var(--link); }
a.gc-artwork-tile:hover { background: var(--interactive-hover); border-color: var(--link); color: var(--link-hover); }
a.gc-artwork-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-artwork-tile img { display: block; max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.gc-artwork-buttons .gc-artwork-tile img { width: 88px; height: 31px; max-height: 31px; }
.gc-artwork-tile figcaption, .gc-artwork-tile span { font: 600 .84rem/1.4 Montserrat, sans-serif; overflow-wrap: anywhere; }

/* Linked sections open automatically and leave room below the sticky header. */
.gc-neighbourhood { scroll-margin-top: 5.25rem; }
.gc-neighbourhood-tour { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-top: 1.3rem; padding-top: .8rem; border-top: 1px solid var(--border-soft); font-size: .8rem; }
.gc-neighbourhood-tour a { display: inline-block; padding: .3rem 0; }
.gc-share-neighbourhood { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.gc-share-neighbourhood button { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 3px; background: var(--panel); color: var(--text); font: 600 .8rem Montserrat, sans-serif; cursor: pointer; }
.gc-share-neighbourhood button:hover { background: var(--interactive-hover); border-color: var(--link); }
.gc-share-neighbourhood button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-copy-status { color: var(--muted); }
.gc-browser-hint { margin: .45rem 0 0; color: var(--muted); font-size: .8rem; }

/* Sorting and matching-suburb controls use the existing McRetro theme. */
.gc-browser-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: .75rem 1rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--border-soft); }
.gc-browser-options label { margin: 0; }
.gc-browser-options .gc-sort-label { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; font-size: .85rem; }
.gc-sort-label select { width: 100%; min-width: 0; padding: .5rem; border: 1px solid var(--border); border-radius: 3px; background: var(--input-bg); color: var(--text); font: inherit; }
.gc-suburb-only-label { display: inline-flex !important; flex-wrap: wrap; align-items: center; gap: .5rem; padding-bottom: .5rem; font-size: .85rem; cursor: pointer; }
@media (max-width: 620px) { .gc-browser-options { grid-template-columns: 1fr; } .gc-suburb-only-label { padding-bottom: 0; } }
.gc-suburb-only-label input { width: 1.1rem; height: 1.1rem; accent-color: var(--link); }
.gc-sort-label select:focus-visible, .gc-suburb-only-label input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gc-suburbs a[hidden] { display: none; }

/* Artwork can be opened at its natural GIF dimensions without a lightbox. */
.gc-artwork-jump { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.25rem 0; font-size: .88rem; }
.gc-artwork-image-link { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; text-decoration: none; }
.gc-artwork-image-link:focus-visible, .gc-artwork-directory-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gc-artwork-directory-link { text-align: center; font: 600 .84rem/1.4 Montserrat, sans-serif; }
.gc-artwork-tile:focus-within { border-color: var(--link); }
.gc-artwork-featured .gc-artwork-image-link img { max-width: 100%; max-height: 110px; width: auto; height: auto; }

/* GeoCities directory quality-of-life controls. Scoped to this exhibit. */
.gc-neighbourhood-title small + small { color: var(--muted); }
.gc-no-results { margin: .8rem 0 1.2rem; padding: 1rem; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--panel); color: var(--text); }
.gc-no-results[hidden] { display: none; }
.gc-no-results p { margin: .1rem 0 .8rem; }
.gc-no-results button { padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 3px; background: var(--panel); color: var(--text); font: 600 .8rem Montserrat, sans-serif; cursor: pointer; }
.gc-no-results button:hover { background: var(--interactive-hover); border-color: var(--link); }
.gc-no-results button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gc-browser-tool-row button:disabled, .gc-search-share button:disabled { opacity: .55; cursor: not-allowed; }
.gc-suburb-only-label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.gc-copy-search-status { color: var(--muted); font-size: .82rem; }
