/* Risk Monitor, financial tab: styles this tab alone needs. The shared vocabulary is in style.css. Colors only from the theme. */

/* a block made of several figures: each in its own box, one under another; two side by side at desktop */
.fin-part + .fin-part, .fin-part + .fin-pair, .fin-pair + .fin-part, .fin-notes + .fin-pair, .fin-bottom + .fin-pair { margin-top: 16px; }
.fin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: start; }
.fin-pair > * { min-width: 0; }
.fin-part .panel, .fin-cellhost .panel { margin-top: 0; }
.fin-pair.fin-pair-yard { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 720px) { .fin-pair, .fin-pair.fin-pair-yard { grid-template-columns: 1fr; } }

/* the fixed sentences that go with a block (a copy of the paragraphs held in the page) */
.fin-notes { margin: 10px 0 0; }
.fin-notes .note { margin: 0 0 8px; max-width: 940px; }
.fin-notes .note:last-child { margin-bottom: 0; }
.edbox.fin-bottom { margin-top: 10px; }

/* a row’s name: bold, wrapping, with room; its note under it in small type */
.tbl td.fin-lab { font-weight: 600; line-height: 1.35; min-width: 190px; max-width: 330px; }
.tbl.fin-narrow td.fin-lab { min-width: 130px; max-width: 230px; }
.tbl.fin-narrow th { padding-left: 6px; padding-right: 6px; }
.tbl .fin-rownote { display: block; font-weight: 400; font-size: 11.5px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.tbl.fin-p4 td.fin-lab { min-width: 230px; max-width: 360px; }
.tbl.fin-ai td.fin-lab { min-width: 120px; white-space: nowrap; }
.tbl.fin-ai tr.fin-above td, .tbl.fin-ai.sticky tr.fin-above td:first-child { font-weight: 600; background: var(--soft); }
.tbl.fin-ai th { min-width: 84px; }

/* a reading in a cell: the number, then what it is and its date in small type, all centered */
.fin-rd { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; vertical-align: top; }
.fin-rd b { font-size: 14.5px; white-space: nowrap; }
.fin-rd .dt { line-height: 1.35; white-space: normal; max-width: 210px; }
.tbl.fin-narrow .fin-rd .dt { max-width: 132px; }
.fin-vl { font-size: 11.5px; line-height: 1.3; color: var(--ink); max-width: 200px; }
.fin-tag { font-size: 10.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--warn); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; margin-top: 2px; }
.fin-na { color: var(--muted); font-style: italic; white-space: nowrap; }
/* several readings in one cell sit side by side and wrap */
.fin-cell { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px 22px; }
.tbl.fin-p4 td { min-width: 150px; }

/* the diamond of dated text, inside a table */
.tbl .dia { color: var(--accent); font-weight: 700; }
.fin-eds { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fin-ed { font-size: 13px; line-height: 1.45; max-width: 560px; min-width: 250px; }
.fin-ed .eddate { font-weight: 600; white-space: nowrap; }
.fin-ed .eddate::after { content: ":"; }

/* leases signed but not yet started: set apart from the recorded figures */
.fin-apart .panel { border-style: dashed; border-color: var(--muted); }

/* a note written in the page after a section's figures */
#tab-fin .sec-body + .note { margin-top: 16px; }

/* on a phone: narrower name columns; and “2008 and now” is set row by row as blocks, each cell under the
   name of its column, so that its sentences are read without scrolling sideways */
@media (max-width: 720px) {
  .tbl td.fin-lab, .tbl.fin-narrow td.fin-lab { min-width: 112px; max-width: 150px; }
  .tbl.fin-ai td.fin-lab { min-width: 92px; white-space: normal; }
  .fin-rd .dt, .tbl.fin-narrow .fin-rd .dt { max-width: 120px; }
  .tbl.fin-p4 thead { display: none; }
  .tbl.fin-p4, .tbl.fin-p4 tbody, .tbl.fin-p4 tr, .tbl.fin-p4 td { display: block; width: 100%; min-width: 0; max-width: none; }
  .tbl.fin-p4 tr { border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
  .tbl.fin-p4 td, .tbl.fin-p4 td.fin-lab { border: 0; padding: 4px 2px; min-width: 0; max-width: none; }
  .tbl.fin-p4 td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: 4px 0 3px; }
  .tbl.fin-p4 td.fin-dash { display: none; }
  .tbl.fin-p4 .fin-rd .dt { max-width: none; }
  .fin-ed { min-width: 0; }
}
/* a balance-sheet date stays on one line under its number */
.tbl.fin-ai .fin-rd .dt { white-space: nowrap; max-width: none; }
