/**
 * Accessibility overrides. Loaded after main.css and rtl.css.
 */

/* <main> receives focus from the skip link; it is not a control, so no focus ring */
#content:focus {
  outline: 0;
}

/* Contrast fixes (accessibility report, item 5). Thresholds: 4.5:1 normal text, 3:1 large text. */

/* Brand blue used as text on white and light gray */
body #pojo-a11y-skip-content,
body header.banner .navbar-nav li.special a:not(.collapsed),
body .box-tabs article > a {
  color: #1a7395;
}

/* Breaking news ticker. Selectors mirror main.css with a body prefix, so they win without !important */
body .breaking-news .carousel .title a,
body .breaking-news .carousel .content .carousel-inner .item a {
  color: #767676;
}

/* Gray breadcrumbs and the "related posts" heading on article pages */
body .breadcrumbs a,
body footer .related-posts {
  color: #767676;
}

/* Links inside post and page text (theme default link color is #5abce2, 2.16:1) */
body .entry-content a,
body main.main > p a,
body main.main > ul a,
body main.main > ol a {
  color: #1a7395;
}

/* "Our authors" bios on dark background */
body .our-authors .item .author-bio {
  color: #8e9093;
}

/* Footer site name on near-black (large text) */
body footer .bottom .site-name {
  color: #616264;
}

/* Red inline color set in a footer text widget; !important is the only way to beat an inline style */
body footer span[style*="color: #ff0000"] {
  color: #ff5252 !important;
}

/* Section titles: same hue, darkened to 3:1 (large text). Hover keeps the theme behaviour. */
body .box .box-title:not(.white) > a {
  color: #249ece;
}
body .box .box-title.gray > a {
  color: #414141;
}
body .box .box-title.purple > a {
  color: #755997;
}
body .box .box-title.red > a {
  color: #d31821;
}
body .box .box-title.green > a {
  color: #009856;
}
body .box .box-title.brown > a {
  color: #9c7636;
}
body .box .box-title.lightgreen > a {
  color: #7ea02e;
}
body .box .box-title.pink > a {
  color: #c356a0;
}
body .box .box-title.yellow > a {
  color: #c48908;
}
body .box .box-title.fuxia > a {
  color: #ec008c;
}
body .box .box-title.orange > a {
  color: #ef6f0c;
}
body .box .box-title.army > a {
  color: #8d962c;
}
body .box .box-title.moka > a {
  color: #a68a7b;
}
body .box .box-title.blue > a {
  color: #1f618a;
}
body .box .box-title.bordo > a {
  color: #bf5050;
}

/* Category badges: dark text where it passes 4.5:1, otherwise a slightly darker background */
body .cat span:not([class]),
body .cat span[class=""] {
  color: #1e1e1e;
}
body .cat span.green {
  background-color: #00864c;
}
body .cat span.brown {
  background-color: #947033;
}
body .cat span.lightgreen {
  color: #1e1e1e;
}
body .cat span.pink {
  background-color: #be4999;
}
body .cat span.yellow {
  color: #1e1e1e;
}
body .cat span.fuxia {
  background-color: #e40087;
}
body .cat span.orange {
  color: #1e1e1e;
}
body .cat span.army {
  color: #1e1e1e;
}
body .cat span.moka {
  color: #1e1e1e;
}
