/* Small corrections on top of the theme (main.css), loaded after it. One block per fix; see issue #18. */

/* A25: contrast. Orange text on light backgrounds was 2.87:1, white on the footer blue 3.48:1. */
.page-title-content__text a,
.welcome-content__descriptions a,
.section-title__description a,
.portfolio-content-box__text a,
.portfolio-content-box__text .text-highlight-min,
.blog-content__text a,
.blog-content a,
.blog-content__text .text-highlight-min,
.content__description a,
.contact-form a,
.section-title .section-title__sub-heading {
  color: #c43d0f;
}
.bg-dodger-blue {
  background-color: #0a62c9 !important;
}

/* A3: honeypot field, invisible to people (and to screen readers via aria-hidden) */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__status.is-error {
  color: #c0392b;
}

/* A4: the email link on the contact card was dark on orange (2.05:1): white and underlined */
.widget--contact .widget-body a {
  color: #fff;
  text-decoration: underline;
}

/* A13: footer logo capped on phones (and no distortion when the width attribute is overridden) */
.footer-widgets .brand-logo img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 767.98px) {
  .footer-widgets .brand-logo img {
    width: 160px;
  }
}
.footer-social-share .icon-x {
  vertical-align: -2px;
}

/* A26: home feature tabs: SVG icons (not <i>) need the spacing and colours the pill gives <i> icons */
.widget--feature {
  padding: 0 12px;
}
.widget--feature svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.widget--feature.active svg,
.widget--feature:hover svg {
  color: #ff5722;
}

/* A27: bullet lists use the body text size; the band under the header on game pages is gone */
.portfolio-content-box-box ul li {
  font-size: 18px;
  line-height: 32px;
  color: var(--color-texts-3);
}
.portfolio-details-area.mt-md-7 {
  margin-top: 0 !important;
  padding-top: 190px;
}
@media (min-width: 768px) {
  .portfolio-details-area.mt-md-7 {
    padding-top: 150px;
  }
}
@media (min-width: 992px) {
  .portfolio-details-area.mt-md-7 {
    padding-top: 170px;
  }
}

/* A27: legal pages: list items at body size (they were ~13px), and room after each list */
.blog-content li {
  font-size: 18px;
  line-height: 32px;
}
.blog-content ul,
.blog-content ol {
  margin-bottom: 30px;
}
.blog-content li > ul,
.blog-content li > ol {
  margin-bottom: 0;
}

/* A28: About page story: the theme's blog-details block added ~175px above and ~235px around the quote */
.feature-section--l3 .blog-details {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 30px;
}

/* B6: "Locked Gate (coming soon)" is a label in the Games/Apps menu, not a link */
.site-menu-main .sub-menu--item-soon > span {
  display: block;
  padding: 15px 10px;
  opacity: 0.6;
  cursor: default;
}
@media (min-width: 992px) {
  .site-menu-main .sub-menu--item-soon > span {
    padding: 7px 25px 10px;
  }
}

/* B7: analytics consent banner, and the footer button that reopens it */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  background: #fff;
  color: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.consent-banner[hidden] {
  display: none;
}
.consent-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
}
.consent-banner__text a {
  color: #1d4ed8;
  text-decoration: underline;
}
.consent-banner__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.consent-banner__btn {
  min-width: 96px;
  padding: 10px 18px;
  border: 2px solid #1a1a2e;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.consent-banner__btn[data-consent='granted'] {
  background: #1a1a2e;
  color: #fff;
}
.consent-banner__btn:focus-visible,
.copyright__consent:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}
.copyright__consent {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Legal pages on phones: the theme's 25px h1 was smaller than the 27.85px h2s */
@media (max-width: 575px) {
  .blog-title__heading {
    font-size: 32px;
  }
  .blog-content h2 {
    font-size: 24px;
  }
}
