/* PP Theme, design v2 "Clean counter": near-white paper, neutral ink, one soft marker colour for the
   blanks, and OpenGlass glass on the chrome over a quiet pastel field with a fine grid.
   Rules: no text in CSS `content` (only empty strings), no fixed widths on text containers, everything wraps. */

:root {
  --paper: #fafaf9;
  --paper-2: #f3f3f1;
  --card: #ffffff;
  --ink: #161616;
  --ink-2: #3b3b3a;
  --muted: #4a4a48;
  --rule: #e7e7e4;
  --rule-2: #d6d6d2;
  --line: #a9a9a4;          /* link underlines at rest */
  --accent: #161616;        /* buttons are ink, like the text */
  --accent-hover: #2e2e2d;
  --accent-ink: #ffffff;
  --mark: #fcefc4;          /* the one colour: blanks to fill in */
  --mark-edge: #ecd58b;
  --focus: #1f5bd8;
  --shadow-soft: 0 1px 2px rgb(20 20 20 / .04), 0 8px 24px -12px rgb(20 20 20 / .12);
  --shadow-lift: 0 1px 2px rgb(20 20 20 / .05), 0 18px 40px -18px rgb(20 20 20 / .18);
  --font-display: "Bricolage Grotesque", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Literata", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --font-ui: "Bricolage Grotesque", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --measure: 68ch;

  /* OpenGlass tokens (CSS-only use, light appearance) */
  --ogui-color-text: var(--ink);
  --ogui-color-muted: var(--ink-2);
  --ogui-color-border: rgb(22 22 22 / 0.1);
  --ogui-color-accent: var(--accent);
  --ogui-color-accent-ink: var(--accent-ink);
  --ogui-color-focus: var(--focus);
  --ogui-color-canvas: var(--paper);
  --ogui-color-control: rgb(255 255 255 / 0.7);
  --ogui-color-control-hover: rgb(255 255 255 / 0.9);
  --ogui-color-control-active: rgb(255 255 255 / 1);
  --ogui-radius-control: 0.7rem;
  --ogui-radius-surface: 1.25rem;
  --ogui-radius-capsule: 999px;
  --ogui-glass-tint-light: #ffffff;
  --ogui-glass-opacity: 1.05;
  --ogui-glass-light-angle: 320deg;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-body);
  font-optical-sizing: auto;
  /* Translated text (German compounds, URLs in prompts) must wrap instead of pushing the page sideways. */
  overflow-wrap: anywhere;
  hyphens: manual;
  -webkit-hyphens: manual;
}
/* English never hyphenates. Translated pages (Weglot sets the page language) may, so long German and
   French words break at a real syllable before overflow-wrap has to cut them anywhere. */
html:not(:lang(en)) body { hyphens: auto; -webkit-hyphens: auto; }
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphenate-limit-chars: 12 5 5;
  margin: 0;
  color: var(--ink);
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color .15s ease;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.pp-skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font: 600 1rem/1.2 var(--font-ui);
}
.pp-skip:focus { top: 12px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.pp-wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }

