/**
 * Discovery of Nature 0.2.52 — gentle calls to action, no layout/logic changes.
 * Scope: homepage and article forum links, bbPress search/submits, shared
 * registration panel buttons and dark public footer account link. The header,
 * login forms, pagination, story cards and media are deliberately excluded.
 */

/* The two existing editorial forum links: retain labels, tap area and href. */
body.dn-dark-home .home-community__cta,
body.dn-dark-article .article-community__intro > a {
  border-radius: 8px;
  background: linear-gradient(155deg, #b0cda5, #a4c49b);
  color: #122219;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
              0 3px 11px rgba(0, 0, 0, .12);
  text-decoration: none;
}
body.dn-dark-home .home-community__cta:hover,
body.dn-dark-home .home-community__cta:focus-visible,
body.dn-dark-article .article-community__intro > a:hover,
body.dn-dark-article .article-community__intro > a:focus-visible {
  background: linear-gradient(155deg, #c3ddb9, #b5d3aa);
  color: #102016;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34),
              0 4px 13px rgba(0, 0, 0, .16);
}

/* bbPress search: soften the square housing without changing the form grid. */
body.dn-dark-forum #bbpress-forums .bbp-search-form form {
  border-radius: 9px;
  border-color: #546e59;
  background: #17251b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .09);
}
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="text"],
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="search"] {
  border-radius: 8px 0 0 8px;
  background: transparent;
}
body.dn-dark-forum #bbpress-forums .bbp-search-form:focus-within form {
  border-color: #a6c99d;
  box-shadow: 0 0 0 2px rgba(166, 201, 157, .32);
}
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="text"]:focus-visible,
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="search"]:focus-visible {
  outline: none;
}

/* bbPress search button and other genuine submit actions; avoid paging links. */
body.dn-dark-forum #bbpress-forums button,
body.dn-dark-forum #bbpress-forums input[type="submit"],
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="submit"] {
  border-radius: 8px;
  border-color: #a1bf97;
  background: linear-gradient(155deg, #b0cda5, #a4c49b);
  color: #122219;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="submit"] {
  border-radius: 0 8px 8px 0;
  border-left-color: #78967a;
}
body.dn-dark-forum #bbpress-forums button:hover,
body.dn-dark-forum #bbpress-forums button:focus-visible,
body.dn-dark-forum #bbpress-forums input[type="submit"]:hover,
body.dn-dark-forum #bbpress-forums input[type="submit"]:focus-visible {
  border-color: #b3d1a8;
  background: linear-gradient(155deg, #c3ddb9, #b5d3aa);
  color: #102016;
}
body.dn-dark-forum #bbpress-forums .bbp-search-form input[type="submit"]:is(:hover, :focus-visible) {
  border-left-color: #78967a;
}
body.dn-dark-forum #bbpress-forums button:focus-visible,
body.dn-dark-forum #bbpress-forums input[type="submit"]:focus-visible {
  outline: 2px solid #c9e6bd;
  outline-offset: 2px;
}

/* Shared registration CTA: visual skin only; preserve primary/secondary roles. */
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-registration-cta__button {
  border-radius: 8px;
  border-color: #68836b;
  background: rgba(28, 49, 34, .74);
  color: #e6f0e1;
  box-shadow: inset 0 1px 0 rgba(222, 241, 214, .06);
  text-decoration: none;
}
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-registration-cta__button:is(:hover, :focus-visible) {
  border-color: #9dbd97;
  background: #294733;
  color: #f2f6ed;
}
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-registration-cta__button--primary {
  border-color: #a1bf97;
  background: linear-gradient(155deg, #b0cda5, #a4c49b);
  color: #122219;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
              0 3px 11px rgba(0, 0, 0, .1);
}
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-registration-cta__button--primary:is(:hover, :focus-visible) {
  border-color: #b3d1a8;
  background: linear-gradient(155deg, #c3ddb9, #b5d3aa);
  color: #102016;
}

/* Footer registration/account control; do not touch approved header actions. */
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-footer__account-button {
  border-radius: 8px;
  border-color: #a1bf97;
  background: linear-gradient(155deg, #b0cda5, #a4c49b);
  color: #122219;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25),
              0 3px 11px rgba(0, 0, 0, .1);
}
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-footer__account-button:is(:hover, :focus-visible) {
  border-color: #b3d1a8;
  background: linear-gradient(155deg, #c3ddb9, #b5d3aa);
  color: #102016;
  outline: none;
}

/* Keyboard indication remains visible, with a less harsh two-tone halo. */
body.dn-dark-home .home-community__cta:focus-visible,
body.dn-dark-article .article-community__intro > a:focus-visible,
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-registration-cta__button:focus-visible,
body:is(.dn-dark-home, .dn-dark-article, .dn-dark-forum, .dn-dark-wildlife,
        .dn-dark-category, .dn-dark-documentary, .dn-dark-remaining,
        .dn-dark-page, .dn-dark-species) .site-footer__account-button:focus-visible {
  outline: 2px solid #c9e6bd;
  outline-offset: 3px;
}

/* Taxonomy mobile variant had one more class of specificity in 0.2.35. */
@media (max-width: 767px) {
  body.dn-dark-remaining.tax-wikipetsia_species .site-registration-cta__button {
    border-color: #68836b;
    background: rgba(28, 49, 34, .74);
    color: #e6f0e1;
  }
  body.dn-dark-remaining.tax-wikipetsia_species .site-registration-cta__button:is(:hover, :focus-visible) {
    border-color: #9dbd97;
    background: #294733;
    color: #f2f6ed;
  }
  body.dn-dark-remaining.tax-wikipetsia_species .site-registration-cta__button--primary {
    border-color: #a1bf97;
    background: linear-gradient(155deg, #b0cda5, #a4c49b);
    color: #122219;
  }
  body.dn-dark-remaining.tax-wikipetsia_species .site-registration-cta__button--primary:is(:hover, :focus-visible) {
    border-color: #b3d1a8;
    background: linear-gradient(155deg, #c3ddb9, #b5d3aa);
    color: #102016;
  }
  body.dn-dark-remaining.tax-wikipetsia_species .site-registration-cta__button:focus-visible {
    outline: 2px solid #c9e6bd;
    outline-offset: 3px;
  }
}

