/* Platecraft Addons – blog widgets: meta items (shared with Posts), Archive
   Title, Short Description, Post Meta, Featured Image, Author Box, Post
   Navigation, Term List, Search Form, Share Buttons. Defaults only: every
   part has style controls. */

/* ---------- Meta items ---------- */
.pl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.pl-meta__item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.pl-meta__item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pl-meta__icon {
  display: inline-flex;
  align-items: center;
  margin-right: var(--pl-meta-icon-gap, 6px);
  color: var(--pl-meta-icon-c, currentColor);
  font-size: var(--pl-meta-icon, 1em);
  line-height: 1;
}
.pl-meta__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.pl-meta__avatar {
  width: var(--pl-avatar, 28px);
  height: var(--pl-avatar, 28px);
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}
.pl-meta__before {
  margin-right: 0.3em;
  color: color-mix(in srgb, currentColor 85%, transparent);
}
/* A custom field that holds an image (a logo, say). */
.pl-meta__img {
  display: block;
  max-width: 100%;
  height: auto;
}
.pl-meta__value p {
  margin: 0;
}
.pl-meta__sep {
  opacity: 0.6;
}
.pl-meta__item.has-label {
  flex-direction: column;
  align-items: flex-start;
}
.pl-meta__label {
  display: block;
  font-size: 0.8em;
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.pl-meta__main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Archive Title ---------- */
.pat {
  box-shadow: var(--pat-box-shadow, none);
  display: flex;
  align-items: center;
  justify-content: var(--pat-justify, flex-start);
  gap: var(--pat-icon-gap, 12px);
}
.pat__text {
  min-width: 0;
}
.pat .pat__title {
  margin: 0;
}
.pat--prefix-above .pat__prefix,
.pat--prefix-below .pat__prefix {
  display: inline-block;
}
.pat--prefix-above .pat__prefix {
  margin-bottom: var(--pat-prefix-gap, 6px);
}
.pat--prefix-below .pat__prefix {
  margin-top: var(--pat-prefix-gap, 6px);
}
.pat--prefix-inline .pat__prefix {
  margin-right: calc(var(--pat-prefix-gap, 0px));
  opacity: 0.75;
  font-weight: 400;
}
.pat__count {
  display: inline-block;
  margin-left: var(--pat-count-gap, 0.3em);
  font-size: 0.5em;
  font-weight: 500;
  color: color-mix(in srgb, currentColor 70%, transparent);
  vertical-align: middle;
}
.pat__icon {
  display: inline-flex;
  line-height: 1;
}
.pat__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------- Short Description ---------- */
.pad {
  box-shadow: var(--pad-box-shadow, none);
}
.pat__prefix {
  box-shadow: var(--pat-prefix-shadow, none);
}
.pat .pat__count {
  box-shadow: var(--pat-count-shadow, none);
}
.pad > :last-child {
  margin-bottom: 0;
}
.pad a {
  text-decoration: underline;
}
.pad-drop-yes .pad > :first-child::first-letter,
.pad-drop-yes .pad--plain::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-size: 3.2em;
  font-weight: 700;
  line-height: 0.85;
}

/* ---------- Post Meta ---------- */
.ppm {
  justify-content: var(--ppm-justify, flex-start);
  gap: var(--ppm-gap, 10px) var(--ppm-gap, 16px);
}
.ppm--stacked .ppm {
  flex-direction: column;
  align-items: var(--ppm-justify, flex-start);
}
.ppm--boxes .ppm {
  display: grid;
  grid-template-columns: repeat(var(--ppm-cols, 4), minmax(0, 1fr));
}
.ppm .pl-meta__item {
  box-sizing: border-box;
  border: 0 solid transparent;
  box-shadow: var(--ppm-item-shadow, none);
}
.ppm--boxes .ppm .pl-meta__item {
  padding: 14px 16px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.04);
}
.ppm .pl-meta__label {
  margin-bottom: 2px;
}

