/*
Theme Name: Mrec Theme
Template: kokku-master-theme
Version: 1.0.8
*/

/* Custom Featured Image Overlay with SVG - Standard 4:3 ratio */
.wp-block-post-featured-image.angled-bottom-overlay {
  position: relative;
}

.wp-block-post-featured-image.angled-bottom-overlay::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 101%;
  z-index: 99;
  height: 11%;
  background-color: var(--wp--preset--color--bg-1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544.67 45'%3E%3Cpolygon points='45 0 0 45 544.67 45 544.67 0.38 45 0' style='fill:%23000000'%3E%3C/polygon%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544.67 45'%3E%3Cpolygon points='45 0 0 45 544.67 45 544.67 0.38 45 0' style='fill:%23000000'%3E%3C/polygon%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  mask-position: bottom;
  pointer-events: none;
}

/* Custom Featured Image Overlay with SVG - Square 1:1 ratio */
.wp-block-post-featured-image.angled-bottom-overlay-square {
  position: relative;
}

.wp-block-post-featured-image.angled-bottom-overlay-square::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 101%;
  z-index: 99;
  height: 8%;
  background-color: var(--wp--preset--color--bg-1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544.67 45'%3E%3Cpolygon points='45 0 0 45 544.67 45 544.67 0.38 45 0' style='fill:%23000000'%3E%3C/polygon%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544.67 45'%3E%3Cpolygon points='45 0 0 45 544.67 45 544.67 0.38 45 0' style='fill:%23000000'%3E%3C/polygon%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  mask-position: bottom;
  pointer-events: none;
}

.transaction-details {
  gap: 0.5rem;
  display: grid;
}

.transaction-details .transaction-title {
  font-weight: 700;
  margin: 0;
  min-height: 3em;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.person-details {
  display: grid;
  gap: 0.5rem;
}

.person-details .person-title {
  margin: 0;
  min-height: 1.5em;
}

.person-details p {
  margin: 0;
  min-height: 1.5em;
}

.person-details .person-linkedin a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}

.person-details .linkedin-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  background-color: var(--wp--preset--color--contrast);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg fill='%23000000' height='64px' width='64px' version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='-143 145 512 512' xml:space='preserve'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M113,145c-141.4,0-256,114.6-256,256s114.6,256,256,256s256-114.6,256-256S254.4,145,113,145z M41.4,508.1H-8.5V348.4h49.9 V508.1z M15.1,328.4h-0.4c-18.1,0-29.8-12.2-29.8-27.7c0-15.8,12.1-27.7,30.5-27.7c18.4,0,29.7,11.9,30.1,27.7 C45.6,316.1,33.9,328.4,15.1,328.4z M241,508.1h-56.6v-82.6c0-21.6-8.8-36.4-28.3-36.4c-14.9,0-23.2,10-27,19.6 c-1.4,3.4-1.2,8.2-1.2,13.1v86.3H71.8c0,0,0.7-146.4,0-159.7h56.1v25.1c3.3-11,21.2-26.6,49.8-26.6c35.5,0,63.3,23,63.3,72.4V508.1z '%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg fill='%23000000' height='64px' width='64px' version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='-143 145 512 512' xml:space='preserve'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M113,145c-141.4,0-256,114.6-256,256s114.6,256,256,256s256-114.6,256-256S254.4,145,113,145z M41.4,508.1H-8.5V348.4h49.9 V508.1z M15.1,328.4h-0.4c-18.1,0-29.8-12.2-29.8-27.7c0-15.8,12.1-27.7,30.5-27.7c18.4,0,29.7,11.9,30.1,27.7 C45.6,316.1,33.9,328.4,15.1,328.4z M241,508.1h-56.6v-82.6c0-21.6-8.8-36.4-28.3-36.4c-14.9,0-23.2,10-27,19.6 c-1.4,3.4-1.2,8.2-1.2,13.1v86.3H71.8c0,0,0.7-146.4,0-159.7h56.1v25.1c3.3-11,21.2-26.6,49.8-26.6c35.5,0,63.3,23,63.3,72.4V508.1z '%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Apply styling to links, but EXCLUDE:
   1. WP Buttons (wp-element-button, wp-block-button__link)
   2. Links inside Navigation blocks (.wp-block-navigation *)
   3. Links inside ANY container with class .no-link-hover (.no-link-hover *)
*/
a:where(:not(.wp-element-button):not(.wp-block-button__link)):not(
    .wp-block-navigation *
  ):not(.no-link-hover *) {
  /* --- 1. Typography & Underline (The Base) --- */
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  /* --- 2. Dynamic Color Mix --- */
  /* Uses your WP Accent 1 color at 20% opacity */
  --highlight-color: color-mix(
    in srgb,
    var(--wp--preset--color--accent-1),
    transparent 80%
  );

  /* --- 3. The Sliding Setup --- */
  background-image: linear-gradient(
    var(--highlight-color),
    var(--highlight-color)
  );
  background-repeat: no-repeat;
  background-position: 0% 100%;
  background-size: 0% 100%;

  /* --- 4. The Transition --- */
  transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Hover & Focus State */
a:where(:not(.wp-element-button):not(.wp-block-button__link)):not(
    .wp-block-navigation *
  ):not(.no-link-hover *):hover,
a:where(:not(.wp-element-button):not(.wp-block-button__link)):not(
    .wp-block-navigation *
  ):not(.no-link-hover *):focus {
  color: inherit;
  background-size: 100% 100%;
  text-decoration-color: transparent;

  transition:
    background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    text-decoration-color 0.3s ease-in-out;
}

.wp-image-mrec-logo img {
  object-fit: contain;
  height: auto;
  width: auto;
  max-height: 50px;
  min-height: 35px;
}
