:root { color-scheme: light; --ink: #18343d; --accent: #09685b; --muted: #586c75; --line: #dce5e6; --surface: #fff; --radius: 1rem; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: #f5f8f9; color: var(--ink); font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.shell { max-width: 82rem; margin: auto; padding: 1.25rem 2rem; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .6rem 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.4rem; }
p { margin: .6rem 0 1rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-row { display: flex; gap: 1.75rem; align-items: center; min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-right: .75rem; border-radius: .8rem; background: var(--accent); color: white; font-size: 1.7rem; }
.brand-dot { color: var(--accent); }
.brand-tagline { color: var(--muted); font-size: .85rem; }
.project-badge { display: inline-block; color: var(--accent); background: #e9f4f0; border: 1px solid #d3e9df; border-radius: 2rem; padding: .3rem .75rem; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.brand-row > .project-badge { margin-left: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; border-bottom: 1px solid var(--line); padding-top: .6rem; padding-bottom: .6rem; }
nav .menu-sidebar { display: contents; }
.site-nav .menu-sidebar a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem .8rem; border-radius: .55rem; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav .menu-sidebar a:hover { background: #eaf0f1; color: var(--ink); }
.site-nav .menu-sidebar a.active { background: #e3f1eb; color: var(--accent); }
.site-nav form { margin-left: auto; }
.site-nav button { margin: 0; min-height: 2.75rem; padding: .4rem .8rem; font-size: .85rem; }
.main-content { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; box-shadow: 0 3px 12px #18343d04; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.grid > .card { margin: 0; min-width: 0; }
label, legend { display: block; font-weight: 650; margin-top: 1rem; margin-bottom: .35rem; font-size: .9rem; }
input:not([type=radio]):not([type=checkbox]), select, textarea { font: inherit; max-width: 100%; width: 100%; min-height: 2.9rem; border: 1px solid #9bafb4; border-radius: .55rem; padding: .65rem .8rem; background: white; color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: #607f85; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
textarea { min-height: 8rem; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; font: inherit; font-size: .9rem; font-weight: 700; padding: .65rem 1.15rem; margin-top: 1rem; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: .55rem; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #07564c; color: white; }
button.secondary, .button.secondary { background: white; color: var(--accent); border-color: #adc7c0; }
button.secondary:hover, .button.secondary:hover { background: #eaf5f0; }
:focus-visible { outline: 3px solid #c97f00; outline-offset: 3px; }
.notice { background: #fff7e4; border: 1px solid #eddbb7; border-left: .25rem solid #b57912; border-radius: .6rem; padding: 1rem 1.25rem; margin: 1rem 0; }
.success { background: #e8f5ed; border-color: #afd6be; }
.error { background: #fff0ef; border-color: #dcaaa6; }
.muted, .help-text, .help { color: var(--muted); }
.help-text, .help { font-size: .85rem; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 2rem; color: #256054; background: #ebf4f0; font-size: .75rem; font-weight: 650; }
.badge.success { color: #1e5e3a; background: #e6f6ec; border: 1px solid #b8e6ca; }
.badge.warning { color: #855307; background: #fff7e6; border: 1px solid #ffd591; }
.badge.info { color: #1d39c4; background: #f0f5ff; border: 1px solid #adc6ff; }
.badge.secondary { color: #434343; background: #f5f5f5; border: 1px solid #d9d9d9; }
.eyebrow { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
dt { font-weight: 650; } dd { margin: 0 0 .8rem; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf3f4; font-size: .8rem; }
.skip-link { position: absolute; left: -9999px; z-index: 2000; background: white; padding: .6rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.catalog-hero { display: flex; justify-content: space-between; align-items: center; gap: 3rem; padding: 1.5rem 0 1.75rem; }
.catalog-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); letter-spacing: -.055em; }
.catalog-hero h1 span { color: var(--accent); }
.catalog-hero > div:first-child { max-width: 42rem; }
.catalog-hero > div:first-child > p { color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.hero-note { display: flex; gap: .9rem; max-width: 18rem; flex-shrink: 0; }
.hero-note p { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.hero-note-icon { display: grid; place-items: center; background: #e0efe8; color: var(--accent); border-radius: 50%; width: 2.75rem; height: 2.75rem; flex-shrink: 0; font-size: 1.3rem; }
.search-panel { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: .6rem 1.2rem; align-items: end; margin-top: 0; padding: 1.4rem 1.6rem; box-shadow: 0 8px 24px #18343d08; }
.search-panel label { margin-top: 0; }
.search-panel button { margin-top: 0; min-width: 7.5rem; }
.search-field { min-width: 0; }
.search-help { grid-column: 1 / -1; margin: .25rem 0 0; font-size: .78rem; }
.advanced-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.search-panel summary { cursor: pointer; font-size: .9rem; color: var(--accent); font-weight: 650; }
.advanced-search label { margin-top: .5rem; }
.discussion-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 1.25rem; }
.results-toolbar h2 { margin: .35rem 0 0; font-size: 1.3rem; }
.text-link { font-size: .85rem; font-weight: 650; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.catalog-map { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; min-width: 0; }
.results-column { grid-column: 1; grid-row: 1; min-width: 0; }
.results-grid { grid-template-columns: 1fr; }
.place-card { padding: 1.4rem 1.5rem; transition: border-color .15s, box-shadow .15s; }
.place-card:hover { border-color: #abcac1; box-shadow: 0 6px 20px #18343d08; }
.place-card-top, .place-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.place-card h2 { font-size: 1.3rem; margin: .85rem 0 .4rem; overflow-wrap: anywhere; }
.place-card h2 a { color: var(--ink); text-decoration: none; }
.place-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.location-status { color: var(--muted); font-size: .7rem; }
.place-address { color: var(--muted); margin: .4rem 0 .9rem; overflow-wrap: anywhere; }
.place-excerpt { color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.place-card-bottom { padding-top: .9rem; margin-top: .9rem; border-top: 1px solid #e9eeef; font-size: .78rem; color: var(--muted); }
.place-card-bottom a { font-weight: 700; text-decoration: none; padding: .25rem 0; }
.map-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.map-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.35rem; }
.map-heading h2 { font-size: 1.05rem; margin: .2rem 0 0; }
.map-heading .badge { flex-shrink: 0; }
.place-map { height: 28rem; width: 100%; background: #e7eeec; z-index: 0; font-family: inherit; }
.map-message { padding: 0 1.35rem 1rem; margin: 0; font-size: .82rem; color: var(--muted); }
.map-caption { padding: .8rem 1.35rem; border-top: 1px solid var(--line); }
.map-caption p { color: var(--muted); font-size: .73rem; margin: .3rem 0; }
.map-popup { min-width: 10rem; color: var(--ink); font: .85rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.map-popup p { margin: .4rem 0 !important; }
.map-popup a { color: var(--accent) !important; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin: 1.5rem 0; color: var(--muted); font-size: .85rem; }
.pagination .button { margin: 0; }
.empty-state { margin: 0; padding: 2rem; }
.contribute-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: var(--radius); background: #e7f1ed; border: 1px solid #d5e6dd; margin-top: 2.5rem; }
.contribute-panel h2 { margin: .5rem 0; }
.contribute-panel p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.contribute-panel .button { margin-top: 0; flex-shrink: 0; }
.breadcrumb { font-size: .85rem; margin: 0 0 1.25rem; }
.place-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.place-summary, .location-unknown { margin: 0; }
.place-summary h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.place-detail-layout .place-map { height: 19rem; }
.object-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; align-items: start; }
.object-node, .place-measurements { padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.object-node { margin: 0; }
.place-measurements { max-width: 40rem; }
.object-node h3, .place-measurements h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.object-note { font-size: .875rem; line-height: 1.5; margin: .5rem 0 .75rem; }
.object-context, .object-actions { font-size: .8rem; line-height: 1.5; margin: .5rem 0; }
.object-context { color: var(--muted); }
.object-actions { border-top: 1px solid var(--line); padding-top: .6rem; margin-bottom: 0; }
.object-actions a { display: inline-block; padding: .25rem 0; }
.measurement-list { margin: 0; }
.measurement-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.45; }
.measurement-row dt { font-weight: 500; display: flex; gap: .5rem; align-items: flex-start; }
.measurement-icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); }
.measurement-kind { display: block; color: var(--muted); font-size: .75rem; }
.measurement-row dd { margin: 0; }
.measurement-source { margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.measurement-source summary { cursor: pointer; padding: .15rem 0; }
.measurement-source p { margin: .25rem 0; }
.measurement-row .measurement-conflict { padding: .6rem; font-size: .8rem; margin: .5rem 0 0; }
.site-footer { border-top: 1px solid var(--line); background: #edf2f3; color: var(--muted); font-size: .8rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-grid strong { color: var(--ink); font-size: 1.1rem; }
.footer-grid p { margin: .5rem 0; }
@media (max-width: 1000px) {
    .brand-tagline { display: none; }
    .hero-note { max-width: 15rem; }
    .catalog-hero { gap: 1.5rem; }
}
@media (max-width: 760px) {
    .shell { padding-left: 1rem; padding-right: 1rem; }
    .brand-row { gap: .75rem; min-height: 4.5rem; }
    .brand { font-size: 1.2rem; }
    .brand-mark { width: 2.15rem; height: 2.15rem; margin-right: .5rem; }
    .brand-row > .project-badge { display: none; }
    .site-nav { gap: .1rem; }
    .site-nav .menu-sidebar a { font-size: .8rem; padding: .35rem .6rem; }
    .site-nav form { margin-left: 0; }
    .main-content { padding-top: 1rem; }
    .catalog-hero { display: block; padding: 1rem 0 1.5rem; }
    .catalog-hero > div:first-child > p { font-size: 1rem; }
    .hero-note { max-width: none; margin-top: 1.25rem; align-items: center; }
    .hero-note p { font-size: .78rem; }
    .search-panel { grid-template-columns: 1fr; padding: 1.2rem; gap: .85rem; }
    .search-help { grid-column: auto; }
    .catalog-layout, .place-detail-layout { grid-template-columns: 1fr; }
    .catalog-map, .results-column { grid-column: auto; grid-row: auto; position: static; }
    .place-map { height: 18rem; }
    .map-heading, .map-caption { padding-left: 1rem; padding-right: 1rem; }
    .map-message { padding-left: 1rem; padding-right: 1rem; }
    .place-card { padding: 1.2rem; }
    .contribute-panel { display: block; padding: 1.5rem; }
    .contribute-panel .button { margin-top: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
