/* Page layout for the implementation design, apart from the status colours
   (status.css). */

/* Wide tables scroll inside themselves on a phone, never the whole page. */
@media (max-width: 767.98px) {
  main table { display: block; overflow-x: auto; font-size: 0.9em; }
}

/* The layers diagram in Part 1: nested boxes written as fenced divs in the
   .qmd, so the text is ordinary Markdown and wraps at any width. Colours are
   neutral greys and slate, kept apart from the status colours. */
.layers { max-width: 32rem; margin: 1.6rem auto 1.4rem; font-size: 0.92rem;
  line-height: 1.4; }
.layers .ly { border: 1.5px solid #8a96a8; border-radius: 8px;
  padding: 0.55rem 0.8rem 0.6rem; background: #f4f6f9; }
.layers .ly > p { margin: 0 0 0.25rem; }
.layers .ly > p:last-child { margin-bottom: 0; }
.layers .ly .ly { margin-top: 0.6rem; }
.layers .ly-vol { background: #ffffff; border-style: dashed; }
.layers .ly-dip { background: #e4e9f1; border-color: #4a5a70; }
.layers .ly-gt  { background: #cbd5e3; border-color: #33415c; }
.layers .ly-model { background: #33415c; border-color: #33415c; color: #ffffff; }
.layers .ly-est { background: #ffffff; border: 2px solid #33415c; }

/* A down arrow above the model and the estimate: the layers feed the model,
   the model gives the estimate. */
.layers > .ly-model, .layers > .ly-est { position: relative; margin-top: 1.8rem; }
.layers > .ly-model::before, .layers > .ly-est::before {
  content: ""; position: absolute; left: 50%; top: -1.65rem; width: 2px;
  height: 1.1rem; background: #4a5568; transform: translateX(-50%); }
.layers > .ly-model::after, .layers > .ly-est::after {
  content: ""; position: absolute; left: 50%; top: -0.6rem;
  transform: translateX(-50%); border-left: 6px solid transparent;
  border-right: 6px solid transparent; border-top: 7px solid #4a5568; }

/* The caption under the diagram. */
.layers > p:last-child { font-size: 0.88em; color: #495057; text-align: center;
  margin: 0.7rem 0 0; }

/* The flow diagram on sampling-decisions.qmd: inline SVG, real text,
   scales to the column and stays legible at phone width. */
.flow { max-width: 26rem; margin: 1.2rem auto 1.6rem; }
.flow svg { width: 100%; height: auto; display: block; }
