/* YardMaths PDF tools (/pdf/ only). Light and dark follow the device setting. Same brand family as the site:
   black lacquer and champagne, Bricolage Grotesque, the Y3f logo. Ad slots: same rules as style.css (no height until filled). */
@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage-grotesque-latin-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #f6f3ec; --bg-2: #efe9dc; --card: #fffdf8; --card-2: #f9f5ec;
  --ink: #16130e; --ink-2: #5b554a; --ink-3: #6b6457;
  --line: rgba(22, 19, 14, .11); --line-2: rgba(22, 19, 14, .2);
  --gold: #7a5c2a; --gold-2: #b08a4a; --champ: #d6b77a; --champ-soft: rgba(176, 138, 74, .12);
  --main-bg: #16130e; --main-ink: #f3e7cc; --main-hi: #2a241a;
  --focus: #1d5fc9; --err: #a12a1b; --err-bg: #fbeae6; --ok: #2d6a45; --ok-bg: #e7f3ea; --warn-bg: #fbf3e1;
  --shadow: 0 1px 2px rgba(22, 19, 14, .05), 0 12px 32px -18px rgba(22, 19, 14, .28);
  --r: 18px; --r-s: 12px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f0d; --bg-2: #0e1512; --card: #121a17; --card-2: #17201c;
    --ink: #efe9dd; --ink-2: #aab0a7; --ink-3: #868d84;
    --line: rgba(239, 233, 221, .09); --line-2: rgba(239, 233, 221, .2);
    --gold: #e2c98f; --gold-2: #d6b77a; --champ: #d6b77a; --champ-soft: rgba(214, 183, 122, .1);
    --main-bg: #d9bd83; --main-ink: #15110a; --main-hi: #ecd5a3;
    --focus: #f3e2b8; --err: #ff9f90; --err-bg: #2a1512; --ok: #8fd0a4; --ok-bg: #11241a; --warn-bg: #251f12;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .9);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.75rem; }
body.px { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.px { background-image: radial-gradient(60rem 26rem at 85% -8rem, var(--champ-soft), transparent 70%); background-repeat: no-repeat; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.px-vh, .pt-live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.px-skip { position: absolute; left: .75rem; top: -3rem; z-index: 50; background: var(--main-bg); color: var(--main-ink); padding: .6rem 1rem; border-radius: 10px; }
.px-skip:focus { top: .75rem; }
.px-wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* Header and footer */
.px-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.px-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.px-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 640; font-size: 1.1rem; letter-spacing: -.01em; }
.px-brand .logo { width: 2rem; height: 2rem; flex: none; }
.px-brand b { font-weight: 700; color: var(--main-ink); background: var(--main-bg); border-radius: 6px; padding: .05rem .38rem; font-size: .78em; letter-spacing: .04em; margin-left: .1rem; }
.px-nav { display: flex; gap: .25rem; }
.px-nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; font-size: .95rem; min-height: 2.5rem; display: inline-flex; align-items: center; }
.px-nav a:hover { color: var(--ink); background: var(--card); }
.px-nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.px-foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--bg-2); padding: 2.5rem 0 2rem; font-size: .95rem; color: var(--ink-2); }
.px-foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.px-foot-top p { margin: 0; max-width: 34rem; }
.px-foot-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.px-foot-h { font-weight: 640; color: var(--ink); margin: 0 0 .35rem; }
.px-foot ul { list-style: none; margin: 0; padding: 0; }
.px-foot li a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: .2rem 0; }
.px-foot li a:hover { color: var(--ink); text-decoration: underline; }
.px-foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem !important; }
.px-copy { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-3); }

