/*
 * PrintPro Article single — scoped to .pp-article
 */

.pp-article {
  --bg:      oklch(98% 0.005 250);
  --surface: oklch(100% 0 0);
  --fg:      oklch(22% 0.02 240);
  --muted:   oklch(50% 0.018 240);
  --border:  oklch(90% 0.008 240);
  --accent:  oklch(56% 0.12 170);
  --accent-tint: color-mix(in oklch, var(--accent) 6%, var(--bg));
  --success: oklch(62% 0.14 155);
  --warn:    oklch(72% 0.12 85);
  --font-display: 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --fs-h1: clamp(30px, 4vw, 44px);
  --fs-h2: clamp(22px, 2.8vw, 28px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;
  --gap-xs: 8px; --gap-sm: 12px; --gap-md: 20px; --gap-lg: 32px; --gap-xl: 48px;
  --container: 1160px;
  --gutter: clamp(12px, 2.5vw, 20px);
  --radius: 12px; --radius-lg: 16px;
  --section-y: clamp(48px, 8vw, 80px);

  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

.pp-article *, .pp-article *::before, .pp-article *::after { box-sizing: border-box; }
.pp-article img, .pp-article svg { display: block; max-width: 100%; }
.pp-article a { color: inherit; text-decoration: none; }
.pp-article a:hover { text-decoration: underline; }
.pp-article button { font: inherit; cursor: pointer; border: none; background: none; }
.pp-article p, .pp-article h1, .pp-article h2, .pp-article h3 { margin: 0; }
.pp-article ul, .pp-article ol { margin: 0; padding: 0; list-style: none; }

.pp-article .container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.pp-article h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.pp-article h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.pp-article h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.pp-article .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.pp-article .meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.pp-article .section { padding-block: var(--section-y); }
.pp-article .section--surface { background: var(--surface); }
.pp-article .section--tint { background: var(--accent-tint); }
.pp-article .section--soft { background: color-mix(in oklch, var(--accent) 10%, var(--bg)); }

.pp-article .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.pp-article .btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.pp-article .btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); text-decoration: none; }
.pp-article .btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.pp-article .btn-secondary:hover { border-color: var(--fg); text-decoration: none; }
.pp-article .btn-block { width: 100%; }

.pp-article .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); margin-bottom: var(--gap-md);
}
.pp-article .breadcrumb a { color: var(--muted); }
.pp-article .breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.pp-article .breadcrumb-sep { opacity: 0.4; }

.pp-article .article-hero {
  padding-block: clamp(32px, 6vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pp-article .article-hero .lead { margin-top: 14px; }
.pp-article .article-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--gap-md); }
.pp-article .article-cat-badge {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-tint); border: 1px solid color-mix(in oklch, var(--accent) 20%, transparent);
  color: color-mix(in oklch, var(--accent) 70%, var(--fg));
}