/* ---------- Backdrop field (no text) ---------- */
/* A quiet pastel wash with a fine grid that fades out, so the glass has something soft to refract. */
.pp-field {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(55% 70% at 8% 0%, rgb(255 222 200 / .75) 0%, transparent 62%),
    radial-gradient(45% 65% at 92% 6%, rgb(208 220 255 / .8) 0%, transparent 64%),
    radial-gradient(60% 70% at 62% 100%, rgb(214 238 226 / .7) 0%, transparent 66%),
    var(--paper);
  padding-bottom: 56px;
}
.pp-field > * { margin-block-start: 0; }
.pp-field::before { /* fine grid */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(22 22 22 / .055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(22 22 22 / .055) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 90% at 50% 0%, #000 30%, transparent 85%);
  pointer-events: none;
}
.pp-field::after { /* soft hand-off into the paper below */
  content: "";
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.pp-field--slim { padding-bottom: 8px; }

/* ---------- Glass chrome ---------- */
.pp-glass {
  background: var(--ogui-lg-surface);
  -webkit-backdrop-filter: var(--ogui-lg-blur-surface);
  backdrop-filter: var(--ogui-lg-blur-surface);
  box-shadow: var(--ogui-lg-rim), var(--ogui-lg-bloom), var(--shadow-soft);
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: var(--ogui-radius-surface);
}

/* ---------- Header ---------- */
.pp-header-wrap { width: min(100% - 32px, 1200px); margin-inline: auto; padding-top: 14px; position: relative; z-index: 5; }
.pp-site-header { margin: 0; }
.pp-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 6px 8px 6px 16px; border-radius: 999px;
}
.pp-bar > * { margin: 0 !important; }
.pp-brand { font: 720 1.15rem/1 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.pp-brand a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 2px; color: var(--ink); }
.pp-brand a::before { /* the mark: two overlapping cards, like the copy icon */
  content: "";
  flex: none; width: 18px; height: 18px; border-radius: 5px;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 4px -4px 0 -2px var(--card), 4px -4px 0 0 var(--ink);
  margin: 4px 4px 0 0;
}
.pp-nav { margin-left: auto !important; font: 560 1rem/1.2 var(--font-ui); }
.pp-nav .wp-block-navigation__container { gap: 2px; flex-wrap: wrap; }
.pp-nav .wp-block-navigation-item__content { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.pp-nav .wp-block-navigation-item__content:hover { background: rgb(22 22 22 / .05); color: var(--ink); }

/* ---------- Home hero ---------- */
.pp-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px; margin-top: 48px !important; align-items: stretch;
}
.pp-hero > * { margin: 0 !important; }
.pp-hero-panel { padding: clamp(22px, 4vw, 44px); }
.pp-hero-panel > * { margin-block: 0; }
.pp-eyebrow { font: 600 .95rem/1.3 var(--font-ui); letter-spacing: .01em; color: var(--muted); margin: 0 0 14px !important; }
.pp-hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 740; letter-spacing: -0.03em; max-width: 16ch; }
.pp-lede { margin: 18px 0 24px !important; font-size: 1.2rem; max-width: 44ch; color: var(--ink-2); }

/* Search block */
.pp-search { margin: 0 !important; }
.pp-search .wp-block-search__inside-wrapper { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; background: none; }
.pp-search .wp-block-search__input {
  flex: 1 1 220px; min-width: 0;
  font: 500 1.08rem/1.2 var(--font-ui);
  padding: 14px 18px; min-height: 50px;
  border-radius: 999px; border: 1px solid var(--rule-2);
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 1px 2px rgb(20 20 20 / .04);
}
.pp-search .wp-block-search__input::placeholder { color: #5a5a57; opacity: 1; }
.pp-search .wp-block-search__button {
  margin: 0; flex: 0 0 auto;
  font: 620 1.05rem/1.2 var(--font-ui);
  padding: 13px 24px; min-height: 50px;
  border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.pp-search .wp-block-search__button:hover { background: var(--accent-hover); }

/* Chips */
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pp-chip.ogui-button {
  min-height: 44px; padding: 8px 15px;
  font: 560 .95rem/1.2 var(--font-ui);
  text-decoration: none; color: var(--ink);
  background: rgb(255 255 255 / .7);
  border: 1px solid rgb(22 22 22 / .1);
  border-radius: 999px;
  white-space: normal; text-align: left;
}
.pp-chip.ogui-button:hover { background: #fff; border-color: rgb(22 22 22 / .2); }

/* Featured list: a lighter glass card beside the hero panel */
.pp-featured {
  border-radius: var(--ogui-radius-surface); padding: 22px 24px 18px;
  display: flex; flex-direction: column;
  background: rgb(255 255 255 / .78);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .8);
  box-shadow: var(--ogui-lg-rim), var(--shadow-lift);
}
.pp-featured h2 { font-size: 1.15rem; font-weight: 680; margin-bottom: 6px; }
.pp-featured ol { list-style: none; margin: 0; padding: 0; }
.pp-featured li { border-top: 1px solid var(--rule); }
.pp-featured li:first-child { border-top: 0; }
.pp-featured a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 2px 6px; padding: 13px 0; text-decoration: none; }
.pp-featured .pp-n { grid-row: span 2; font: 600 .95rem/1.5 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-featured strong { font: 620 1.08rem/1.35 var(--font-display); overflow-wrap: anywhere; }
.pp-featured .pp-featured-cat { grid-column: 2; font-size: 1rem; color: var(--muted); }
.pp-featured-all { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font: 600 1rem/1.3 var(--font-ui); }
.pp-featured-all a { display: inline; padding: 0; }
.pp-featured a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ---------- Sections on paper ---------- */
.pp-home-main { padding-bottom: 24px; }
.pp-section { padding: 72px 0 8px; margin: 0 !important; }
.pp-section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px;
  margin-bottom: 8px; border-bottom: 1px solid var(--rule-2); padding-bottom: 18px;
}
.pp-section-head > * { margin: 0 !important; }
.pp-section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 720; letter-spacing: -0.025em; }
.pp-section-head p { color: var(--muted); max-width: 46ch; }

