@font-face { font-family: 'Rubik'; src: url(/fonts/Rubik-Regular.woff2) format('woff2'), url(/fonts/Rubik-Regular.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url(/fonts/Rubik-Medium.woff2) format('woff2'), url(/fonts/Rubik-Medium.ttf) format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url(/fonts/Rubik-Bold.woff2) format('woff2'), url(/fonts/Rubik-Bold.ttf) format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Amatic SC'; src: url(/fonts/AmaticSC-Bold.woff2) format('woff2'), url(/fonts/AmaticSC-Bold.ttf) format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #fff8ee;
  --paper: #ffffff;
  --ink: #2b2d42;
  --muted: #6b6f86;
  --coral: #ff6b4a;
  --sun: #ffd166;
  --sky: #4cc9f0;
  --lilac: #b79ced;
  --mint: #7ee0c3;
  --line: #f0e3cf;
  --coral-ink: #c8381a; /* coral for small text: 4.9:1 on the cream background */
  --focus: #1e5bd8;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(255, 107, 74, .25), 0 2px 6px rgba(43, 45, 66, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Rubik', system-ui, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 10% -10%, #ffe3d6 0, transparent 40%), radial-gradient(circle at 100% 0, #e3f6ff 0, transparent 35%);
  min-height: 100vh; line-height: 1.55;
}
a { color: var(--coral-ink); }
button, input, textarea { font: inherit; color: inherit; }
/* one clear focus ring for everything a keyboard can reach */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
canvas { direction: ltr; } /* pdf.js draws glyph by glyph; an inherited RTL direction scrambles it */

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink); }
.logo-mark svg { width: 42px; height: 42px; display: block; }
.logo-text { font-size: 26px; font-weight: 500; letter-spacing: .5px; }
.logo-text b { color: #e04a2a; font-weight: 700; } /* large text: 3.8:1 */
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--sun); padding: 8px 16px; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow); }
.privacy-pill svg { width: 18px; height: 18px; color: var(--coral); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }

