/* ================================================================
 *  PuppetGlow Theme · puppetglow-main.css
 *  版本：v0.3.1
 *  作用：
 *    - 全局布局 & 排版
 *    - 响应式页眉 + 页脚
 *    - 基础组件：按钮、卡片、标签、表单
 *    - 无障碍辅助样式
 *  依赖：
 *    - 必须先加载 puppetglow-tokens.css
 *    - 首页专属样式见 home.css
 * ================================================================ */

/* ================================================================
 *  全局统一容器
 *  禁止嵌套使用 —— 每个页面区块只使用一层 .pg-container
 * ================================================================ */
.pg-container {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* v1.0 P0: commercial search landing page */
.pg-search-page {
  padding: clamp(48px, 8vw, 96px) 0;
}

.pg-search-page__hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(25, 50, 74, .1);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(246, 200, 95, .32), transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #fff7eb 54%, #f8fffb 100%);
  box-shadow: 0 22px 60px rgba(25, 50, 74, .08);
  padding: clamp(32px, 6vw, 72px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.pg-search-page__hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--pg-navy);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.pg-search-page__hero p:not(.pg-account-eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--pg-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.pg-search-page__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 860px;
  margin-top: 30px;
  padding: 10px;
  border: 1px solid rgba(25, 50, 74, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 40px rgba(25, 50, 74, .08);
}

.pg-search-page__form input {
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--pg-navy);
  font-size: 1rem;
  outline: none;
}

.pg-search-page__quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pg-search-page__quick-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(25, 50, 74, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--pg-navy);
  padding: 9px 14px;
  font-weight: 800;
  text-decoration: none;
}

.pg-search-page__quick-links a:hover {
  border-color: rgba(244, 124, 99, .45);
  color: var(--pg-coral);
}

.pg-search-page__summary {
  margin: 0 0 22px;
  color: var(--pg-muted);
  font-weight: 800;
}

.pg-search-page__section {
  margin-top: clamp(36px, 6vw, 72px);
}

.pg-search-page__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.pg-search-page__section-head h2 {
  margin: 0;
  color: var(--pg-navy);
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  letter-spacing: -.04em;
}

.pg-search-page__section-head > a {
  color: var(--pg-coral);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 680px) {
  .pg-search-page__form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .pg-search-page__section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 767px) {
  .pg-container {
    width: calc(100% - 32px);
  }
}

/* 独立窄容器变体 */
.pg-container--narrow {
  max-width: 820px;
}
.pg-container--medium {
  max-width: 980px;
}

/* 主体内容容器：全宽，不限制 */
.site-content,
#pg-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ================================================================
 *  0. 工具 & 屏幕阅读器文本（WP 规范要求：.screen-reader-text）
 * ================================================================ */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  word-wrap: normal !important;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  display: block;
  left: 8px;
  top: 8px;
  padding: 16px 24px;
  background: var(--pg-surface);
  color: var(--pg-navy);
  border-radius: var(--pg-radius-sm);
  box-shadow: var(--pg-shadow-md);
  z-index: 100000;
  text-decoration: none;
  font-weight: 700;
}

/* 跳转到正文链接（WP 默认类名） */
.pg-skip-link {
  /* 由 .screen-reader-text 控制，焦点时展开 */
}

/* 全站统一 box-sizing（品牌令牌已做，保险起见再声明） */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; }

/* 滚动条（轻量美化） */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 图片自适应（WP 上传图片不溢出） */
img, svg, video { max-width: 100%; height: auto; }
figure { margin: 0; }

/* 区块编辑器对齐宽 */
.alignwide,
.alignfull {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .alignwide { max-width: 1120px; }
  .alignfull { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
}

/* 正文链接下划线（可读性） */
.pg-page-content a:not(.pg-button),
.pg-single-content a:not(.pg-button) {
  color: var(--pg-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.pg-page-content a:not(.pg-button):hover,
.pg-single-content a:not(.pg-button):hover {
  color: var(--pg-navy);
}

/* ================================================================
 *  1. 页眉 · Site Header
 * ================================================================ */
.pg-site-header {
  position: relative;
  top: auto;
  z-index: 20;
  width: 100%;
  min-height: 68px;
  background: #fffaf2;
  border-bottom: 1px solid var(--pg-border);
}
.pg-site-header__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding-top: 6px;
  padding-bottom: 6px;
}
@media (max-width: 767px) {
  .pg-site-header__inner {
    width: calc(100% - 32px);
    min-height: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
.pg-site-header__brand { flex: 0 0 auto; min-width: 0; }
.pg-site-header__logo-link { display: inline-flex; }
.pg-site-header__logo-img {
  display: block;
  max-width: 170px;
  height: auto;
}
.custom-logo {
  max-width: 170px;
  height: auto;
  display: block;
}

/* 功能按钮组：搜索 / 购物车 / 汉堡 */
.pg-site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* CTA 按钮（页眉右侧主按钮） */
.pg-site-header__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--pg-coral);
  color: #fff;
  font-family: var(--pg-font-display);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pg-site-header__cta:hover {
  background: var(--pg-coral-700);
  transform: translateY(-1px);
  box-shadow: var(--pg-shadow-sm);
}
.pg-site-header__cta:active { transform: translateY(0); }
.pg-site-header__cta:focus-visible { outline: none; box-shadow: var(--pg-focus); }
@media (max-width: 639px) {
  .pg-site-header__cta { display: none; }
}

/* 汉堡按钮（<1024px 显示，>=1024px 隐藏） */
.pg-site-header__menu-btn { display: inline-flex; }
@media (min-width: 1024px) {
  .pg-site-header__menu-btn { display: none; }
}

/* 图标按钮（通用：搜索/购物车/关闭） */
.pg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pg-navy);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.pg-icon-btn:hover { background: var(--pg-cloud); transform: translateY(-1px); }
.pg-icon-btn:active { transform: translateY(0); }
.pg-icon-btn:focus-visible { box-shadow: var(--pg-focus); background: var(--pg-cloud); }

/* ------------ 桌面端导航（≥1024px 显示） ------------ */
.pg-primary-nav {
  flex: 1 1 auto;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .pg-primary-nav { display: flex; }
}
.pg-primary-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-primary-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px clamp(7px, .7vw, 11px);
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 700;
  font-size: clamp(.82rem, .78vw, .94rem);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.pg-primary-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .62;
}
.pg-primary-menu > li > a:hover {
  background: var(--pg-cloud);
  color: var(--pg-coral-700);
}
.pg-primary-menu > li > a:focus-visible {
  outline: none;
  background: var(--pg-cloud);
  color: var(--pg-coral-700);
  box-shadow: var(--pg-focus);
}
.pg-primary-menu > li.current-menu-item > a,
.pg-primary-menu > li.current_page_item > a {
  background: var(--pg-yellow);
  color: var(--pg-navy);
}
.pg-primary-menu--empty { display: none; }

/* 二级下拉（≥1024px 才显示） */
.pg-primary-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 238px;
  padding: 10px;
  list-style: none;
  margin: 8px 0 0;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  box-shadow: 0 18px 48px rgba(23, 50, 77, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s ease;
  z-index: 90;
}
.pg-primary-menu > li:last-child > .sub-menu,
.pg-primary-menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
.pg-primary-menu > li:hover > .sub-menu,
.pg-primary-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pg-primary-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--pg-radius-sm);
  color: var(--pg-navy);
  text-decoration: none;
}
.pg-primary-menu .sub-menu li a:hover { background: var(--pg-cloud); color: var(--pg-coral-700); }
.pg-primary-menu .sub-menu li a:focus-visible { outline: none; box-shadow: var(--pg-focus); }

/* ------------ 移动端抽屉导航 ------------ */
.pg-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
}
.pg-mobile-nav[aria-hidden="false"] { display: block; }
.pg-mobile-nav__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 50, 77, 0.56);
  backdrop-filter: blur(2px);
  animation: pgFadeIn .22s ease both;
}
.pg-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100%;
  background: var(--pg-surface);
  box-shadow: -12px 0 40px rgba(23, 50, 77, .24);
  display: flex;
  flex-direction: column;
  animation: pgSlideInRight .26s ease both;
}
.pg-mobile-nav__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pg-border);
}
.pg-mobile-nav__title {
  font-family: var(--pg-font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pg-navy);
  letter-spacing: -0.02em;
}
.pg-mobile-nav__menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.pg-mobile-nav__list,
.pg-mobile-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-mobile-nav__list > li + li { border-top: 1px solid var(--pg-border); }
.pg-mobile-nav__list li a {
  display: block;
  padding: 14px 8px;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.pg-mobile-nav__list .sub-menu li a {
  padding: 10px 8px 10px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--pg-muted);
}
.pg-mobile-nav__list li a:hover { color: var(--pg-coral-700); }
.pg-mobile-nav__cta-row {
  padding: 20px;
  border-top: 1px solid var(--pg-border);
}
.pg-mobile-nav__cta { width: 100%; }

