/**
 * Papepo unified design — loaded only when 「統一設計樣式」 is ON.
 * Tokens defined once; every control of a kind shares them.
 */
body.papepo-unified-design {
  --psh-radius: 6px;
  --psh-input-h: 36px;
  --psh-btn-h: 36px;
  --psh-btn-h-sm: 36px;
  --psh-btn-h-lg: 52px;

  --psh-primary: #0b022d;
  --psh-primary-hover: #1a0a4a;
  --psh-secondary: #ff8f2b;
  --psh-secondary-fg: #2a1600;
  --psh-danger: #d63638;
  --psh-danger-hover: #b32d2e;
  --psh-success: #146c36;
  --psh-success-bg: #e7f6ec;
  --psh-warning: #856404;
  --psh-warning-bg: #fff8e1;
  --psh-info: #2271b1;
  --psh-info-bg: #e7f3ff;
  --psh-danger-bg: #fde8e8;
  --psh-neutral: #5c6570;
  --psh-ink: #313042;
  --psh-slate: #2c3e50;
  --psh-muted: #5c6570;
  --psh-paper: #f4f2f6;
  --psh-cream: #fff8e5;
  --psh-line: #dcdcde;
  --psh-white: #ffffff;
  --psh-surface: #ffffff;
  --psh-surface-muted: #f6f7f7;
  --psh-focus: rgba(11, 2, 45, 0.28);
  --psh-card-shadow: 0 2px 8px rgba(11, 2, 45, 0.08);
  --psh-card-shadow-hover: 0 1px 3px rgba(11, 2, 45, 0.10);
  --psh-card-title: #3f4650;
  /* Content cards: was 24px all sides; +20 top, +30 bottom, +10 L/R */
  --psh-card-pad-t: 44px;
  --psh-card-pad-r: 34px;
  --psh-card-pad-b: 54px;
  --psh-card-pad-l: 34px;
  /* Card style 2 · icon card */
  --psh-card-icon-top: 40px;
  --psh-card-icon-gap: 22px;
  --psh-card-icon-size: 32px;
  /* Card style 3 · image card */
  --psh-card-img-h: 200px;
  --psh-card-img-gap: 26px;
  --psh-card-img-scale: 1.06;
  --psh-link-on-dark: #ffffff;
  --psh-link-on-dark-hover: var(--psh-secondary);
  --psh-menu-hover-bg: var(--psh-primary);
  --psh-menu-hover-fg: #ffffff;


  --psh-font: "Segoe UI", "Avenir Next", "Nunito Sans", system-ui, -apple-system, sans-serif;
  --psh-font-mono: "SFMono-Regular", Consolas, ui-monospace, monospace;
  --psh-fs: 14px;
  --psh-lh: 1.55;

  --psh-1: 4px;
  --psh-2: 8px;
  --psh-3: 12px;
  --psh-4: 16px;
  --psh-5: 24px;
  --psh-6: 32px;
  --psh-7: 48px;

  --psh-table-border: 1px solid var(--psh-line);
}

/* Also expose tokens on .ps so Site shortcode breakouts keep them */
body.papepo-unified-design .ps {
  --psh-radius: inherit;
  font-family: var(--psh-font);
  font-size: var(--psh-fs);
  line-height: var(--psh-lh);
  color: var(--psh-slate);
}

body.papepo-unified-design .ps h3 {
  font-size: 1.275rem;
}

body.papepo-unified-design .ps .ps-fine,
body.papepo-unified-design .ps .ps-footer__fine,
body.papepo-unified-design .ps .ps-lead,
body.papepo-unified-design .ps .ps-muted,
body.papepo-unified-design .ps p {
  font-size: var(--psh-fs);
}

/* Pricing-card plan note. The paragraph rule above is 14px and would match
   p.psh-plan-note. This selector is more specific, so the note stays 4px
   smaller than the 14px description, with space above the note and the button. */
.psh-plan-note,
.ps p.psh-plan-note,
body.papepo-unified-design .ps p.psh-plan-note {
  font-size: calc(14px - 4px);
  margin: 8px 0 10px;
}

/* Footer bottom bar stays 10px (do not inherit --psh-fs) */
body.papepo-unified-design .ps .ps-footer__base,
body.papepo-unified-design .ps .ps-footer__base p,
body.papepo-unified-design .ps .ps-footer__base span,
body.papepo-unified-design .ps .ps-footer__base a {
  font-size: 10px;
}

body.papepo-unified-design .ps .ps-lead {
  font-size: 1rem;
  color: var(--psh-muted);
}

/* ========== Buttons (Site + Hub aliases) ========== */
body.papepo-unified-design .psh-btn,
body.papepo-unified-design .ps-btn,
body.papepo-unified-design a.ps-btn,
body.papepo-unified-design button.ps-btn,
body.papepo-unified-design .cb-btn,
body.papepo-unified-design a.cb-btn,
body.papepo-unified-design button.cb-btn,
body.papepo-unified-design .psh-plan-btn,
body.papepo-unified-design a.psh-plan-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  height: var(--psh-btn-h) !important;
  min-height: var(--psh-btn-h) !important;
  padding: 0 12px !important;
  border-radius: var(--psh-radius) !important;
  border: 1px solid transparent !important;
  font-family: var(--psh-font) !important;
  font-weight: 650 !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box !important;
  transition: background .15s, border-color .15s, color .15s, filter .15s, opacity .15s;
}

body.papepo-unified-design .psh-btn:focus-visible,
body.papepo-unified-design .ps-btn:focus-visible,
body.papepo-unified-design .cb-btn:focus-visible {
  outline: 2px solid var(--psh-focus);
  outline-offset: 2px;
}

/* Primary — Site dark, Hub blue→primary, plan btn */
body.papepo-unified-design .psh-btn--primary,
body.papepo-unified-design .ps-btn--dark,
body.papepo-unified-design a.ps-btn.ps-btn--dark,
body.papepo-unified-design button.ps-btn.ps-btn--dark,
body.papepo-unified-design .cb-btn-primary,
body.papepo-unified-design a.cb-btn-primary,
body.papepo-unified-design button.cb-btn-primary,
body.papepo-unified-design .psh-plan-btn:not(.test-mode-btn) {
  background: var(--psh-primary) !important;
  color: #fff !important;
  border-color: var(--psh-primary) !important;
  box-shadow: none !important;
}

