/* GMU press site (Clarity theme), loaded via the customstyling plugin's press stylesheet.
     Mason Green #006633 (7.12:1 on white) and Mason Gold #ffcc33 (accent only: 1.5:1 on
     white, so never used for text on light backgrounds). The selector matches Clarity's
     built-in palettes and loads after them, but leaves the high-contrast "paper" palette alone. */
  :root:not([data-clarity-palette="paper"]) {
    --brand-primary: #006633;
    --brand-secondary: #4f637d;
    --text-link-alt: #005a2d;
    --focus-shadow: #00381c;
    --article-subgroup-color: #006633;
    --link-hover-color: #006633;
    --nav-text-active: #006633;
  }

  /* Gold rule under the green header, as on Mason's own sites */
  :root:not([data-clarity-palette="paper"]) .site-header {
    border-bottom: 4px solid #ffcc33;
  }

  /* Homepage search: the icon box has a fixed 40px height but the input is 50px */
  .homepage-element-search-bar .input-group .input-group-text {
    height: auto;
  }

  /* Give the wide GMU logo more room than Clarity's narrow logo column */
  @media (min-width: 768px) {
    .site-header .col-md-2:has(.header-image) {
      flex: 0 0 25%;
      max-width: 25%;
    }
  }

  /* Mason Green footer, so the white-text press logo it reuses stays readable.
     White on #006633 is 7.12:1. */
  .site-footer {
    background-color: #006633;
    border-top: 4px solid #ffcc33;
    color: #fff;
  }

  .site-footer a,
  .site-footer a:visited,
  .site-footer a:hover {
    color: #fff;
  }

  /* Clarity's focus colour is a dark green that would vanish here */
  .site-footer a:focus,
  .site-footer a:focus-visible {
    outline: 3px solid #ffcc33;
    outline-offset: 2px;
    box-shadow: none;
  }