.post-content > .post-hero,
.post-content > .post-title { display: none; }

.pmp {
  --pmp-ink: #2f352d;
  --pmp-muted: #667064;
  --pmp-panel: #fffdf6;
  --pmp-line: #b8aa91;
  --pmp-green: #3f7452;
  --pmp-green-dark: #28563a;
  --pmp-gold: #b87919;
  --pmp-gold-soft: #f2d79a;
  --pmp-blue: #4e7c86;
  --pmp-danger: #963f35;
  color: var(--pmp-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-width: 0;
}

.pmp *, .pmp *::before, .pmp *::after { box-sizing: border-box; }
.pmp [hidden] { display: none !important; }
.pmp button, .pmp input, .pmp select { font: inherit; }
.pmp h1, .pmp h2, .pmp h3 { color: #3c4d31; line-height: 1.2; }
.pmp h1 { margin: .25rem 0 0; font-size: clamp(1.85rem, 4vw, 2.8rem); }

.pmp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 3px solid #79623f;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 92% 15%, rgba(255,255,255,.75) 0 4.5rem, transparent 4.6rem),
    linear-gradient(140deg, #f8f0d7 0%, #e9f1d8 54%, #d9ecec 100%);
  box-shadow: 0 7px 0 #5b472d;
}

.pmp-hero::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -5.5rem;
  width: 16rem;
  height: 16rem;
  border: 1.8rem solid rgba(75, 126, 103, .12);
  border-radius: 50%;
}

.pmp-hero-copy, .pmp-hero-tools, .pmp-presets { position: relative; z-index: 1; }
.pmp-hero-copy p { max-width: 65rem; margin: .7rem 0 0; color: #485846; font-size: 1.02rem; }
.pmp-eyebrow { color: #2c6349; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pmp-hero-tools { display: flex; flex-direction: column; gap: .55rem; align-items: flex-end; }
.pmp-lang { display: flex; gap: .4rem; align-items: center; color: #405640; font-size: .8rem; font-weight: 750; }
.pmp-lang select { width: auto; min-height: 2.25rem; }
.pmp-version { display: inline-flex; padding: .35rem .65rem; border: 1px solid #728b67; border-radius: 999px; background: rgba(255,255,255,.76); color: #355b40; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.pmp-presets { display: flex; grid-column: 1 / -1; gap: .5rem; flex-wrap: wrap; }
.pmp-chip { min-height: 2.2rem; padding: .38rem .68rem; border: 1px solid #8f8068; border-radius: 999px; background: rgba(255,255,255,.72); color: #40523e; font-size: .78rem; font-weight: 800; cursor: pointer; }
.pmp-chip:hover { border-color: var(--pmp-green); background: #f7fff2; transform: translateY(-1px); }

.pmp-layout { display: grid; grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; align-items: start; }
.pmp-panel { padding: 1rem; border: 1px solid var(--pmp-line); border-radius: .9rem; background: var(--pmp-panel); box-shadow: 0 5px 16px rgba(72, 57, 31, .08); }
.pmp-panel h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.pmp-controls { position: sticky; top: 1rem; }
.pmp-results { min-width: 0; }
.pmp-results > * + * { margin-top: 1rem; }

.pmp-field { display: flex; flex-direction: column; gap: .28rem; min-width: 0; color: #444c40; font-size: .86rem; font-weight: 750; }
.pmp-field-wide { grid-column: 1 / -1; }
.pmp-field small { color: var(--pmp-muted); font-size: .74rem; font-weight: 550; }
.pmp input, .pmp select { width: 100%; min-height: 2.45rem; padding: .48rem .55rem; border: 1px solid #998e7c; border-radius: .5rem; background: #fff; color: var(--pmp-ink); }
.pmp input:focus, .pmp select:focus, .pmp button:focus-visible, .pmp summary:focus-visible { outline: 3px solid rgba(63,116,82,.25); outline-offset: 1px; border-color: var(--pmp-green); }
.pmp-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.pmp-input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.pmp-input-suffix input { border-radius: .5rem 0 0 .5rem; }
.pmp-input-suffix b { display: grid; min-width: 2.25rem; min-height: 2.45rem; place-items: center; border: 1px solid #998e7c; border-left: 0; border-radius: 0 .5rem .5rem 0; background: #f1ede4; color: #6d604f; }

.pmp-machine-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .75rem; align-items: center; margin-top: .75rem; padding: .7rem; border: 1px solid #b9c9a9; border-radius: .7rem; background: linear-gradient(135deg, #fbfff5, #edf5df); }
.pmp-machine-icon { width: 32px; height: 64px; justify-self: center; image-rendering: pixelated; background-repeat: no-repeat; }
.pmp-machine-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.pmp-machine-copy strong { color: #2b573b; font-size: 1rem; }
.pmp-machine-copy small { color: var(--pmp-muted); font-size: .76rem; line-height: 1.35; }

.pmp-check { display: flex; gap: .5rem; align-items: flex-start; padding: .55rem .6rem; border: 1px solid #d2c7b5; border-radius: .55rem; background: #faf7ee; color: #485047; font-size: .82rem; font-weight: 650; }
.pmp-check input { width: auto; min-height: 0; margin-top: .2rem; }
.pmp-check > span { display: flex; flex-direction: column; gap: .1rem; }
.pmp-check small { color: var(--pmp-muted); font-size: .74rem; font-weight: 550; }
.pmp-hopper { margin-top: .8rem; }
.pmp-advanced { margin-top: .9rem; padding-top: .65rem; border-top: 1px solid #d8cebc; }
.pmp-advanced summary { cursor: pointer; color: var(--pmp-green-dark); font-size: .86rem; font-weight: 800; }
.pmp-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .85rem; }
.pmp-button { min-height: 2.4rem; padding: .5rem .75rem; border: 1px solid #2d6143; border-radius: .55rem; background: var(--pmp-green); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #285238; }
.pmp-button:hover { background: var(--pmp-green-dark); transform: translateY(-1px); }
.pmp-button-secondary { border-color: #897d6b; background: #fff; color: #4b493f; box-shadow: 0 3px 0 #b9ad9a; }
.pmp-share-status { min-height: 1.2rem; margin: .45rem 0 0; color: var(--pmp-green-dark); font-size: .75rem; }

.pmp-summary { display: grid; grid-template-columns: repeat(4, minmax(8rem, 1fr)); gap: .7rem; }
.pmp-stat { min-width: 0; min-height: 6.2rem; padding: .75rem; overflow-wrap: anywhere; border: 1px solid #b4c5a7; border-radius: .75rem; background: linear-gradient(180deg, #fbfff7, #edf5e2); }
.pmp-stat > span { display: block; color: var(--pmp-muted); font-size: .76rem; font-weight: 750; }
.pmp-stat strong { display: block; margin-top: .3rem; color: #2b573b; font-size: 1.17rem; overflow-wrap: anywhere; }
.pmp-stat small { display: block; margin-top: .22rem; color: #667064; font-size: .72rem; line-height: 1.3; }
.pmp-value-negative { color: var(--pmp-danger) !important; }
.pmp-callout { margin: .85rem 0 0; padding: .75rem .85rem; overflow-wrap: anywhere; border-left: 5px solid var(--pmp-blue); border-radius: .6rem; background: #e6f1f1; color: #355961; font-size: .86rem; }
.pmp-callout.is-warning { border-left-color: var(--pmp-gold); background: #fff1d3; color: #6b4b18; }
.pmp-callout.is-danger { border-left-color: var(--pmp-danger); background: #fbe7e3; color: #78362e; }

.pmp-section-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pmp-section-head h2 { margin: 0; }
.pmp-section-head p { max-width: 55rem; margin: .3rem 0 0; color: var(--pmp-muted); font-size: .83rem; }
.pmp-legend { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; color: #5e655b; font-size: .72rem; }
.pmp-legend span { display: inline-flex; gap: .32rem; align-items: center; }
.pmp-key { display: inline-block; width: .95rem; height: .65rem; border: 1px solid rgba(58,64,54,.3); border-radius: .2rem; }
.pmp-key-processing { background: #5e9a70; }
.pmp-key-waiting { background: #e5ad4d; }
.pmp-key-offline { background: #d8d2c7; }

.pmp-timeline { min-height: 13rem; margin-top: .85rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; border: 1px solid #c8bca8; border-radius: .75rem; background: #fff; }
.pmp-timeline svg { display: block; width: 100%; min-width: 46rem; height: auto; min-height: 13rem; }
.pmp-timeline text { fill: #4e554b; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 11px; }
.pmp-timeline .pmp-svg-axis { stroke: #a89d8a; stroke-width: 1; }
.pmp-timeline .pmp-svg-grid { stroke: #ddd6ca; stroke-width: 1; }
.pmp-timeline .pmp-svg-day { stroke: #9e927f; stroke-width: 1.25; }
.pmp-timeline .pmp-svg-processing { fill: #5e9a70; }
.pmp-timeline .pmp-svg-waiting { fill: #e5ad4d; }
.pmp-timeline .pmp-svg-offline { fill: #d8d2c7; opacity: .48; }
.pmp-timeline .pmp-svg-lane { fill: #fbf9f3; }
.pmp-timeline .pmp-svg-deadline { stroke: #9b4e42; stroke-width: 2; stroke-dasharray: 5 4; }
.pmp-timeline .pmp-svg-label { font-weight: 750; }
.pmp-timeline .pmp-svg-more { fill: #687268; font-style: italic; }

.pmp-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pmp-facts { display: grid; gap: .58rem; margin: 0; }
.pmp-facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: baseline; padding-bottom: .5rem; border-bottom: 1px solid #e1d9cb; }
.pmp-facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.pmp-facts dt { color: var(--pmp-muted); font-size: .78rem; font-weight: 700; }
.pmp-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #3e513d; font-size: .86rem; font-weight: 850; text-align: right; font-variant-numeric: tabular-nums; }

.pmp-table-wrap { margin-top: .75rem; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #c9bea9; border-radius: .7rem; background: #fff; }
.pmp-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.pmp-table th, .pmp-table td { padding: .62rem .58rem; border-bottom: 1px solid #e3dccf; text-align: left; }
.pmp-table th { background: #eaf2df; color: #40583f; font-size: .76rem; }
.pmp-table td { color: #4b5149; font-size: .8rem; }
.pmp-table td:not(:first-child), .pmp-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.pmp-table tr:last-child td { border-bottom: 0; }
.pmp-table-note { margin: .55rem 0 0; color: var(--pmp-muted); font-size: .74rem; }

.pmp-source summary { cursor: pointer; color: #3a543c; font-size: 1.05rem; font-weight: 850; }
.pmp-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.pmp-source-grid div { min-width: 0; padding: .75rem; overflow-wrap: anywhere; border-left: 4px solid #8caa79; border-radius: .45rem; background: #f5f8ed; }
.pmp-source-grid strong { color: #31543a; font-size: .84rem; }
.pmp-source-grid p { margin: .3rem 0 0; color: #5b6559; font-size: .78rem; }

.pmp-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.pmp-related-grid a { display: flex; min-width: 0; flex-direction: column; gap: .25rem; padding: .8rem; overflow-wrap: anywhere; border: 1px solid #b9aa8d; border-radius: .7rem; background: #fbf8ef; color: #294e3a; text-decoration: none; }
.pmp-related-grid a:hover { border-color: var(--pmp-green); background: #eef6df; transform: translateY(-1px); }
.pmp-related-grid span { color: var(--pmp-muted); font-size: .8rem; }
.pmp-empty { padding: 1rem; border: 1px dashed #b7aa94; border-radius: .7rem; background: #fbf8f0; color: var(--pmp-muted); text-align: center; }

@media (max-width: 1050px) {
  .pmp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pmp-layout { grid-template-columns: 1fr; }
  .pmp-controls { position: static; }
}

@media (max-width: 650px) {
  .pmp-hero { grid-template-columns: 1fr; }
  .pmp-hero-tools { align-items: flex-start; }
  .pmp-presets { grid-column: auto; }
  .pmp-control-grid, .pmp-grid-two, .pmp-source-grid, .pmp-related-grid { grid-template-columns: 1fr; }
  .pmp-field-wide { grid-column: auto; }
  .pmp-summary { grid-template-columns: 1fr 1fr; }
  .pmp-section-head { flex-direction: column; }
}

@media (max-width: 430px) {
  .pmp-summary { grid-template-columns: 1fr; }
  .pmp-stat { min-height: 0; }
  .pmp-lang { align-items: flex-start; flex-direction: column; }
  .pmp-presets { flex-direction: column; align-items: stretch; }
  .pmp-actions > * { flex: 1 1 100%; }
  .pmp-facts div { grid-template-columns: 1fr; gap: .2rem; }
  .pmp-facts dd { text-align: left; }
}
