:root {
  --pdp-navy: #0f2742;
  --pdp-blue: #2563eb;
  --pdp-blue-dark: #174db5;
  --pdp-teal: #14b8a6;
  --pdp-violet: #8b5cf6;
  --pdp-paper: #f5f9fd;
  --pdp-surface: #ffffff;
  --pdp-border: #d8e4ee;
  --pdp-muted: #587086;
  --pdp-soft-blue: #eaf3ff;
  --pdp-shadow-sm: 0 8px 24px rgba(15, 39, 66, 0.07);
  --pdp-shadow: 0 18px 50px rgba(15, 39, 66, 0.12);
  --pdp-radius-sm: 10px;
  --pdp-radius: 16px;
  --pdp-radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pdp-paper);
  color: var(--pdp-navy);
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar .pdp-site-header {
  top: 32px;
}

.wp-site-blocks {
  min-height: 100vh;
  overflow: clip;
}

.pdp-shell {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: 1120px;
  padding-inline: 24px;
  width: 100%;
}

.pdp-main {
  margin-top: 0;
}

.pdp-main a {
  text-underline-offset: 0.18em;
}

.pdp-main :where(h1, h2, h3) {
  text-wrap: balance;
}

.pdp-card {
  background: var(--pdp-surface);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  box-shadow: var(--pdp-shadow-sm);
}

/* Header */
.pdp-site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 228, 238, 0.9);
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pdp-header-inner {
  min-height: 76px;
  padding-inline: 24px;
}

.pdp-brand {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  white-space: nowrap;
}

.pdp-brand a {
  color: var(--pdp-navy);
  text-decoration: none;
}

.pdp-brand::before {
  background: var(--pdp-blue);
  border-radius: 6px;
  box-shadow: inset 0 0 0 5px var(--pdp-blue), inset 0 0 0 7px rgba(255, 255, 255, 0.92);
  content: "";
  display: inline-block;
  height: 22px;
  margin-right: 9px;
  vertical-align: -5px;
  width: 22px;
}

.pdp-header-actions,
.pdp-header-actions.wp-block-group {
  gap: 18px;
}

.pdp-navigation .wp-block-navigation-item__content {
  color: #29465f;
  font-size: 0.92rem;
  font-weight: 600;
  padding-block: 8px;
  text-decoration: none;
}

.pdp-navigation .wp-block-navigation-item__content:hover {
  color: var(--pdp-blue);
}

.pdp-header-cta .wp-block-button__link {
  background: var(--pdp-navy);
  box-shadow: 0 7px 18px rgba(15, 39, 66, 0.16);
  min-height: 42px;
  padding: 0.65rem 1rem;
}

.pdp-header-cta .wp-block-button__link:hover {
  background: var(--pdp-blue);
  transform: translateY(-1px);
}

/* Home hero */
.pdp-home-hero {
  background:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, #fafdff 0%, #edf6ff 100%);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 1px solid var(--pdp-border);
  margin: 0;
  overflow: hidden;
  padding: clamp(58px, 8vw, 104px) 0 52px;
  position: relative;
}