.pp-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; padding: 0; list-style: none; }
.pp-index > li { border-bottom: 1px solid var(--rule); padding: 26px 0; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 14px; }
.pp-num { font: 600 1rem/1.5 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.pp-index h3 { font-size: 1.4rem; font-weight: 680; }
.pp-index h3 a { text-decoration: none; }
.pp-index h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pp-index-body p { margin: 6px 0 10px; color: var(--ink-2); }
.pp-index-body ul { margin: 0; padding: 0; list-style: none; }
.pp-index-body ul li { padding: 3px 0; }
.pp-count {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font: 560 .95rem/1.2 var(--font-ui); color: var(--ink-2); letter-spacing: 0; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule);
}
.pp-index-body .pp-index-more { margin: 10px 0 0; font: 600 1rem/1.3 var(--font-ui); color: inherit; }

.pp-how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
.pp-how-grid > * { margin: 0 !important; }
.pp-how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pp-how-more { color: var(--ink-2); }
.pp-how-steps > * { margin: 0 !important; }
.pp-step { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-soft); }
.pp-step h3 { font-size: 1.2rem; font-weight: 660; margin-bottom: 6px; display: flex; gap: 12px; align-items: baseline; }
.pp-step-n {
  flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  font: 620 .8rem/1 var(--font-ui); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule-2);
  transform: translateY(-2px);
}
.pp-step p { color: var(--ink-2); margin: 0; }
.pp-card { margin: 0; }
.pp-card-img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); box-shadow: var(--shadow-soft); }

/* ---------- Breadcrumb and title panel ---------- */
.pp-crumbs-nav { margin: 28px 0 0; }
.pp-crumbs {
  margin: 0; padding: 6px 14px; width: fit-content; max-width: 100%;
  border-radius: 999px; background: rgb(255 255 255 / .8);
  border: 1px solid rgb(22 22 22 / .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px;
  font: 560 .95rem/1.3 var(--font-ui); color: var(--ink-2);
}
.pp-crumbs li { display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.pp-crumbs li + li::before {
  content: "";
  flex: none; display: inline-block; width: 6px; height: 6px; margin: 0 9px 0 3px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg);
  opacity: .6;
}
.pp-crumbs a { text-decoration: none; padding: 4px 2px; color: var(--ink); }
.pp-crumbs a:hover { text-decoration: underline; }
.pp-title-panel { margin: 18px 0 0 !important; padding: 30px clamp(20px, 4vw, 44px) 32px; border-radius: 24px; }
.pp-title-panel--first { margin-top: 40px !important; margin-bottom: 40px !important; }
.pp-title-panel > * { margin-block: 0; }
.pp-title-panel h1, .pp-title-panel .wp-block-post-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 740; letter-spacing: -0.03em; max-width: 24ch; margin: 0; }
.pp-title-panel .wp-block-post-excerpt { margin: 0; }
.pp-title-panel .wp-block-post-excerpt__excerpt, .pp-title-panel .pp-lede { margin: 14px 0 0 !important; font-size: 1.2rem; max-width: 52ch; color: var(--ink-2); }
.pp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pp-meta li { font: 560 .95rem/1.2 var(--font-ui); padding: 8px 12px; border-radius: 999px; background: rgb(255 255 255 / .85); border: 1px solid rgb(22 22 22 / .08); }
.pp-meta a { text-decoration: none; }
.pp-meta a:hover { text-decoration: underline; }