/* 汉堡图标（三条线 → X 动画） */
.pg-hamburger {
  position: relative;
}
.pg-hamburger__bar {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--pg-navy);
  border-radius: 2px;
  transform-origin: center;
  transition: all .22s ease;
}
.pg-hamburger__bar--top { top: calc(50% - 7px); transform: translateX(-50%); }
.pg-hamburger__bar--mid { top: 50%; transform: translate(-50%, -50%); }
.pg-hamburger__bar--bot { top: calc(50% + 7px); transform: translateX(-50%); }
.pg-hamburger[aria-expanded="true"] .pg-hamburger__bar--top {
  transform: translate(-50%, 7px) rotate(45deg);
}
.pg-hamburger[aria-expanded="true"] .pg-hamburger__bar--mid { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.pg-hamburger[aria-expanded="true"] .pg-hamburger__bar--bot {
  transform: translate(-50%, -7px) rotate(-45deg);
}

/* ------------ 搜索模态框 ------------ */
.pg-search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px;
}
.pg-search-modal[aria-hidden="false"] { display: flex; }
.pg-search-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 50, 77, 0.6);
  backdrop-filter: blur(4px);
  animation: pgFadeIn .22s ease both;
}
.pg-search-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 32px 28px 24px;
  background: var(--pg-surface);
  border-radius: var(--pg-radius-lg);
  box-shadow: var(--pg-shadow-md);
  animation: pgPopIn .26s cubic-bezier(.2, .8, .2, 1) both;
}
.pg-search-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.pg-search-modal__form { margin-bottom: 8px; }
.pg-search-modal__field {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: var(--pg-radius-md);
}
.pg-search-modal__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pg-muted);
  pointer-events: none;
}
.pg-search-modal__input {
  flex: 1 1 auto;
  min-height: 56px;
  padding-left: 52px !important;
  padding-right: 140px;
  font-size: 1.05rem;
}
.pg-search-modal__submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.pg-search-modal__hint { color: var(--pg-muted); margin-top: 16px; }

/* ================================================================
 *  2. 面包屑
 * ================================================================ */
.pg-breadcrumb {
  padding: 20px 0 8px;
  font-size: .9rem;
  color: var(--pg-muted);
}
.pg-breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.pg-breadcrumb__item + .pg-breadcrumb__item::before {
  content: "/";
  display: inline-block;
  margin-right: 8px;
  color: var(--pg-border);
}
.pg-breadcrumb__link {
  color: var(--pg-teal);
  text-decoration: none;
}
.pg-breadcrumb__link:hover { text-decoration: underline; }
.pg-breadcrumb__item--current {
  color: var(--pg-navy);
  font-weight: 700;
}

/* ================================================================
 *  首页 Hero 样式已迁移至 home.css（v0.3.1）
 * ================================================================ */

/* 按钮加大尺寸 */
.pg-button--lg {
  min-height: 56px;
  padding: 13px 28px;
  font-size: 1.06rem;
}

/* ================================================================
 *  4. 文章卡片网格 & 列表页通用
 * ================================================================ */
.pg-post-list-wrap { padding: 56px 0 80px; }
.pg-post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pg-post-list--archive { margin-top: 24px; }
@media (max-width: 1023px) { .pg-post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pg-post-list { grid-template-columns: 1fr; } }

.pg-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pg-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg-shadow-md);
}
.pg-post-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--pg-cloud);
  border-bottom: 1px solid var(--pg-border);
}
.pg-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.pg-post-card:hover .pg-post-card__img { transform: scale(1.04); }
.pg-post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg-muted);
}
.pg-post-card__placeholder-text { font-size: .9rem; font-weight: 700; }
.pg-post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.pg-post-card__tag { align-self: flex-start; }
.pg-post-card__title {
  font-size: 1.3rem;
  font-family: var(--pg-font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}
.pg-post-card__title a { color: var(--pg-navy); text-decoration: none; }
.pg-post-card__title a:hover { color: var(--pg-coral-700); }
.pg-post-card__meta {
  font-size: .85rem;
  color: var(--pg-muted);
  margin: 0;
}
.pg-post-card__date { color: var(--pg-muted); }
.pg-post-card__author { color: var(--pg-muted); }
.pg-post-card__excerpt { margin: 0; color: var(--pg-ink); }
.pg-post-card__read-more {
  margin-top: auto;
  font-weight: 800;
  font-family: var(--pg-font-display);
  color: var(--pg-teal);
  text-decoration: none;
}
.pg-post-card__read-more:hover { color: var(--pg-navy); }

/* 标签 Tag */
.pg-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pg-cloud);
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
}
.pg-tag--coral { background: rgba(244, 124, 91, .14); color: var(--pg-coral-700); }
.pg-tag--teal  { background: rgba(47, 167, 160, .14); color: var(--pg-teal); }
.pg-tag--yellow{ background: var(--pg-yellow); color: var(--pg-navy); }
.pg-tag--outline { background: transparent; border: 1.5px solid var(--pg-border); color: var(--pg-muted); }

/* 页面标题（archive / page） */
.pg-page-header { padding: 48px 0 20px; }
.pg-page-header__title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0 0 10px;
}
.pg-page-header__desc { color: var(--pg-muted); max-width: 70ch; font-size: 1.05rem; }
.pg-archive-search-meta { color: var(--pg-muted); margin-top: 10px; }

/* 归档页 */
.pg-archive-wrap { padding: 40px 0 80px; }
.pg-is-list-page { }
.pg-archive-header { margin-bottom: 32px; }

/* 分页 */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--pg-radius-sm);
  border: 1.5px solid var(--pg-border);
  background: var(--pg-surface);
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 700;
  text-decoration: none;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--pg-coral);
  color: #fff;
  border-color: var(--pg-coral);
}
.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover {
  border-color: var(--pg-teal);
  color: var(--pg-teal);
}
.screen-reader-text + .nav-links { margin-top: 0; } /* the_posts_pagination 输出结构 */

/* ================================================================
 *  5. 单篇文章 & 页面 布局
 * ================================================================ */
.pg-page-wrap { padding: 40px 0 80px; }
.pg-page-article { max-width: 860px; margin: 0 auto; }
.pg-page-header__cover {
  border-radius: var(--pg-radius-md);
  overflow: hidden;
  border: 1px solid var(--pg-border);
  margin-bottom: 28px;
}
.pg-page-header__cover-img { display: block; width: 100%; }
.pg-page-content,
.pg-single-content {
  font-size: 1.06rem;
  line-height: 1.7;
}
.pg-page-content p,
.pg-single-content p { margin-bottom: 1.3em; }
.pg-page-content h2,
.pg-single-content h2 { font-size: 2rem; margin: 2em 0 .8em; }
.pg-page-content h3,
.pg-single-content h3 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
.pg-page-content ul, .pg-page-content ol,
.pg-single-content ul, .pg-single-content ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.pg-page-content li + li,
.pg-single-content li + li { margin-top: .4em; }
.pg-page-content blockquote,
.pg-single-content blockquote {
  border-left: 6px solid var(--pg-coral);
  background: var(--pg-cloud);
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: 0 var(--pg-radius-md) var(--pg-radius-md) 0;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 700;
}
.pg-page-content img,
.pg-single-content img {
  border-radius: var(--pg-radius-md);
  border: 1px solid var(--pg-border);
}
.pg-page-content .wp-block-quote,
.pg-single-content .wp-block-quote { margin: 2em 0; }
.pg-page-content .alignright,
.pg-single-content .alignright { float: right; margin: 0 0 1.5em 1.5em; max-width: 46%; }
.pg-page-content .alignleft,
.pg-single-content .alignleft { float: left; margin: 0 1.5em 1.5em 0; max-width: 46%; }
.pg-page-content .aligncenter,
.pg-single-content .aligncenter { display: block; margin: 2em auto; }
.pg-page-edit-link { margin-top: 40px; text-align: right; }
.pg-edit-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pg-cloud);
  color: var(--pg-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}