body.papepo-unified-design .psh-btn--primary:hover,
body.papepo-unified-design .ps-btn--dark:hover,
body.papepo-unified-design a.ps-btn.ps-btn--dark:hover,
body.papepo-unified-design .cb-btn-primary:hover,
body.papepo-unified-design .psh-plan-btn:not(.test-mode-btn):hover {
  background: var(--psh-primary-hover) !important;
  color: #fff !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Secondary / orange */
body.papepo-unified-design .psh-btn--secondary,
body.papepo-unified-design .ps-btn--orange {
  background: var(--psh-secondary) !important;
  color: var(--psh-secondary-fg) !important;
  border-color: var(--psh-secondary) !important;
}

body.papepo-unified-design .psh-btn--secondary:hover,
body.papepo-unified-design .ps-btn--orange:hover {
  filter: brightness(0.96);
}

/* Outline / ghost / Hub secondary */
body.papepo-unified-design .psh-btn--outline,
body.papepo-unified-design .ps-btn--ghost,
body.papepo-unified-design a.ps-btn.ps-btn--ghost,
body.papepo-unified-design .cb-btn-secondary,
body.papepo-unified-design a.cb-btn-secondary,
body.papepo-unified-design button.cb-btn-secondary {
  background: #fff !important;
  color: var(--psh-primary) !important;
  border-color: var(--psh-primary) !important;
}

body.papepo-unified-design .psh-btn--outline:hover,
body.papepo-unified-design .ps-btn--ghost:hover,
body.papepo-unified-design .cb-btn-secondary:hover {
  background: var(--psh-paper) !important;
}

/* Ghost on dark hero — keep light outline */
body.papepo-unified-design .ps-btn--ghostlight {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Danger */
body.papepo-unified-design .psh-btn--danger,
body.papepo-unified-design .psh-plan-btn.test-mode-btn,
body.papepo-unified-design .psh-cancel-sub-btn,
body.papepo-unified-design a.psh-cancel-sub-btn {
  background: var(--psh-danger) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
}

body.papepo-unified-design .psh-btn--danger:hover,
body.papepo-unified-design .psh-plan-btn.test-mode-btn:hover,
body.papepo-unified-design .psh-cancel-sub-btn:hover {
  background: var(--psh-danger-hover) !important;
  color: #fff !important;
}

/* Cancel subscription: solid danger, no outline / movement */
body.papepo-unified-design a.psh-cancel-sub-btn,
body.papepo-unified-design a.psh-cancel-sub-btn.cb-btn-secondary {
  background: var(--psh-danger, #d63638) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
}
body.papepo-unified-design a.psh-cancel-sub-btn:hover,
body.papepo-unified-design a.psh-cancel-sub-btn.cb-btn-secondary:hover {
  background: var(--psh-danger-hover, #b32d2e) !important;
  color: #fff !important;
  transform: none !important;
  filter: none !important;
}

body.papepo-unified-design .psh-btn--link {
  background: transparent !important;
  color: var(--psh-info) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-decoration: underline !important;
}

body.papepo-unified-design .psh-btn:disabled,
body.papepo-unified-design .ps-btn:disabled,
body.papepo-unified-design .cb-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Newsletter / auth full-width buttons keep width */
body.papepo-unified-design .ps-newsform button,
body.papepo-unified-design .ps-auth__card .ps-btn {
  border-radius: var(--psh-radius) !important;
  height: var(--psh-btn-h) !important;
  min-height: var(--psh-btn-h) !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
}

/* 1.2.27: newsletter Subscribe = hero primary (orange) colours and hover. */
body.papepo-unified-design .ps-newsform button,
body.papepo-unified-design .ps-newsform button[type="submit"] {
  background: var(--psh-secondary) !important;
  background-color: var(--psh-secondary) !important;
  color: var(--psh-secondary-fg) !important;
  border-color: var(--psh-secondary) !important;
}
body.papepo-unified-design .ps-newsform button:hover,
body.papepo-unified-design .ps-newsform button:focus {
  background: var(--psh-secondary) !important;
  color: var(--psh-secondary-fg) !important;
  filter: brightness(0.96);
}

body.papepo-unified-design .ps-header__actions .ps-btn {
  min-height: var(--psh-btn-h) !important;
  height: var(--psh-btn-h) !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
  border-radius: var(--psh-radius) !important;
}

/* ========== Inputs ========== */
body.papepo-unified-design .psh-input,
body.papepo-unified-design .psh-select,
body.papepo-unified-design .psh-textarea,
body.papepo-unified-design .ps-search input,
body.papepo-unified-design .ps-auth__card input[type="text"],
body.papepo-unified-design .ps-auth__card input[type="password"],
body.papepo-unified-design .ps-auth__card input[type="email"],
body.papepo-unified-design .ps-newsform input[type="email"],
body.papepo-unified-design .cb-portal-wrap input[type="text"],
body.papepo-unified-design .cb-portal-wrap input[type="email"],
body.papepo-unified-design .cb-portal-wrap input[type="password"],
body.papepo-unified-design .cb-portal-wrap input[type="url"],
body.papepo-unified-design .cb-portal-wrap input[type="number"],
body.papepo-unified-design .cb-portal-wrap select,
body.papepo-unified-design .cb-portal-wrap textarea,
body.papepo-unified-design .papepo-pricing-wrap input,
body.papepo-unified-design .psh-pricing-wrapper input,
body.papepo-unified-design select[name="a_status"],
body.papepo-unified-design select[name="a_expiry"] {
  height: var(--psh-input-h) !important;
  min-height: var(--psh-input-h) !important;
  padding: 0 14px !important;
  border: 1px solid var(--psh-line) !important;
  border-radius: var(--psh-radius) !important;
  background: var(--psh-white) !important;
  color: var(--psh-ink) !important;
  font-family: var(--psh-font) !important;
  font-size: var(--psh-fs) !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
}

body.papepo-unified-design .psh-textarea,
body.papepo-unified-design .cb-portal-wrap textarea,
body.papepo-unified-design textarea[name="user_address"] {
  height: auto !important;
  min-height: 110px !important;
  padding: 12px 14px !important;
  border-radius: var(--psh-radius) !important;
}

body.papepo-unified-design .psh-file,
body.papepo-unified-design .cb-portal-wrap input[type="file"] {
  border: 1px dashed var(--psh-line) !important;
  border-radius: var(--psh-radius) !important;
  background: var(--psh-surface-muted) !important;
  font-size: 0.8rem !important;
  color: var(--psh-muted) !important;
  padding: 12px !important;
  height: auto !important;
  min-height: 0 !important;
}

body.papepo-unified-design .ps-search input {
  width: auto;
  border-radius: var(--psh-radius) !important;
}

/* ========== Cards ========== */
body.papepo-unified-design .psh-card,
body.papepo-unified-design .psh-card--icon,
body.papepo-unified-design .psh-card--image,
body.papepo-unified-design .ps-card,
body.papepo-unified-design .ps-featuregrid article,
body.papepo-unified-design .ps-pillars article,
body.papepo-unified-design .ps-catalog__card,
body.papepo-unified-design .ps-postcard,
body.papepo-unified-design .ps-donate,
body.papepo-unified-design .ps-seal,
body.papepo-unified-design .ps-auth__card,
body.papepo-unified-design .cb-card,
body.papepo-unified-design .cb-table-section,
body.papepo-unified-design .psh-card-sub {
  border: 1px solid transparent !important; /* reserve space — no layout jump on hover */
  border-radius: var(--psh-radius) !important;
  box-shadow: var(--psh-card-shadow) !important;
  background: #fff !important;
  padding: var(--psh-card-pad-t) var(--psh-card-pad-r) var(--psh-card-pad-b) var(--psh-card-pad-l) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}

body.papepo-unified-design .psh-card:hover,
body.papepo-unified-design .psh-card--icon:hover,
body.papepo-unified-design .ps-card:hover,
body.papepo-unified-design .ps-featuregrid article:hover,
body.papepo-unified-design .ps-pillars article:hover,
body.papepo-unified-design .ps-catalog__card:hover,
body.papepo-unified-design .ps-postcard:hover,
body.papepo-unified-design .ps-auth__card:hover,
body.papepo-unified-design .cb-card:hover,
body.papepo-unified-design .cb-table-section:hover,
body.papepo-unified-design .psh-card-sub:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: var(--psh-card-shadow-hover) !important;
  border-color: var(--psh-secondary) !important;
}

/* Icons inside content cards → secondary orange on card hover */
body.papepo-unified-design .psh-card:hover .ps-feature-icon,
body.papepo-unified-design .ps-card:hover .ps-feature-icon,
body.papepo-unified-design .ps-featuregrid article:hover .ps-feature-icon,
body.papepo-unified-design .ps-pillars article:hover .ps-feature-icon,
body.papepo-unified-design .ps-catalog__card:hover .ps-feature-icon,
body.papepo-unified-design .psh-card:hover .psh-card-icon,
body.papepo-unified-design .cb-card:hover .ps-feature-icon,
body.papepo-unified-design .cb-card:hover svg[stroke="currentColor"] {
  color: var(--psh-secondary) !important;
}
body.papepo-unified-design .ps-featuregrid article:hover .ps-feature-icon svg,
body.papepo-unified-design .psh-card:hover .ps-feature-icon svg {
  color: var(--psh-secondary) !important;
  stroke: currentColor;
}

body.papepo-unified-design .psh-card h4,
body.papepo-unified-design .ps-card h2,
body.papepo-unified-design .ps-card h3,
body.papepo-unified-design .cb-card-title,
body.papepo-unified-design .psh-card .cb-card-title {
  color: var(--psh-card-title) !important;
}

body.papepo-unified-design .ps-postcard img,
body.papepo-unified-design .ps-article__hero img {
  border-radius: var(--psh-radius) var(--psh-radius) 0 0 !important;
}

/* ========== Pricing cards ========== */
body.papepo-unified-design .psh-plan-card,
body.papepo-unified-design .psh-price {
  background: #fff !important;
  border: 2px solid transparent !important;
  border-radius: var(--psh-radius) !important;
  box-shadow: var(--psh-card-shadow) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
  cursor: pointer;
}

body.papepo-unified-design .psh-plan-card:hover,
body.papepo-unified-design .psh-plan-card.is-selected,
body.papepo-unified-design .psh-price:hover,
body.papepo-unified-design .psh-price.is-selected,
body.papepo-unified-design .psh-price.featured {
  border-color: var(--psh-primary) !important;
}

body.papepo-unified-design .psh-plan-card:hover,
body.papepo-unified-design .psh-price:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: 0 1px 3px rgba(11, 2, 45, 0.10) !important;
}

body.papepo-unified-design .psh-plan-card.is-selected:not(:hover),
body.papepo-unified-design .psh-price.is-selected:not(:hover),
body.papepo-unified-design .psh-price.featured:not(:hover) {
  box-shadow: 0 6px 18px rgba(11, 2, 45, 0.12) !important;
  transform: none !important;
}

/* Plan cards: orange edge. Brand --psh-secondary (#ff8f2b) is 2.28:1 on white,
   so the border uses #e06a00 (3.37:1 on white, 5.87:1 on navy). */
body.papepo-unified-design .psh-plan-card:hover,
body.papepo-unified-design .psh-plan-card:focus-within,
body.papepo-unified-design .psh-plan-card.is-selected {
  border-color: #e06a00 !important;
}
body.papepo-unified-design .psh-plan-card:focus-within {
  outline: 2px solid #e06a00 !important;
  outline-offset: 2px;
}
body.papepo-unified-design .psh-plan-btn:focus-visible {
  outline: 2px solid #e06a00 !important;
  outline-offset: 2px;
}

body.papepo-unified-design .psh-plan-btn {
  width: 100% !important;
}

/* ========== Tables ========== */
body.papepo-unified-design .psh-table-wrap,
body.papepo-unified-design .ps-tablewrap,
body.papepo-unified-design .cb-table-scroll {
  overflow-x: auto;
  border: var(--psh-table-border) !important;
  border-radius: var(--psh-radius) !important;
  background: #fff !important;
}

body.papepo-unified-design .psh-table,
body.papepo-unified-design .ps-table,
body.papepo-unified-design .cb-table {
  width: 100%;
  border-collapse: collapse !important;
  font-size: var(--psh-fs) !important;
}

body.papepo-unified-design .psh-table th,
body.papepo-unified-design .psh-table td,
body.papepo-unified-design .ps-table th,
body.papepo-unified-design .ps-table td,
body.papepo-unified-design .cb-table th,
body.papepo-unified-design .cb-table td {
  padding: 12px 14px !important;
  border-bottom: var(--psh-table-border) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  vertical-align: middle;
  font-size: var(--psh-fs) !important;
}

body.papepo-unified-design .psh-table th,
body.papepo-unified-design .ps-table th,
body.papepo-unified-design .cb-table th {
  background: var(--psh-surface-muted) !important;
  color: var(--psh-muted) !important;
  font-weight: 650 !important;
}

body.papepo-unified-design .ps-table th {
  /* Site used dark header — unify to muted grey */
  background: var(--psh-surface-muted) !important;
  color: var(--psh-muted) !important;
}

body.papepo-unified-design .psh-table tr:last-child td,
body.papepo-unified-design .ps-table tr:last-child td,
body.papepo-unified-design .cb-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* ========== Tabs ========== */
body.papepo-unified-design .ps-tabs__bar button,
body.papepo-unified-design .psh-tab,
body.papepo-unified-design .cb-portal-wrap a[href*="?tab="] {
  height: var(--psh-btn-h) !important;
  min-height: var(--psh-btn-h) !important;
  padding: 0 14px !important;
  border-radius: var(--psh-radius) !important;
  border: 1px solid var(--psh-line) !important;
  background: #fff !important;
  color: var(--psh-ink) !important;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  line-height: var(--psh-btn-h) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

body.papepo-unified-design .ps-tabs__bar button[aria-selected="true"],
body.papepo-unified-design .psh-tab[aria-selected="true"] {
  background: var(--psh-primary) !important;
  color: #fff !important;
  border-color: var(--psh-primary) !important;
}

/* Customer portal tabs: active + hover/focus/tap = secondary orange, white text, no border/movement */
body.papepo-unified-design .cb-portal-wrap a.psh-portal-tab.is-active,
body.papepo-unified-design .cb-portal-wrap .psh-portal-tabs a.psh-portal-tab.is-active,
body.papepo-unified-design .cb-portal-wrap a.psh-portal-tab:hover,
body.papepo-unified-design .cb-portal-wrap .psh-portal-tabs a.psh-portal-tab:hover,
body.papepo-unified-design .cb-portal-wrap a.psh-portal-tab:focus-visible,
body.papepo-unified-design .cb-portal-wrap .psh-portal-tabs a.psh-portal-tab:focus-visible,
body.papepo-unified-design .cb-portal-wrap a.psh-portal-tab:active,
body.papepo-unified-design .cb-portal-wrap .psh-portal-tabs a.psh-portal-tab:active {
  background: var(--psh-secondary, #ff8f2b) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
  transform: none !important;
  filter: none !important;
}

/* Portal action row: solid WP blue (same as Download), no outline */
body.papepo-unified-design .cb-portal-wrap .psh-portal-btn-blue,
body.papepo-unified-design .cb-portal-wrap a.psh-portal-btn-blue {
  background: #2271b1 !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
}
body.papepo-unified-design .cb-portal-wrap .psh-portal-btn-blue:hover,
body.papepo-unified-design .cb-portal-wrap a.psh-portal-btn-blue:hover {
  background: #135e96 !important;
  color: #fff !important;
  transform: none !important;
  filter: none !important;
}

/* ========== Badges ========== */
body.papepo-unified-design .psh-badge,
body.papepo-unified-design .cb-badge,
body.papepo-unified-design span.badge {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 10px !important;
  border-radius: var(--psh-radius) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  line-height: 1.2;
}

body.papepo-unified-design .cb-badge-active,
body.papepo-unified-design .psh-badge--ok {
  background: var(--psh-success-bg) !important;
  color: var(--psh-success) !important;
  border-color: #c3e6cb !important;
}

/* ========== Notices ========== */
body.papepo-unified-design .psh-notice,
body.papepo-unified-design .ps-note,
body.papepo-unified-design .psh-checkout-notice {
  padding: 14px 16px !important;
  border-radius: var(--psh-radius) !important;
  border: 1px solid transparent !important;
  font-size: 0.825rem !important;
  box-sizing: border-box;
}

body.papepo-unified-design .ps-note--ok,
body.papepo-unified-design .psh-notice--success,
body.papepo-unified-design .psh-checkout-success {
  background: var(--psh-success-bg) !important;
  color: var(--psh-success) !important;
  border-color: #c3e6cb !important;
}

body.papepo-unified-design .ps-note--err,
body.papepo-unified-design .ps-note--bad,
body.papepo-unified-design .psh-notice--error,
body.papepo-unified-design .psh-checkout-cancel {
  background: var(--psh-danger-bg) !important;
  color: #9b1c1c !important;
  border-color: #f5c6cb !important;
}

body.papepo-unified-design .psh-notice--info {
  background: var(--psh-info-bg) !important;
  color: #0b3d66 !important;
  border-color: #b6d4fe !important;
}

body.papepo-unified-design .psh-notice--warning {
  background: var(--psh-warning-bg) !important;
  color: var(--psh-warning) !important;
  border-color: #ffeeba !important;
}

/* Hub inline account notices: catch common alert boxes inside portal */
body.papepo-unified-design .cb-portal-wrap div[style*="border-radius:4px"],
body.papepo-unified-design .cb-portal-wrap div[style*="border-radius: 4px"] {
  border-radius: var(--psh-radius) !important;
  font-size: 0.825rem !important;
}

/* Stripe card element frame */
body.papepo-unified-design #psh-card-element {
  border-radius: var(--psh-radius) !important;
  border: 1px solid var(--psh-line) !important;
  min-height: var(--psh-input-h) !important;
}

/* Filter / modal buttons in portal */
body.papepo-unified-design .cb-portal-wrap button[type="submit"],
body.papepo-unified-design .cb-portal-wrap button:not(.psh-tab),
body.papepo-unified-design #pshModalAgreeBtn {
  border-radius: var(--psh-radius) !important;
  height: var(--psh-btn-h) !important;
  min-height: var(--psh-btn-h) !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  box-sizing: border-box !important;
}

/* ========== Mobile ========== */
@media (max-width: 640px) {
  body.papepo-unified-design .psh-btn:not(.psh-btn--link),
  body.papepo-unified-design .ps-btn,
  body.papepo-unified-design a.ps-btn,
  body.papepo-unified-design button.ps-btn,
  body.papepo-unified-design .cb-btn,
  body.papepo-unified-design a.cb-btn,
  body.papepo-unified-design .psh-plan-btn,
  body.papepo-unified-design .ps-newsform button,
  body.papepo-unified-design .ps-auth__card .ps-btn {
    width: 100% !important;
  }

  body.papepo-unified-design .ps-header__actions .ps-btn {
    width: auto !important;
  }

  body.papepo-unified-design .psh-input,
  body.papepo-unified-design .psh-select,
  body.papepo-unified-design .psh-textarea,
  body.papepo-unified-design .ps-auth__card input,
  body.papepo-unified-design .ps-newsform input[type="email"],
  body.papepo-unified-design .cb-portal-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.papepo-unified-design .cb-portal-wrap select,
  body.papepo-unified-design .cb-portal-wrap textarea {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ========== Card style 2 · Icon card (.psh-card--icon) ========== */
body.papepo-unified-design .psh-card--icon,
body.papepo-unified-design article.psh-card--icon,
body.papepo-unified-design .ps-featuregrid article.psh-card--icon {
  /* Beat .ps-featuregrid article padding; same visual as 1.0.16 #features */
  padding-top: var(--psh-card-icon-top) !important;
  padding-right: var(--psh-card-pad-r) !important;
  padding-bottom: var(--psh-card-pad-b) !important;
  padding-left: var(--psh-card-pad-l) !important;
}
body.papepo-unified-design .psh-card--icon .ps-feature-icon,
body.papepo-unified-design .psh-card--icon .psh-card-icon,
body.papepo-unified-design article.psh-card--icon .ps-feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 var(--psh-card-icon-gap);
  color: var(--psh-primary);
}
body.papepo-unified-design .psh-card--icon .ps-feature-icon svg,
body.papepo-unified-design .psh-card--icon .psh-card-icon svg,
body.papepo-unified-design article.psh-card--icon .ps-feature-icon svg {
  width: var(--psh-card-icon-size);
  height: var(--psh-card-icon-size);
  display: block;
}
body.papepo-unified-design .psh-card--icon:hover .ps-feature-icon,
body.papepo-unified-design .psh-card--icon:hover .psh-card-icon,
body.papepo-unified-design article.psh-card--icon:hover .ps-feature-icon {
  color: var(--psh-secondary) !important;
}




/* ========== LOCAL: home nosub band — full-bleed fixed bg ========== */
body.papepo-unified-design .ps-nosub.psh-on-dark,
body.papepo-unified-design .ps-nosub {
  position: relative;
  width: var(--ps-vw, 100vw);
  max-width: var(--ps-vw, 100vw);
  margin-left: calc(50% - var(--ps-vw, 100vw) / 2);
  margin-right: calc(50% - var(--ps-vw, 100vw) / 2);
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  /* was min-height 320px; +100 then +100 more → 520px */
  min-height: 520px;
  padding: calc(2.5rem + 50px) 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #0b022d;
  background-image: var(--ps-nosub-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
}
body.papepo-unified-design .ps-nosub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 2, 45, 0.72);
  z-index: 0;
  pointer-events: none;
}
body.papepo-unified-design .ps-nosub__media {
  display: none !important;
}
body.papepo-unified-design .ps-nosub__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--max, 1120px), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}
body.papepo-unified-design .ps-nosub__copy h2,
body.papepo-unified-design .ps-nosub__title {
  color: #fff !important;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  /* was clamp(1.7rem, 3vw, 2.5rem) ≈ 40px desktop; +20px → 3.75rem */
  font-size: clamp(1.85rem, 4.5vw, 3.75rem) !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
body.papepo-unified-design .ps-nosub__title-line {
  display: block;
}
@media (min-width: 768px) {
  body.papepo-unified-design .ps-nosub__title-line {
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  body.papepo-unified-design .ps-nosub {
    background-attachment: scroll;
  }
}
@supports (-webkit-touch-callout: none) {
  body.papepo-unified-design .ps-nosub {
    background-attachment: scroll;
  }
}

/* ========== GLOBAL: links on dark backgrounds ========== */
/* Use .psh-on-dark on any dark/image band, or .psh-link--on-dark on a single link. */
body.papepo-unified-design .psh-link--on-dark,
body.papepo-unified-design .psh-on-dark a:not(.ps-btn--orange):not(.ps-btn--dark):not(.ps-btn--primary):not(.psh-btn--primary):not(.psh-btn--secondary):not(.psh-btn--danger):not(.psh-plan-btn):not(.ps-btn--auth):not(.ps-logo) {
  color: var(--psh-link-on-dark, #fff) !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
}
body.papepo-unified-design .psh-link--on-dark:hover,
body.papepo-unified-design .psh-link--on-dark:focus-visible,
body.papepo-unified-design .psh-link--on-dark:active,
body.papepo-unified-design .psh-on-dark a:not(.ps-btn--orange):not(.ps-btn--dark):not(.ps-btn--primary):not(.psh-btn--primary):not(.psh-btn--secondary):not(.psh-btn--danger):not(.psh-plan-btn):not(.ps-btn--auth):not(.ps-logo):hover,
body.papepo-unified-design .psh-on-dark a:not(.ps-btn--orange):not(.ps-btn--dark):not(.ps-btn--primary):not(.psh-btn--primary):not(.psh-btn--secondary):not(.psh-btn--danger):not(.psh-plan-btn):not(.ps-btn--auth):not(.ps-logo):focus-visible,
body.papepo-unified-design .psh-on-dark a:not(.ps-btn--orange):not(.ps-btn--dark):not(.ps-btn--primary):not(.psh-btn--primary):not(.psh-btn--secondary):not(.psh-btn--danger):not(.psh-plan-btn):not(.ps-btn--auth):not(.ps-logo):active {
  color: var(--psh-link-on-dark-hover, var(--psh-secondary)) !important;
}

/* Ghost / text-style CTAs on dark: flush text link (no chrome); solid orange/navy buttons untouched */
body.papepo-unified-design .psh-on-dark a.ps-btn--ghostlight,
body.papepo-unified-design a.ps-btn--ghostlight.psh-link--on-dark {
  display: inline-block;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transform: none !important;
  color: var(--psh-link-on-dark, #fff) !important;
  transition: color 0.15s ease !important;
}
body.papepo-unified-design .psh-on-dark a.ps-btn--ghostlight:hover,
body.papepo-unified-design .psh-on-dark a.ps-btn--ghostlight:focus-visible,
body.papepo-unified-design .psh-on-dark a.ps-btn--ghostlight:active,
body.papepo-unified-design a.ps-btn--ghostlight.psh-link--on-dark:hover,
body.papepo-unified-design a.ps-btn--ghostlight.psh-link--on-dark:focus-visible,
body.papepo-unified-design a.ps-btn--ghostlight.psh-link--on-dark:active {
  background: transparent !important;
  color: var(--psh-link-on-dark-hover, var(--psh-secondary)) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Hero actions: keep gap when ghostlight becomes text */
body.papepo-unified-design .ps-hero.psh-on-dark .ps-hero__actions a.ps-btn--ghostlight {
  align-self: center;
  padding: 0.35rem 0 !important;
}

/* ========== GLOBAL: submenu / dropdown hover (navy bg, white text) ========== */
/* Token-driven; covers header, footer, mobile, portal, and .psh-menu for future menus */
body.papepo-unified-design .ps-nav__drop a,
body.papepo-unified-design .psh-menu a,
body.papepo-unified-design .psh-menu__item,
body.papepo-unified-design .psh-dropdown__menu a,
body.papepo-unified-design .psh-dropdown__item,
body.papepo-unified-design [role="menu"] > [role="none"] > [role="menuitem"],
body.papepo-unified-design [role="menu"] > [role="menuitem"] {
  border-radius: var(--psh-radius, 6px);
  transition: background-color 0.15s ease, color 0.15s ease !important;
}
body.papepo-unified-design .ps-nav__drop a:hover,
body.papepo-unified-design .ps-nav__drop a:focus-visible,
body.papepo-unified-design .ps-nav__drop a:active,
body.papepo-unified-design .psh-menu a:hover,
body.papepo-unified-design .psh-menu a:focus-visible,
body.papepo-unified-design .psh-menu a:active,
body.papepo-unified-design .psh-menu__item:hover,
body.papepo-unified-design .psh-menu__item:focus-visible,
body.papepo-unified-design .psh-menu__item:active,
body.papepo-unified-design .psh-dropdown__menu a:hover,
body.papepo-unified-design .psh-dropdown__menu a:focus-visible,
body.papepo-unified-design .psh-dropdown__menu a:active,
body.papepo-unified-design .psh-dropdown__item:hover,
body.papepo-unified-design .psh-dropdown__item:focus-visible,
body.papepo-unified-design .psh-dropdown__item:active,
body.papepo-unified-design [role="menu"] > [role="none"] > [role="menuitem"]:hover,
body.papepo-unified-design [role="menu"] > [role="none"] > [role="menuitem"]:focus-visible,
body.papepo-unified-design [role="menu"] > [role="none"] > [role="menuitem"]:active,
body.papepo-unified-design [role="menu"] > [role="menuitem"]:hover,
body.papepo-unified-design [role="menu"] > [role="menuitem"]:focus-visible,
body.papepo-unified-design [role="menu"] > [role="menuitem"]:active {
  background: var(--psh-menu-hover-bg, var(--psh-primary)) !important;
  color: var(--psh-menu-hover-fg, #fff) !important;
}

/* ========== LOCAL: home hero title two lines ========== */
body.papepo-unified-design .ps-hero__title {
  /* Wide enough for "Start hardcore consent." on one desktop line */
  max-width: min(100%, 26ch);
}
body.papepo-unified-design .ps-hero__title-line {
  display: block;
}

/* ========== LOCAL: home hero lead white ========== */
body.papepo-unified-design .ps-hero .ps-lead,
body.papepo-unified-design .ps-hero .ps-lead--light {
  color: #fff !important;
}


/* ========== LOCAL: home WHY ConsentBase Pro (full-bleed fixed bg) ========== */
body.papepo-unified-design .ps-why {
  position: relative;
  /* Full viewport width, edge to edge */
  width: var(--ps-vw, 100vw);
  max-width: var(--ps-vw, 100vw);
  margin-left: calc(50% - var(--ps-vw, 100vw) / 2);
  margin-right: calc(50% - var(--ps-vw, 100vw) / 2);
  background-color: #0b022d;
  background-image: var(--ps-why-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
body.papepo-unified-design .ps-why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 2, 45, 0.62);
  z-index: 0;
  pointer-events: none;
}
body.papepo-unified-design .ps-why > .ps-wrap {
  position: relative;
  z-index: 1;
  /* Keep text in normal content width (.ps-wrap already constrains) */
}
body.papepo-unified-design .ps-why .ps-split {
  grid-template-columns: 1fr !important;
  display: block !important;
  max-width: min(var(--max, 1120px), 42rem);
}
body.papepo-unified-design .ps-why .ps-frame {
  display: none !important;
}
body.papepo-unified-design .ps-why h2,
body.papepo-unified-design .ps-why .ps-split > div > p:not(.ps-kicker) {
  color: #fff !important;
}
body.papepo-unified-design .ps-why .ps-kicker {
  color: var(--psh-secondary, #ff8f2b) !important;
}
/* iOS / mobile: fixed backgrounds unsupported or janky → scroll */
@media (max-width: 640px) {
  body.papepo-unified-design .ps-why {
    background-attachment: scroll;
  }
}
@supports (-webkit-touch-callout: none) {
  body.papepo-unified-design .ps-why {
    background-attachment: scroll;
  }
}


/* ========== Card style 3 · Image card (.psh-card--image) ========== */
body.papepo-unified-design .psh-card--image,
body.papepo-unified-design article.psh-card--image,
body.papepo-unified-design .ps-pillars article.psh-card--image,
body.papepo-unified-design .ps-catalog__card.psh-card--image,
body.papepo-unified-design a.ps-catalog__card.psh-card--image {
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-right: var(--psh-card-pad-r) !important;
  padding-bottom: var(--psh-card-pad-b) !important;
  padding-left: var(--psh-card-pad-l) !important;
}
/* Override global content-card hover — card stays put; image scales only */
body.papepo-unified-design .psh-card--image:hover,
body.papepo-unified-design article.psh-card--image:hover,
body.papepo-unified-design .ps-pillars article.psh-card--image:hover,
body.papepo-unified-design .ps-featuregrid article.psh-card--image:hover,
body.papepo-unified-design .ps-catalog__card.psh-card--image:hover,
body.papepo-unified-design a.ps-catalog__card.psh-card--image:hover {
  transform: none !important;
  box-shadow: var(--psh-card-shadow) !important;
  border-color: transparent !important;
}
body.papepo-unified-design .psh-card--image .psh-card-img {
  display: block;
  overflow: hidden;
  width: calc(100% + var(--psh-card-pad-l) + var(--psh-card-pad-r));
  max-width: none;
  margin: 0 calc(-1 * var(--psh-card-pad-r)) var(--psh-card-img-gap) calc(-1 * var(--psh-card-pad-l));
  height: var(--psh-card-img-h);
  border-radius: var(--psh-radius) var(--psh-radius) 0 0;
  background: var(--psh-surface-muted);
}
body.papepo-unified-design .psh-card--image .psh-card-img img,
body.papepo-unified-design .psh-card--image .psh-card-img svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  transition: transform 0.3s ease;
  transform: scale(1);
}
body.papepo-unified-design .psh-card--image:hover .psh-card-img img,
body.papepo-unified-design .psh-card--image:hover .psh-card-img svg {
  transform: scale(var(--psh-card-img-scale));
}
body.papepo-unified-design .psh-card--image > h3,
body.papepo-unified-design .psh-card--image > h4,
body.papepo-unified-design .ps-catalog__card.psh-card--image > h3 {
  margin-top: 0 !important;
}

/* WebP Converter art is white-padded illustration — fill media well so cover reads solid */
body.papepo-unified-design .psh-card--image .psh-card-img.psh-card-img--fill-blue {
  background: #0089d0;
}

/* ========== LOCAL: 30-day guarantee band — full-bleed fixed bg ========== */
body.papepo-unified-design .ps-refund {
  position: relative;
  width: var(--ps-vw, 100vw);
  max-width: var(--ps-vw, 100vw);
  margin-left: calc(50% - var(--ps-vw, 100vw) / 2);
  margin-right: calc(50% - var(--ps-vw, 100vw) / 2);
  background-color: #0b022d;
  background-image: var(--ps-refund-bg);
  background-size: cover;
  /* Keep hand + globe on the left visible */
  background-position: left center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  /* Was 3.2rem 0; +80px top & bottom (= +160px vs original), text stays vertically centred */
  display: flex;
  align-items: center;
  padding-top: calc(3.2rem + 80px);
  padding-bottom: calc(3.2rem + 80px);
}
/* Subtle dark gradient on the right for copy readability */
body.papepo-unified-design .ps-refund::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 2, 45, 0.15) 0%,
    rgba(11, 2, 45, 0.35) 42%,
    rgba(11, 2, 45, 0.72) 68%,
    rgba(11, 2, 45, 0.82) 100%
  );
  z-index: 0;
  pointer-events: none;
}
/* Inner must match .ps-header__bar — NOT grow to 100vw (flex:1 was the bug) */
body.papepo-unified-design .ps-refund > .ps-wrap,
body.papepo-unified-design .ps-refund > .ps-wrap.ps-refund__inner {
  position: relative;
  z-index: 1;
  flex: 0 1 auto; /* never stretch to full viewport */
  width: min(1240px, calc(100% - 1.5rem)); /* same as .ps-header__bar */
  max-width: min(1240px, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.papepo-unified-design .ps-refund__inner {
  display: flex;
  justify-content: flex-end; /* text in right ~45% of header-aligned container */
  align-items: center;
  padding-right: 0;
  box-sizing: border-box;
}
body.papepo-unified-design .ps-refund__copy {
  width: 45%;
  max-width: 45%;
  text-align: left;
  box-sizing: border-box;
}
body.papepo-unified-design .ps-refund__copy h2 {
  color: #fff !important;
  max-width: none !important;
}
body.papepo-unified-design .ps-refund__copy p {
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: none !important;
}


@media (max-width: 640px) {
  body.papepo-unified-design .ps-refund {
    background-attachment: scroll;
    background-position: 20% center;
  }
  body.papepo-unified-design .ps-refund::before {
    background: rgba(11, 2, 45, 0.78);
  }
  body.papepo-unified-design .ps-refund__inner {
    justify-content: flex-start;
    padding-right: 0;
  }
  body.papepo-unified-design .ps-refund__copy {
    max-width: 100%;
    width: 100%;
  }
}
@supports (-webkit-touch-callout: none) {
  body.papepo-unified-design .ps-refund {
    background-attachment: scroll;
  }
}

/* ========== LOCAL: unified header/footer nav ========== */
body.papepo-unified-design .ps-search {
  display: none !important;
}

/* Compact icon-only search in header actions */
body.papepo-unified-design .ps-search-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}
body.papepo-unified-design .ps-search-icon__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--psh-radius, 6px);
  background: transparent;
  color: var(--psh-primary, #0b022d);
  cursor: pointer;
}
body.papepo-unified-design .ps-search-icon__btn:hover,
body.papepo-unified-design .ps-search-icon__btn[aria-expanded="true"] {
  background: var(--paper, #f4f2f6);
}
body.papepo-unified-design .ps-search-icon__btn:focus-visible {
  outline: 2px solid var(--psh-primary, #0b022d);
  outline-offset: 2px;
}
body.papepo-unified-design .ps-search-icon__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  min-width: min(280px, 80vw);
  padding: 0.55rem;
  background: #fff;
  border-radius: var(--psh-radius, 6px);
  box-shadow: 0 8px 24px rgba(11, 2, 45, 0.14);
  border: 1px solid rgba(11, 2, 45, 0.08);
}
body.papepo-unified-design .ps-search-icon__panel[hidden] {
  display: none !important;
}
body.papepo-unified-design .ps-search-icon__form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
}
body.papepo-unified-design .ps-search-icon__form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--psh-input-h, 36px);
  padding: 0 0.65rem;
  border: 1px solid var(--psh-border, #dcdcde);
  border-radius: var(--psh-radius, 6px);
  font-size: 0.85rem;
  color: var(--psh-text, #3f4650);
  background: #fff;
}
body.papepo-unified-design .ps-search-icon__submit {
  flex: 0 0 auto;
  height: var(--psh-btn-h, 36px);
  padding: 0 12px;
  font-size: 0.85rem;
}
@media (max-width: 980px) {
  body.papepo-unified-design .ps-header.is-open .ps-search-icon {
    width: 100%;
  }
  body.papepo-unified-design .ps-header.is-open .ps-search-icon__panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.4rem;
    box-shadow: none;
  }
  body.papepo-unified-design .ps-header.is-open .ps-search-icon__btn {
    width: 36px;
  }
}


body.papepo-unified-design .ps-search-icon__panel {
  right: 0;
  left: auto;
}
/* Mobile open: keep search last in actions row */
body.papepo-unified-design .ps-header.is-open .ps-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
body.papepo-unified-design .ps-header.is-open .ps-search-icon {
  margin-left: auto;
  order: 99;
}


body.papepo-unified-design .ps-footer__help-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
body.papepo-unified-design .ps-footer__help-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
body.papepo-unified-design .ps-footer__help-links a {
  text-decoration: none;
}
body.papepo-unified-design .ps-footer.ps-footer--unified .ps-footer__grid {
  grid-template-columns: 1.5fr 1fr 1.2fr;
}
@media (max-width: 980px) {
  body.papepo-unified-design .ps-footer.ps-footer--unified .ps-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body.papepo-unified-design .ps-footer.ps-footer--unified .ps-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== My Account / licence portal: no card hover motion ==========
   Scope: body.papepo-route-license-management (Site route) + .cb-portal-wrap (Hub).
   Marketing pages keep translate / orange border / icon orange / image scale. */
body.papepo-unified-design.papepo-route-license-management .psh-card:hover,
body.papepo-unified-design.papepo-route-license-management .psh-card--icon:hover,
body.papepo-unified-design.papepo-route-license-management .psh-card--image:hover,
body.papepo-unified-design.papepo-route-license-management .ps-card:hover,
body.papepo-unified-design.papepo-route-license-management .ps-featuregrid article:hover,
body.papepo-unified-design.papepo-route-license-management .ps-pillars article:hover,
body.papepo-unified-design.papepo-route-license-management .ps-catalog__card:hover,
body.papepo-unified-design.papepo-route-license-management .ps-postcard:hover,
body.papepo-unified-design.papepo-route-license-management .ps-donate:hover,
body.papepo-unified-design.papepo-route-license-management .ps-seal:hover,
body.papepo-unified-design.papepo-route-license-management .ps-auth__card:hover,
body.papepo-unified-design.papepo-route-license-management .cb-card:hover,
body.papepo-unified-design.papepo-route-license-management .cb-table-section:hover,
body.papepo-unified-design.papepo-route-license-management .psh-card-sub:hover,
body.papepo-unified-design .cb-portal-wrap .psh-card:hover,
body.papepo-unified-design .cb-portal-wrap .psh-card--icon:hover,
body.papepo-unified-design .cb-portal-wrap .psh-card--image:hover,
body.papepo-unified-design .cb-portal-wrap .ps-card:hover,
body.papepo-unified-design .cb-portal-wrap .cb-card:hover,
body.papepo-unified-design .cb-portal-wrap .cb-table-section:hover,
body.papepo-unified-design .cb-portal-wrap .psh-card-sub:hover {
  transform: none !important;
  box-shadow: var(--psh-card-shadow) !important;
  border-color: transparent !important;
}

body.papepo-unified-design.papepo-route-license-management .psh-card:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .ps-card:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .ps-featuregrid article:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .ps-pillars article:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .ps-catalog__card:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .psh-card:hover .psh-card-icon,
body.papepo-unified-design.papepo-route-license-management .cb-card:hover .ps-feature-icon,
body.papepo-unified-design.papepo-route-license-management .cb-card:hover svg[stroke="currentColor"],
body.papepo-unified-design.papepo-route-license-management .ps-featuregrid article:hover .ps-feature-icon svg,
body.papepo-unified-design.papepo-route-license-management .psh-card:hover .ps-feature-icon svg,
body.papepo-unified-design .cb-portal-wrap .psh-card:hover .ps-feature-icon,
body.papepo-unified-design .cb-portal-wrap .ps-card:hover .ps-feature-icon,
body.papepo-unified-design .cb-portal-wrap .psh-card:hover .psh-card-icon,
body.papepo-unified-design .cb-portal-wrap .cb-card:hover .ps-feature-icon,
body.papepo-unified-design .cb-portal-wrap .cb-card:hover svg[stroke="currentColor"],
body.papepo-unified-design .cb-portal-wrap .psh-card:hover .ps-feature-icon svg {
  color: inherit !important;
  stroke: currentColor;
}

body.papepo-unified-design.papepo-route-license-management .psh-card--image:hover .psh-card-img img,
body.papepo-unified-design.papepo-route-license-management .psh-card--image:hover .psh-card-img svg,
body.papepo-unified-design .cb-portal-wrap .psh-card--image:hover .psh-card-img img,
body.papepo-unified-design .cb-portal-wrap .psh-card--image:hover .psh-card-img svg {
  transform: none !important;
}

/* FREE Plugins Get-started: visible 20px above buttons (beat .ps p margin shorthand) */
body.papepo-unified-design .ps .ps-cb-free .ps-cb-free__copy > p.ps-actions.ps-cb-free__actions {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* Seal + donate: never take content-card hover (orange border / translate) */
body.papepo-unified-design .ps-seal:hover,
body.papepo-unified-design .ps-donate:hover,
body.papepo-unified-design .ps-seal:focus-within,
body.papepo-unified-design .ps-donate:focus-within,
body.papepo-unified-design .ps-seal:focus-visible,
body.papepo-unified-design .ps-donate:focus-visible,
body.papepo-site .ps-seal:hover,
body.papepo-site .ps-donate:hover,
body.papepo-site .ps-seal:focus-within,
body.papepo-site .ps-donate:focus-within {
  transform: none !important;
  box-shadow: var(--psh-card-shadow, 0 2px 8px rgba(11, 2, 45, 0.08)) !important;
  border-color: transparent !important; /* match rest-state reserve border */
  outline: none !important;
}
body.papepo-unified-design .ps-seal:hover .ps-feature-icon,
body.papepo-unified-design .ps-donate:hover .ps-feature-icon,
body.papepo-unified-design .ps-seal:hover .ps-seal__logo,
body.papepo-unified-design .ps-donate:hover svg {
  color: inherit !important;
  filter: none !important;
  transform: none !important;
}

/* LOCAL /consentbase/: Upgrade-to-Pro grid CTA — keep orange fill, no content-card hover border */
body.papepo-unified-design.papepo-route-consentbase .ps-featuregrid > a.ps-featuregrid__cta,
body.papepo-unified-design.papepo-route-consentbase .ps-featuregrid > a.ps-featuregrid__cta:hover,
body.papepo-unified-design.papepo-route-consentbase .ps-featuregrid > a.ps-featuregrid__cta:focus-visible {
  background: var(--psh-secondary, #ff8f2b) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: none !important;
  box-shadow: var(--psh-card-shadow) !important;
  text-decoration: none !important;
}
body.papepo-unified-design.papepo-route-consentbase .ps-featuregrid > a.ps-featuregrid__cta:hover,
body.papepo-unified-design.papepo-route-consentbase .ps-featuregrid > a.ps-featuregrid__cta:focus-visible {
  background: #e67a18 !important;
}
body.papepo-unified-design.papepo-route-consentbase .ps .ps-featuregrid > a.ps-featuregrid__cta .ps-featuregrid__cta-label {
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  margin: 0 !important;
}

/* LOCAL /consentbase/: 30px under Pro feature grid before disclaimer */
body.papepo-unified-design.papepo-route-consentbase .ps .ps-featuregrid + p.ps-fine.ps-consentbase__disclaimer {
  margin-top: 30px !important;
}

/* Shared free-plugin product hero card: static (no content-card hover) */
body.papepo-unified-design .ps-product-hero-card,
body.papepo-unified-design .ps-product-hero-card:hover,
body.papepo-unified-design .ps-product-hero-card:focus-within {
  transform: none !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: var(--psh-card-shadow) !important;
  background: #fff !important;
}
body.papepo-unified-design .ps .ps-product-hero-card__heading,
body.papepo-unified-design .ps-product-hero-card h2.ps-product-hero-card__heading {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem) !important;
  font-weight: 700 !important;
  color: var(--psh-ink, #313042) !important;
  margin: 0 0 0.55em !important;
  line-height: 1.25 !important;
}
body.papepo-unified-design .ps .ps-product-hero-card__body {
  font-size: var(--psh-fs, 14px) !important;
  font-weight: 400 !important;
  color: var(--psh-muted, #5a5a6e) !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}
body.papepo-unified-design .ps .ps-product-hero-card__actions {
  margin-top: 20px !important;
}
body.papepo-unified-design .ps-product-hero-card .ps-btn--orange {
  color: #fff !important;
  background: var(--psh-secondary, #ff8f2b) !important;
  border-color: var(--psh-secondary, #ff8f2b) !important;
}
body.papepo-unified-design .ps-product-hero-card .ps-btn--orange:hover {
  filter: brightness(0.94);
  color: #fff !important;
}
body.papepo-unified-design .ps .ps-product-h--after-hero {
  margin-top: 50px !important;
}

/* Shared product.php vertical rhythm */
body.papepo-unified-design .ps .ps-product-body .ps-product-h {
  margin-top: 50px !important;
}
body.papepo-unified-design .ps .ps-product-body .ps-product-grid,
body.papepo-unified-design .ps .ps-product-body .ps-product-table {
  margin-top: 30px !important;
}
body.papepo-unified-design .ps .ps-product-body .ps-product-table {
  margin-bottom: 0 !important;
}
body.papepo-unified-design .ps .ps-product-body .ps-product-signoff {
  margin-top: 50px !important;
}
body.papepo-unified-design .ps .ps-product-body .ps-product-disclaimer {
  margin-bottom: 0 !important;
}
body.papepo-unified-design .ps .ps-product-body .ps-product-disclaimer + .ps-donate,
body.papepo-unified-design .ps-product-body .ps-product-disclaimer + .ps-donate {
  margin-top: 50px !important;
}


/* LOCAL GDPR Scanner: Full features image cards — no hover (beat featuregrid article hover + image scale) */
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-featuregrid.ps-gdpr-features article.psh-card--image:hover,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-features article.psh-card--image:hover,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-features article.psh-card--image:focus-within {
  transform: none !important;
  border-color: transparent !important;
  box-shadow: var(--psh-card-shadow) !important;
}
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-features article.psh-card--image:hover .psh-card-img img,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-features article.psh-card--image:hover .psh-card-img svg {
  transform: none !important;
}

body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs .ps-table,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs__table {
  table-layout: fixed !important;
  width: 100% !important;
}
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs .ps-table th,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs .ps-table td,
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs .ps-table th:nth-child(n+2),
body.papepo-unified-design.papepo-route-gdpr-scanner-privacy-auditor .ps-gdpr-pairs .ps-table td:nth-child(n+2) {
  width: 50% !important;
  text-align: left !important;
}


/* LOCAL consentbase: 50px disclaimer → donate */
body.papepo-unified-design.papepo-route-consentbase .ps .ps-consentbase__disclaimer {
  margin-bottom: 0 !important;
}
body.papepo-unified-design.papepo-route-consentbase .ps .ps-consentbase__disclaimer + .ps-donate,
body.papepo-unified-design.papepo-route-consentbase .ps-consentbase__disclaimer + .ps-donate {
  margin-top: 50px !important;
}

/* i18n language switcher: plain text, never pink/orange chrome */
body.papepo-unified-design .ps-lang__btn,
body.papepo-unified-design .ps-header .ps-lang__btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink, #0b022d) !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