/* Hub head */
.pp-hub-head { display: grid; grid-template-columns: minmax(0, 1fr); }
.pp-hub-intro p { margin: 14px 0 0; max-width: 56ch; }
.pp-hub-count { font: 560 .95rem/1.2 var(--font-ui); margin: 14px 0 0; color: var(--muted); }
.pp-hub-figure { margin: 0; }

/* ---------- Single prompt page ---------- */
.pp-doc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 36px; padding-bottom: 24px; margin: 0 auto !important; }
.pp-doc > * { margin: 0 !important; }
.pp-post-content > * { max-width: var(--measure); margin-block: 0 1.1em; }
.pp-post-content > .pp-prompt, .pp-post-content > .pp-example, .pp-post-content > .pp-fill { max-width: none; }
.pp-post-content h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 48px !important; margin-bottom: 14px !important; }
.pp-post-content h3 { font-size: 1.2rem; margin-top: 28px !important; }
.pp-intro { font-size: 1.15rem; }
.pp-post-content .pp-prompt, .pp-post-content .pp-example, .pp-post-content h2 { scroll-margin-top: 16px; }

/* Jump links in the title panel */
.pp-jump { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 10px 0 0 !important; padding: 0; list-style: none; font: 600 1.05rem/1.2 var(--font-ui); }
.pp-jump a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }

/* Next prompt in the same category, after the post */
.pp-next { margin: 56px 0 0 !important; padding: 22px 24px; max-width: var(--measure); border-radius: 18px; background: var(--paper-2); border: 1px solid var(--rule); }
.pp-next > * { margin: 0; }
.pp-next-label { font: 620 1rem/1.2 var(--font-ui); letter-spacing: 0; color: var(--ink-2); }
.pp-next-title { margin-top: 10px !important; font: 650 1.3rem/1.35 var(--font-display); }
.pp-next-title a { text-decoration: none; }
.pp-next-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pp-next-excerpt { margin-top: 6px !important; color: var(--ink-2); }
.pp-next-all { margin-top: 14px !important; font: 600 1rem/1.3 var(--font-ui); }

/* Home: one real prompt and its result */
.pp-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 20px; align-items: start; }
.pp-demo-card { background: var(--card); border: 1px solid var(--rule-2); border-radius: 18px; padding: 0 22px 8px; box-shadow: var(--shadow-soft); overflow: hidden; }
.pp-demo-card > * { margin: 0 0 .85em; }
.pp-demo-card ul, .pp-demo-card ol { padding-left: 1.3em; }
.pp-demo-prompt { font: 450 1.125rem/1.7 var(--font-body); }
.pp-demo-label { margin: 0 -22px 16px !important; padding: 12px 22px; background: var(--paper); border-bottom: 1px solid var(--rule); font: 620 1rem/1.2 var(--font-ui); color: var(--ink-2); }
.pp-demo-more { margin: 20px 0 0 !important; font: 600 1.05rem/1.4 var(--font-ui); }

/* Copy buttons: icon plus a short label, all words in HTML */
.pp-copy.ogui-button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1.2 var(--font-ui);
  padding: 10px 18px; min-height: 44px;
  border-radius: 999px; cursor: pointer;
  white-space: normal; text-align: center;
}
.pp-copy > span:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
.pp-copy [hidden] { display: none !important; }
.pp-icon { flex: none; width: 18px; height: 18px; }
.pp-copy.ogui-button--primary { background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: 0 1px 2px rgb(20 20 20 / .2); }
.pp-copy.ogui-button--primary:hover { background: var(--accent-hover); }
.pp-copy--quiet.ogui-button {
  background: var(--card); color: var(--ink); border: 1px solid var(--rule-2);
  padding: 8px 14px; min-height: 44px; font-size: .95rem; box-shadow: none;
}
.pp-copy--quiet.ogui-button:hover { background: var(--paper-2); border-color: #c4c4bf; }

.pp-prompt { border-radius: 18px; background: var(--card); border: 1px solid var(--rule-2); box-shadow: var(--shadow-lift); overflow: hidden; margin-top: 8px !important; }
.pp-prompt > * { margin: 0; }
.pp-prompt-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 12px 10px 22px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.pp-prompt-label { margin: 0; font: 620 1rem/1.2 var(--font-ui); color: var(--ink-2); }
.pp-prompt-body { padding: 22px 24px 10px; font: 450 1.125rem/1.7 var(--font-body); color: var(--ink); }
.pp-prompt-body > * { margin: 0 0 .9em; }
.pp-prompt-body ul, .pp-prompt-body ol { padding-left: 1.3em; }
.pp-prompt-body li { margin-bottom: .3em; }
mark.pp-ph {
  background: var(--mark); color: var(--ink);
  padding: 0 .18em; border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--mark-edge);
  font-family: var(--font-ui); font-weight: 600; font-size: 1em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.pp-gap {
  background: var(--paper-2); color: var(--ink);
  padding: 0 .2em; border-radius: 4px; border: 1px dashed #a9a9a4;
  font-family: var(--font-ui); font-weight: 600; font-size: 1em;
}

.pp-fill { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--rule); }
.pp-fill li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 20px; align-items: baseline; color: var(--ink-2); }
.pp-fill li strong { font-weight: inherit; }
.pp-fill li strong, .pp-fill mark.pp-ph { justify-self: start; }