/* Breadcrumb */
.crumbs { margin: 1.25rem 0 0; font-size: .9rem; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 .2rem 0 .4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Tool page head */
.px-hero { display: flex; align-items: flex-start; gap: 1rem; margin: 1.1rem 0 .9rem; }
.px-hero-i { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 14px; display: grid; place-items: center; background: var(--main-bg); color: var(--main-ink); box-shadow: var(--shadow); }
.px-hero-i svg { width: 1.8rem; height: 1.8rem; }
.px-lead { color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); margin: .55rem 0 0; max-width: 44rem; }
.px-trust { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.px-trust li { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .7rem .28rem .5rem; }
.px-trust svg { width: 1rem; height: 1rem; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- The tool box ---------------- */
.pt { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(.75rem, 2.5vw, 1.25rem); }
.pt-drop { position: relative; min-height: 16.5rem; border: 2px dashed color-mix(in srgb, var(--gold-2) 55%, transparent); border-radius: calc(var(--r) - 6px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1.75rem 1rem; cursor: pointer;
  background: radial-gradient(28rem 12rem at 50% 0, var(--champ-soft), transparent 75%); transition: border-color .15s, background-color .15s; }
.pt-drop:hover, .pt-over .pt-drop, .pt-over .pt-list { border-color: var(--gold-2); }
.pt-over .pt-drop { background-color: var(--champ-soft); }
.pt-over .pt-list { outline: 2px dashed var(--gold-2); outline-offset: 4px; border-radius: var(--r-s); }
.pt-drop-i { width: 3.5rem; height: 3.5rem; border-radius: 16px; display: grid; place-items: center; color: var(--gold); background: var(--card-2); border: 1px solid var(--line); }
.pt-drop-svg { width: 1.9rem; height: 1.9rem; }
.pt-drop-t { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 620; letter-spacing: -.015em; margin: .25rem 0 .2rem; }
.pt-drop-n { color: var(--ink-3); font-size: .9rem; margin: .1rem 0 0; }
.pt-drop-msg { margin: .35rem 0 0; padding: .45rem .8rem; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: .92rem; max-width: 34rem; }
.pt-nojs { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--r-s); background: var(--warn-bg); }

/* Buttons */
.pt-btn { -webkit-appearance: none; appearance: none; font: inherit; font-weight: 620; font-size: 1rem; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .05s; }
.pt-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.pt-btn:active:not(:disabled) { transform: translateY(1px); }
.pt-btn-main { background: var(--main-bg); color: var(--main-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -10px rgba(22, 19, 14, .55); }
.pt-btn-main:hover:not(:disabled) { background: var(--main-hi); }
.pt-btn-soft { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.pt-btn-soft:hover:not(:disabled) { border-color: var(--gold-2); }
.pt-btn-ghost { background: transparent; color: var(--ink-2); }
.pt-btn-ghost:hover:not(:disabled) { color: var(--ink); background: var(--card-2); }
.pt-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pt-pick { position: relative; font-size: 1.05rem; padding: .85rem 1.6rem; min-height: 3.2rem; }
.pt-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.pt-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

/* File list */
.pt-msgs:empty { display: none; }
.pt-msgs { display: grid; gap: .5rem; margin: 0 0 .9rem; }
.pt-note { display: flex; align-items: flex-start; gap: .55rem; margin: 0; padding: .6rem .5rem .6rem .8rem; border-radius: var(--r-s); font-size: .95rem; background: var(--warn-bg); }
.pt-note > svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; }
.pt-note span { flex: 1; }
.pt-note-err { background: var(--err-bg); color: var(--err); }
.pt-note-ok { background: var(--ok-bg); color: var(--ok); }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: .75rem; }
.pt-item { position: relative; display: flex; flex-direction: column; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: .55rem; min-width: 0; transition: box-shadow .15s, transform .15s; }
.pt-item:hover { border-color: var(--line-2); }
.pt-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--card); border: 1px solid var(--line); overflow: hidden; color: var(--ink-3); }
.pt-thumb > svg { width: 2.4rem; height: 2.4rem; }
.pt-canvas { display: block; width: 100% !important; height: 100% !important; object-fit: contain; background: #fff; }
.pt-meta { display: flex; flex-direction: column; min-width: 0; margin: .5rem .15rem .35rem; }
.pt-name { font-weight: 600; font-size: .92rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-info { font-size: .82rem; color: var(--ink-3); line-height: 1.35; }
.pt-error { border-color: color-mix(in srgb, var(--err) 55%, transparent); background: var(--err-bg); }
.pt-error .pt-info { color: var(--err); white-space: normal; }
.pt-error .pt-thumb { color: var(--err); }
.pt-reading .pt-thumb > svg { animation: pt-pulse 1.2s ease-in-out infinite; }
@keyframes pt-pulse { 50% { opacity: .35; } }
.pt-acts { display: flex; gap: .3rem; margin-top: auto; }
.pt-ib { -webkit-appearance: none; appearance: none; font: inherit; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; }
.pt-ib svg { width: 1.1rem; height: 1.1rem; }
.pt-ib:hover:not(:disabled) { border-color: var(--gold-2); color: var(--gold); }
.pt-ib:disabled { opacity: .35; cursor: default; }
.pt-acts .pt-ib-x { margin-left: auto; }
.pt-ib-x:hover:not(:disabled) { color: var(--err); border-color: var(--err); }
.pt-note .pt-ib { width: 2rem; height: 2rem; border: 0; background: transparent; color: inherit; }
.pt-grip { position: absolute; z-index: 2; left: .85rem; top: .85rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink-2); cursor: grab; touch-action: none; padding: 0; font: inherit; }
.pt-grip svg { width: 1.1rem; height: 1.1rem; }
.pt-grip:hover { color: var(--ink); border-color: var(--gold-2); }
.pt-pos { position: absolute; z-index: 2; right: .85rem; top: .85rem; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--main-bg); color: var(--main-ink); font-variant-numeric: tabular-nums; }
.pt-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.pt-drag { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: scale(1.02); border-color: var(--gold-2); z-index: 3; opacity: .92; }
.pt-single { grid-template-columns: minmax(0, 18rem); }
.pt-list.pt-compact { grid-template-columns: minmax(0, 1fr); }
.pt-compact .pt-item { flex-direction: row; align-items: center; gap: .75rem; padding: .45rem .55rem; }
.pt-compact .pt-thumb { width: 2.6rem; flex: none; border-radius: 5px; }
.pt-compact .pt-thumb > svg { width: 1.35rem; height: 1.35rem; }
.pt-compact .pt-meta { flex: 1 1 auto; margin: 0; }
.pt-compact .pt-acts { margin: 0; }