.pdp-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 88px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.pdp-eyebrow {
  color: var(--pdp-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.pdp-hero-copy h1 {
  font-size: clamp(3.1rem, 6vw, 5.35rem);
  letter-spacing: -0.058em;
  line-height: 0.98;
  margin: 0;
  max-width: 760px;
}

.pdp-hero-lede {
  color: #456077;
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 630px;
}

.pdp-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pdp-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 750;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pdp-button--primary {
  background: var(--pdp-blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  color: #fff;
}

.pdp-button--primary:hover {
  background: var(--pdp-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.pdp-button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: #bfd2e3;
  color: var(--pdp-navy);
}

.pdp-button--secondary:hover {
  background: #fff;
  border-color: var(--pdp-blue);
  color: var(--pdp-blue);
}

.pdp-trust-row {
  color: var(--pdp-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 10px 20px;
  margin-top: 25px;
}

.pdp-trust-row span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.pdp-trust-row span::before {
  background: var(--pdp-teal);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.pdp-trust-row strong {
  color: var(--pdp-navy);
}

.pdp-paper-stage {
  min-height: 390px;
  position: relative;
}

.pdp-paper {
  background: #fff;
  border: 1px solid #dbe7f0;
  border-radius: 10px;
  box-shadow: 0 26px 54px rgba(15, 39, 66, 0.17);
  box-sizing: border-box;
  height: 320px;
  padding: 20px;
  position: absolute;
  width: 240px;
}

.pdp-paper--grid {
  right: 145px;
  top: 20px;
  transform: rotate(-7deg);
}

.pdp-paper--calendar {
  right: 28px;
  top: 48px;
  transform: rotate(6deg);
}

.pdp-paper-header {
  border-bottom: 3px solid var(--pdp-blue);
  color: var(--pdp-navy);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 15px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.pdp-paper-grid {
  background-image: linear-gradient(#d7e4ef 1px, transparent 1px), linear-gradient(90deg, #d7e4ef 1px, transparent 1px);
  background-size: 13px 13px;
  height: 238px;
}

.pdp-calendar-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(7, 1fr);
}

.pdp-calendar-grid i {
  border: 1px solid #dbe5ee;
  display: block;
  height: 31px;
}

.pdp-paper-badge {
  background: var(--pdp-navy);
  border-radius: 12px;
  bottom: 16px;
  box-shadow: 0 12px 24px rgba(15, 39, 66, 0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  left: 4px;
  padding: 11px 14px;
  position: absolute;
  z-index: 3;
}

/* Home sections */
.pdp-home-section {
  padding: clamp(58px, 7vw, 92px) 0;
}

.pdp-home-section--white {
  background: #fff;
  border-block: 1px solid var(--pdp-border);
}

.pdp-section-head {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pdp-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
}

.pdp-section-head p {
  color: var(--pdp-muted);
  margin: 0;
  max-width: 470px;
}

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

.pdp-topic-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  box-shadow: var(--pdp-shadow-sm);
  color: var(--pdp-navy);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  padding: 26px;
  position: relative;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pdp-topic-card::before {
  background: var(--pdp-blue);
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.pdp-topic-card--calendar::before {
  background: var(--pdp-teal);
}

.pdp-topic-card--planner::before {
  background: var(--pdp-violet);
}

.pdp-topic-card:hover {
  border-color: #a9c8e2;
  box-shadow: var(--pdp-shadow);
  color: var(--pdp-navy);
  transform: translateY(-5px);
}

.pdp-topic-icon {
  align-items: center;
  background: #e6f0ff;
  border-radius: 12px;
  color: var(--pdp-blue);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  margin-bottom: 28px;
  width: 48px;
}

.pdp-topic-card--calendar .pdp-topic-icon {
  background: #d7faf4;
  color: #0b8577;
}

.pdp-topic-card--planner .pdp-topic-icon {
  background: #efe9ff;
  color: #7041d9;
}

.pdp-topic-card h3 {
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.pdp-topic-card p {
  color: var(--pdp-muted);
  flex: 1;
  font-size: 0.96rem;
  margin: 0;
}

.pdp-card-link {
  color: var(--pdp-blue);
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 22px;
}

.pdp-value-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 25px;
}

.pdp-value-card h3 {
  font-size: 1.2rem;
  margin: 0 0 9px;
}

.pdp-value-card p {
  color: var(--pdp-muted);
  font-size: 0.96rem;
  margin: 0;
}

/* Interior page hero */
.pdp-page-hero {
  background:
    linear-gradient(rgba(37, 99, 235, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.048) 1px, transparent 1px),
    linear-gradient(145deg, #fbfdff, #edf6ff);
  background-size: 22px 22px, 22px 22px, auto;
  border-bottom: 1px solid var(--pdp-border);
  margin: 0;
  padding: clamp(60px, 8vw, 96px) 24px clamp(44px, 6vw, 72px);
  position: relative;
}

.pdp-page-hero::before {
  color: var(--pdp-blue);
  content: "PRINTABLE TOOLS";
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  margin: 0 auto 14px;
  max-width: 1120px;
}

.page-id-26 .pdp-page-hero::before {
  content: "GRAPH PAPER TOOLS";
}

.page-id-27 .pdp-page-hero::before {
  color: #0b8577;
  content: "CALENDAR TOOLS";
}

.page-id-28 .pdp-page-hero::before {
  color: #7041d9;
  content: "PLANNER TOOLS";
}

.page-id-29 .pdp-page-hero::before,
.page-id-30 .pdp-page-hero::before,
.page-id-3 .pdp-page-hero::before {
  content: "PRINTDRIVEPRO";
}

.pdp-page-hero .wp-block-post-title {
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0 auto;
  max-width: 1120px;
}

.pdp-page-main > .wp-block-post-content {
  margin: 0;
}

/* Topic content */
.pdp-topic-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 38px 24px clamp(70px, 9vw, 112px);
}

.pdp-topic-introbar {
  align-items: flex-start;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pdp-topic-dek {
  color: #456077;
  font-size: 1.1rem;
  margin: 0;
  max-width: 680px;
}

.pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pdp-chip {
  background: #fff;
  border: 1px solid #c6d9e8;
  border-radius: 999px;
  color: var(--pdp-blue);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 7px 10px;
  white-space: nowrap;
}

.pdp-topic--calendar .pdp-chip {
  color: #0b8577;
}

.pdp-topic--planner .pdp-chip {
  color: #7041d9;
}

.pdp-generator-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius-lg);
  box-shadow: var(--pdp-shadow);
  padding: 18px;
}

.pdp-generator-label {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 2px 4px 14px;
  text-transform: uppercase;
}

.pdp-generator-label span:last-child {
  color: var(--pdp-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.pdp-generator-card #gpgen,
.pdp-generator-card #calgen,
.pdp-generator-card #plgen {
  border: 0;
  border-radius: 15px;
  margin: 0;
  max-width: none;
}

.pdp-copy-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  color: #314e66;
  font-size: 1.06rem;
  margin: 24px auto 0;
  max-width: 820px;
  padding: 24px 28px;
}

.pdp-topic-shell > .wp-block-heading {
  margin: clamp(42px, 6vw, 68px) auto 15px;
  max-width: 820px;
}

.pdp-topic-shell > h2.wp-block-heading {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.pdp-topic-shell > h3.wp-block-heading {
  font-size: 1.18rem;
  margin-top: 28px;
}

.pdp-topic-shell > p,
.pdp-topic-shell > .wp-block-paragraph {
  color: #456077;
  margin-inline: auto;
  max-width: 820px;
}

.pdp-topic-shell > .wp-block-separator {
  border-color: var(--pdp-border);
  margin-block: clamp(42px, 6vw, 68px) 0;
  max-width: 820px;
}

.pdp-topic-shell > .wp-block-buttons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px auto 4px;
  max-width: 820px;
  width: 100%;
}

.pdp-topic-shell > .wp-block-buttons > .wp-block-button {
  margin: 0;
  width: 100%;
}

.pdp-topic-shell > .wp-block-buttons .wp-block-button__link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(15, 39, 66, 0.045);
  color: var(--pdp-navy);
  display: flex;
  font-size: 0.94rem;
  font-weight: 750;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 13px 12px 17px;
  text-align: left;
  width: 100%;
}

.pdp-topic-shell > .wp-block-buttons .wp-block-button__link::after {
  background: #eaf2ff;
  border-radius: 8px;
  color: var(--pdp-blue);
  content: "PDF ↓";
  flex: none;
  font-size: 0.68rem;
  font-weight: 850;
  margin-left: 12px;
  padding: 7px 8px;
}

.pdp-topic--calendar > .wp-block-buttons .wp-block-button__link::after {
  background: #d9faf5;
  color: #0b8577;
}

.pdp-topic--planner > .wp-block-buttons .wp-block-button__link::after {
  background: #efeaff;
  color: #7041d9;
}

.pdp-topic-shell > .wp-block-buttons .wp-block-button__link:hover {
  border-color: #9cbeda;
  box-shadow: var(--pdp-shadow-sm);
  color: var(--pdp-navy);
  transform: translateY(-2px);
}

.pdp-download-section {
  margin-top: clamp(48px, 7vw, 78px);
}

.pdp-download-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 19px;
}

.pdp-download-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0;
}

.pdp-download-head p {
  color: var(--pdp-muted);
  margin: 0;
}

.pdp-download-group {
  margin-top: 28px;
}

.pdp-download-group h3 {
  align-items: center;
  display: flex;
  font-size: 1.14rem;
  gap: 9px;
  margin: 0 0 12px;
}

.pdp-download-group h3::before {
  background: var(--pdp-blue);
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

.pdp-topic--calendar .pdp-download-group h3::before {
  background: var(--pdp-teal);
}

.pdp-topic--planner .pdp-download-group h3::before {
  background: var(--pdp-violet);
}

.pdp-download-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdp-download-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(15, 39, 66, 0.045);
  color: var(--pdp-navy);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 14px 12px 18px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pdp-download-card:hover {
  border-color: #9cbeda;
  box-shadow: var(--pdp-shadow-sm);
  color: var(--pdp-navy);
  transform: translateY(-2px);
}

.pdp-download-name {
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.3;
}

.pdp-pdf-badge {
  background: #eaf2ff;
  border-radius: 8px;
  color: var(--pdp-blue);
  flex: none;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 7px 8px;
}

.pdp-topic--calendar .pdp-pdf-badge {
  background: #d9faf5;
  color: #0b8577;
}

.pdp-topic--planner .pdp-pdf-badge {
  background: #efeaff;
  color: #7041d9;
}

.pdp-guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 78px);
}

.pdp-guide-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 25px;
}

.pdp-guide-card h2 {
  font-size: 1.38rem;
  margin: 0 0 10px;
}

.pdp-guide-card p {
  color: var(--pdp-muted);
  font-size: 0.96rem;
  margin: 0;
}

/* Trust pages */
.pdp-trust-shell {
  margin: 0 auto;
  max-width: 820px;
  padding: 38px 24px clamp(70px, 9vw, 112px);
}

.pdp-reading-card {
  background: #fff;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius-lg);
  box-shadow: var(--pdp-shadow-sm);
  padding: clamp(28px, 5vw, 54px);
}

.pdp-reading-card > :first-child {
  margin-top: 0;
}

.pdp-reading-card > :last-child {
  margin-bottom: 0;
}

.pdp-reading-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-top: 2em;
}

.pdp-reading-card p,
.pdp-reading-card li {
  color: #38546b;
}

/* Footer */
.pdp-site-footer {
  background: #eaf3fb;
  border-top: 1px solid #cfdeea;
  margin: 0;
  padding: 58px 24px 24px;
}

.pdp-footer-grid {
  gap: 38px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.pdp-footer-brand p {
  color: var(--pdp-muted);
  font-size: 0.9rem;
  max-width: 390px;
}

.pdp-site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.pdp-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp-site-footer li + li {
  margin-top: 8px;
}

.pdp-site-footer a {
  color: #29465f;
  font-size: 0.92rem;
  text-decoration: none;
}

.pdp-site-footer a:hover {
  color: var(--pdp-blue);
  text-decoration: underline;
}

.pdp-footer-bottom {
  border-top: 1px solid #c9d9e6;
  color: #64798b;
  font-size: 0.78rem;
  margin-top: 42px;
  padding-top: 18px;
}

.pdp-footer-bottom p {
  margin: 0;
}

/* Accessibility */
:where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

:where(h1, h2, h3, #gpgen, #calgen, #plgen) {
  scroll-margin-top: 100px;
}

@media (max-width: 1000px) {
  .pdp-header-actions .pdp-header-cta,
  .pdp-header-cta.wp-block-buttons {
    display: none;
  }

  .pdp-hero-grid {
    gap: 34px;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .pdp-paper {
    height: 280px;
    width: 205px;
  }

  .pdp-paper--grid {
    right: 105px;
  }

  .pdp-paper--calendar {
    right: 4px;
  }

  .pdp-paper-grid {
    height: 200px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .pdp-site-header {
    top: 46px;
  }

  .pdp-site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .pdp-shell,
  .pdp-header-inner {
    padding-inline: 20px;
  }

  .pdp-header-inner {
    min-height: 68px;
  }

  .pdp-header-actions {
    gap: 0;
  }

  .pdp-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .pdp-navigation .wp-block-navigation__responsive-container-open,
  .pdp-navigation .wp-block-navigation__responsive-container-close {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }

  .pdp-navigation .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--pdp-paper);
    bottom: 0;
    color: var(--pdp-navy);
    height: 100dvh;
    inset: 0;
    min-height: 100dvh;
    padding: 28px 22px;
    position: fixed;
  }

  .pdp-navigation .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
    padding-top: 52px;
    width: 100%;
  }

  .pdp-navigation .wp-block-navigation__responsive-container-close {
    right: 22px;
    top: 22px;
  }

  .pdp-navigation .wp-block-navigation-item__content {
    font-size: 1.1rem;
    min-height: 44px;
  }

  .pdp-home-hero {
    padding-top: 58px;
  }

  .pdp-hero-grid {
    grid-template-columns: 1fr;
  }

  .pdp-paper-stage {
    min-height: 280px;
    margin-top: 4px;
  }

  .pdp-paper {
    height: 230px;
    width: 168px;
  }

  .pdp-paper--grid {
    left: 7%;
    right: auto;
    top: 10px;
  }

  .pdp-paper--calendar {
    right: 8%;
    top: 30px;
  }

  .pdp-paper-grid {
    height: 158px;
  }

  .pdp-calendar-grid i {
    height: 22px;
  }

  .pdp-paper-badge {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .pdp-grid-3,
  .pdp-download-grid,
  .pdp-guide-grid,
  .pdp-topic-shell > .wp-block-buttons {
    grid-template-columns: 1fr;
  }

  .pdp-section-head,
  .pdp-download-head,
  .pdp-topic-introbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdp-section-head,
  .pdp-download-head {
    gap: 10px;
  }

  .pdp-chips {
    justify-content: flex-start;
  }

  .pdp-page-hero {
    padding: 54px 20px 42px;
  }

  .pdp-page-hero .wp-block-post-title {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  .pdp-topic-shell,
  .pdp-trust-shell {
    padding-inline: 20px;
  }

  .pdp-generator-card {
    border-radius: 18px;
    margin-inline: -8px;
    padding: 10px;
  }

  .pdp-copy-card {
    padding: 21px;
  }

  .pdp-download-card,
  .pdp-button {
    min-height: 48px;
  }

  .pdp-footer-grid {
    grid-template-columns: 1fr;
  }

  .pdp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .pdp-brand {
    font-size: 1.02rem;
  }

  .pdp-brand::before {
    height: 19px;
    margin-right: 7px;
    vertical-align: -4px;
    width: 19px;
  }

  .pdp-hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 3.55rem);
  }

  .pdp-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pdp-button {
    width: 100%;
  }

  .pdp-paper-stage {
    min-height: 248px;
  }

  .pdp-paper {
    height: 205px;
    padding: 13px;
    width: 145px;
  }

  .pdp-paper-grid {
    height: 140px;
  }

  .pdp-calendar-grid i {
    height: 19px;
  }

  .pdp-topic-card {
    min-height: 230px;
  }

  .pdp-generator-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pdp-download-card {
    min-height: 70px;
  }

  .pdp-generator-card #gpgen .gp-actions button,
  .pdp-generator-card #calgen .cg-print,
  .pdp-generator-card #plgen .pl-print {
    min-height: 44px;
  }

  .pdp-generator-card #gpgen .gp-seg button,
  .pdp-generator-card #gpgen .gp-colors button,
  .pdp-generator-card #gpgen input[type="range"],
  .pdp-generator-card #calgen select,
  .pdp-generator-card #plgen select {
    min-height: 44px;
  }

  .pdp-generator-card #gpgen .gp-colors button {
    min-width: 44px;
  }

  .pdp-generator-card #gpgen input[type="range"] {
    height: 44px;
  }

  .pdp-site-footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .pdp-site-header,
  .pdp-site-footer,
  .pdp-page-hero,
  .pdp-home-hero,
  .pdp-download-section,
  .pdp-guide-grid {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