.pp-example { margin-top: 4px !important; background: var(--card); border-radius: 18px; border: 1px solid var(--rule-2); padding: 0 24px 10px; box-shadow: var(--shadow-soft); }
.pp-example > * { margin: 0 0 .85em; }
.pp-example-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 -24px 18px !important; padding: 10px 12px 10px 24px;
  background: var(--paper); border-bottom: 1px solid var(--rule); border-radius: 18px 18px 0 0;
}
.pp-example-note { font-size: 1.125rem; color: var(--muted); margin: 0 !important; flex: 1 1 16rem; min-width: 0; }
.pp-example h3, .pp-example .pp-example-h { font-size: 1.1rem; margin-top: 10px !important; }
.pp-example ul, .pp-example ol { padding-left: 1.3em; }
.pp-tips { padding-left: 1.3em; }
.pp-tips li { margin-bottom: .6em; }
.pp-variation { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; }
.pp-variation > * { margin: 0 0 .6em; }
.pp-variation > *:last-child { margin-bottom: 0; }

.pp-related .pp-side {
  position: sticky; top: 24px; border-radius: 18px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-soft);
}
.pp-related h2 { font-size: 1.1rem; font-weight: 680; margin-bottom: 8px; }
.pp-related ul { list-style: none; margin: 0; padding: 0; }
.pp-related li { border-top: 1px solid var(--rule); padding: 12px 0; font-size: 1.05rem; line-height: 1.4; }
.pp-related li:first-child { border-top: 0; }
.pp-related li a { font-family: var(--font-display); font-weight: 580; }
.pp-related-cat { display: block; margin-top: 4px; font-size: 1rem; color: var(--muted); }

/* ---------- Lists: hubs, search, All prompts ---------- */
.pp-hub-main, .pp-page-main { padding-top: 36px; padding-bottom: 24px; }
.pp-hub-main > *, .pp-page-main > * { margin-block: 0; }
.pp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.pp-row { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pp-row > * { margin: 0; }
.pp-row-title { font-size: 1.3rem; font-weight: 660; }
.pp-row-title a { text-decoration: none; }
.pp-row-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pp-row-cat { font: 560 .95rem/1.2 var(--font-ui); color: var(--muted); }
.pp-row-excerpt { color: var(--ink-2); max-width: var(--measure); }
.pp-row-meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0 !important; padding: 0; }
.pp-row-meta li { font: 560 .95rem/1.2 var(--font-ui); color: var(--ink-2); padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); }

