/* Additions to the WordPress styles (wp-blocks.css, the theme's style.css, wp-theme.css). */

/* Coloured words in CMS headings (<mark class="has-inline-color ...">) without the browser's yellow highlight;
   the old page set this on each <mark> with an inline style. */
mark.has-inline-color {
    background-color: transparent;
}

/* "Join our team": paragraphs from the CMS keep the old spacing between them */
.nbm-team-text > p {
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--spacing-16, 16px);
}

/* Policy and error pages (the old site had none): CMS text in the theme's colours */
.nbm-page h1 {
    color: var(--wp--preset--color--heading);
    margin-bottom: var(--wp--preset--spacing--spacing-32, 32px);
}

.nbm-page a {
    color: var(--wp--preset--color--base);
}

.nbm-cms-text h2,
.nbm-cms-text h3,
.nbm-cms-text h4 {
    color: var(--wp--preset--color--heading);
    margin-top: var(--wp--preset--spacing--spacing-32, 32px);
}

.nbm-cms-text table {
    width: 100%;
    border-collapse: collapse;
}

.nbm-cms-text th,
.nbm-cms-text td {
    border: 1px solid var(--wp--preset--color--neutral-100, #ddd);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

/* Wide tables scroll on phones instead of widening the page */
@media (max-width: 600px) {
    .nbm-cms-text table {
        display: block;
        overflow-x: auto;
    }
}