/* hero */
.hero { text-align: center; padding: 28px 0 10px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.hl { background: linear-gradient(transparent 60%, var(--sun) 60%); padding: 0 6px; border-radius: 4px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 20px; }
.trust { list-style: none; padding: 0; margin: 0 0 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust li { background: #fff; border-radius: 999px; padding: 8px 18px; box-shadow: var(--shadow); font-weight: 500; }
.trust b { color: var(--coral-ink); margin-inline-end: 4px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  position: relative; display: block; background: var(--paper); border-radius: var(--radius); padding: 24px 22px 22px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 2px solid transparent;
  transition: transform .18s cubic-bezier(.2, .8, .3, 1.4), border-color .18s, box-shadow .18s;
}
a.card:hover, a.card:focus-visible { transform: translateY(-5px) rotate(-.6deg); border-color: currentColor; }
a.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius); }
.card h2 { margin: 14px 0 6px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
/* a card that is a link to another page: the whole card is clickable through the heading link */
.card-link h2 a { color: inherit; text-decoration: none; outline: none; }
.card-link h2 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover, .card-link:focus-within { transform: translateY(-5px) rotate(-.6deg); border-color: currentColor; }
.card-link:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.card-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.card-icon svg { width: 40px; height: 40px; fill: #fff; stroke: #fff; }
.c-coral .card-icon { background: var(--coral); } .c-coral { color: var(--coral); }
.c-sun .card-icon { background: #f7b500; } .c-sun { color: #f7b500; }
.c-sky .card-icon { background: var(--sky); } .c-sky { color: var(--sky); }
.c-lilac .card-icon { background: var(--lilac); } .c-lilac { color: var(--lilac); }
.c-mint .card-icon { background: #3cc9a6; } .c-mint { color: #3cc9a6; }
.card h2, .card p { color: var(--ink); } .card p { color: var(--muted); }
.card-star { border-color: var(--sky); }
.badge-star { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.card-soon { background: #fffdf8; border: 2px dashed #e8d9c2; box-shadow: none; }
.card-soon .card-icon { background: #e8e1f5; }
.card-soon .card-icon svg { fill: #b9a9db; stroke: #b9a9db; }
.soon { position: absolute; top: 18px; inset-inline-end: 18px; background: #efe8fb; color: #6c51b5; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

.how { margin-top: 44px; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.how h2 { margin: 0 0 14px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; color: var(--muted); }
.how-grid b { color: var(--ink); display: block; }

/* tool views */
.tool { background: #fff; border-radius: 28px; padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow); margin-top: 10px; animation: pop .28s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.tool h1, .tool .tool-title { margin: 6px 0 4px; font-size: clamp(26px, 4vw, 38px); }
.sub { color: var(--muted); margin: 0 0 18px; }
.back { display: inline-flex; align-items: center; min-height: 44px; padding-inline-end: 8px; text-decoration: none; font-weight: 500; color: var(--muted); }
.back::before { content: '→\00a0'; content: '→\00a0' / ''; } /* the arrow is decoration, screen readers skip it */
.back:hover { color: var(--coral-ink); }
.tool h1:focus, .tool .tool-title:focus { outline: none; } /* focused by script on route change, not by the user */

.drop {
  display: grid; place-items: center; gap: 4px; text-align: center; cursor: pointer; padding: 38px 20px; border-radius: 22px;
  border: 3px dashed #ffc2b3; background: #fff6f2; transition: background .15s, border-color .15s, transform .15s;
}
.drop:hover, .drop.over { background: #ffece4; border-color: var(--coral); transform: scale(1.01); }
.drop:focus-within { border-color: var(--focus); border-style: solid; background: #ffece4; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.drop { position: relative; }
.drop-big { font-size: 22px; font-weight: 700; }
.drop-small { color: var(--muted); }
.drop.compact { padding: 14px; }
.drop.compact .drop-big { font-size: 17px; }

.btn { min-height: 48px; border: 2px solid #eadfcd; background: #fff; border-radius: 14px; padding: 11px 20px; font-weight: 500; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); background: #fff6ea; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
/* dark ink on the bright coral: 4.8:1 (white on it was 2.8:1) */
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--ink); font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: #ff8466; border-color: #ff8466; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.actions, .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }

/* merge list */
.file-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 14px; background: #fffaf3; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; cursor: grab; user-select: none; }
.file-item.dragging { opacity: .5; }
.file-item.drop-target { border-color: var(--coral); background: #fff0e9; }
.file-item canvas { width: 46px; height: auto; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12); background: #fff; }
.file-item .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); font-weight: 700; flex: none; }
.file-item .meta { flex: 1; min-width: 0; }
.file-item .name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.file-item .info { display: block; color: var(--muted); font-size: 14px; }
.file-item .ops { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 18px; }
.icon-btn:hover { background: #fff0e9; }
.grip { color: #9a8b74; font-size: 20px; letter-spacing: -3px; }
/* phones: the move buttons drop to their own row, so nothing spills sideways */
@media (max-width: 560px) {
  .file-item { flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px; }
  .file-item .ops { flex-basis: 100%; justify-content: flex-end; }
}
@media (hover: none) { .grip { display: none; } .file-item { cursor: default; } }

/* results */
.result { margin-top: 20px; padding: 18px; border-radius: 18px; background: #f2fbf8; border: 2px solid #c7efe2; }
.result.warn { background: #fff8e6; border-color: #ffe2a0; }
.result h3 { margin: 0 0 6px; }
.big-num { font-size: 34px; font-weight: 700; }
.note { background: #fff8e6; border-radius: 14px; padding: 10px 14px; color: #7a5a00; }
.status { color: var(--muted); min-height: 1.5em; }

/* compress levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.level { position: relative; display: block; }
.level input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.level span { display: block; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; height: 100%; }
.level small { display: block; color: var(--muted); }
.level input:checked + span { border-color: var(--coral); background: #fff4ef; }
.level input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.progress { height: 12px; background: #f3eadc; border-radius: 999px; overflow: hidden; margin-top: 18px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 999px; transition: width .2s; }

/* extract */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.pane h3 { margin: 0 0 6px; font-size: 16px; }
.pane.bad h3 { color: #c2410c; }
.pane.good h3 { color: #0b7a5d; }
textarea { width: 100%; min-height: 300px; border-radius: 14px; border: 2px solid var(--line); padding: 14px; font-size: 16px; line-height: 1.7; resize: vertical; background: #fff; }
.pane.bad textarea { background: #fff7f3; }
.switch { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; color: var(--muted); }
.switch input { width: 22px; height: 22px; accent-color: var(--coral-ink); flex: none; }

/* sign */
.sign-ui { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin-top: 18px; align-items: start; }
.sign-controls { display: grid; gap: 14px; position: sticky; top: 12px; }
/* one column: sticky controls would sit on top of the page preview */
@media (max-width: 820px) { .sign-ui { grid-template-columns: 1fr; } .sign-controls { position: static; } }
.field { display: grid; gap: 4px; font-weight: 500; }
.field input[type=text] { min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.field input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--coral-ink); cursor: pointer; }
.seg { display: flex; background: #f6efe4; border-radius: 14px; padding: 4px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.seg span { display: grid; place-items: center; min-height: 44px; text-align: center; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); color: var(--coral-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.swatches { display: flex; gap: 6px; }
.swatches label { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatches i { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); pointer-events: none; }
.swatches input:checked + i { box-shadow: 0 0 0 3px var(--coral-ink); }
.swatches input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 3px; }
.hint { color: var(--muted); margin: 0; font-size: 14px; }
.pager { display: flex; align-items: center; gap: 10px; }
.sign-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sign-stage { position: relative; justify-self: center; box-shadow: 0 8px 30px rgba(0,0,0,.12); border-radius: 6px; overflow: hidden; cursor: crosshair; background: #fff; max-width: 100%; }
.sign-stage canvas { display: block; max-width: 100%; height: auto; }
.sign-layer { position: absolute; inset: 0; }
.stamp { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: move; padding: 0 4px; border-radius: 4px; outline: 2px dashed transparent; line-height: 1; unicode-bidi: plaintext; touch-action: none; }
.stamp:hover { outline-color: var(--sky); background: rgba(76, 201, 240, .08); }
.stamp:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; background: rgba(30, 91, 216, .08); }
.stamp.sig { font-family: 'Amatic SC', cursive; font-weight: 700; }

.toast { opacity: 0; visibility: hidden; position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 120px); width: max-content; max-width: calc(100vw - 32px); text-align: center; background: #fff; border: 2px solid var(--mint); border-radius: 999px; padding: 10px 22px; font-weight: 500; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .8, .3, 1.3); z-index: 10; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.err { border-color: var(--coral); }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 16px 40px; }

.foot a { display: inline-block; padding: 4px 2px; }
.foot-links { margin-top: 4px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.card:hover, a.card:focus-visible, .card-link:hover, .card-link:focus-within, .drop:hover, .drop.over, .btn:hover:not(:disabled) { transform: none; }
}
.icon-btn[aria-disabled=true] { opacity: .4; cursor: default; }
.icon-btn[aria-disabled=true]:hover { background: #fff; }
/* bigger invisible grab area around small stamps, for fingers; the stamp itself does not move */
.stamp::before { content: ''; position: absolute; inset: -16px -8px; }

/* landing content under a tool page (docs/landing-drafts, injected by scripts/build-pages.mjs) */
.lp-content { margin-top: 36px; display: grid; gap: 18px; }
.lp-content > section { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.lp-content h2 { margin: 0 0 10px; font-size: 22px; }
.lp-content p, .lp-content li { color: var(--muted); }
.lp-content p { margin: 0 0 8px; }
.lp-content strong, .lp-content b { color: var(--ink); }
.lp-content ol, .lp-content ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.lp-faq details { border-top: 2px solid var(--line); padding: 12px 0; }
.lp-faq details:first-of-type { border-top: 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 24px; }
.lp-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-faq details p { margin: 8px 0 0; }

/* PDF to images (/pdf-le-tmuna/) */
.p2i-count { font-weight: 500; margin-inline-end: auto; }
.p2i-pages { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; max-height: 460px; overflow-y: auto; }
.p2i-page label { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 8px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fffaf3; cursor: pointer; height: 100%; }
.p2i-page input { position: absolute; top: 8px; inset-inline-start: 8px; width: 22px; height: 22px; margin: 0; z-index: 1; accent-color: var(--coral-ink); }
.p2i-page input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.p2i-page label:has(input:checked) { border-color: var(--coral); background: #fff; }
.p2i-page label:has(input:not(:checked)) .p2i-thumb { opacity: .45; }
.p2i-thumb { display: grid; place-items: center; width: 100%; min-height: 120px; }
.p2i-thumb img[hidden] { display: none; }
.p2i-thumb img { display: block; max-width: 100%; max-height: 150px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.12); background: #fff; }
.p2i-num { font-size: 14px; color: var(--muted); }
.p2i-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.p2i-opt { display: grid; gap: 6px; }
.p2i-label { font-weight: 500; }
#pdf2img-result .btn { margin-top: 10px; }
@media (max-width: 560px) {
  .p2i-count { flex-basis: 100%; }
  .p2i-pages { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 380px; }
}

/* ===== from -> to: two file badges and an arrow (9.11) =====
   RTL: the first badge (the source) sits on the right, the arrow points left to the result,
   in the same order the Hebrew title is read ("PDF לוורד": PDF on the right, Word on the left).
   Decorative only (aria-hidden); the title next to it carries the meaning. */
.ft { --u: 1px; display: inline-flex; align-items: center; gap: calc(var(--u) * 8); direction: rtl; line-height: 1; vertical-align: middle; }
.card .ft { padding: 10px 14px; border-radius: 18px; background: #fff8ee; min-height: 84px; max-width: 100%; }
.ft-lg { --u: 1.15px; display: flex; width: max-content; margin: 8px 0 6px; }
.fb {
  --c: var(--coral); --t: var(--ink); --f: calc(var(--u) * 13);
  position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 3);
  width: calc(var(--u) * 46); height: calc(var(--u) * 58); padding: calc(var(--u) * 6) 2px calc(var(--u) * 4);
  border-radius: calc(var(--u) * 9); background: var(--c); color: var(--t);
  font-weight: 700; font-size: calc(var(--u) * 13); letter-spacing: .3px; white-space: nowrap;
  box-shadow: inset 0 calc(var(--u) * -3) 0 rgba(43, 45, 66, .12);
  clip-path: polygon(0 0, calc(100% - var(--f)) 0, 100% var(--f), 100% 100%, 0 100%);
}
/* the folded corner of the page */
.fb::after { content: ''; position: absolute; top: 0; right: 0; width: var(--f); height: var(--f); background: linear-gradient(to bottom left, transparent 50%, rgba(43, 45, 66, .22) 50%); border-bottom-left-radius: calc(var(--u) * 3); }
.fb svg { width: calc(var(--u) * 26); height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fb-word { --c: #2b5fd9; --t: #fff; font-size: calc(var(--u) * 26); }
.fb-jpg { --c: #15805a; --t: #fff; font-size: calc(var(--u) * 11); }
.fb-jpg svg { fill: currentColor; stroke: none; width: calc(var(--u) * 24); }
.fb-text { --c: #fff; border: 2px solid #e2d5bf; font-size: calc(var(--u) * 11); }
.fb-scan { --c: #efe8fb; --t: #5b3fa8; font-size: calc(var(--u) * 11); }
.fb-scan svg { width: calc(var(--u) * 28); }
.fb-scan .fr { stroke-width: 2.8; }
.fb-rev, .fb-ok { font-size: calc(var(--u) * 13); letter-spacing: 0; }
.fb-rev { --c: #fff1eb; --t: var(--coral-ink); border: 2px dashed #ffab96; }
.fb-ok { --c: #e6f8f1; --t: #0b6b51; border: 2px solid #9fe3cb; }
.fb-big { width: calc(var(--u) * 54); height: calc(var(--u) * 68); font-size: calc(var(--u) * 15); --f: calc(var(--u) * 15); }
.fb-small { width: calc(var(--u) * 32); height: calc(var(--u) * 40); font-size: calc(var(--u) * 10); --f: calc(var(--u) * 9); padding: 2px; }
.fb-pen svg { width: calc(var(--u) * 18); stroke-width: 2.2; }
.fb-signed svg { width: calc(var(--u) * 30); stroke: #1d2b53; stroke-width: 2.6; }
/* several files: the same badge three times, fanned out */
.fb-stack { display: inline-flex; flex: none; }
.fb-stack .fb + .fb { margin-inline-start: calc(var(--u) * -34); }
.fb-stack .fb:nth-child(1) { transform: rotate(7deg) translateY(calc(var(--u) * 2)); }
.fb-stack .fb:nth-child(2) { transform: rotate(-2deg); }
.fb-stack .fb:nth-child(3) { transform: rotate(-9deg) translateY(calc(var(--u) * 3)); }
.fa { flex: none; width: calc(var(--u) * 30); height: calc(var(--u) * 16); fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
a.card:hover .fa, .card-link:hover .fa { animation: ft-nudge .5s ease-in-out; }
@keyframes ft-nudge { 50% { transform: translateX(calc(var(--u) * -5)); } }
.ft-sm { --u: .8px; }
.card .ft-sm { min-height: 0; padding: 8px 12px; margin-bottom: 10px; }
/* in a stack only the front file (the last, leftmost one) shows its label */
.fb-stack .fb:not(:last-child) { color: transparent; }
.fb-stack .fb:not(:last-child) svg { visibility: hidden; }