/* Below a hub's list: its questions beside the cover card */
.pp-hub-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; margin-top: 48px !important; }
.pp-hub-more > * { margin: 0; }
.pp-faq h2 { font-size: 1.5rem; margin: 0 0 4px; }
.pp-faq h3 { font-size: 1.15rem; margin: 22px 0 0; }
.pp-faq p { margin: 6px 0 0; color: var(--ink-2); max-width: var(--measure); }
.pp-other-cats { margin-top: 48px; }
.pp-other-cats h2 { font-size: 1.25rem; }
.pp-chips--paper .pp-chip.ogui-button { background: var(--card); border-color: var(--rule-2); }
.pp-empty { margin-bottom: 0; }
.pp-all-jump { margin: 0 0 28px !important; max-width: none !important; }
.pp-all-jump-h { margin: 0 !important; font: 620 1rem/1.2 var(--font-ui); color: var(--ink-2); }
.pp-all-jump .pp-chips { margin-top: 12px; }
.pp-all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.pp-all-group { border-top: 1px solid var(--rule-2); padding: 18px 0 22px; scroll-margin-top: 16px; }
.pp-all-group li:last-child { border-bottom: 0; }
.pp-all-group h2 { font-size: 1.4rem; margin-bottom: 10px; }
.pp-all-group h2 a { text-decoration: none; }
.pp-all-group ul { margin: 0; padding: 0; list-style: none; }
.pp-all-group li { padding: 7px 0; border-bottom: 1px solid var(--rule); }

/* Pages and guides */
.pp-prose > * { max-width: var(--measure); margin-block: 0 1.1em; }
.pp-prose > .pp-all, .pp-prose > .pp-card, .pp-prose > figure, .pp-prose > .wp-block-image { max-width: none; }
.pp-prose h2 { font-size: 1.5rem; margin-top: 44px !important; margin-bottom: 12px !important; }
.pp-prose h3 { font-size: 1.2rem; margin-top: 28px !important; }
.pp-prose ul, .pp-prose ol { padding-left: 1.3em; }
.pp-prose li { margin-bottom: .4em; }
.pp-prose > .pp-prompt { max-width: var(--measure); }
.pp-title-panel .pp-search { margin-top: 20px !important; }

/* ---------- Footer ---------- */
.pp-site-footer { margin: 72px 0 0 !important; background: #111111; color: #ececea; padding: 48px 0 36px; font-size: 1.05rem; }
.pp-site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .4); }
.pp-site-footer a:hover { text-decoration-color: #fff; }
.pp-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.pp-foot p { margin: 0 0 .6em; }
.pp-foot-brand { font: 700 1.25rem/1.2 var(--font-display); color: #fff; }
.pp-foot-h { font: 620 1rem/1.2 var(--font-ui); color: #fff; }
.pp-foot ul { list-style: none; margin: 0; padding: 0; }
.pp-foot li { padding: 4px 0; }
.pp-credit { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .16); padding-top: 18px; margin: 4px 0 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pp-hero, .pp-doc, .pp-hub-head, .pp-how-grid, .pp-how-steps, .pp-demo-grid, .pp-hub-more { grid-template-columns: minmax(0, 1fr); }
  .pp-index, .pp-all { grid-template-columns: minmax(0, 1fr); }
  .pp-nav { margin-left: 0 !important; width: 100%; }
  .pp-bar { border-radius: 24px; }
  .pp-related .pp-side { position: static; }
  .pp-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .pp-fill li { grid-template-columns: minmax(0, 1fr); }
  .pp-prompt-body { padding: 18px 18px 6px; }
  .pp-prompt-top { padding-left: 18px; }
  .pp-example { padding: 0 18px 8px; }
  .pp-example-top { margin: 0 -18px 16px !important; padding-left: 18px; }
  .pp-foot { grid-template-columns: minmax(0, 1fr); }
  .pp-search .wp-block-search__button { flex: 1 1 100%; }
  .pp-crumbs li:nth-child(3) { display: none; } /* the post title; the H1 right below repeats it */
  .pp-field::before { background-size: 28px 28px; }
  .pp-bar { padding: 6px 8px 6px 14px; gap: 0 8px; }
  .pp-nav .wp-block-navigation__container { gap: 0; margin-left: -9px; }
  .pp-nav .wp-block-navigation-item__content { padding: 10px 9px; font-size: .95rem; }
  .pp-title-panel { padding: 22px 20px 22px; }
  .pp-title-panel h1, .pp-title-panel .wp-block-post-title { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  .pp-title-panel .wp-block-post-excerpt__excerpt, .pp-title-panel .pp-lede { font-size: 1.125rem; }
  .pp-num { display: none; }
  .pp-index > li { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .pp-section { padding-top: 48px; }
  .pp-hero { margin-top: 20px !important; gap: 16px; }
  .pp-demo-card { padding: 0 18px 6px; }
  .pp-demo-label { margin: 0 -18px 14px !important; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