.pg-edit-link:hover { background: var(--pg-yellow); color: var(--pg-navy); }
.pg-page-pagination {
  margin: 40px 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.pg-page-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--pg-radius-sm);
  border: 1.5px solid var(--pg-border);
  background: var(--pg-surface);
  color: var(--pg-navy);
  font-weight: 700;
  text-decoration: none;
}

/* 单篇文章布局（正文+边栏 2 列） */
.pg-single-wrap { padding: 40px 0 80px; }
.pg-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.pg-single__main { min-width: 0; }
@media (min-width: 1024px) {
  .pg-single__layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.pg-single-header { margin-bottom: 28px; }
.pg-single-header__cats { margin-bottom: 12px; }
.pg-single-header__cats-label,
.pg-single-header__cats a {
  display: inline-block;
  color: var(--pg-teal);
  font-family: var(--pg-font-display);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.pg-single-header__date,
.pg-single-header__updated,
.pg-single-header__author { color: var(--pg-muted); }
.pg-single-header__cats a:hover { color: var(--pg-navy); }
.pg-single-header__title { margin: 12px 0 16px; font-size: clamp(2rem, 3.4vw, 3rem); }
.pg-single-header__meta { color: var(--pg-muted); font-size: .92rem; }
.pg-single-cover {
  margin: 28px 0;
  border-radius: var(--pg-radius-md);
  overflow: hidden;
  border: 1px solid var(--pg-border);
}
.pg-single-cover__img { display: block; width: 100%; }
.pg-single-cover__caption { padding: 12px 20px; color: var(--pg-muted); font-size: .9rem; text-align: center; }

.pg-single-footer { padding-top: 28px; border-top: 1px solid var(--pg-border); }
.pg-single-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pg-single-tags__label { color: var(--pg-muted); font-weight: 700; }
.pg-single-tags a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pg-cloud);
  color: var(--pg-navy);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.pg-single-tags a:hover { background: var(--pg-yellow); }

.pg-single-author-bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 24px !important;
  align-items: center;
}
.pg-single-author-bio__avatar img {
  border-radius: 50%;
  display: block;
  border: 3px solid var(--pg-yellow);
}
.pg-single-author-bio__name { margin: 0 0 6px; }
.pg-single-author-bio__desc { margin: 0; color: var(--pg-muted); }