/* Action bar, progress, result */
.pt-extra { margin: 1rem 0 0; }
.pt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pt-bar-l, .pt-bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pt-bar-r { margin-left: auto; justify-content: flex-end; }
.pt-hint { margin: 0; font-size: .9rem; color: var(--ink-3); }
.pt-go { min-width: 10.5rem; font-size: 1.05rem; padding: .85rem 1.5rem; min-height: 3.2rem; }
.pt-prog { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); }
.pt-prog-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.pt-prog-l { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-prog-track { height: .55rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.pt-prog-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--champ)); transition: width .2s; }
.pt-stop { min-height: 2.4rem; padding: .4rem .9rem; font-size: .92rem; }
.pt-result { margin-top: 1rem; padding: 1.1rem; border-radius: var(--r-s); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); outline: none; scroll-margin-top: 5rem; }
.pt-res-head { display: flex; gap: .75rem; align-items: flex-start; }
.pt-res-i { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--bg); }
.pt-res-i svg { width: 1.3rem; height: 1.3rem; }
.pt-res-t { font-weight: 650; font-size: 1.15rem; margin: 0; }
.pt-res-s { margin: .1rem 0 0; color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.pt-res-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .4rem; }
.pt-res-n { margin: 0; font-size: .85rem; color: var(--ink-3); }
.pt-busy .pt-list { opacity: .6; }

.px-privacy { display: flex; align-items: flex-start; gap: .5rem; margin: .8rem .25rem 0; font-size: .9rem; color: var(--ink-2); max-width: 52rem; }
.px-privacy svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-privacy strong { color: var(--ink); font-weight: 640; }

