/* Site typography: Plus Jakarta Sans for text and UI (same as the subscriber account area),
   Fraunces for large editorial headings. Loaded last in header-1.php and in the admin header. */
:root {
  --font-jost: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* theme variable */
  --ep-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ep-display: "Fraunces", Georgia, "Times New Roman", serif;
}
body, button, input, select, textarea, optgroup,
.header__menu--link, .offcanvas__menu_item, .primary__btn, .alertify, .ajs-message {
  font-family: var(--ep-font);
}
body { word-spacing: .05em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "ss01" off; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ep-font); letter-spacing: -.015em; }

/* Display serif for page and section titles */
.ep-hx__title, .ep-shop__title, .ep-rowhead__title, .breadcrumb__content--title, .section__heading--maintitle,
.ep-nl__title, .ep-deal__title, .ep-hero__title, .ep-cta__title, .ep-sm__h, .error__content--title,
.ep-footer__cta h2, .ep-footer-cta__title {
  font-family: var(--ep-display) !important;
  font-optical-sizing: auto;
  font-weight: 600 !important;
  letter-spacing: -.02em;
}
.ep-hx__title span { font-style: italic; font-weight: 600; }

/* Numbers line up in prices and stats */
.ep-plan__price, .ep-hx__from b, .ep-mag__facts, .ep-sm__stat b, .current__price, .old__price { font-variant-numeric: tabular-nums; }

/* Slightly tighter UI text so the wider face keeps the same line breaks */
.header__menu--link { font-size: 1.55rem; font-weight: 500; letter-spacing: -.005em; }
.product__items--content__title { letter-spacing: -.01em; }

/* Issue date on magazine cards: calendar chip instead of grey small caps.
   :not(:has(> *)) skips category-page markup that nests the whole card body in this span. */
.product__items--content__subtitle:not(:has(> *)) {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: #fbf3f6; color: #c81a4d;
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  text-transform: none; letter-spacing: .01em; word-spacing: normal; white-space: nowrap;
}
.product__items--content__subtitle:not(:has(> *))::before {
  content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product__items:hover .product__items--content__subtitle:not(:has(> *)) { background: #fde3eb; }
/* Category pages: the date sits in .ep-issue-date inside a wrapper span */
.ep-issue-date {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: #fbf3f6; color: #c81a4d;
  font-size: 1.25rem; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: .01em; word-spacing: normal; white-space: nowrap;
}
.ep-issue-date::before {
  content: ""; flex: none; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product__items:hover .ep-issue-date { background: #fde3eb; }