.pg-single-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 40px 0;
}
@media (min-width: 640px) {
  .pg-single-post-nav { grid-template-columns: 1fr 1fr; }
}
.pg-single-post-nav > div a {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  text-decoration: none;
  background: var(--pg-surface);
  transition: border-color .18s ease, transform .18s ease;
}
.pg-single-post-nav > div a:hover {
  border-color: var(--pg-teal);
  transform: translateY(-2px);
}
.pg-single-post-nav__next a { text-align: right; }
.pg-single-post-nav__label {
  display: block;
  color: var(--pg-muted);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pg-single-post-nav__title {
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* 评论区占位（后续阶段可加强） */
.pg-single-comments,
.pg-page-comments { margin-top: 48px; }
#comments { padding-top: 24px; border-top: 1px solid var(--pg-border); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 24px 0; border-bottom: 1px solid var(--pg-border); }
.comment-author { font-weight: 700; font-family: var(--pg-font-display); }
.comment-meta { color: var(--pg-muted); font-size: .85rem; }
#respond { margin-top: 32px; }

/* ================================================================
 *  6. 边栏 & Widget
 * ================================================================ */
.pg-sidebar { margin-top: 48px; }
@media (min-width: 1024px) {
  .pg-sidebar--single { margin-top: 0; position: sticky; top: 100px; }
}
.pg-widget + .pg-widget { margin-top: 24px; }
.pg-widget__title { margin: 0 0 16px; font-size: 1.15rem; }
.pg-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-widget ul li a { color: var(--pg-navy); text-decoration: none; }
.pg-widget ul li a:hover { color: var(--pg-coral-700); text-decoration: underline; }

/* 搜索表单（小工具 & 空状态） */
.search-form,
.wp-block-search {
  display: flex;
  gap: 8px;
}
.search-form .search-field,
.wp-block-search__input {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  font: inherit;
  color: var(--pg-ink);
  background: #fff;
}
.search-form .search-field:focus,
.wp-block-search__input:focus {
  border-color: var(--pg-teal);
  outline: 0;
  box-shadow: var(--pg-focus);
}
.search-form .search-submit,
.wp-block-search__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pg-coral);
  color: #fff;
  font-family: var(--pg-font-display);
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.search-form .search-submit:hover,
.wp-block-search__button:hover { background: var(--pg-coral-700); transform: translateY(-2px); }

/* ================================================================
 *  7. 空状态 No Results & 404
 * ================================================================ */
.pg-no-results {
  max-width: 640px;
  margin: 64px auto;
  text-align: center;
  padding: 40px !important;
}
.pg-no-results__title { margin: 0 0 10px; }
.pg-no-results__desc { color: var(--pg-muted); margin: 0 0 24px; }
.pg-no-results__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pg-404-wrap { padding: 64px 0 96px; }
.pg-404__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .pg-404__inner { grid-template-columns: 1.15fr 1fr; gap: 60px; }
}
.pg-404__eyebrow { margin-bottom: 18px; }
.pg-404__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 16px;
}
.pg-404__desc { font-size: 1.1rem; color: var(--pg-muted); margin: 0 0 28px; max-width: 54ch; }
.pg-404__search-form { margin-bottom: 24px; }
.pg-404__search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 540px;
}
.pg-404__search-input { flex: 1 1 240px; }
.pg-404__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.pg-404__popular-title {
  font-family: var(--pg-font-display);
  font-weight: 800;
  color: var(--pg-navy);
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.pg-404__popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.pg-404__popular-list a {
  color: var(--pg-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.pg-404__popular-list a::before {
  content: "→";
  color: var(--pg-teal);
  font-weight: 800;
}
.pg-404__popular-list a:hover { color: var(--pg-coral-700); }
@media (max-width: 480px) {
  .pg-404__popular-list { grid-template-columns: 1fr; }
}
.pg-404__art {
  padding: 24px;
  background: url("../puppetglow-tokens/patterns/story-sparkle-pattern.svg") 0 0/36px 36px repeat;
  border-radius: var(--pg-radius-lg);
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow-sm);
}
.pg-404__art-img { display: block; width: 100%; }

/* ================================================================
 *  8. 页脚 · Site Footer
 * ================================================================ */
.pg-site-footer {
  margin-top: 80px;
  background: var(--pg-navy);
  color: #d8e3ea;
  font-size: .96rem;
}
.pg-site-footer a { color: #f4e8d3; text-decoration: none; }
.pg-site-footer a:hover { color: var(--pg-yellow); }

/* 主内容行：品牌 + 三栏菜单 + 订阅 */
.pg-site-footer__main { padding: 64px 0 40px; }
.pg-site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px 32px;
  align-items: start;
}
@media (max-width: 1100px) {
  .pg-site-footer__grid { grid-template-columns: 1fr 1fr; }
  .pg-site-footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pg-site-footer__grid { grid-template-columns: 1fr; }
}
.pg-site-footer__logo-img { max-width: 260px; display: block; margin-bottom: 18px; }
.pg-site-footer__desc { color: #a9bcc9; line-height: 1.6; margin: 0 0 24px; max-width: 36ch; }
.pg-site-footer__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}
.pg-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #f4e8d3;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pg-social-link:hover { background: var(--pg-coral); color: #fff; transform: translateY(-2px); }
.pg-social-link:focus-visible { outline: none; background: var(--pg-coral); color: #fff; box-shadow: 0 0 0 2px var(--pg-yellow); }

.pg-footer__col-title {
  color: #fff;
  font-family: var(--pg-font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.pg-site-footer__col { min-width: 0; }

/* Footer 菜单列表（wp_nav_menu 输出） */
.pg-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-footer__menu > li {
  margin: 0;
  padding: 0;
}
.pg-footer__menu > li > a {
  color: #a9bcc9;
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s ease;
}
.pg-footer__menu > li > a:hover { color: var(--pg-yellow); }
.pg-footer__menu > li > a:focus-visible { outline: none; color: var(--pg-yellow); text-decoration: underline; }
.pg-footer__menu--empty { gap: 10px; }

.pg-footer__newsletter-desc { color: #a9bcc9; margin: 0 0 14px; }
.pg-footer__newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-footer__newsletter-input { flex: 1 1 200px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.pg-footer__newsletter-input::placeholder { color: #8ea3b2; }
.pg-footer__newsletter-input:focus { background: rgba(255, 255, 255, .12); }
.pg-button--coral { background: var(--pg-coral); color: #fff; }
.pg-button--coral:hover { background: var(--pg-coral-700); }

/* 政策链接行 */
.pg-site-footer__policy {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pg-site-footer__policy-inner { display: flex; justify-content: center; }
.pg-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.pg-legal-links > li { margin: 0; padding: 0; }
.pg-legal-links > li > a {
  color: #a9bcc9;
  font-size: .88rem;
  text-decoration: none;
}
.pg-legal-links > li > a:hover { color: #fff; text-decoration: underline; }
.pg-legal-links > li > a:focus-visible { outline: none; color: #fff; text-decoration: underline; }

/* 版权行 */
.pg-site-footer__copy { padding: 20px 0 28px; }
.pg-site-footer__copy-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  color: #8ea3b2;
  font-size: .88rem;
}
.pg-site-footer__copy-text { margin: 0; text-align: center; }

/* ================================================================
 *  9. 按钮增强（补充品牌令牌已有类）
 * ================================================================ */
.pg-button--sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.pg-button--block { width: 100%; display: flex; }
.pg-button--coral { } /* 已在页脚定义，保持 */
.pg-button--outline {
  background: transparent !important;
  color: currentColor;
  border: 2px solid currentColor;
}
/* 禁用态 */
.pg-button[disabled],
.pg-button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ================================================================
 *  10. 表单增强（补充品牌令牌 .pg-input/.pg-label）
 * ================================================================ */
.pg-form-row { margin-bottom: 18px; }
.pg-form-row--required .pg-label::after { content: " *"; color: var(--pg-danger); }
.pg-label { display: block; margin-bottom: 6px; color: var(--pg-navy); font: 700 .95rem var(--pg-font-display); }
.pg-help-text { display: block; margin-top: 6px; font-size: .85rem; color: var(--pg-muted); }
.pg-input--textarea { min-height: 140px; padding-top: 12px; resize: vertical; }
.pg-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  border: 2px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  color: var(--pg-ink);
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2360717E"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>') right 12px center/20px no-repeat;
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.pg-select:focus { border-color: var(--pg-teal); outline: 0; box-shadow: var(--pg-focus); }
.pg-checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.pg-checkbox-row input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--pg-teal);
}
.pg-checkbox-row label { cursor: pointer; }
.pg-form-error {
  display: block;
  margin-top: 6px;
  font-size: .88rem;
  color: var(--pg-danger);
  font-weight: 700;
}
.pg-input.is-error { border-color: var(--pg-danger); background: rgba(201, 66, 66, .06); }
.pg-form-summary {
  padding: 14px 18px;
  border-radius: var(--pg-radius-sm);
  background: rgba(201, 66, 66, .08);
  border: 2px solid rgba(201, 66, 66, .2);
  color: #801f1f;
  margin-bottom: 20px;
}
.pg-form-summary ul { margin: 6px 0 0 18px; padding: 0; }

/* ================================================================
 *  11. 正文 & 排版微调整
 * ================================================================ */
hr.wp-block-separator {
  border: 0;
  border-top: 2px dashed var(--pg-border);
  margin: 2.5em 0;
  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}
table.wp-block-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--pg-radius-md);
  overflow: hidden;
  border: 1px solid var(--pg-border);
  margin: 2em 0;
}
.wp-block-table th,
.wp-block-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pg-border);
}
.wp-block-table thead th {
  background: var(--pg-cloud);
  font-family: var(--pg-font-display);
  font-weight: 800;
  color: var(--pg-navy);
}
.wp-block-preformatted,
.wp-block-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95em;
  background: var(--pg-cloud);
  border-radius: var(--pg-radius-sm);
  padding: 14px 18px;
  border: 1px solid var(--pg-border);
  display: block;
  overflow-x: auto;
}
.wp-block-pullquote {
  border-top: 4px solid var(--pg-teal);
  border-bottom: 4px solid var(--pg-teal);
  padding: 24px;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  margin: 2em 0;
}

/* ================================================================
 *  12. 管理栏偏移（登录时顶部有黑色 WP Bar）
 * ================================================================ */
@media screen and (min-width: 783px) {
  .admin-bar .pg-site-header { top: 32px; }
}
@media screen and (max-width: 782px) {
  .admin-bar .pg-site-header { top: 46px; }
}

/* ================================================================
 *  13. 动画 Keyframes
 * ================================================================ */
@keyframes pgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pgSlideInRight {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pgPopIn {
  from { transform: translateY(16px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 尊重减少动画设置（用户系统设置） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ================================================================
 *  14. 打印样式（方便教育者打印教案）
 * ================================================================ */
@media print {
  .pg-site-header,
  .pg-site-footer,
  .pg-sidebar,
  .pg-single-post-nav,
  .pg-page-edit-link,
  .pg-404__cta-row,
  .comment-respond,
  .pg-mobile-nav,
  .pg-search-modal {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .pg-card,
  .pg-single-author-bio,
  .pg-post-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
  }
  .pg-container,
  #pg-content,
  .pg-page-wrap,
  .pg-single-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

/* ================================================================
 *  首页模块样式已迁移至 home.css（v0.3.1）
 * ================================================================ */

/* -------- pg-card 组件 -------- */
.pg-card {
  padding: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-md);
  background: var(--pg-surface);
  box-shadow: var(--pg-shadow-sm);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.pg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg-shadow-md);
}
.pg-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--pg-cloud) 0%, var(--pg-cream) 100%);
  border-bottom: 1px solid var(--pg-border);
}
.pg-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.pg-card__title {
  font-size: 1.2rem;
  font-family: var(--pg-font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--pg-navy);
}
.pg-card__desc { color: var(--pg-muted); margin: 0; font-size: .95rem; line-height: 1.55; }

/* -------- 按钮变体补充（--coral / --ghost） -------- */
.pg-button--coral,
.pg-button--coral {
  background: var(--pg-coral);
  color: #fff;
  border-color: var(--pg-coral);
}
.pg-button--coral:hover {
  background: var(--pg-coral-700);
  border-color: var(--pg-coral-700);
}
.pg-button--ghost {
  background: transparent;
  color: var(--pg-navy);
  border: 2px solid var(--pg-navy);
}
.pg-button--ghost:hover {
  background: var(--pg-navy);
  color: #fff;
  border-color: var(--pg-navy);
}

/* -------- pg-card 标题颜色修正 -------- */
.pg-card__title a { color: var(--pg-navy); text-decoration: none; }
.pg-card__title a:hover { color: var(--pg-coral-700); }

/* ================================================================
 *  v0.4.0 Resource catalog
 * ================================================================ */
.pg-resource-archive,
.pg-resource-single {
  padding: 56px 0 80px;
  background: var(--pg-cream);
}

.pg-resource-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--pg-muted);
  font-size: .92rem;
}

.pg-resource-breadcrumb a {
  color: var(--pg-navy);
}

.pg-resource-archive__header,
.pg-resource-seo-copy,
.pg-resource-single__content,
.pg-resource-single__related,
.pg-resource-single__preview {
  max-width: 1040px;
}

.pg-resource-archive__header h1,
.pg-resource-single__hero h1 {
  margin: 0 0 14px;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.pg-resource-archive__header p,
.pg-resource-single__subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--pg-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.pg-resource-archive__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(244, 124, 91, .12);
  color: var(--pg-coral);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pg-resource-archive__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 4px;
}

.pg-resource-archive__chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .8);
  color: var(--pg-navy);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(18, 53, 92, .08);
  backdrop-filter: blur(6px);
}

.pg-resource-archive__count {
  margin: 0 0 16px;
  color: var(--pg-muted);
  font-weight: 700;
}

.pg-resource-filters {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  margin: 34px 0 22px;
  padding: 24px;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    #fff;
  box-shadow: 0 20px 45px rgba(18, 53, 92, .07);
}

.pg-resource-filters label {
  display: grid;
  gap: 6px;
  color: var(--pg-navy);
  font-weight: 800;
}

.pg-resource-filters__intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 8px;
}

.pg-resource-filters__intro h2 {
  margin: 0;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
}