/* Common option controls for tools (26/11/2026, src/pdf/_FORMAT.md): use these classes inside the box given to extra(). */
.pt-sec { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card-2); padding: .9rem; margin: 0 0 .9rem; }
.pt-sec > h3, .pt-sec > legend { font-size: 1rem; margin: 0 0 .65rem; padding: 0; }
fieldset.pt-sec { min-width: 0; }
.pt-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); align-items: start; }
.pt-f { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.pt-f > label, .pt-lab { font-size: .88rem; font-weight: 560; color: var(--ink-2); }
.pt-help { font-size: .82rem; color: var(--ink-3); line-height: 1.4; margin: 0; }
.pt-in { width: 100%; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
textarea.pt-in { min-height: 4.6rem; resize: vertical; line-height: 1.4; }
select.pt-in[multiple] { min-height: 6rem; }
.pt-in:disabled { opacity: .6; }
.pt-in:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.pt-in[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
input[type=color].pt-in { padding: .25rem; min-width: 3.4rem; cursor: pointer; }
input[type=range].pt-in { padding: 0; border: 0; background: none; accent-color: var(--gold-2); }
.pt-chk { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
.pt-chk input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold-2); flex: none; margin: 0; }
.pt-chk label { font-size: .95rem; }
.pt-seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.pt-seg button, .pt-toggle { min-height: 2.75rem; padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; line-height: 1.1; }
.pt-seg button[aria-pressed="true"], .pt-seg button[aria-checked="true"], .pt-toggle[aria-pressed="true"] { background: var(--main-bg); color: var(--main-ink); border-color: var(--main-bg); }
.pt-seg button:disabled, .pt-toggle:disabled { opacity: .45; cursor: default; }
.pt-err-t { color: var(--err); font-size: .88rem; margin: 0; }
.pt-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 30em) { .pt-sec { padding: .7rem; } .pt-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .pt-grid .pt-wide { grid-column: 1 / -1; } }

/* ---------------- Content under the tool ---------------- */
.px-content { max-width: 46rem; }
.px-content section { margin-top: 2.75rem; }
.px-content h2 { margin-bottom: .85rem; }
.px-content p, .px-content li { text-wrap: pretty; }
.px-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.px-steps li { counter-increment: s; position: relative; padding: .7rem .9rem .7rem 3.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }
.px-steps li::before { content: counter(s); position: absolute; left: .75rem; top: .7rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: var(--main-bg); color: var(--main-ink); }
.px-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.px-list li { margin: .4rem 0; }
.px-list li::marker { color: var(--gold-2); }
.px-table { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.px-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.px-table th, .px-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.px-table thead th { font-weight: 650; background: var(--card-2); }
.px-table tr:last-child > * { border-bottom: 0; }
.px-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); margin: .55rem 0; }
.px-faq summary { position: relative; cursor: pointer; font-weight: 620; padding: .95rem 3rem .95rem 1.1rem; list-style: none; }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::after { content: ""; position: absolute; right: 1.15rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.px-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.px-faq-a { padding: 0 1.1rem .4rem; color: var(--ink-2); }
.px-rel { margin-top: 3rem; }
.px-rel > h2 { margin-bottom: 1rem; }
.px-all { margin: 1rem 0 0; font-weight: 600; }
.px-upd { margin-top: 2.5rem; font-size: .88rem; color: var(--ink-3); }

/* Cards */
.px-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .75rem; }
.px-card a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: .8rem; height: 100%; padding: 1rem; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.px-card a:hover { border-color: var(--gold-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.px-card-i { grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 11px; display: grid; place-items: center; color: var(--k, var(--gold)); background: color-mix(in srgb, var(--k, var(--gold)) 12%, transparent); }
.px-k-organize { --k: #7a5c2a; } .px-k-optimize { --k: #2d6a45; } .px-k-convert-to { --k: #2a5a8a; } .px-k-convert-from { --k: #1f6464; } .px-k-edit { --k: #7a3b6e; } .px-k-security { --k: #9a3a24; }
@media (prefers-color-scheme: dark) { .px-k-organize { --k: #e2c98f; } .px-k-optimize { --k: #8fd0a4; } .px-k-convert-to { --k: #9cc3ec; } .px-k-convert-from { --k: #86d1cc; } .px-k-edit { --k: #e0a6d4; } .px-k-security { --k: #f0a58e; } }
.px-card-i svg { width: 1.45rem; height: 1.45rem; }
.px-card-t { display: block; font-size: 1.02rem; font-weight: 640; letter-spacing: -.01em; margin: .1rem 0 .15rem; }
.px-card-s { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.px-glist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .75rem; }
.px-gcard a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.px-gcard a:hover { border-color: var(--gold-2); box-shadow: var(--shadow); }
.px-gcard-k { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.px-gcard-t { font-size: 1.02rem; font-weight: 630; line-height: 1.3; }
.px-gcard-s { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }

/* ---------------- Hub ---------------- */
.px-hub-head { padding: clamp(1.75rem, 5vw, 3.25rem) 0 .5rem; max-width: 50rem; }
.px-hub-head h1 { font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.6rem); }
.px-search { position: relative; margin: 1.5rem 0 .4rem; max-width: 36rem; }
.px-search svg { position: absolute; left: 1rem; top: 50%; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.px-search input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: .9rem 1.2rem .9rem 2.9rem; min-height: 3.3rem; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.px-search input::placeholder { color: var(--ink-3); }
.px-search input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.px-count { min-height: 1.5rem; margin: 0 0 .6rem; font-size: .9rem; color: var(--ink-3); }
.px-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1.5rem; }
.px-chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 560; min-height: 2.5rem; }
.px-chips a:hover { border-color: var(--gold-2); }
.px-chips span { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.px-cats { display: grid; gap: 2.25rem; }
.px-cat-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .9rem; }
.px-cat-h p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.px-none { padding: 1rem 1.2rem; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-s); color: var(--ink-2); }
@media (min-width: 64em) {
  .px-hub-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: center; padding-top: 2rem; }
  .px-hub-head > h1 { grid-column: 1 / -1; }
  .px-hub-head > .px-lead { grid-column: 1; grid-row: 2 / 5; align-self: start; }
  .px-hub-head > .px-search, .px-hub-head > .px-count, .px-hub-head > .px-trust { grid-column: 2; }
  .px-hub-head > .px-search { margin-top: .9rem; }
  .px-hub-head > .px-trust { margin-bottom: .5rem; }
}
.px-why { margin-top: 3.5rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--r); background: var(--main-bg); color: var(--main-ink); }
.px-why h2 { color: inherit; margin-bottom: 1.1rem; }
.px-why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem 1.5rem; }
.px-why strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.px-why span { font-size: .93rem; opacity: .82; line-height: 1.5; }

/* ---------------- Guides ---------------- */
.px-article { max-width: 46rem; }
.px-art-head { margin: 1.1rem 0 1.25rem; }
.px-meta { margin: .6rem 0 0; font-size: .9rem; color: var(--ink-3); }
.px-article .px-content > p:first-child { font-size: 1.1rem; }
.px-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin: 1.5rem 0; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.px-cta-i { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: var(--main-bg); color: var(--main-ink); }
.px-cta-i svg { width: 1.5rem; height: 1.5rem; }
.px-cta > div { flex: 1 1 14rem; }
.px-cta-t { margin: 0; font-weight: 640; }
.px-cta-s { margin: .1rem 0 0; font-size: .9rem; color: var(--ink-2); }
.px-toc { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); font-size: .95rem; }
.px-toc-h { margin: 0 0 .4rem; font-weight: 650; }
.px-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.px-sources ul { padding-left: 1.2rem; font-size: .92rem; color: var(--ink-2); }
.px-sources li { margin: .3rem 0; overflow-wrap: anywhere; }

