:root {
  --pfv-navy: #0a1e42;
  --pfv-navy-deep: #08172f;
  --pfv-gold: #d9b45a;
  --pfv-gold-dark: #b8860b;
  --pfv-ink: #111827;
  --pfv-muted: #5f6b7f;
  --pfv-surface: #f4f5f7;
}

.pfv-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.pfv-frame {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 15, 32, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f7f8fb;
}

.pfv-wrapper:fullscreen .pfv-frame {
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.pfv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 12px 20px;
  background: var(--pfv-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pfv-toolbar-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pfv-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pfv-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pfv-flipbook-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f8fb;
  overflow: hidden;
  perspective: 2400px;
  width: 100%;
  max-width: 100%;
  min-height: 520px;
}

.pfv-wrapper:fullscreen .pfv-flipbook-container {
  border-radius: 0;
}

.pfv-loading-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 2px solid rgba(10, 30, 66, 0.15);
  border-top-color: var(--pfv-navy);
  animation: pfv-spin 0.8s linear infinite;
}

@keyframes pfv-spin {
  to {
    transform: rotate(360deg);
  }
}

.pfv-wrapper:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw !important;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pfv-wrapper:fullscreen .pfv-flipbook-container {
  width: 100% !important;
  height: calc(
    100vh - 58px
  ) !important; /* reserve space for the toolbar above */
  flex: 1 1 auto;
}

.pfv-wrapper:fullscreen .pfv-toolbar {
  flex-shrink: 0;
}

.pfv-flipbook-container:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw !important;
  background: #111;
}

.pfv-loading,
.pfv-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pfv-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 24px;
  text-align: center;
}

.pfv-cover {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.7s ease,
    opacity 0.7s ease;
  opacity: 1;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0);
  /* Ensure covers render above the pageflip element so they are
	   visible/clickable when shown */
  z-index: 40;
}

/* subtle spine/shadow that appears while the cover turns */
.pfv-cover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 16px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateZ(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Front cover hinges on its left edge (the book's spine) and rotates
   away like a real page turn, revealing the book underneath. */
.pfv-cover-front {
  transform-origin: left center;
}

.pfv-cover-front.pfv-cover-opening {
  /* rotate the front cover open around the left spine; keep visible
	   during the turn so the 3D motion reads smoothly */
  transform: rotateY(-160deg);
  opacity: 1;
  pointer-events: none;
  z-index: 30;
  box-shadow: -40px 20px 80px rgba(0, 0, 0, 0.35);
}
.pfv-cover-front.pfv-cover-opening::after {
  opacity: 1;
  transform: translateX(8px);
}

/* Back cover hinges on its right edge, rotating the opposite way. */
.pfv-cover-back {
  transform-origin: right center;
}

.pfv-cover-back.pfv-cover-opening {
  /* rotate the back cover open around the right spine */
  transform: rotateY(160deg);
  opacity: 1;
  pointer-events: none;
  z-index: 20;
  box-shadow: 40px 20px 80px rgba(0, 0, 0, 0.35);
}
.pfv-cover-back.pfv-cover-opening::after {
  /* position the spine shadow on the right */
  left: auto;
  right: 0;
  opacity: 1;
  transform: translateX(-8px);
}

.pfv-pageflip {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.4s ease;
  /* Lower z-index so covers can sit above when displayed */
  z-index: 10;
}

.pfv-pageflip.pfv-pageflip-visible {
  opacity: 1;
}

.pfv-cover img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.16),
    0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  backface-visibility: hidden;
}

.pfv-cover:hover img {
  transform: translateY(-2px);
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.pfv-cover-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  pointer-events: none;
}

/* StPageFlip renders <img> pages inside; keep them crisp and non-draggable */
.pfv-pageflip img {
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pfv-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.pfv-btn:hover {
  background: var(--pfv-gold);
  border-color: var(--pfv-gold);
  color: var(--pfv-navy-deep);
  transform: translateY(-1px);
}

.pfv-page-indicator {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  min-width: 44px;
  text-align: center;
}

.pfv-newsletter-archive-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto 72px;
  padding: 0;
  color: #111827;
}

.pfv-newsletter-archive-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 100px;
  margin: 0 0 0;
  border-radius: 0;
  background: var(--pfv-navy-deep);
  overflow: hidden;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100%;
  min-height: 460px;
  left: 50%;
  transform: translateX(-50%);
}

.pfv-newsletter-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 34, 0.55) 0%,
    rgba(8, 16, 34, 0.88) 100%
  );
  pointer-events: none;
}

.pfv-newsletter-archive-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: saturate(0.75) brightness(0.6);
}

.pfv-newsletter-archive-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pfv-newsletter-archive-eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pfv-navy-deep);
  background: var(--pfv-gold);
  width: auto;
  max-width: fit-content;
  padding: 8px 16px;
  border-radius: 25px;
}

.pfv-single-newsletter-page {
  position: relative;
  overflow: hidden;
  padding: 0 24px 100px;
}

.pfv-single-newsletter-bg {
  position: absolute;
  inset: 0;
  background-color: var(--pfv-navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  z-index: 0;
}

.pfv-single-newsletter-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 34, 0.55) 0%,
    rgba(8, 16, 34, 0.92) 75%,
    var(--pfv-surface) 100%
  );
}

.pfv-single-newsletter-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.pfv-single-newsletter-hero {
  display: flex;
  justify-content: center;
  padding: 90px 0 46px;
  text-align: center;
}

