/* Capture Stages: small additions on top of Bulma 0.9.4 */

html, body { margin: 0; padding: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

/* Navbar */
.navbar-brand .brand-name { font-weight: 700; letter-spacing: .01em; }
.navbar-brand .brand-tagline { color: #a6abb5; font-size: .9rem; }

/* Footer */
.site-footer { padding: 1rem 1.5rem; background: #2b2d31; color: #b5b8be; font-size: .875rem; }
.site-footer a { color: #c9d3ff; }

/* Narrow pages: forms, studio pages */
.page { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.page-wide { max-width: 1100px; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .9rem; }

/* Homepage: list beside the map (stacked on small screens) */
.directory { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; height: calc(100vh - 3.25rem); }
.directory-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #e5e7eb; background: #fff; }
.directory-search { padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.directory-count { margin-top: .5rem; font-size: .8rem; color: #6b7280; }
.directory-items { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.directory-map { min-height: 0; }
#map { width: 100%; height: 100%; }

.studio-item { display: block; padding: .75rem 1rem; border-bottom: 1px solid #f0f1f3; color: inherit; cursor: pointer; }
.studio-item:hover, .studio-item:focus { background: #f5f7ff; outline: none; }
.studio-item.is-active { background: #eef2ff; box-shadow: inset 3px 0 0 #485fc7; }
.studio-item .studio-name { font-weight: 600; color: #1f2937; }
.studio-item .studio-desc { font-size: .875rem; color: #4b5563; }
.studio-item .studio-address { font-size: .8rem; color: #6b7280; }
.studio-item[hidden] { display: none; }

.map-popup { max-width: 240px; font-size: .875rem; line-height: 1.4; }
.map-popup strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.map-popup a { display: inline-block; margin-top: .4rem; }

@media screen and (max-width: 768px) {
  .directory { display: flex; flex-direction: column-reverse; height: auto; }
  .directory-map { height: 55vh; }
  .directory-list { border-right: 0; }
  .directory-items { overflow: visible; }
}

/* Studio page */
.studio-facts { margin: 1.25rem 0 1.5rem; }
.studio-facts dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.studio-facts dd { margin: 0 0 .75rem; }
.studio-actions { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; }

/* Review page */
.field-table th { width: 10rem; white-space: nowrap; }
.field-table td.changed { background: #fffbeb; }
.table tr.is-current td { background: #eef2ff; font-weight: 600; }

/* Forms */
#editor-container { min-height: 10rem; background: #fff; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: #dbdbdb; }
.ql-toolbar.ql-snow { border-radius: 4px 4px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 4px 4px; font-size: 1rem; }

/* Stage types: filter buttons on the homepage, labels in the list and on studio pages */
.type-filters { display: flex; justify-content: space-between; margin: .75rem 0 0; padding: 0; border: 0; min-width: 0; }
.type-filter { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: #374151; cursor: pointer; user-select: none; }
.type-filter input { width: 1rem; height: 1rem; margin: 0; accent-color: #485fc7; cursor: pointer; }
.type-filter:has(input:checked) { color: #1f2937; }
.studio-item .studio-types { display: flex; flex-wrap: wrap; gap: .25rem; margin: .15rem 0; }
.studio-item .studio-types span { padding: 0 .4rem; border-radius: 3px; background: #eef2ff; color: #3e56c4; font-size: .7rem; font-weight: 600; line-height: 1.5; }
.stage-type-choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Website check page */
.url-check-table .url-cell { max-width: 22rem; overflow-wrap: anywhere; }
.url-check-table .check-message { max-width: 26rem; overflow-wrap: anywhere; color: #4b5563; }

/* Capture volume: size filter on the homepage, inputs on the form, m/ft switches */
.size-filter { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .875rem; color: #374151; }
.size-filter label { white-space: nowrap; margin-right: .2rem; }
.size-filter .input { width: 5rem; }
.studio-facts .unit-toggle { margin-left: .4rem; }
.unit-toggle.buttons { display: inline-flex; flex-wrap: nowrap; margin: 0; vertical-align: middle; }
.unit-toggle.buttons .button { margin-bottom: 0; height: 1.75em; padding: 0 .6em; font-size: .75rem; }
.studio-item .studio-size { font-size: .8rem; color: #374151; }
.volume-inputs { display: flex; align-items: center; gap: .5rem; }
.volume-inputs .input { width: 8rem; }
.nowrap { white-space: nowrap; }