/* Ad slots (same rules as style.css): no space while empty or unfilled, a margin only when an ad is shown. */
.ad-slot { display: block; width: 100%; max-width: 100%; margin: 0 auto; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot ins.adsbygoogle:not([data-ad-status="filled"]) { max-height: 0 !important; overflow: hidden !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="filled"]) { margin: 2.5rem auto; min-height: 250px; }

@media (max-width: 40em) {
  body.px { font-size: 1rem; }
  .px-head-in { min-height: 3.4rem; }
  .px-brand { font-size: 1rem; }
  .px-brand .logo { width: 1.75rem; height: 1.75rem; }
  .px-nav a { padding: .4rem .6rem; font-size: .9rem; }
  .px-hero { gap: .8rem; }
  .px-hero-i { width: 2.75rem; height: 2.75rem; border-radius: 12px; }
  .px-hero-i svg { width: 1.5rem; height: 1.5rem; }
  .pt-drop { min-height: 14.5rem; }
  .pt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .pt-bar-r { width: 100%; }
  .pt-go { width: 100%; }
  .pt-hint { width: 100%; text-align: center; order: -1; }
  .pt-res-acts .pt-btn { flex: 1 1 100%; }
  .px-trust li { font-size: .82rem; }
  .px-brand, .px-foot li a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .px-hub-head { padding: 1rem 0 0; }
  .px-hub-head h1 { font-size: 1.75rem; }
  .px-hub-head .px-lead { font-size: .95rem; margin-top: .4rem; }
  .px-search { margin: .8rem 0 .2rem; }
  .px-search input { min-height: 2.9rem; padding: .65rem 1rem .65rem 2.7rem; font-size: 1rem; }
  .px-count { min-height: 0; margin: 0; }
  .px-hub-head .px-trust, .px-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .px-hub-head .px-trust { margin: .55rem 0 0; }
  .px-hub-head .px-trust li, .px-chips a { flex: none; }
  .px-chips { margin: .6rem 0 1.1rem; }
  .px-cats { gap: 1.6rem; }
  .px-cat-h { margin-bottom: .6rem; }
  .px-cat-h p { font-size: .88rem; }
  .px-cats .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .px-cats .px-card a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: .5rem; padding: .75rem .8rem; }
  .px-cats .px-card-i { grid-row: auto; width: 2.3rem; height: 2.3rem; border-radius: 10px; }
  .px-cats .px-card-i svg { width: 1.35rem; height: 1.35rem; }
  .px-cats .px-card-t { font-size: .95rem; margin: 0; line-height: 1.25; }
  .px-cats .px-card-s { display: none; }
}
@media (max-width: 30em) { .px-cat-h p { display: none; } }
/* ==== Jury 2 (26/11/2026) ==== */
/* Single-file tools: the chosen file is one short row (preview, name, size, Change, Remove), like Edit and Sign. */
.pt-chg { min-height: 2.75rem; padding: .45rem 1rem; font-size: .92rem; }
.pt-compact .pt-acts { display: flex; align-items: center; gap: .4rem; }
.pt-compact .pt-ib { width: 2.75rem; height: 2.75rem; }
.pt-compact .pt-acts .pt-ib-x { margin-left: 0; }
.pt-compact .pt-item { min-height: 4rem; }
.pt-solo .pt-bar-l { display: none; }
/* The action bar stays in view while the work area is on screen (sticky only when it would fall under the fold). */
.pt-has .pt-bar { position: sticky; bottom: 0; z-index: 6; background: var(--card); padding-bottom: .75rem; box-shadow: 0 -14px 16px -18px rgba(0, 0, 0, .35); }
/* Desktop: settings on the left, the action in a side panel that stays at the top of the screen. */
@media (min-width: 64em) {
  .pt-side:not(:has(.k4-stage)) .pt-work { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; column-gap: 1.25rem; align-items: start; }
  .pt-side:not(:has(.k4-stage)) .pt-work > * { grid-column: 1 / -1; }
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-msgs { display: grid; grid-row: 1; }
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-msgs:empty { margin: 0; }
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-list { grid-column: 1; grid-row: 2; }
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-extra { grid-column: 1; grid-row: 3; }
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-bar { grid-column: 2; grid-row: 2 / 4; position: sticky; top: 5rem; bottom: auto; display: block; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card-2); box-shadow: none; }
  .pt-side:not(:has(.k4-stage)) .pt-bar-r { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; margin: 0; }
  .pt-side:not(:has(.k4-stage)) .pt-go { width: 100%; min-width: 0; }
  .pt-side:not(:has(.k4-stage)) .pt-hint { text-align: center; }
  .pt-side:not(:has(.k4-stage)) .pt-hint:empty { display: none; }
  .pt-side:not(:has(.k4-stage)) .pt-bar { display: flex; flex-direction: column; gap: .75rem; }
  .pt-side:not(:has(.k4-stage)) .pt-bar-l { order: 2; flex-direction: column; align-items: stretch; padding-top: .75rem; border-top: 1px solid var(--line); }
  .pt-side:not(:has(.k4-stage)) .pt-bar-l .pt-btn { width: 100%; }
}
/* Phones: the button row is the sticky bar; Add files / Clear all stay in the flow. */
@media (max-width: 40em) {
  .pt-has .pt-bar { display: contents; }
  .pt-bar-l { margin-top: .9rem; }
  .pt-has .pt-bar-r { position: sticky; bottom: 0; z-index: 6; width: auto; gap: .35rem; margin: .9rem calc(-1 * clamp(.75rem, 2.5vw, 1.25rem)) 0; padding: .6rem clamp(.75rem, 2.5vw, 1.25rem) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -14px 18px -16px rgba(0, 0, 0, .4); }
  .pt-has .pt-hint { font-size: .85rem; line-height: 1.35; }
  .pt-has .pt-hint:empty { display: none; }
  .pt-compact .pt-item { gap: .55rem; }
  .pt-compact .pt-name { font-size: .9rem; }
  .pt-chg { padding: .45rem .8rem; }
}

