/*
Theme Name: My Peak Challenge
Theme URI: mypeakchallenge.com
Author: Armando J. Perez-Carreno
Author URI: perezcarreno.com
Description: My Peak Challenge is a block-based WordPress theme built for the WordPress Site Editor. It is based on the Ollie theme by Mike McAlister.
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, accessibility-ready, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Tested up to: 6.3
Requires PHP: 7.4
Version: 0.7.6
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpc

*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

a,
a:focus,
a:hover {
  text-decoration: underline;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  text-decoration: none;
}

b,
strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
  padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--x-small);
  margin-bottom: 0;
  margin-top: 20px;
  text-align: center;
}

img,
video {
  border-radius: 5px;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
  font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
  color: var(--wp--preset--color--main);
  border-radius: 5px;
  border: solid 1px var(--wp--preset--color--main-accent);
  padding: 0.5em 1em;
  font-size: var(--wp--preset--font-size--small);
  width: 100%;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}

/* Helper styles that can't be done via theme.json
---------------------------------------------------------------------------- */

a.more-link {
  display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--tertiary);
  font-weight: var(--wp--custom--font-weight--medium);
  padding: 3px 5px;
  position: relative;
  border-radius: 3px;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
  margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
  margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding
  .wp-block-post-template
  li:last-child
  .wp-block-separator {
  display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
  display: none;
}

/* Remove top margin from flow layouts when they are the first element after main */
:where(body main.is-layout-flow) > div {
  margin-block-start: 0;
}

/* WooCommerce Styles
---------------------------------------------------------------------------- */
/* Hide 'No Gift Pack' option when switching subscriptions */
body.mpc-switching-subscription #type option[value="No Gift Pack"] {
  display: none !important;
}

/* BuddyPress Styles
---------------------------------------------------------------------------- */
/* BuddyPress main wrapper */
#buddypress.buddypress-wrap {
  max-width: var(--wp--style--global--wide-size);
}

/* Our custom inner wrap for Buddypress, to add support for a sidebar */
.mpc-bp-wrap {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

/* Our custom sidebar div for Buddypress */
.mpc-bp-sidebar {
  flex-shrink: 0;
  width: 100%;
}

/* Our custom wrapper for the content when showing a sidebar */
.mpc-bp-content {
  width: 100%;
  max-width: 940px;
}

/* BuddyPress groups feed search form */
.groups .subnav-filters > ul {
  margin: 0;
  padding-top: 20px;
}

/* Notifications (repeated here because they might show up on any page */
.bb-onscreen-notification-enable
  .bb-onscreen-notification
  .notification-list
  .read-item {
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 10px;
}
/* Notification avatar */
.bb-onscreen-notification-enable
  .bb-onscreen-notification
  .notification-list
  .read-item
  .notification-avatar
  img {
  object-fit: contain;
  height: auto;
}
/* Posted time on notifications */
.bb-onscreen-notification-enable
  .bb-onscreen-notification
  .notification-list
  .read-item
  .notification-content
  span.posted {
  font-size: 0.75rem;
}
/* Clear notifications button */
.bb-onscreen-notification-enable
  .bb-onscreen-notification
  .bb-remove-all-notification
  .action-close {
  font-size: 1rem;
}

/* Remove BP styling from widget section in Group Directory */
.mpc-group-directory-sidebar .widget {
  background: none;
  border: none;
  padding: unset;
}

@media screen and (min-width: 960px) {
  /* Our custom inner wrap for Buddypress, to add support for a sidebar */
  .mpc-bp-wrap {
    flex-wrap: nowrap;
    flex-direction: row-reverse;
  }

  /* Our custom sidebar div for Buddypress */
  .mpc-bp-sidebar {
    flex-shrink: 0;
    width: 300px;
  }
}
