/* The Daily and Half Hourly Market Analysis screens.

   Loaded by those two pages alone; the gc-dma- classes are shared between them. Most of what follows is typographic: the report is prose to be read
   rather than a grid to be scanned, and the site's default measure runs the full width of a desktop,
   which is unreadable for continuous text. */

.gc-dma-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gc-dma-date {
  width: auto;
}

.gc-dma-results {
  min-height: 6rem;
}

/* The waiting state. Centred and given room deliberately: a model run takes tens of seconds, so the
   wait is part of the design rather than a flicker between states. */
.gc-dma-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
}

.gc-dma-waiting p {
  margin: 0;
}

.gc-dma-notice {
  max-width: 78ch;
}

.gc-dma-report-head {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* The report. 65ch is the measure continuous prose wants. The model's own headings come through as
   h1-h3, so they are sized here rather than left to compete with the page title. */
.gc-dma-narrative {
  max-width: 65ch;
  margin: 1.5rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

.gc-dma-narrative h1,
.gc-dma-narrative h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
}

.gc-dma-narrative h1:first-child,
.gc-dma-narrative h2:first-child {
  margin-top: 0;
}

.gc-dma-narrative h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.gc-dma-narrative p,
.gc-dma-narrative ul,
.gc-dma-narrative ol {
  margin-bottom: 0.9rem;
}

/* Tables are the model's own, so they get borders without Bootstrap's .table class, which the Markdown
   renderer cannot add. */
.gc-dma-narrative table {
  width: 100%;
  margin: 0.5rem 0 1.2rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.gc-dma-narrative th,
.gc-dma-narrative td {
  border-bottom: 1px solid #dee2e6;
  padding: 0.35rem 0.6rem;
  text-align: left;
}

.gc-dma-narrative th {
  font-weight: 600;
}

/* A BM Unit named in a report (see ReportRenderer): dashed underline, standing data in the tooltip. */
.gc-bmunit {
  text-decoration: underline dashed;
  text-underline-offset: 0.2em;
  cursor: help;
}
