/* COG Place Explorer — shell styles.
 *
 * Colours here are Bootstrap custom properties, which bslib derives from
 * _brand.yml. Do NOT reintroduce hex literals: this file, app.R and
 * _brand.yml previously each carried their own copy of the palette and they
 * had already drifted apart.
 *
 * Grid, card and picker styles live in cards.css.
 */

/* Loading indicator: driven by Shiny's built-in shiny-busy class on <html>.
   The first grid for a government is a ~3s API call plus render, so this is
   load-bearing rather than decoration. */
html.shiny-busy .cog-loading-indicator { display: flex; }
.cog-loading-indicator {
  display: none;
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  align-items: center;
  gap: 10px;
  background-color: var(--bs-body-bg, #FAF7F2);
  border: 1px solid var(--bs-border-color, #d9d2c6);
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  font-size: 13px;
  color: var(--bs-body-color, #0E1A2B);
}
.cog-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bs-border-color, #D6CEBD);
  border-top-color: var(--bs-secondary, #C25311);
  border-radius: 50%;
  animation: cog-spin .7s linear infinite;
}
@keyframes cog-spin { to { transform: rotate(360deg); } }

.cog-about { max-width: 52rem; padding: 1rem 0 3rem; }
.cog-about h3 { margin-top: 1.4rem; font-size: 1.05rem; }
.cog-methods-table { max-width: 34rem; font-variant-numeric: tabular-nums; }
.cog-methods-table caption { caption-side: top; font-size: .8rem; }