.pg-resource-filters__intro p {
  margin: 0;
  max-width: 720px;
  color: var(--pg-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.pg-resource-filters__eyebrow {
  margin: 0;
  color: var(--pg-coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pg-resource-filters__field {
  min-width: 0;
}

.pg-resource-filters__field--search {
  grid-column: 1 / 2;
}

.pg-resource-filters input,
.pg-resource-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.pg-resource-filters button,
.pg-resource-card__button,
.pg-resource-single__actions a,
.pg-resource-single__actions button {
  min-height: 44px;
  border: 2px solid var(--pg-navy);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--pg-navy);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.pg-resource-filters button {
  align-self: end;
  cursor: pointer;
}

.pg-resource-filters__actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.pg-resource-filters__reset {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(18, 53, 92, .06);
  color: var(--pg-navy);
  font-weight: 900;
  text-align: center;
}

.pg-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pg-resource-grid--home {
  margin-top: 28px;
}

.pg-resource-grid--free {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-resource-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 53, 92, .08);
}

.pg-resource-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 124, 91, .08), rgba(58, 83, 155, .08)), var(--pg-cloud);
}

.pg-resource-card__media::after,
.pg-resource-card__media-overlay {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pg-resource-card__media::after {
  background:
    linear-gradient(180deg, rgba(18, 53, 92, 0) 35%, rgba(18, 53, 92, .26) 100%);
}

.pg-resource-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-resource-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  color: var(--pg-navy);
  font-weight: 900;
  text-align: center;
}

.pg-resource-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--pg-navy);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(18, 53, 92, .14);
}

.pg-resource-card--paid .pg-resource-card__badge {
  background: var(--pg-coral);
}

.pg-resource-card--coming_soon .pg-resource-card__badge {
  background: var(--pg-purple);
}

.pg-resource-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.pg-resource-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pg-resource-card__title {
  margin: 0;
  color: var(--pg-navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.pg-resource-card__title a {
  color: inherit;
}

.pg-resource-card__subtitle,
.pg-resource-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.55;
}

.pg-resource-card__subtitle {
  -webkit-line-clamp: 2;
  color: var(--pg-navy);
  font-weight: 700;
}

.pg-resource-card__description {
  -webkit-line-clamp: 3;
}

.pg-resource-card__price {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(244, 124, 91, .12);
  color: var(--pg-coral);
  font-size: .92rem;
  font-weight: 900;
}

.pg-resource-card__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(58, 83, 155, .08);
  color: var(--pg-navy);
  font-size: .82rem;
  font-weight: 800;
}

.pg-resource-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-resource-card__highlights span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .78);
  color: var(--pg-muted);
  font-size: .76rem;
  font-weight: 800;
}

.pg-resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.pg-resource-card__meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 249, 239, .9);
  color: var(--pg-navy);
  font-size: .78rem;
  font-weight: 800;
}

.pg-resource-card__actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-resource-card__button {
  display: block;
  background: linear-gradient(135deg, var(--pg-navy), #1f4a72);
  box-shadow: 0 12px 24px rgba(18, 53, 92, .16);
}

.pg-resource-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(18, 53, 92, .2);
}

.pg-resource-card__favorite-link,
.pg-account-favorite__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 53, 92, .12);
  background: rgba(255,255,255,.92);
  color: var(--pg-navy);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(18, 53, 92, .08);
}

.pg-account-favorite__button.is-saved {
  background: rgba(47, 167, 160, .12);
  border-color: rgba(47, 167, 160, .2);
  color: var(--pg-teal);
}

.pg-resource-card--free .pg-resource-card__button {
  background: linear-gradient(135deg, var(--pg-coral), #ff8d6a);
  border-color: transparent;
}

.pg-resource-card--paid .pg-resource-card__button {
  background: linear-gradient(135deg, #5f4bd8, #7c66ea);
  border-color: transparent;
}

.pg-resource-card--coming_soon .pg-resource-card__button {
  background: linear-gradient(135deg, #5e6aa8, #7c8ac4);
  border-color: transparent;
}

.pg-resource-card__media:focus-visible,
.pg-resource-card__button:focus-visible,
.pg-resource-card__title a:focus-visible {
  outline: 3px solid var(--pg-yellow);
  outline-offset: 3px;
}

.pg-resource-single__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.pg-resource-single__image {
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--pg-navy);
  font-weight: 900;
}

.pg-resource-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-resource-single__price {
  color: var(--pg-coral);
  font-size: 1.35rem;
  font-weight: 900;
}

.pg-resource-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pg-resource-single__favorite-form {
  margin: 0;
}

.pg-resource-single__favorite-form .pg-account-favorite__button {
  min-height: 48px;
}

.pg-resource-single__actions button:disabled {
  opacity: .78;
}

.pg-resource-single__related-note {
  margin: -18px 0 18px;
  color: var(--pg-muted);
  font-size: .95rem;
}

.pg-resource-empty {
  max-width: 760px;
  margin: 12px 0 0;
  padding: 28px;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88)),
    #fff;
  box-shadow: 0 18px 40px rgba(18, 53, 92, .06);
}

.pg-resource-empty__eyebrow {
  margin: 0 0 8px;
  color: var(--pg-coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pg-resource-single__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 40px;
}

.pg-resource-single__facts div {
  padding: 16px;
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  background: #fff;
}

.pg-resource-single__facts span,
.pg-resource-single__facts strong {
  display: block;
}

.pg-resource-single__facts span {
  margin-bottom: 5px;
  color: var(--pg-muted);
  font-size: .82rem;
  font-weight: 800;
}

.pg-resource-single__facts strong {
  color: var(--pg-navy);
}

.pg-resource-single__content,
.pg-resource-single__preview,
.pg-resource-single__related,
.pg-resource-seo-copy {
  margin-top: 44px;
}

.pg-account-page {
  padding: 56px 0 88px;
}

.pg-account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: start;
}

.pg-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 980px;
}

.pg-account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 53, 92, .10);
  background: rgba(255,255,255,.74);
  color: var(--pg-navy);
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 53, 92, .06);
}

.pg-account-nav a:hover {
  border-color: rgba(244, 124, 91, .35);
  color: var(--pg-coral-700);
  transform: translateY(-1px);
}

.pg-account-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  border: 1px solid rgba(18, 53, 92, .08);
  box-shadow: 0 20px 52px rgba(18, 53, 92, .10);
}

.pg-account-card--wide {
  max-width: 980px;
}

.pg-account-hero {
  padding: 22px 0 8px;
}

.pg-account-hero h1 {
  max-width: 12ch;
}

.pg-account-hero__lead {
  max-width: 56ch;
  font-size: 1.02rem;
}

.pg-account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pg-account-metrics > div,
.pg-account-summary__item {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(18, 53, 92, .08);
  box-shadow: 0 16px 30px rgba(18, 53, 92, .06);
}

.pg-account-metrics strong,
.pg-account-summary__item strong {
  display: block;
  color: var(--pg-navy);
  font-size: 1rem;
  line-height: 1.3;
}

.pg-account-metrics span,
.pg-account-summary__label {
  display: block;
  margin-top: 6px;
  color: var(--pg-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.pg-account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.pg-account-eyebrow {
  margin: 0 0 12px;
  color: var(--pg-coral);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pg-account-card h1 {
  margin: 0 0 12px;
  color: var(--pg-navy);
  font-family: var(--pg-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.pg-account-card p {
  margin: 0 0 18px;
  color: var(--pg-muted);
  line-height: 1.65;
}

.pg-account-card--wide > p:not(.pg-account-eyebrow) {
  max-width: 64ch;
}

.pg-account-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(244, 124, 91, .10);
  color: var(--pg-navy);
  font-weight: 700;
}

.pg-account-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.pg-account-form label {
  display: grid;
  gap: 8px;
  color: var(--pg-navy);
  font-weight: 800;
}

.pg-account-form input[type="text"],
.pg-account-form input[type="email"],
.pg-account-form input[type="password"] {
  min-height: 48px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
}

.pg-account-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 700 !important;
}

.pg-account-actions,
.pg-account-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pg-account-footer-links a {
  color: var(--pg-coral);
  font-weight: 800;
  text-decoration: none;
}

.pg-account-footer-links a:hover {
  text-decoration: underline;
}

.pg-account-card .pg-button {
  min-width: 160px;
}

.pg-account-favorites-grid {
  margin-top: 10px;
}

.pg-site-header__cart-btn {
  position: relative;
}

.pg-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pg-coral);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(244, 124, 91, .34);
}

.pg-store-page {
  padding: 40px 0 80px;
}

.pg-store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.pg-store-hero__copy,
.pg-store-hero__summary,
.pg-store-panel,
.pg-store-empty {
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(18, 53, 92, .08);
}

.pg-store-hero__copy {
  padding: 34px;
}

.pg-store-eyebrow {
  margin: 0 0 10px;
  color: var(--pg-coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pg-store-hero h1,
.pg-store-panel h2,
.pg-store-empty h2 {
  margin: 0;
  color: var(--pg-navy);
  font-family: inherit;
  line-height: 1.08;
}

.pg-store-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.pg-store-lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--pg-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pg-store-hero__summary {
  display: grid;
  gap: 16px;
  padding: 24px;
  align-content: center;
}

.pg-store-hero__summary div,
.pg-store-order-row__meta,
.pg-store-checkout-bar,
.pg-store-line-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-store-hero__summary strong {
  display: block;
  color: var(--pg-navy);
  font-size: 1.5rem;
}

.pg-store-hero__summary span,
.pg-store-note,
.pg-store-line-item__eyebrow,
.pg-store-empty p,
.pg-store-panel > p {
  color: var(--pg-muted);
}

.pg-store-panel {
  padding: 30px;
}

.pg-store-cart-list,
.pg-store-order-list {
  display: grid;
  gap: 16px;
}

.pg-store-line-item,
.pg-store-order-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
}

.pg-store-line-item__body,
.pg-store-order-row > div:first-child {
  min-width: 0;
}

.pg-store-line-item h2,
.pg-store-line-item h3,
.pg-store-order-row h2 {
  margin: 4px 0 8px;
  color: var(--pg-navy);
}

.pg-store-line-item p,
.pg-store-order-row p {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.6;
}

.pg-store-line-item__meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 14px;
}

.pg-store-line-item__meta span,
.pg-store-order-row__meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(58, 83, 155, .08);
  color: var(--pg-navy);
  font-size: .8rem;
  font-weight: 800;
}

