/* A Confluence document as it reads on the Capability Detail page, on its own so
   that a page which shows the same document in a dialog -- the admin capability
   review (ARMIP-250) -- takes its styling without docs.css's page chrome (shell
   ground, breadcrumb padding, the dimmed `.uid`). Linked before docs.css, where
   these rules sat, so the docs pages' own rules still win their ties. */

.docs-confluence-doc {
    display: block;
}

.docs-confluence-doc > *:first-child {
    margin-top: 0;
}

/* 17 of the corpus's 215 links spell out their URL because the sentence around
   them names nothing to link — those must wrap instead of pushing the column. */
.docs-confluence-doc a {
    overflow-wrap: anywhere;
}

/* Grey03 (#333333), not Grey02 — every heading level on this page, card titles
   included (ARMIP-153 round 2). */
.docs-confluence-doc h2 {
    margin: 32px 0 8px;
    color: var(--iata-grey-40);
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
}

.docs-confluence-doc h3,
.docs-confluence-doc h4 {
    margin: 24px 0 8px;
    color: var(--iata-grey-40);
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
}

/* M was too small to read the guidance comfortably, and it is the size the in-prose
   links inherit (ARMIP-162). L, not a literal 16px — same number, named. The NOTE
   asides below stay at S. */
.docs-confluence-doc p {
    margin: 8px 0;
    color: var(--iata-grey-50);
    font-size: var(--iata-txt-l-size);
    line-height: var(--iata-txt-l-line-height);
}

.docs-confluence-doc ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: disc;
}

.docs-confluence-doc li {
    color: var(--iata-grey-50);
    font-size: var(--iata-txt-l-size);
    line-height: var(--iata-txt-l-line-height);
    margin: 4px 0;
}

.docs-confluence-doc li p {
    margin: 0;
}

.docs-confluence-doc table {
    margin: 16px 0;
    border-collapse: collapse;
    width: 100%;
    max-width: 760px;
}

/* At M these read smaller than the prose beside them once that moved to L, which
   works against the "needs to be more visible" ask in ARMIP-162. */
.docs-confluence-doc table th,
.docs-confluence-doc table td {
    border: var(--iata-border-divider);
    padding: 12px 16px;
    text-align: left;
    font-size: var(--iata-txt-l-size);
    line-height: var(--iata-txt-l-line-height);
    color: var(--iata-grey-50);
}

/* These tables carry the minimum-message requirements and have to stand out from
   the prose around them; grey-99 sank them into the card. Yellow-90 is the design
   system's table tint — not the old #fac832, which the standards guide dropped
   (ARMIP-162, and the standards guide it was checked against). The grid stays: the
   ticket asked for it
   explicitly, so the columns remain distinguishable. */
.docs-confluence-doc table th {
    background: var(--iata-yellow-90);
    color: var(--iata-grey-40);
    font-weight: 700;
}

.docs-confluence-doc table p {
    margin: 0;
}