/* Editors (Edit, Sign, page tools): pager on one line, one status line (the one next to the button). */
.pt .k4-pager { flex-wrap: nowrap; }
.pt .k4-pager .k4-in { min-width: 0; width: auto; flex: 0 1 11rem; }
.pt .k4-pager .pt-btn:disabled { opacity: 1; color: var(--ink-3); background: transparent; }
.pt-compact .pt-name { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.pt .k4-cnt { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pt .k4-pad { background: #fff linear-gradient(rgba(22, 19, 14, .28), rgba(22, 19, 14, .28)) no-repeat 50% 74% / 84% 1px; }
@media (max-width: 40em) {
  .pt .k4-pager { gap: .35rem; }
  .pt .k4-pager .pt-btn { padding: .6rem .75rem; min-width: 0; }
  .pt .k4-pad { height: 128px; }
  .pt .k4-sw > .k4-sec { padding: .65rem; margin-bottom: .7rem; }
  .pt .k4-sw > .k4-sec > h3 { margin-bottom: .45rem; }
  .pt .k4-sw > .k4-sec:last-child { display: flex; flex-direction: column; }
  .pt .k4-sw > .k4-sec:last-child > * { min-width: 0; }
  .pt .k4-sw > .k4-sec:last-child > .k4-row:has([data-add]) { order: 9; margin-top: .75rem !important; }
}

/* Card grids without empty cells: px-split + px-n<count> (src/pdf.js) = full rows at every width. */
@media (min-width: 64em) {
  .px-split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .px-split > li { grid-column: span 3; }
  .px-glist.px-split > li { grid-column: span 4; }
  .px-split.px-n1 > li { grid-column: span 12; }
  .px-split.px-n2 > li { grid-column: span 6; }
  .px-split.px-n3 > li, .px-split.px-n6 > li, .px-split.px-n9 > li { grid-column: span 4; }
  .px-split.px-n4 > li, .px-split.px-n8 > li { grid-column: span 3; }
  .px-split.px-n5 > li { grid-column: span 4; }
  .px-split.px-n5 > li:nth-child(n+4) { grid-column: span 6; }
  .px-split.px-n7 > li { grid-column: span 3; }
  .px-split.px-n7 > li:nth-child(n+5) { grid-column: span 4; }
  .px-split.px-n10 > li { grid-column: span 3; }
  .px-split.px-n10 > li:nth-child(n+9) { grid-column: span 6; }
  .px-filtered .px-split { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
  .px-filtered .px-split > li { grid-column: auto; }
}
@media (min-width: 40.0625em) and (max-width: 63.9375em) {
  .px-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-split > li { grid-column: auto; }
  .px-split.px-n1 > li, .px-split.px-n3 > li:last-child, .px-split.px-n5 > li:last-child, .px-split.px-n7 > li:last-child, .px-split.px-n9 > li:last-child { grid-column: 1 / -1; }
  .px-filtered .px-split > li { grid-column: auto !important; }
}
@media (max-width: 40em) {
  .px-cats .px-split.px-n3 > li:last-child, .px-cats .px-split.px-n5 > li:last-child, .px-cats .px-split.px-n7 > li:last-child, .px-cats .px-split.px-n9 > li:last-child { grid-column: 1 / -1; }
  .px-cats .px-split.px-n3 > li:last-child .px-card-i, .px-cats .px-split.px-n5 > li:last-child .px-card-i, .px-cats .px-split.px-n7 > li:last-child .px-card-i, .px-cats .px-split.px-n9 > li:last-child .px-card-i { grid-row: 1; }
  .px-cats .px-split.px-n3 > li:last-child a, .px-cats .px-split.px-n5 > li:last-child a, .px-cats .px-split.px-n7 > li:last-child a, .px-cats .px-split.px-n9 > li:last-child a { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; column-gap: .75rem; row-gap: 0; align-items: center; }
  .px-filtered .px-split > li { grid-column: auto !important; }
  /* Badges and category pills scroll sideways: the fade at the right edge says so. */
  .px-chips { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 1.5rem; }
  .px-hub-head .px-trust { flex-wrap: wrap; overflow: visible; gap: .35rem; }
}
.px-most .px-cat-h h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }

/* Touch targets of 44 px on tablets too (logo, header and footer links). */
@media (max-width: 63.9375em), (pointer: coarse) {
  .px-brand, .px-foot li a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .px-nav a { min-height: 2.75rem; }
}

/* Guides at 1280: the table of contents moves to the right column and stays in view. */
.px-toc-side { display: none; }
.px-toc-go { margin-top: .9rem; width: 100%; }
@media (min-width: 64em) {
  .px-article { max-width: none; display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .px-article > .px-art-head { grid-column: 1; grid-row: 1; }
  .px-article > .px-content { grid-column: 1; grid-row: 2; }
  .px-article > .px-toc-side { display: block; grid-column: 2; grid-row: 1 / 3; position: sticky; top: 5.25rem; margin: 1.25rem 0 0; max-width: 20rem; max-height: calc(100vh - 6.5rem); overflow: auto; }
  .px-article .px-content > .px-toc { display: none; }
}

/* ==== Jury 3 (27/11/2026) ==== */
/* File name on one line: the base name ends with an ellipsis, the extension always shows (never cut inside a word). */
.pt-name { display: flex; min-width: 0; max-width: 100%; }
.pt-compact .pt-name { white-space: nowrap; overflow: hidden; overflow-wrap: normal; }
.pt-nm-b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-nm-e { flex: none; white-space: nowrap; }
.pt-res-s { overflow-wrap: break-word; }

/* After a result, Download is the only main button: the action button becomes secondary until something changes. */
.pt-done .pt-go { background: var(--card-2); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.pt-done .pt-go:hover:not(:disabled) { background: var(--card-2); border-color: var(--gold-2); }
.pt-has.pt-done .pt-bar { position: static; box-shadow: none; }
@media (max-width: 40em) { .pt-has.pt-done .pt-bar-r { position: static; box-shadow: none; } }

/* Touch targets of 44 px (the drawing may stay small, the button is the size of a finger). */
.pt-ib { width: 2.75rem; height: 2.75rem; }
.pt-note { align-items: center; }
.pt-note > svg { margin-top: 0; }
.pt-note .pt-ib { width: 2.75rem; height: 2.75rem; margin: -.5rem -.25rem -.5rem 0; }
.pt-grip { width: 2.75rem; height: 2.75rem; left: .7rem; top: .7rem; }
/* Reorderable cards (Merge, JPG to PDF): up, down, remove as one row of three 44 px buttons, edge to edge. */
.pt-list:not(.pt-compact) .pt-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.pt-list:not(.pt-compact) .pt-acts .pt-ib { width: 100%; min-width: 2.75rem; height: 2.75rem; border-radius: 0; margin: 0; }
.pt-list:not(.pt-compact) .pt-acts .pt-ib + .pt-ib { margin-left: -1px; }
.pt-list:not(.pt-compact) .pt-acts .pt-ib:first-child { border-radius: 10px 0 0 10px; }
.pt-list:not(.pt-compact) .pt-acts .pt-ib:last-child { border-radius: 0 10px 10px 0; }
.pt-list:not(.pt-compact) .pt-acts .pt-ib:hover:not(:disabled), .pt-list:not(.pt-compact) .pt-acts .pt-ib:focus-visible { position: relative; z-index: 1; }
@media (max-width: 40em) { .pt-list:not(.pt-compact) .pt-item { padding: .35rem; } .pt-list:not(.pt-compact) .pt-meta { margin: .45rem .2rem .35rem; } }
/* Check boxes, radios and fields inside the tools: 44 px high with their label. */
.pt .pt-work label:has(> input[type=checkbox]), .pt .pt-work label:has(> input[type=radio]),
.pt .y5-chk, .pt .y5o-chk, .pt .t1-radio, .pt .ymx-ck, .pt .t3-chk { min-height: 2.75rem; }
.pt .y5-chk, .pt .ymx-ck { align-items: center; margin-bottom: 0; }
.pt .y5o-chk { align-items: center; padding: .2rem 0; }
.pt .y5o-chk input { margin-top: 0; }
.pt .pt-work select:not([multiple]):not(.k4-ov *), .pt .pt-work input[type=text]:not(.k4-ov *), .pt .pt-work input[type=number]:not(.k4-ov *),
.pt .pt-work input[type=password], .pt .pt-work input[type=email], .pt .pt-work input[type=date], .pt .pt-work input[type=datetime-local] { min-height: 2.75rem; }
.pt .k4-tool { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
/* Site links in the /pdf/ header, footer and category pills: 44 px at every width. */
.px-brand, .px-foot li a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.px-nav a, .px-chips a { min-height: 2.75rem; }
.px-foot-links li a { min-width: 2.75rem; justify-content: center; }

/* Result preview (split, PDF to JPG, compress): small pictures of what was made, or the size before and after. */
.pt-pv { margin: .35rem 0 .75rem; }
.pt-pv-th { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.pt-pv-th li { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 4.75rem; }
.pt-pv-img { display: block; width: 100%; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .5); }
.pt-pv-img canvas { display: block; width: 100% !important; height: auto !important; }
.pt-pv-l { font-size: .8rem; color: var(--ink-2); line-height: 1.25; text-align: center; }
.pt-pv-th .pt-pv-more { align-self: center; width: auto; min-height: 2.5rem; justify-content: center; padding: 0 .4rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.pt-pv-sz { display: grid; gap: .4rem; max-width: 28rem; }
.pt-pv-row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); }
.pt-pv-bar { display: block; height: .6rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.pt-pv-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--line-2); }
.pt-pv-after .pt-pv-bar > span { background: var(--ok); }
.pt-pv-v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* A button that cannot be pressed yet stays readable (not a faded gold block): plain card colours, text at 4.5:1 or more. */
.pt-btn:disabled, .pt-done .pt-go:disabled { opacity: 1; background: var(--card-2); color: var(--ink-3); border-color: var(--line-2); box-shadow: none; }
/* Option fields of the image-to-PDF tools: wide enough for their longest choice (two per row on tablets and desktops). */
.pt .ymx-row > .ymx-f { flex-basis: 16rem; }

/* ==== Jury 4 (27/11/2026) ==== */
/* Long file names never widen the page: every text block of the result and of the messages can shrink, the name ends with an ellipsis. */
.pt-res-head > div { flex: 1 1 auto; min-width: 0; }
.pt-res-t, .pt-res-s { min-width: 0; max-width: 100%; }
.pt-res-s { overflow-wrap: anywhere; }
.pt-res-f { display: flex; min-width: 0; max-width: 100%; color: var(--ink); font-weight: 560; }
.pt-res-d { display: block; }
.pt-res-sep { display: none; }
.pt-note span, .pt-hint, .pt-info, .pt-drop-msg, .pt-prog-l { min-width: 0; overflow-wrap: anywhere; }
.pt-meta, .pt-bar-r, .pt-bar-l { min-width: 0; max-width: 100%; }
/* Organize, and the page grids of the tools that share it (t1-*): 44 px buttons, cells wide enough for two of them. */
.pt .pt-work .t1-ib { width: 2.75rem; height: 2.75rem; min-width: 2.75rem; }
.pt .pt-work .t1-sm, .pt .pt-work .t1 .pt-btn { min-height: 2.75rem; }
.pt .pt-work .t1-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.25rem), 1fr)); }
.pt .pt-work .t1-acts { gap: .25rem; }
/* Desktop 2-column layout: progress and result stay in the left column, so the side panel never covers them. */
@media (min-width: 64em) {
  .pt-side:not(:has(.k4-stage)) .pt-work > .pt-prog, .pt-side:not(:has(.k4-stage)) .pt-work > .pt-result { grid-column: 1; }
}
/* Editors on phones: a menu (Font, Style...) takes the whole row, so its longest choice is never cut. */
@media (max-width: 30em) { .pt .k4-grid > :has(> select), .pt .k4-grid > .k4-f:has(select) { grid-column: 1 / -1; } }
/* Protect: no empty line between the two password fields. */
.pt .y5-s:empty { display: none; }
.pt .y5-f { margin-bottom: .75rem; }
/* Editor option grids (watermark, page numbers...): columns wide enough for the longest menu choice. */
@media (min-width: 30.0625em) { .pt .k4-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .px-head, .px-foot, .pt, .ad-slot, .px-rel { display: none !important; } body.px { background: #fff; color: #000; } }

/* Back to the main YardMaths site (27/11/2026) */
.px-nav a.px-back { margin-left: .5rem; border: 1px solid var(--line); color: var(--ink); font-weight: 560; white-space: nowrap; }
.px-nav a.px-back:hover { background: var(--card); }
@media (max-width: 520px) { .px-head-in { flex-wrap: wrap; row-gap: 0; padding-block: .25rem; } .px-nav { width: 100%; justify-content: space-between; } .px-nav a.px-back { margin-left: 0; } }

/* Fair-use notice on /pdf/ (27/11/2026): the notice is a dark box that reads the dark theme variables of the main site; this page is light, so the box gets those variables back (it is the only div with a class that is a direct child of body here), and its one plain button gets the main site's gold look. */
body.px > div[class] { --ink: #efe9dd; --ink-2: #aab0a7; --gold: #e2c98f; --gold-hi: #f3e2b8; --link: #e2c98f; --focus: #f3e2b8; --lacquer: #111815; --r-lg: 22px; --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.px > div[class] .btn { font: 620 1rem/1.2 var(--font); color: #15110a; background: #d9bd83; border: 0; border-radius: 999px; padding: .8rem 1.25rem; min-height: 2.75rem; cursor: pointer; }
body.px > div[class] .btn:hover { background: #ecd5a3; }
body.px > div[class] .btn:focus-visible { outline: 3px solid #f3e2b8; outline-offset: 2px; }