.pg-store-order-row__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.pg-store-order-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pg-store-order-form select {
  min-width: 160px;
  border: 1px solid rgba(18, 53, 92, .12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.96);
  color: var(--pg-navy);
}

.pg-store-line-item__actions,
.pg-store-checkout-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.pg-button--ghost {
  border-color: rgba(18, 53, 92, .08);
  background: rgba(255,255,255,.96);
  color: var(--pg-navy);
}

.pg-store-checkout-bar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 53, 92, .08);
}

.pg-store-checkout-bar strong {
  color: var(--pg-navy);
  font-size: 1.6rem;
}

.pg-store-price-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 53, 92, .08);
}

.pg-store-price-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
  color: var(--pg-slate);
}

.pg-store-price-summary strong {
  color: var(--pg-navy);
}

.pg-store-price-summary__total {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 53, 92, .08);
  font-size: 1.1rem;
  font-weight: 900;
}

.pg-store-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
}

.pg-store-form {
  display: grid;
  gap: 16px;
}

.pg-store-form label {
  display: grid;
  gap: 8px;
  color: var(--pg-navy);
  font-weight: 800;
}

.pg-store-form input,
.pg-store-form textarea,
.pg-store-form select {
  width: 100%;
  border: 1px solid rgba(18, 53, 92, .12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.96);
  color: var(--pg-navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.pg-store-notice {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(47, 167, 160, .12);
  color: var(--pg-navy);
  font-weight: 700;
}

.pg-store-empty {
  padding: 34px;
}

.pg-store-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pg-account-download-list {
  display: grid;
  gap: 14px;
}

.pg-account-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(18, 53, 92, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
}

.pg-account-download-item h2 {
  margin: 4px 0 0;
  color: var(--pg-navy);
  font-size: 1.1rem;
}

.pg-store-note {
  margin: 16px 0 0;
  font-size: .95rem;
  line-height: 1.6;
}

.pg-resource-versions {
  margin: 28px 0 36px;
  padding: 30px;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(18, 53, 92, .08);
}

.pg-resource-versions h2 {
  margin: 0 0 8px;
  color: var(--pg-navy);
}

.pg-resource-version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.pg-resource-version-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(18, 53, 92, .08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  box-shadow: 0 14px 28px rgba(18, 53, 92, .06);
}

.pg-resource-version-card--family {
  background: linear-gradient(180deg, rgba(47,167,160,.08), rgba(255,255,255,.96));
}

.pg-resource-version-card--classroom {
  background: linear-gradient(180deg, rgba(244,124,91,.08), rgba(255,255,255,.96));
}

.pg-resource-version-card--complete {
  background: linear-gradient(180deg, rgba(95,75,216,.08), rgba(255,255,255,.96));
}

.pg-resource-version-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pg-resource-version-card__label {
  color: var(--pg-navy);
  font-size: 1.25rem;
  font-weight: 900;
}

.pg-resource-version-card__price {
  color: var(--pg-coral);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.pg-resource-version-card__sku,
.pg-resource-version-card__highlight,
.pg-resource-version-card__features {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.6;
}

.pg-resource-version-card__sku {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pg-resource-version-card__features {
  white-space: pre-line;
}

.pg-resource-version-card__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.pg-store-line-item--compact {
  align-items: center;
}

.pg-membership-page {
  color: var(--pg-navy, #17324d);
}

.pg-membership-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: stretch;
  margin: 18px 0 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 205, 96, .28), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(244, 124, 91, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 241, .95));
  box-shadow: 0 24px 60px rgba(23, 50, 77, .08);
}

.pg-membership-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.05em;
}

.pg-membership-hero__panel,
.pg-membership-card,
.pg-membership-note {
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(23, 50, 77, .08);
}

.pg-membership-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.pg-membership-hero__panel span,
.pg-membership-card__ribbon {
  color: var(--pg-coral, #f47c5b);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.pg-membership-hero__panel strong {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.pg-membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.pg-membership-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
}

.pg-membership-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 205, 96, .2);
}

.pg-membership-card.is-featured {
  background:
    linear-gradient(145deg, rgba(23, 50, 77, .96), rgba(33, 73, 108, .94)),
    #17324d;
  color: #fff;
  transform: translateY(-8px);
}

.pg-membership-card.is-featured .pg-account-eyebrow,
.pg-membership-card.is-featured p,
.pg-membership-card.is-featured li {
  color: rgba(255, 255, 255, .82);
}

.pg-membership-card.is-current {
  outline: 3px solid rgba(244, 124, 91, .24);
}

.pg-membership-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}

.pg-membership-card p {
  color: #60717e;
}

.pg-membership-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.pg-membership-card li {
  position: relative;
  padding-left: 26px;
  color: #455c6e;
}

.pg-membership-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pg-coral, #f47c5b);
  font-weight: 900;
}

.pg-membership-card .pg-button {
  margin-top: auto;
}

.pg-membership-note {
  margin: 28px 0 0;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(244, 124, 91, .1), rgba(255,255,255,.95)),
    #fff;
}

.pg-membership-note h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.pg-membership-note p {
  max-width: 900px;
  margin: 0;
  color: #60717e;
}

.pg-teacher-library-item {
  position: relative;
}

.pg-teacher-library-grid--locked .pg-resource-card {
  filter: saturate(.82);
}

.pg-teacher-library-lock {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: rgba(23, 50, 77, .92);
  box-shadow: 0 16px 34px rgba(23, 50, 77, .18);
  backdrop-filter: blur(12px);
}

.pg-teacher-library-lock strong {
  font-size: 15px;
}

.pg-teacher-library-lock span {
  font-size: 13px;
  color: rgba(255,255,255,.76);
}

.pg-ai-reason-box {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 50, 77, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
  box-shadow: 0 12px 30px rgba(23, 50, 77, .05);
}

.pg-ai-reason-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pg-navy, #17324d);
  font-size: 14px;
  letter-spacing: .01em;
}

.pg-ai-reason-box ul {
  margin: 0;
  padding-left: 18px;
  color: #60717e;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.pg-ai-tool-page {
  color: var(--pg-navy, #17324d);
}

.pg-ai-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: stretch;
  margin: 18px 0 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 205, 96, .26), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(40, 174, 165, .14), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,241,.96));
  box-shadow: 0 24px 60px rgba(23, 50, 77, .08);
}

.pg-ai-tool-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1;
  letter-spacing: -.05em;
}

.pg-ai-tool-form,
.pg-ai-result-card {
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(23, 50, 77, .08);
}

.pg-ai-tool-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.pg-ai-tool-form label {
  display: grid;
  gap: 8px;
  color: #60717e;
  font-size: 14px;
  font-weight: 800;
}

.pg-ai-tool-form input,
.pg-ai-tool-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(23, 50, 77, .14);
  border-radius: 999px;
  color: #17324d;
  background: #fff;
  font: inherit;
}

.pg-ai-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 22px;
  margin: 28px 0;
}