/* ---------- Featured Image ---------- */
.pfi {
  position: relative;
  margin: 0;
}
.pfi__frame {
  position: relative;
  overflow: hidden;
  border: 0 solid transparent;
  box-shadow: var(--pfi-img-shadow, none);
  isolation: isolate;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pfi__frame:hover {
  box-shadow: var(--pfi-img-shadow-h, var(--pfi-img-shadow, none));
}
.pfi__link {
  display: block;
}
.pfi .pfi__img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  /* The same functions as on hover: without a hover effect nothing changes, so no transition runs (it moved the image a pixel and back). */
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.pfi__frame:hover .pfi__img {
  transform: scale(var(--pfi-zoom, 1));
}
.pfi__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.pfi__caption {
  margin-top: 8px;
  box-shadow: var(--pfi-caption-shadow, none);
  font-size: 0.9em;
  color: color-mix(in srgb, currentColor 80%, transparent);
}
.pfi--caption-over .pfi__frame .pfi__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  opacity: 1;
}
.pfi__notice,
.ptl__notice {
  margin: 0;
  padding: 12px 16px;
  background: #fff8e5;
  color: #1d2327;
  font-size: 13px;
}

/* ---------- Author Box ---------- */
.pab {
  box-sizing: border-box;
  display: flex;
  flex-direction: var(--pab-dir, row);
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 0 solid transparent;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.03);
  box-shadow: var(--pab-box-shadow, none);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.pab:hover {
  box-shadow: var(--pab-box-shadow-h, var(--pab-box-shadow, none));
}
.pab--right {
  flex-direction: var(--pab-dir-rev, row-reverse);
}
.pab--top {
  flex-direction: column;
  align-items: var(--pab-justify, flex-start);
}
.pab__avatar {
  flex: 0 0 auto;
}
.pab .pab__avatar img {
  display: block;
  width: var(--pab-avatar, 88px);
  height: var(--pab-avatar, 88px);
  margin: 0;
  border: 0 solid transparent;
  border-radius: 50%;
  box-shadow: var(--pab-avatar-shadow, none);
  object-fit: cover;
}
.pab__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: var(--pab-justify, flex-start);
  gap: var(--pab-lines, 6px);
  min-width: 0;
}
.pab__label {
  font-size: 0.8em;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 70%, transparent);
  text-transform: uppercase;
}
.pab .pab__name {
  margin: 0;
}
.pab__name a {
  color: inherit;
  text-decoration: none;
}
.pab .pab__bio {
  margin: 0;
  color: color-mix(in srgb, currentColor 85%, transparent);
}
.pab__count {
  font-size: 0.9em;
  color: color-mix(in srgb, currentColor 75%, transparent);
}
.pab__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: var(--pab-justify, flex-start);
  gap: 12px 20px;
  margin-top: 6px;
}
.pab__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pab-social-gap, 8px);
}
.pab .pab__social a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pab-social, 34px);
  height: var(--pab-social, 34px);
  border: 0 solid transparent;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--pab-social-shadow, none);
  color: inherit;
  font-size: var(--pab-social-icon, 15px);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.pab .pab__social a:hover {
  box-shadow: var(--pab-social-shadow-h, var(--pab-social-shadow, none));
}
.pab .pab__btn:hover {
  box-shadow: var(--pab-btn-shadow-h, var(--pab-btn-shadow, none));
}
.pab__social svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.pab .pab__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0 solid transparent;
  box-shadow: var(--pab-btn-shadow, none);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.pab__btn-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------- Post Navigation ---------- */
