/*
 * CMS content (pages + news bodies written in the editor) — QA #12: tables had no borders or style.
 * Site colours come from Site Settings » Colors (--color-primary). Wide tables scroll sideways on phones.
 */
.cms-content table {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}
.cms-content th,
.cms-content td {
    padding: 0.55rem 0.75rem;
    border: 1px solid #d9dbe1;
    text-align: left;
    vertical-align: top;
}
.cms-content thead th,
.cms-content tr:first-child > th {
    background: var(--color-primary, #333);
    color: #fff;
    font-weight: 700;
}
.cms-content tbody tr:nth-child(even) td {
    background: #f6f7f9;
}
.cms-content table p {
    margin: 0;
}
@media (max-width: 767px) {
    .cms-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/*
 * Footer (Glen, 2026-10-12): the CMS footer + dorvaloldpros.ca merged — centered dark band, same colour as the header
 * band (Site Settings » Colors » header secondary). Overrides the theme's white .footer-secondary.
 */
.footer-secondary.cms-footer {
    background-color: var(--header-secondary-bg, #1a1a1a);
    color: rgba(255, 255, 255, 0.72);
    padding: 22px 0 18px;
    font-size: 13px;
    line-height: 1.6;
}
.cms-footer p {
    margin: 0 0 6px;
}
.cms-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}
.cms-footer a:hover,
.cms-footer a:focus {
    color: #fff;
    text-decoration: underline;
}
.cms-footer__copyright {
    color: #fff;
    font-size: 14px;
}
.cms-footer__sep {
    margin: 0 8px;
    opacity: 0.5;
}
.cms-footer__legal,
.cms-footer__credits,
.cms-footer__meta {
    font-size: 12px;
}
.cms-footer__credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
}
.cms-footer__badge {
    height: 28px;
    width: auto;
}
.cms-footer__meta a {
    opacity: 0.6;
    font-weight: 700;
}
.cms-footer__meta a.is-active {
    opacity: 1;
}
.cms-footer__version {
    margin-left: 14px;
    opacity: 0.55;
}