.pfv-single-newsletter-hero-card {
  width: 100%;
  max-width: 720px;
  color: #ffffff;
}

.pfv-single-newsletter-breadcrumb {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.pfv-single-newsletter-breadcrumb a {
  color: var(--pfv-gold);
  text-decoration: none;
}

.pfv-single-newsletter-breadcrumb a:hover {
  text-decoration: underline;
}

.pfv-single-newsletter-hero-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
  font-weight: 700;
}

.pfv-newsletter-excerpt {
  margin: 0 auto 14px;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.pfv-newsletter-meta {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.pfv-single-newsletter {
  background: transparent;
  padding: 0 0 8px;
}

.pfv-single-newsletter-back {
  text-align: center;
  margin: 32px 0 0;
}

.pfv-single-newsletter-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(10, 30, 66, 0.2);
  color: var(--pfv-navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pfv-single-newsletter-back a:hover {
  background: rgba(10, 30, 66, 0.06);
}

.pfv-single-newsletter .pfv-newsletter-content {
  margin-top: 36px;
  line-height: 1.8;
  color: var(--pfv-ink);
}

.pfv-single-newsletter .pfv-newsletter-content p {
  color: var(--pfv-muted);
}

.pfv-single-newsletter .pfv-newsletter-content a {
  color: var(--pfv-navy);
}

.pfv-newsletter-archive-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

.pfv-newsletter-archive-intro {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: #c3cadb;
  max-width: 460px;
}

.pfv-newsletter-archive-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 8px;
}

.pfv-newsletter-archive-hero__meta span,
.pfv-newsletter-card__category {
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3b0c1;
}

.pfv-newsletter-archive-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--pfv-gold);
  color: var(--pfv-navy-deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.pfv-newsletter-archive-cta:hover {
  transform: translateY(-2px);
  background: #c9a24c;
}

.pfv-newsletter-archive-content {
  margin: auto;
  padding: 0 4rem;
}

.pfv-newsletter-archive-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 44px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.pfv-newsletter-archive-heading {
  margin-bottom: 30px;
  text-align: center;
}

.pfv-newsletter-archive-section-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pfv-gold-dark);
}

.pfv-newsletter-archive-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--pfv-ink);
}

.pfv-newsletter-archive-section-copy {
  margin: 0 auto;
  max-width: 460px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--pfv-muted);
}

.pfv-newsletter-category-nav {
  margin-bottom: 34px;
}

.pfv-newsletter-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pfv-newsletter-category-nav__button {
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.pfv-newsletter-category-nav__button.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.pfv-newsletter-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: var(--pfv-muted);
}

.pfv-newsletter-filter-bar strong {
  color: var(--pfv-ink);
  font-weight: 600;
}

.pfv-newsletter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
}

.pfv-newsletter-card {
  position: relative;
  display: block;
  height: 640px;
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 30, 66, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pfv-newsletter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 30, 66, 0.24);
}

.pfv-newsletter-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.pfv-newsletter-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--pfv-gold);
  color: var(--pfv-navy-deep);
}

.pfv-newsletter-card__wordmark {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.pfv-newsletter-card__cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #35507a 0%, var(--pfv-navy-deep) 100%);
}

.pfv-newsletter-card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.pfv-newsletter-card:hover .pfv-newsletter-card__image {
  transform: scale(1.05);
}

.pfv-newsletter-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 1rem;
  color: #9ca3af;
  background: #f8fafc;
}

/* gradient scrim so text stays legible over any image */
.pfv-newsletter-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 15, 32, 0) 40%,
    rgba(8, 15, 32, 0.92) 100%
  );
  pointer-events: none;
}

.pfv-newsletter-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfv-newsletter-card__content h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.pfv-newsletter-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.pfv-newsletter-card__date {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.pfv-newsletter-card__cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pfv-gold);
}

.pfv-archive-pagination {
  margin-top: 36px;
}

.pfv-newsletter-empty {
  padding: 24px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
}

.pfv-newsletter-single {
  max-width: 1180px;
  margin: 40px auto 72px;
  padding: 0 20px;
}

.pfv-newsletter-single__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
  padding: 40px;
  margin-bottom: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0d1426 0%, #18223d 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  color: #fff;
}

.pfv-newsletter-single__copy {
  max-width: 600px;
}

.pfv-newsletter-single__category {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
}

.pfv-newsletter-single__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
}

.pfv-newsletter-single__intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.pfv-newsletter-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pfv-newsletter-single__issue {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pfv-newsletter-single__visual {
  display: flex;
  justify-content: flex-end;
}

.pfv-newsletter-single__image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.pfv-newsletter-single__content {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.pfv-download {
  position: relative;
}

.pfv-download:active {
  transform: translateY(0);
}

.pfv-download-icon {
  display: block;
}

/* Simple tooltip on hover */
.pfv-download::after {
  content: "Download";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.pfv-download:hover::after {
  opacity: 1;
}

@media screen and (max-width: 1920px) {
  .pfv-newsletter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 1080px) {
  .pfv-newsletter-archive-content .pfv-newsletter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 950px) {
  .pfv-newsletter-archive-content .pfv-newsletter-grid {
    grid-template-columns: 1fr;
    place-items: center;
  }
  .pfv-newsletter-card {
    height: 490px;
    max-width: 360px;
  }
}