.pp-article .article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: var(--gap-xl);
  align-items: start; padding-block: var(--gap-xl);
}
.pp-article .article-layout:has(.article-toc) {
  grid-template-columns: 220px 1fr 300px;
}
.pp-article .article-toc { position: sticky; top: 80px; }
.pp-article .article-toc h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.pp-article .article-toc ol { display: flex; flex-direction: column; gap: 8px; }
.pp-article .article-toc a {
  color: var(--muted); display: block; padding: 4px 0 4px 12px; margin-left: -12px;
  border-left: 2px solid transparent; font-size: 14px; line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pp-article .article-toc a:hover,
.pp-article .article-toc a.is-active { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }

.pp-article .article-body { min-width: 0; }
.pp-article .article-cover {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: var(--gap-xl); border: 1px solid var(--border);
}
.pp-article .article-cover img { width: 100%; height: 100%; object-fit: cover; }

.pp-article .article-content h2 { margin-top: var(--gap-xl); margin-bottom: var(--gap-md); scroll-margin-top: 96px; }
.pp-article .article-content h2:first-child { margin-top: 0; }
.pp-article .article-content h3 { margin-top: var(--gap-lg); margin-bottom: 12px; font-size: 18px; scroll-margin-top: 96px; }
.pp-article .article-content p { margin-bottom: var(--gap-md); color: var(--muted); max-width: 68ch; }
.pp-article .article-content ul,
.pp-article .article-content ol { margin-bottom: var(--gap-md); padding-left: 1.4em; color: var(--muted); max-width: 68ch; }
.pp-article .article-content ul { list-style: disc; }
.pp-article .article-content ol { list-style: decimal; }
.pp-article .article-content li { margin-bottom: 8px; }
.pp-article .article-content a { color: var(--accent); }
.pp-article .article-content strong { color: var(--fg); font-weight: 600; }
.pp-article .article-content .wp-block-image,
.pp-article .article-content figure { margin: var(--gap-lg) 0; max-width: 68ch; }
.pp-article .article-content .wp-block-image img,
.pp-article .article-content figure img { border-radius: var(--radius); border: 1px solid var(--border); }

.pp-article .callout {
  padding: var(--gap-md) var(--gap-lg); border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--accent-tint); margin: var(--gap-lg) 0; max-width: 68ch;
}
.pp-article .callout--tip { border-color: color-mix(in oklch, var(--accent) 25%, transparent); }
.pp-article .callout--warn {
  background: color-mix(in oklch, var(--warn) 8%, var(--surface));
  border-color: color-mix(in oklch, var(--warn) 25%, transparent);
}

.pp-article .sidebar-card {
  position: sticky; top: 80px; padding: var(--gap-lg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--fg) 4%, transparent), 0 12px 40px color-mix(in oklch, var(--fg) 6%, transparent);
}
.pp-article .sidebar-card h3 { font-size: 20px; margin-bottom: 10px; }
.pp-article .sidebar-card .price {
  font-family: var(--font-mono); font-size: 28px; font-weight: 600;
  font-variant-numeric: tabular-nums; margin: var(--gap-md) 0;
}
.pp-article .sidebar-card .price-note { font-size: 13px; color: var(--muted); margin-bottom: var(--gap-md); }
.pp-article .sidebar-trust {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: var(--gap-md); padding-top: var(--gap-md); border-top: 1px solid var(--border);
}
.pp-article .sidebar-trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pp-article .sidebar-trust svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

.pp-article .related-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.pp-article .related-article {
  display: flex; flex-direction: column; gap: 8px; padding: var(--gap-md);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease;
}
.pp-article .related-article:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.pp-article .related-article span {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pp-article .related-article strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; }

.pp-article .faq-list { border-top: 1px solid var(--border); max-width: 720px; margin-inline: auto; }
.pp-article .faq-item { border-bottom: 1px solid var(--border); }
.pp-article .faq-q {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 0; text-align: left; font-family: var(--font-display);
  font-size: 17px; font-weight: 600; color: var(--fg);
}
.pp-article .faq-q:hover { color: var(--accent); }
.pp-article .faq-toggle { font-family: var(--font-mono); font-size: 18px; color: var(--muted); transition: transform 0.2s ease; }
.pp-article .faq-item.is-open .faq-toggle { transform: rotate(45deg); }
.pp-article .faq-a { display: none; padding-bottom: 18px; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.pp-article .faq-item.is-open .faq-a { display: block; }

.pp-article .article-cta { text-align: center; max-width: 560px; margin-inline: auto; }
.pp-article .article-cta .lead { margin: 14px auto var(--gap-lg); text-align: center; }

@media (max-width: 1024px) {
  .pp-article .article-layout { grid-template-columns: 1fr 300px; }
  .pp-article .article-toc { display: none; }
}
@media (max-width: 920px) {
  .pp-article .article-layout { grid-template-columns: 1fr; }
  .pp-article .sidebar-card { position: static; }
  .pp-article .related-articles { grid-template-columns: 1fr; }
}
