/* Latest PI news. All styles stay inside the shortcode section. */
.fpinews {
  --fpinews-red: #FF0000;
  --fpinews-ink: #242424;
  --fpinews-muted: #666;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--fpinews-ink);
  font-family: inherit;
  text-align: left;
}

.fpinews *,
.fpinews *::before,
.fpinews *::after {
  box-sizing: border-box;
}

.fpinews .fpinews__header {
  margin: 0 0 25px;
  padding: 0;
}

.fpinews .fpinews__heading.orp-enquadrat {
  display: block;
  margin: 0 !important;
  padding: 15px;
  border: 0;
  background: #d7d7d7;
  color: #555;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.fpinews .fpinews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.fpinews .fpinews__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.fpinews .fpinews__image-link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eef0f2;
  line-height: 0;
  text-decoration: none;
}

.fpinews .fpinews__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.fpinews .fpinews__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px;
}

.fpinews .fpinews__date {
  display: block;
  margin: 0;
  color: var(--fpinews-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.fpinews .fpinews__title {
  display: block;
  width: 100%;
  margin: 9px 0 16px;
  padding: 0;
  color: var(--fpinews-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.01em;
  text-transform: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.fpinews .fpinews__title a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.fpinews .fpinews__title a:hover {
  color: var(--fpinews-ink);
  text-decoration: underline;
  text-decoration-color: var(--fpinews-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.fpinews .fpinews__read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  max-width: 100%;
  margin: auto 0 0;
  padding: 9px 16px;
  border: 1px solid #000;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.fpinews .fpinews__read:hover {
  background: #242424;
  color: #fff;
  text-decoration: none;
}

.fpinews .fpinews__empty a {
  color: var(--fpinews-ink);
  text-decoration: underline;
  text-decoration-color: var(--fpinews-red);
  text-underline-offset: 3px;
}

.fpinews .fpinews__empty {
  margin: 0;
  padding: 20px;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  background: #fff;
  color: var(--fpinews-muted);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fpinews a:focus-visible {
  outline: 3px solid var(--fpinews-red);
  outline-offset: 4px;
}

.fpinews .fpinews__image-link:focus-visible {
  outline-offset: -4px;
}

.fpinews .fpinews__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .fpinews .fpinews__grid { gap: 16px; }
  .fpinews .fpinews__body { padding: 16px; }
  .fpinews .fpinews__title { font-size: 17px; }
}

@media (max-width: 767px) {
  .fpinews .fpinews__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fpinews .fpinews__heading.orp-enquadrat { font-size: 17px; }
  .fpinews .fpinews__body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fpinews *,
  .fpinews *::before,
  .fpinews *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
