/* ==========================================================================
   Pendova Blog — brand layer over Kadence.
   Raspberry #ED0E47 · Blush #FFE8EE · Ink #1A1A1A · Muted #6B7280 · Manrope
   ========================================================================== */

html body {
  --global-palette1: #ED0E47;
  --global-palette2: #D40A3E;
  --global-palette3: #1A1A1A;
  --global-palette4: #2A2438;
  --global-palette5: #4B4860;
  --global-palette6: #6B7280;
  --global-palette7: #FFE8EE;
  --global-palette8: #F9F9F9;
  --global-palette9: #ffffff;
  --global-palette-highlight: #ED0E47;
  --global-palette-highlight-alt: #D40A3E;
  --global-palette-btn-bg: #ED0E47;
  --global-palette-btn-bg-hover: #D40A3E;
  --global-body-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --global-heading-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pd-gradient: linear-gradient(90deg, #FF5C8A 0%, #ED0E47 55%, #D40A3E 100%);
  --pd-line: #F1E4E9;
  --pd-shadow-card: 0 14px 34px rgba(122, 10, 42, .10);
  --pd-shadow-cta: 0 12px 26px rgba(237, 14, 71, .28);
  font-family: var(--global-body-font-family);
  background: #F9F9F9;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
::selection { background: #ED0E47; color: #fff; }
body :focus-visible { outline: 3px solid rgba(237, 14, 71, .45); outline-offset: 3px; border-radius: 8px; }

.pd-container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.pd-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #ED0E47; }

/* ---------- Buttons ---------- */
.pd-btn, .wp-block-button__link, body button.submit, body input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  background: var(--pd-gradient); color: #fff !important; font-weight: 600; text-decoration: none;
  padding: 10px 24px; box-shadow: var(--pd-shadow-cta);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pd-btn:hover, .wp-block-button__link:hover, body input[type="submit"]:hover {
  transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 16px 30px rgba(237, 14, 71, .34);
}

/* ---------- Header (mirrors the main site) ---------- */
.pd-header {
  position: sticky; top: 0; z-index: 1000; background: #FFE8EE;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.single .pd-header, .page .pd-header { background: #F9F9F9; }
.pd-header.is-scrolled {
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--pd-line), 0 10px 30px rgba(122, 10, 42, .06);
}
.pd-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; transition: min-height .25s ease; }
.pd-header.is-scrolled .pd-header-row { min-height: 68px; }
.pd-logo img { display: block; width: 170px; height: auto; }
.pd-nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.pd-nav a { position: relative; color: #333; font-weight: 600; font-size: 16px; text-decoration: none; padding: 5px 0; }
.pd-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--pd-gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.pd-nav a:hover, .pd-nav a.is-active { color: #ED0E47; }
.pd-nav a:hover::after, .pd-nav a.is-active::after { transform: scaleX(1); }
.pd-burger { display: none; background: transparent; border: 0; padding: 6px; box-shadow: none; cursor: pointer; }
.pd-burger:hover, .pd-burger:focus { background: transparent; box-shadow: none; }

.pd-drawer { position: fixed; inset: 0; z-index: 2000; background: rgba(26, 26, 26, .45); }
.pd-drawer[hidden] { display: none; }
.pd-drawer-panel {
  width: min(320px, 86vw); height: 100%; background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px;
  animation: pd-slide .25s ease;
}
@keyframes pd-slide { from { transform: translateX(-100%); } to { transform: none; } }
.pd-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pd-drawer-close { background: #F5F3F8; color: #1A1A1A; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; padding: 0; box-shadow: none; cursor: pointer; }
.pd-drawer-close:hover { background: #FFE8EE; color: #ED0E47; box-shadow: none; }
.pd-drawer nav { display: flex; flex-direction: column; }
.pd-drawer nav a { padding: 14px 4px; font-weight: 600; font-size: 17px; color: #1A1A1A; text-decoration: none; border-bottom: 1px solid var(--pd-line); }
.pd-drawer nav a.is-active, .pd-drawer nav a:hover { color: #ED0E47; }
.pd-drawer-cta { margin-top: 18px; min-height: 50px; }

/* Shared header (main site chrome): same sticky offset for in-page anchors */
html { scroll-padding-top: 110px; }

/* ---------- Blog hero ---------- */
.pd-hero { background: #FFE8EE; text-align: center; padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 60px); position: relative; overflow: hidden; }
.pd-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 92, 138, .25), rgba(255, 92, 138, 0)); pointer-events: none;
}
.pd-hero-title {
  margin: 10px auto 0; max-width: 900px; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.1;
  letter-spacing: -.02em; font-weight: 700; color: #1A1A1A; text-wrap: balance;
}
.pd-hero-title span { color: #ED0E47; }
.pd-hero-sub { margin: 16px auto 0; max-width: 640px; font-size: clamp(.98rem, .9rem + .4vw, 1.2rem); color: #6B7280; line-height: 1.6; }
.pd-search {
  margin: 26px auto 0; width: min(560px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 18px; height: 56px;
  background: #fff; border: 1.5px solid var(--pd-line); border-radius: 999px; color: #6B7280;
  box-shadow: 0 10px 28px rgba(122, 10, 42, .08); transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-search:focus-within { border-color: #ED0E47; box-shadow: 0 0 0 4px rgba(237, 14, 71, .12); }
.pd-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; color: #1A1A1A; padding: 0; }
.pd-search button { border: 0; border-radius: 999px; background: var(--pd-gradient); color: #fff; font-weight: 600; padding: 0 22px; height: 44px; cursor: pointer; box-shadow: none; }
.pd-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pd-chip {
  padding: 9px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--pd-line); color: #1A1A1A;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: all .2s ease;
}
.pd-chip:hover { border-color: #ED0E47; color: #ED0E47; }
.pd-chip.is-active { background: var(--pd-gradient); border-color: transparent; color: #fff; box-shadow: var(--pd-shadow-cta); }

/* Kadence's own archive title bar is replaced by the hero */
.blog .entry-hero, .archive .entry-hero, .search .entry-hero { display: none; }

/* ---------- Post cards ---------- */
.content-area { margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(36px, 5vw, 72px); }
.kadence-posts-list.grid-cols { gap: 28px; }
@media (min-width: 1025px) {
  .post-archive.grid-cols.grid-lg-col-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.loop-entry.entry {
  border-radius: 20px; overflow: hidden; background: #fff; border: 1.5px solid var(--pd-line); box-shadow: none;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.loop-entry.entry:hover { transform: translateY(-5px); box-shadow: var(--pd-shadow-card); border-color: rgba(237, 14, 71, .28); }
.loop-entry .post-thumbnail { overflow: hidden; }
.loop-entry .post-thumbnail img { transition: transform .5s ease; }
.loop-entry.entry:hover .post-thumbnail img { transform: scale(1.04); }
.loop-entry .entry-content-wrap { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.loop-entry .entry-taxonomies { margin-bottom: 10px; }
.entry-taxonomies .category-links a {
  display: inline-block; background: #FFE8EE; color: #ED0E47 !important; border-radius: 999px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.entry-taxonomies .category-links a:hover { background: #ED0E47; color: #fff !important; }
.loop-entry .entry-title { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.loop-entry .entry-title a { color: #1A1A1A; text-decoration: none; background-image: linear-gradient(#ED0E47, #ED0E47); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease, color .2s ease; }
.loop-entry.entry:hover .entry-title a { color: #ED0E47; }
.entry-meta { color: #6B7280; font-size: 13px; }
.entry-meta a { color: #6B7280; text-decoration: none; }
.entry-meta a:hover { color: #ED0E47; }
.loop-entry .entry-summary { color: #4B4860; font-size: 15px; line-height: 1.6; margin-top: 10px; }
.loop-entry .entry-footer { margin-top: auto; padding-top: 14px; }
.post-more-link {
  color: #ED0E47 !important; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-more-link .kadence-svg-iconset { transition: transform .2s ease; }
.post-more-link:hover .kadence-svg-iconset { transform: translateX(4px); }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.5px solid var(--pd-line); background: #fff; color: #1A1A1A; font-weight: 600; text-decoration: none; transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: #ED0E47; color: #ED0E47; }
.pagination .page-numbers.current { background: var(--pd-gradient); border-color: transparent; color: #fff; box-shadow: var(--pd-shadow-cta); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* ---------- Single article ---------- */
.single .content-area { margin-top: clamp(20px, 3vw, 40px); }
.single .article-post-thumbnail { border-radius: 24px; overflow: hidden; }
.single-entry.entry { border-radius: 24px; border: 1.5px solid var(--pd-line); box-shadow: 0 24px 60px rgba(122, 10, 42, .08); }
.single .single-entry > .entry-content-wrap > .entry-header .entry-title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: #1A1A1A; text-wrap: balance; }
.single-content { font-size: 1.08rem; line-height: 1.8; color: #2A2438; }
.single-content > * { max-width: 100%; }
.single-content p { margin-bottom: 1.35em; }
.single-content h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; margin: 2em 0 .6em; color: #1A1A1A; }
.single-content h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); font-weight: 700; margin: 1.7em 0 .5em; color: #1A1A1A; }
.single-content h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--pd-gradient); margin-bottom: 14px; }
.single-content a:not(.wp-block-button__link):not(.pd-store) { color: #ED0E47; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.single-content a:not(.wp-block-button__link):not(.pd-store):hover { color: #D40A3E; }
.single-content ul:not(.wp-block-social-links), .single-content ol { padding-left: 1.3em; margin-bottom: 1.35em; }
.single-content ul:not(.wp-block-social-links) li::marker { color: #ED0E47; }
.single-content li { margin-bottom: .45em; }
.single-content img { border-radius: 18px; }
.single-content blockquote {
  margin: 1.8em 0; padding: 20px 24px; border: 0; border-left: 4px solid #ED0E47; border-radius: 0 18px 18px 0;
  background: #FFE8EE; font-size: 1.12rem; font-weight: 600; color: #1A1A1A;
}
.single-content blockquote p:last-child { margin-bottom: 0; }
.single-content table { border-collapse: collapse; width: 100%; border-radius: 14px; overflow: hidden; }
.single-content th { background: #FFE8EE; color: #1A1A1A; text-align: left; }
.single-content th, .single-content td { padding: 12px 14px; border: 1px solid var(--pd-line); }
.entry-tags a, .tag-links a { border-radius: 999px !important; border-color: var(--pd-line) !important; color: #1A1A1A !important; }
.entry-tags a:hover, .tag-links a:hover { border-color: #ED0E47 !important; color: #ED0E47 !important; background: #FFE8EE !important; }

/* App download card under the article */
.pd-cta {
  margin: 2.4em 0 .4em; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: #FFE8EE;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden;
}
.pd-cta::before { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 92, 138, .32), rgba(255, 92, 138, 0)); }
.pd-cta > * { position: relative; }
.pd-cta-title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 8px 0 8px !important; color: #1A1A1A; }
.pd-cta-title span { color: #ED0E47; }
.pd-cta-sub { color: #6B7280; font-size: 15px; margin: 0 0 16px !important; }
.pd-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-store {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: #1A1A1A; color: #fff !important;
  text-decoration: none !important; font-weight: 700; font-size: 15px; line-height: 1.15; transition: transform .2s ease, box-shadow .2s ease;
}
.pd-store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(26, 26, 26, .22); }
.pd-store img { width: 22px; height: 22px; object-fit: contain; border-radius: 0 !important; }
.pd-store small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
.pd-cta-qr { width: 120px; height: 120px; border-radius: 16px !important; background: #fff; padding: 8px; flex-shrink: 0; }

/* Post navigation + related */
.post-navigation .nav-links a { text-decoration: none; }
.post-navigation .post-navigation-sub { color: #ED0E47; font-weight: 700; letter-spacing: .04em; }
.post-navigation a:hover { color: #ED0E47; }
.entry-related { background: #FFE8EE; padding-block: clamp(32px, 5vw, 56px); }
.entry-related-title { font-weight: 800; letter-spacing: -.01em; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
/* Related cards are loop cards: keep the card type scale, never the article headline scale */
.entry-related .loop-entry .entry-title,
.single .loop-entry .entry-header .entry-title {
  font-size: 1.1rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-related .loop-entry .entry-content-wrap { padding: 18px 20px 20px; }
.entry-related .loop-entry .entry-meta { font-size: 12.5px; margin-top: 6px; }
.entry-related .splide__slide { height: auto; display: flex; }
.entry-related .splide__slide > .loop-entry { width: 100%; }
/* Carousel controls in the brand style */
.entry-related .splide__arrow {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--pd-line); opacity: 1;
  box-shadow: 0 10px 24px rgba(122, 10, 42, .12); transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.entry-related .splide__arrow svg { fill: #1A1A1A; width: 16px; height: 16px; transition: fill .2s ease; }
.entry-related .splide__arrow:hover:not(:disabled) { background: #ED0E47; border-color: #ED0E47; }
.entry-related .splide__arrow:hover:not(:disabled) svg { fill: #fff; }
.entry-related .splide__arrow--prev { left: -10px; }
.entry-related .splide__arrow--next { right: -10px; }
.entry-related .splide__pagination { position: static; margin-top: 22px; gap: 6px; }
.entry-related .splide__pagination__page { width: 8px; height: 8px; margin: 0; background: rgba(237, 14, 71, .22); opacity: 1; border-radius: 999px; transition: width .25s ease, background .25s ease; }
.entry-related .splide__pagination__page.is-active { width: 26px; background: #ED0E47; transform: none; }
@media (max-width: 640px) {
  .entry-related .splide__arrow--prev { left: 4px; }
  .entry-related .splide__arrow--next { right: 4px; }
}
.comment-respond, .comments-area { border-radius: 20px; }
.comment-form input:not([type="submit"]), .comment-form textarea { border-radius: 14px !important; border: 1.5px solid var(--pd-line) !important; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #ED0E47 !important; box-shadow: 0 0 0 4px rgba(237, 14, 71, .12) !important; }

/* ---------- Article page: progress bar, two-column grid, sidebar ---------- */
.pd-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; pointer-events: none; }
.pd-progress span { display: block; height: 100%; width: 0; background: var(--pd-gradient); border-radius: 0 3px 3px 0; transition: width .1s linear; }

.pd-readtime { white-space: nowrap; }

@media (min-width: 1025px) {
  /* Beat Kadence's narrow-post cap (.content-width-narrow .content-container.site-container) */
  body.pd-has-sidebar .content-container.site-container.pd-article-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 3vw, 48px); align-items: start;
    max-width: 1240px;
  }
  .pd-sidebar { position: sticky; top: 96px; align-self: start; }
}
.pd-has-sidebar .pd-article-grid > #main { min-width: 0; }

/* Kadence's "wide" featured image breaks out of its container. With a sidebar it must stay
   inside the article column at every width (otherwise it runs under the sidebar on desktop
   and past the edge of the screen on phones). */
.pd-has-sidebar .article-post-thumbnail.alignwide,
.pd-has-sidebar .article-post-thumbnail {
  margin-left: 0 !important; margin-right: 0 !important; width: auto !important; max-width: 100% !important;
}

/* Kadence's full-bleed related band lives inside the article column now */
.pd-has-sidebar .entry-related.alignfull {
  margin-left: 0; margin-right: 0; width: auto; max-width: 100%; border-radius: 22px; margin-top: 32px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 28px);
}
/* Kadence gives the inner wrapper a "wide" alignment (negative side margins), which made the
   carousel wider than its band and pushed it under the sidebar. Keep every layer inside the
   article column and clip anything that still tries to escape. */
.pd-has-sidebar .entry-related.alignfull { overflow: hidden; }
.pd-has-sidebar .entry-related .entry-related-inner,
.pd-has-sidebar .entry-related .entry-related-inner.content-container.site-container {
  padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important;
}
.pd-has-sidebar .entry-related .entry-related-inner-content,
.pd-has-sidebar .entry-related .entry-related-inner-content.alignwide {
  margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100% !important;
}
.pd-has-sidebar .entry-related .entry-related-carousel { position: relative; }
.pd-has-sidebar .entry-related .splide__arrow--prev { left: 6px; }
.pd-has-sidebar .entry-related .splide__arrow--next { right: 6px; }

.pd-sidebar-inner { display: flex; flex-direction: column; gap: 18px; }
.pd-widget { background: #fff; border: 1.5px solid var(--pd-line); border-radius: 20px; padding: 20px; }
.pd-widget-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1A1A1A; }

/* Table of contents */
.pd-toc[hidden] { display: none; }
.pd-toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1A1A1A;
}
.pd-toc summary::-webkit-details-marker { display: none; }
.pd-toc summary svg { color: #ED0E47; transition: transform .25s ease; flex-shrink: 0; }
.pd-toc[open] summary svg { transform: rotate(180deg); }
.pd-toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: pd-toc; border-left: 2px solid var(--pd-line); }
.pd-toc li { counter-increment: pd-toc; margin: 0; }
.pd-toc a {
  display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #4B4860;
  font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .2s ease, border-color .2s ease;
}
.pd-toc a:hover { color: #ED0E47; }
.pd-toc a.is-active { color: #ED0E47; font-weight: 700; border-left-color: #ED0E47; }
.pd-toc li.pd-toc-sub a { padding-left: 28px; font-size: 13px; }

/* Share */
.pd-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-share-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: #FFE8EE; color: #ED0E47; border: 0; box-shadow: none; cursor: pointer; text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pd-share-btn:hover, .pd-share-btn:focus-visible { background: #ED0E47; color: #fff; transform: translateY(-2px); box-shadow: none; }
.pd-share-whatsapp { background: #E7F9EE; color: #1FB457; }
.pd-share-whatsapp:hover { background: #25D366; color: #fff; }
.pd-share-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #16A34A; min-height: 0; }
.pd-share-note:empty { display: none; }

/* Latest articles */
.pd-latest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pd-latest-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.pd-latest-thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #FFE8EE; }
.pd-latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pd-latest-item:hover .pd-latest-thumb img { transform: scale(1.06); }
.pd-latest-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pd-latest-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.35; color: #1A1A1A; transition: color .2s ease;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-latest-item:hover .pd-latest-title { color: #ED0E47; }
.pd-latest-meta { font-size: 12px; color: #6B7280; }

/* Topics */
.pd-topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-topic-chips .pd-chip { padding: 7px 14px; font-size: 13px; }

/* App card */
.pd-app { background: #FFE8EE; border-color: transparent; text-align: center; position: relative; overflow: hidden; }
.pd-app::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 92, 138, .35), rgba(255, 92, 138, 0)); }
.pd-app > * { position: relative; }
.pd-app-title { margin: 8px 0 14px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #1A1A1A; }
.pd-app-title span { color: #ED0E47; }
.pd-app-qr { width: 108px; height: 108px; background: #fff; border-radius: 16px; padding: 8px; margin: 0 auto 14px; display: block; }
.pd-app-btn { width: 100%; min-height: 46px; }

/* Floating share (phones, when the native share sheet exists) */
.pd-fab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 900; width: 54px; height: 54px; border-radius: 50%;
  border: 0; padding: 0; background: var(--pd-gradient); color: #fff; box-shadow: var(--pd-shadow-cta); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .25s ease, translate .25s ease;
}
.pd-fab[hidden] { display: none; }
.pd-fab.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (min-width: 1025px) { .pd-fab { display: none !important; } }

/* ---------- Article page on tablets and phones ---------- */
@media (max-width: 1024px) {
  .pd-sidebar { margin-top: 28px; }
  .pd-has-sidebar .single-entry.entry { margin-left: 0; margin-right: 0; max-width: 100%; }
  /* The contents box is moved above the article by blog.js and starts collapsed */
  .single-entry .pd-toc { margin: 0 0 22px; background: #FFF5F8; border-color: #FFD8E0; }
  .single-entry .pd-toc summary { padding: 2px 0; }

  /* Latest articles become a swipeable row */
  .pd-latest { padding-right: 0; }
  .pd-latest-list {
    flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 6px 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pd-latest-list::-webkit-scrollbar { display: none; }
  .pd-latest-list li { flex: 0 0 min(72%, 280px); scroll-snap-align: start; }
  .pd-latest-item { flex-direction: column; align-items: stretch; gap: 10px; background: #fff; border: 1.5px solid var(--pd-line); border-radius: 16px; overflow: hidden; height: 100%; }
  .pd-latest-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .pd-latest-text { padding: 0 14px 14px; }
}
@media (max-width: 640px) {
  .single .content-container.site-container { padding-left: 14px; padding-right: 14px; }
  .single .article-post-thumbnail { border-radius: 18px; }
  .single-entry.entry { border-radius: 20px; }
  .single-entry .entry-content-wrap { padding: 22px 18px; }
  .single .single-entry > .entry-content-wrap > .entry-header .entry-title { font-size: 1.7rem; }
  .single-content h2 { font-size: 1.3rem; }
  .pd-widget { padding: 18px; border-radius: 18px; }
  .pd-share-row { justify-content: space-between; }
  .pd-share-btn { width: 48px; height: 48px; }
  .pd-has-sidebar .entry-related.alignfull { border-radius: 18px; }
  .post-navigation .nav-links { gap: 12px; }
}

/* ---------- Footer (mirrors the main site) ---------- */
.pd-footer { background: #15111f; color: #fff; padding: clamp(36px, 5vw, 64px) 0 28px; position: relative; }
.pd-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #43C2FE, #AD87B5, #F55C83); }
.pd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr; gap: 32px; }
.pd-footer-brand img { width: 160px; height: auto; margin-bottom: 18px; }
.pd-footer-brand p { color: #fff; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.pd-footer-title { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin: 0 0 16px; }
.pd-footer ul { list-style: none; margin: 0; padding: 0; }
.pd-footer li { margin-bottom: 10px; }
.pd-footer li a { color: #fff; opacity: .88; font-size: 15px; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.pd-footer li a:hover { color: #FF7DA3; opacity: 1; padding-left: 4px; }
.pd-footer-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-footer-stores a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.pd-footer-stores a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pd-footer-stores img { width: 18px; height: 18px; object-fit: contain; margin: 0; }
.pd-social { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s ease, transform .2s ease; }
.pd-social a:hover { background: #ED0E47; transform: translateY(-2px); }
.pd-social img { width: 18px; height: 18px; object-fit: contain; }
.pd-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .10); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pd-footer-bottom p { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pd-nav, .pd-header-cta { display: none; }
  .pd-burger { display: inline-flex; }
  .pd-header-row { min-height: 72px; }
  .pd-logo img { width: 150px; }
}
@media (max-width: 640px) {
  .pd-footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-footer-bottom { flex-direction: column; }
  .pd-cta { flex-direction: column; align-items: flex-start; }
  .pd-cta-qr { display: none; }
  .pd-search button { padding: 0 16px; }
  .single-content { font-size: 1.02rem; }
  .loop-entry .entry-content-wrap { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