.ppn {
  display: flex;
  flex-direction: var(--ppn-dir, row);
  align-items: stretch;
  gap: var(--ppn-gap, 20px);
}
.ppn--divider .ppn__link--prev:not(.is-empty) {
  border-right: var(--ppn-line-w, 1px) solid var(--ppn-line-c, rgba(0, 0, 0, 0.12));
}
.ppn .ppn__link {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: var(--ppn-inner, 14px);
  min-width: 0;
  border: 0 solid transparent;
  box-shadow: var(--ppn-link-shadow, none);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.ppn .ppn__link:hover {
  box-shadow: var(--ppn-link-shadow-h, var(--ppn-link-shadow, none));
}
.ppn .ppn__link--next {
  justify-content: var(--ppn-next-align, flex-end);
  text-align: var(--ppn-next-text, right);
}
.ppn__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ppn__label {
  font-size: 0.8em;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, currentColor 70%, transparent);
  text-transform: uppercase;
}
.ppn__title {
  font-weight: 600;
  line-height: 1.35;
}
.ppn__date {
  font-size: 0.85em;
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.ppn__arrow {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--ppn-arrow-box, auto);
  height: var(--ppn-arrow-box, auto);
  font-size: var(--ppn-arrow, 1.1em);
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s ease;
}
.ppn__arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.ppn__link--prev:hover .ppn__arrow {
  transform: translateX(-3px);
}
.ppn__link--next:hover .ppn__arrow {
  transform: translateX(3px);
}
.ppn__thumb {
  flex: 0 0 auto;
}
.ppn__thumb img {
  display: block;
  width: var(--ppn-thumb, 64px);
  height: var(--ppn-thumb, 64px);
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
}
.ppn__thumb {
  overflow: hidden;
  border-radius: 8px;
}
.ppn__middle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  color: inherit;
  font-size: 22px;
  text-decoration: none;
}
.ppn__middle svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ---------- Term List ---------- */
.ptl .ptl__heading {
  margin: 0 0 14px;
  box-shadow: var(--ptl-heading-shadow, none);
}
.ptl .ptl__items {
  display: flex;
  flex-direction: column;
  gap: var(--ptl-gap, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ptl .ptl__items > li {
  margin: 0;
  padding: 0;
  border-top: 1px none rgba(0, 0, 0, 0.1);
}
.ptl .ptl--list-items > li + li {
  padding-top: var(--ptl-gap, 8px);
}
.ptl .ptl--inline-items,
.ptl .ptl--cloud-items {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: var(--ptl-justify, flex-start);
}
.ptl .ptl--grid-items {
  display: grid;
  grid-template-columns: repeat(var(--ptl-cols, 3), minmax(0, 1fr));
}
.ptl .ptl__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--ptl-icon-gap, 10px);
  border: 0 solid transparent;
  box-shadow: var(--ptl-item-shadow, none);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ptl .ptl__item:hover {
  box-shadow: var(--ptl-item-shadow-h, var(--ptl-item-shadow, none));
}
.ptl--inline-items .ptl__item,
.ptl--cloud-items .ptl__item {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.05);
}
.ptl--grid-items .ptl__item {
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 14px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.04);
}
.ptl .ptl__item.is-current {
  font-weight: 700;
}
.ptl__main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
}
.ptl--inline-items .ptl__main,
.ptl--cloud-items .ptl__main {
  flex: 0 1 auto;
}
.ptl__desc {
  flex-basis: 100%;
  font-size: 0.85em;
  color: color-mix(in srgb, currentColor 75%, transparent);
}
.ptl__count {
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 0 solid transparent;
  box-shadow: var(--ptl-count-shadow, none);
  font-size: 0.85em;
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.ptl__icon {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
}
.ptl__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.ptl .ptl__img {
  flex: 0 0 auto;
  width: var(--ptl-img, 36px);
  height: var(--ptl-img, 36px);
  margin: 0;
  border-radius: 6px;
  object-fit: cover;
}
/* Tag cloud: six size steps between the smallest and biggest size. */
.ptl--cloud-items .ptl__item { --ptl-w: 0.4; font-size: calc(var(--ptl-cloud-min, 0.85em) + (var(--ptl-cloud-max, 1.5em) - var(--ptl-cloud-min, 0.85em)) * var(--ptl-w)); }
.ptl--cloud-items .ptl__item--w0 { --ptl-w: 0; }
.ptl--cloud-items .ptl__item--w1 { --ptl-w: 0.2; }
.ptl--cloud-items .ptl__item--w2 { --ptl-w: 0.4; }
.ptl--cloud-items .ptl__item--w3 { --ptl-w: 0.6; }
.ptl--cloud-items .ptl__item--w4 { --ptl-w: 0.8; }
.ptl--cloud-items .ptl__item--w5 { --ptl-w: 1; }

/* ---------- Search Form ---------- */
.psf {
  display: flex;
}
.psf .psf__form {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: var(--psf-h, 48px);
  margin: 0;
  border: 0 solid transparent;
  box-shadow: var(--psf-form-shadow, none);
}
.psf .psf__input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px 0 0 8px;
  background-color: #fff;
  box-shadow: var(--psf-input-shadow, none);
  color: inherit;
  font: inherit;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.psf .psf__input:focus {
  border-color: currentColor;
  box-shadow: var(--psf-input-shadow-h, var(--psf-input-shadow, none));
}
.psf .psf__btn {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: var(--psf-h, 48px);
  height: 100%;
  margin: 0;
  padding: 0 16px;
  border: 0 solid transparent;
  border-radius: 0 8px 8px 0;
  background-color: #222;
  box-shadow: var(--psf-btn-shadow, none);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.psf .psf__btn:hover {
  background-color: #000;
  box-shadow: var(--psf-btn-shadow-h, var(--psf-btn-shadow, none));
  color: #fff;
}
.psf__btn-icon {
  display: inline-flex;
  font-size: var(--psf-icon, 1em);
  line-height: 1;
}
.psf svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.psf .psf__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  border: 0 solid transparent;
  background: none;
  box-shadow: var(--psf-toggle-shadow, none);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.psf .psf__toggle:hover {
  box-shadow: var(--psf-toggle-shadow-h, var(--psf-toggle-shadow, none));
}
.psf__overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(10, 10, 10, 0.92);
  animation: psf-in 0.25s ease;
}
.psf__overlay[hidden] {
  display: none;
}
.psf__overlay .psf__form {
  width: 100%;
  max-width: 720px;
  height: var(--psf-h, 60px);
}
.psf .psf__close {
  position: absolute;
  top: 20px;
  right: 24px;
  margin: 0;
  padding: 8px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
@keyframes psf-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.psf-open {
  overflow: hidden;
}

/* ---------- Share Buttons ---------- */
.psh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: var(--psh-justify, flex-start);
  gap: 10px 14px;
}
.psh .psh__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--psh-gap, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.psh .psh__list > li {
  margin: 0;
  padding: 0;
}
.psh .psh__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: var(--psh-size, 38px);
  height: var(--psh-size, 38px);
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  box-shadow: var(--psh-btn-shadow, none);
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.psh .psh__btn:hover {
  box-shadow: var(--psh-btn-shadow-h, var(--psh-btn-shadow, none));
}
.psh__icon {
  display: inline-flex;
  font-size: var(--psh-icon, 16px);
  line-height: 1;
}
.psh__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.psh__btn--facebook { --psh-c: #1877f2; }
.psh__btn--x { --psh-c: #000; }
.psh__btn--linkedin { --psh-c: #0a66c2; }
.psh__btn--whatsapp { --psh-c: #25d366; }
.psh__btn--telegram { --psh-c: #229ed9; }
.psh__btn--pinterest { --psh-c: #e60023; }
.psh__btn--reddit { --psh-c: #ff4500; }
.psh__btn--threads { --psh-c: #101010; }
.psh__btn--email { --psh-c: #6b7280; }
.psh__btn--copy { --psh-c: #374151; }
.psh__btn--print { --psh-c: #374151; }
.psh-skin-brand .psh .psh__btn {
  background-color: var(--psh-c, #444);
  color: #fff;
}
.psh-skin-brand .psh .psh__btn:hover {
  opacity: 0.88;
}
.psh-skin-outline .psh .psh__btn {
  border-color: var(--psh-c, #444);
  background-color: transparent;
  color: var(--psh-c, #444);
}
.psh-skin-outline .psh .psh__btn:hover {
  background-color: var(--psh-c, #444);
  color: #fff;
}
.psh-skin-minimal .psh .psh__btn {
  padding: 0 6px;
  background: none;
  color: var(--psh-c, #444);
}
.psh-shape-square .psh .psh__btn { border-radius: 0; }
.psh-shape-rounded .psh .psh__btn { border-radius: 8px; }
.psh-shape-circle .psh .psh__btn { border-radius: 999px; }
.psh .psh__btn.is-copied {
  position: relative;
}
.psh .psh__btn .psh__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 5px 9px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pfi .pfi__img,
  .ppn__arrow,
  .psf__overlay {
    transition: none;
    animation: none;
  }
}