.pg-ai-result-card {
  padding: clamp(24px, 4vw, 40px);
}

.pg-ai-result-card--wide {
  min-height: 520px;
}

.pg-ai-result-card h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -.04em;
}

.pg-ai-result-card h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.pg-ai-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.pg-ai-objective,
.pg-ai-safety {
  padding: 16px 18px;
  border: 1px solid rgba(47,167,160,.2);
  border-radius: 18px;
  background: rgba(231,247,244,.62);
}
.pg-ai-safety { margin-top: 22px; background: rgba(255,209,102,.16); border-color: rgba(255,177,57,.28); }
.pg-ai-copy-box { width:100%; padding:16px; border:1px solid rgba(23,50,77,.14); border-radius:16px; background:#f8faf9; color:#17324d; line-height:1.6; resize:vertical; }
@media print {
  .pg-account-nav,.pg-ai-tool-hero,.pg-ai-result-actions,.pg-ai-save-form,.pg-site-header,.pg-site-footer,[data-pg-copy-target] { display:none !important; }
  .pg-ai-result-layout { display:block; }
  .pg-ai-result-card { box-shadow:none; border:0; padding:0; }
}

.pg-ai-save-form {
  margin: 0 0 18px;
}

.pg-ai-result-card p,
.pg-ai-result-card li,
.pg-ai-result-card dd {
  color: #60717e;
  line-height: 1.7;
}

.pg-ai-result-card ol,
.pg-ai-result-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.pg-ai-result-card a {
  color: #17324d;
  font-weight: 900;
  text-decoration-color: rgba(244, 124, 91, .5);
}

.pg-ai-copy-box {
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(23, 50, 77, .14);
  border-radius: 20px;
  color: #17324d;
  background: rgba(255, 250, 241, .72);
  font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.pg-ai-timing {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.pg-ai-timing dt {
  color: var(--pg-coral, #f47c5b);
  font-weight: 900;
}

.pg-ai-timing dd {
  margin: 0;
}

.pg-ai-prompt-grid,
.pg-ai-content-grid,
.pg-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pg-ai-prompt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 24px 0; }
.pg-ai-prompt-grid section,
.pg-ai-content-grid article,
.pg-tools-card {
  padding: 24px;
  border: 1px solid rgba(23,50,77,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 36px rgba(23,50,77,.06);
}
.pg-ai-adult-note { margin-top:16px; padding:16px 18px; border-left:4px solid var(--pg-teal,#2fa7a0); border-radius:0 18px 18px 0; background:rgba(47,167,160,.08); }
.pg-ai-context-strip { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 22px; }
.pg-ai-context-strip span { padding:7px 11px; border-radius:999px; background:rgba(47,167,160,.1); color:#17324d; font-size:13px; font-weight:800; }
.pg-ai-seo-section { margin:52px 0; padding:clamp(28px,5vw,58px); border:1px solid rgba(23,50,77,.1); border-radius:34px; background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,250,241,.9)); }
.pg-ai-seo-section>h2 { max-width:900px; font-size:clamp(30px,4vw,52px); line-height:1.05; letter-spacing:-.035em; }
.pg-ai-seo-section>p { max-width:900px; color:#60717e; font-size:17px; line-height:1.8; }
.pg-ai-seo-section details { max-width:900px; padding:18px 0; border-top:1px solid rgba(23,50,77,.12); }
.pg-ai-seo-section summary { color:#17324d; font-weight:900; cursor:pointer; }
.pg-tools-hub__hero { max-width:1050px; padding:clamp(54px,8vw,110px) 0 56px; }
.pg-tools-hub__hero h1 { margin:0; max-width:1000px; font-size:clamp(52px,8vw,104px); line-height:.94; letter-spacing:-.055em; }
.pg-tools-grid { margin-bottom:46px; }
.pg-tools-card { position:relative; min-height:360px; display:flex; flex-direction:column; align-items:flex-start; overflow:hidden; }
.pg-tools-card h2 { max-width:280px; font-size:34px; line-height:1.02; }
.pg-tools-card p:not(.pg-account-eyebrow) { color:#60717e; line-height:1.7; }
.pg-tools-card .pg-button { margin-top:auto; }
.pg-tools-card__number { position:absolute; top:12px; right:20px; color:rgba(23,50,77,.07); font-size:82px; font-weight:900; }
.pg-ai-claim-modal { width:min(700px,calc(100% - 28px)); max-width:700px; max-height:calc(100vh - 32px); padding:0; border:0; border-radius:30px; background:transparent; overflow:visible; }
.pg-ai-claim-modal:not([open]) { display:none; }
.pg-ai-claim-modal[open] { display:block; }
.pg-ai-claim-modal::backdrop { background:rgba(12,35,54,.68); backdrop-filter:blur(6px); }
#pg-generated-activity { scroll-margin-top:110px; }
.pg-ai-claim-modal__panel { position:relative; width:100%; max-height:calc(100vh - 32px); overflow:auto; margin:0; padding:clamp(26px,5vw,46px); border-radius:30px; background:#fffaf1; box-shadow:0 30px 90px rgba(12,35,54,.3); }
.pg-ai-claim-modal__panel h2 { margin:0 42px 12px 0; font-size:clamp(34px,5vw,54px); line-height:1; }
.pg-ai-claim-modal__close { position:absolute; top:18px; right:18px; width:42px; height:42px; border:1px solid rgba(23,50,77,.14); border-radius:50%; background:#fff; color:#17324d; font-size:28px; cursor:pointer; }
.pg-ai-claim-modal .pg-ai-tool-form { padding:20px 0 0; border:0; box-shadow:none; background:transparent; }
.pg-ai-check { grid-template-columns:22px 1fr !important; align-items:start; }
.pg-ai-check input { min-height:0; width:18px; height:18px; margin-top:3px; }
.pg-honeypot { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; }
.pg-ai-rubric { margin:14px 0 26px; overflow-x:auto; }
.pg-ai-rubric table { min-width:760px; border-collapse:separate; border-spacing:0; }
.pg-ai-rubric th,.pg-ai-rubric td { padding:14px; border-right:1px solid rgba(23,50,77,.1); border-bottom:1px solid rgba(23,50,77,.1); text-align:left; vertical-align:top; }
.pg-ai-rubric thead th { background:#17324d; color:#fff; }
.pg-ai-worksheet { margin:28px 0; padding:28px; border:2px dashed rgba(23,50,77,.18); border-radius:24px; background:#fff; }
.pg-ai-worksheet p:not(.pg-account-eyebrow) { padding:12px 0; border-bottom:1px solid rgba(23,50,77,.12); color:#17324d; }
.pg-tool-preview-modal { width:min(1100px,calc(100% - 28px)); max-width:1100px; max-height:calc(100vh - 28px); padding:0; border:0; border-radius:30px; background:transparent; }
.pg-tool-preview-modal:not([open]) { display:none; }
.pg-tool-preview-modal[open] { display:block; }
.pg-tool-preview-modal::backdrop { background:rgba(12,35,54,.7); backdrop-filter:blur(6px); }
.pg-tool-preview-modal__panel { position:relative; max-height:calc(100vh - 28px); overflow:auto; padding:clamp(28px,5vw,52px); border-radius:30px; background:#fffaf1; box-shadow:0 30px 90px rgba(12,35,54,.32); }
.pg-tool-preview-modal .pg-ai-result-card,.pg-tool-preview-modal .pg-account-card { padding:0; border:0; box-shadow:none; background:transparent; }
.pg-tool-preview-modal .pg-resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:800px){.pg-tool-preview-modal .pg-resource-grid{grid-template-columns:1fr}.pg-tool-preview-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px)}.pg-tool-preview-modal__panel{max-height:calc(100vh - 16px);padding:24px 18px}}

/* Focused tool pages: one clear task, advanced choices on demand. */
.pg-ai-tool-page--simple {
  max-width: 980px;
  padding-top: 34px;
}
.pg-tool-switcher {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 26px;
  padding: 5px;
  border: 1px solid rgba(23,50,77,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 35px rgba(23,50,77,.07);
}
.pg-tool-switcher a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #526879;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.pg-tool-switcher a.is-current {
  color: #fff;
  background: #17324d;
}
.pg-simple-tool-card {
  overflow: hidden;
  border: 1px solid rgba(23,50,77,.1);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23,50,77,.1);
}
.pg-simple-tool-card__header {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(38px,6vw,64px) 24px 26px;
  text-align: center;
}
.pg-simple-tool-card__header h1 {
  margin: 6px 0 12px;
  color: #17324d;
  font-size: clamp(38px,6vw,64px);
  line-height: 1;
  letter-spacing: -.045em;
}
.pg-simple-tool-card__header > p:last-child {
  max-width: 580px;
  margin: 0 auto;
  color: #60717e;
  font-size: 17px;
  line-height: 1.6;
}
.pg-simple-tool-card .pg-ai-tool-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin: 0;
  padding: 30px clamp(22px,5vw,52px) clamp(30px,5vw,48px);
  border: 0;
  border-top: 1px solid rgba(23,50,77,.08);
  border-radius: 0;
  background: #fffaf3;
  box-shadow: none;
}
.pg-simple-tool-card .pg-ai-tool-form label {
  gap: 8px;
  color: #17324d;
  font-size: 14px;
  font-weight: 850;
}
.pg-simple-tool-card .pg-ai-tool-form input,
.pg-simple-tool-card .pg-ai-tool-form select {
  min-height: 52px;
  border-radius: 14px;
  background: #fff;
}
.pg-simple-tool-card .pg-ai-tool-form > button {
  grid-column: 1 / -1;
  min-height: 56px;
  margin-top: 4px;
  font-size: 17px;
}
.pg-tool-advanced {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
}
.pg-tool-advanced summary {
  width: fit-content;
  color: #476174;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.pg-tool-advanced > div {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  padding-top: 18px;
}
.pg-ai-tool-page--simple > .pg-ai-result-layout,
.pg-ai-tool-page--simple > #pg-recommendation-result {
  display: none;
}
.pg-ai-seo-section--compact {
  margin: 34px auto 50px;
  padding: 24px 28px;
  border-radius: 22px;
  box-shadow: none;
}
.pg-ai-seo-section--compact > p:not(.pg-account-eyebrow),
.pg-ai-seo-section--compact > .pg-ai-content-grid {
  display: none;
}
.pg-ai-seo-section--compact > h2 {
  margin: 6px 0 18px;
  font-size: clamp(24px,3vw,34px);
}
.pg-ai-seo-section--compact details {
  padding: 15px 0;
}
.pg-tool-preview-modal--recommendations {
  width: min(920px,calc(100% - 28px));
}
.pg-tool-preview-modal--recommendations .pg-tool-preview-modal__panel {
  padding: clamp(26px,4vw,44px);
}
.pg-tool-preview-modal--recommendations h2 {
  max-width: 720px;
  margin: 4px 0 12px;
  font-size: clamp(32px,5vw,50px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.pg-recommendation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.pg-recommendation-summary span,
.pg-recommendation-item__meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #476174;
  background: #edf4f4;
  font-size: 12px;
  font-weight: 850;
}
.pg-recommendation-list {
  display: grid;
  gap: 14px;
}
.pg-recommendation-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border: 1px solid rgba(23,50,77,.1);
  border-radius: 22px;
  background: #fff;
}
.pg-recommendation-item__media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #eaf3f2;
}
.pg-recommendation-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg-recommendation-item__media > span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #17324d;
  font-weight: 900;
}
.pg-recommendation-item__content {
  padding: 22px;
}
.pg-recommendation-item__meta {
  display: flex;
  gap: 7px;
}
.pg-recommendation-item h3 {
  margin: 12px 0 8px;
  color: #17324d;
  font-size: clamp(21px,3vw,28px);
  line-height: 1.1;
}
.pg-recommendation-item ul {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding-left: 19px;
  color: #60717e;
  font-size: 14px;
}
.pg-recommendation-item .pg-button {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 13px;
}
@media (max-width:700px) {
  .pg-ai-tool-page--simple { padding-top: 20px; }
  .pg-tool-switcher { width: 100%; }
  .pg-tool-switcher a { flex: 1; padding: 9px 8px; text-align: center; font-size: 12px; }
  .pg-simple-tool-card { border-radius: 24px; }
  .pg-simple-tool-card .pg-ai-tool-form,
  .pg-tool-advanced > div { grid-template-columns: 1fr; }
  .pg-simple-tool-card__header { padding: 34px 20px 22px; }
  .pg-recommendation-item { grid-template-columns: 1fr; }
  .pg-recommendation-item__media { min-height: 180px; max-height: 220px; }
}

@media (max-width: 900px) {
  .pg-ai-content-grid,.pg-tools-grid { grid-template-columns:1fr; }
  .pg-ai-prompt-grid { grid-template-columns:1fr; }
  .pg-tools-card { min-height:300px; }
}

.pg-resource-single__seo-links {
  margin: 34px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 205, 96, .18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,241,.95));
  box-shadow: 0 18px 42px rgba(23, 50, 77, .07);
}

.pg-resource-single__faq {
  margin: 34px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(23, 50, 77, .07);
}

.pg-resource-single__faq h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
}

.pg-resource-faq-list {
  display: grid;
  gap: 12px;
}

.pg-resource-faq-list details {
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 20px;
  background: #fffaf1;
  overflow: hidden;
}

.pg-resource-faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #17324d;
  font-weight: 900;
}

.pg-resource-faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: #60717e;
  line-height: 1.7;
}

.pg-resource-single__seo-links h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
}

