.coql-site-header.matches-header { display: flex; align-items: center; gap: .7rem 1.2rem; flex-wrap: wrap; padding: .7rem clamp(1rem, 2vw, 2rem); background: var(--org-nav, #173b70); color: var(--org-onnav, #fff); }
.coql-site-header.matches-header .brand { font-size: 1.25rem; font-weight: 600; border-bottom: 0; text-decoration: none; }
.coql-site-header.matches-header a { color: var(--org-onnav, #fff); text-decoration: none; }
.coql-site-header.matches-header a:hover { text-decoration: underline; }
.coql-site-header.matches-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-left: auto; width: auto; order: initial; padding: 0; min-height: 0; background: transparent; font-size: .9rem; }
.coql-site-header.matches-header [aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.coql-site-header.matches-header .coql-auth { margin-left: 0; flex: none; white-space: nowrap; }
.coql-site-header.matches-header .matches-theme-control { float: none; margin: 0; flex: none; width: auto; }
.coql-site-header .coql-header-name { font-size: 1rem; font-weight: 500; }
.coql-site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 1.2rem clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--matches-line, #d9dee8); color: var(--matches-muted, #586577); font: 400 .82rem/1.5 system-ui, sans-serif; }
.coql-site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; min-height: 0; background: transparent; }
.coql-site-footer a { color: var(--matches-link, #0050a8); }
.coql-page .coql-site-footer a { color: var(--org-link, #0050a8); }
:root[data-theme=dark] .coql-page .coql-site-footer a { color: var(--org-link-dark, #80bfff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .coql-page .coql-site-footer a { color: var(--org-link-dark, #80bfff); } }
.coql-site-header a:focus-visible, .coql-site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Keep the real table header aligned inside horizontal scrolling containers. */
.coql-table-sticky-head { position: relative; z-index: 3; background: var(--matches-surface); transform: translateY(var(--coql-head-offset, 0px)); box-shadow: 0 1px 0 var(--matches-line); }
.coql-table-sticky-head th { position: static !important; }
@media (max-width: 750px) {
  .coql-site-header .coql-header-name { display: none; }
  .coql-site-header.matches-header .brand { margin-right: auto; }
  .coql-site-header.matches-header nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .coql-site-footer { align-items: flex-start; flex-direction: column; }
}