.pg-seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pg-seo-link-grid a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(23, 50, 77, .1);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  color: #17324d;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pg-seo-link-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 50, 77, .09);
}

.pg-seo-link-grid span {
  color: #60717e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pg-seo-link-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .pg-account-card {
    padding: 40px;
  }
  .pg-account-card--wide {
    background:
      linear-gradient(135deg, rgba(244, 124, 91, .08), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  }
  .pg-store-panel--form {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pg-resource-card {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .pg-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(18, 53, 92, .12);
  }
}

@media (max-width: 900px) {
  .pg-account-shell,
  .pg-resource-filters,
  .pg-resource-grid,
  .pg-resource-grid--free,
  .pg-resource-single__hero,
  .pg-resource-single__facts {
    grid-template-columns: 1fr;
  }
  .pg-resource-filters__intro,
  .pg-resource-filters__field--search,
  .pg-resource-filters__actions {
    grid-column: 1 / -1;
  }
  .pg-account-metrics,
  .pg-account-summary {
    grid-template-columns: 1fr;
  }
  .pg-store-hero,
  .pg-membership-hero,
  .pg-ai-tool-hero,
  .pg-ai-result-layout,
  .pg-store-checkout-layout,
  .pg-store-line-item,
  .pg-store-order-row,
  .pg-store-checkout-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .pg-store-line-item__actions,
  .pg-store-checkout-bar__actions {
    justify-content: flex-start;
  }
  .pg-resource-version-grid {
    grid-template-columns: 1fr;
  }
  .pg-seo-link-grid {
    grid-template-columns: 1fr;
  }
  .pg-membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pg-resource-archive,
  .pg-resource-single {
    padding: 36px 0 56px;
  }
  .pg-resource-filters,
  .pg-resource-grid,
  .pg-resource-grid--free,
  .pg-resource-single__hero,
  .pg-resource-single__facts {
    grid-template-columns: 1fr;
  }
  .pg-resource-card__body {
    padding: 18px;
  }
  .pg-account-page {
    padding: 32px 0 56px;
  }
  .pg-account-nav {
    justify-content: flex-start;
  }
  .pg-account-card {
    padding: 24px;
    border-radius: 22px;
  }
  .pg-account-hero h1 {
    max-width: none;
  }
  .pg-store-page {
    padding: 28px 0 56px;
  }
  .pg-store-hero__copy,
  .pg-store-hero__summary,
  .pg-store-panel,
  .pg-store-empty {
    border-radius: 22px;
  }
  .pg-store-hero__copy,
  .pg-store-panel,
  .pg-store-empty {
    padding: 22px;
  }
  .pg-resource-versions {
    padding: 20px;
    border-radius: 22px;
  }
  .pg-membership-hero,
  .pg-ai-tool-hero,
  .pg-ai-result-layout,
  .pg-membership-grid {
    grid-template-columns: 1fr;
  }
  .pg-membership-card.is-featured {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pg-account-nav,
  .pg-ai-tool-hero,
  .pg-ai-result-actions,
  .pg-ai-copy-box,
  .pg-ai-result-layout aside,
  .pg-footer {
    display: none !important;
  }
  body,
  .pg-account-page {
    background: #fff !important;
  }
  .pg-ai-result-layout {
    display: block;
    margin: 0;
  }
  .pg-ai-result-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .pg-ai-result-card h2 {
    font-size: 30pt;
  }
}
