/* Plain PDF — one stylesheet for every page. */

@font-face{
  font-family:'Schibsted Grotesk';
  font-style:normal;
  font-display:swap;
  font-weight:400 900;
  src:url(/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Schibsted Grotesk';
  font-style:normal;
  font-display:swap;
  font-weight:400 900;
  src:url(/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  --paper:#EEF1F3; --sheet:#FFFFFF; --ink:#16202A; --muted:#5A6672; --line:#CBD3DA;
  --edge:#808890;   /* borders that define a control: 3:1 against paper and sheet */
  --mark:#FFD84D; --mark-ink:#16202A; --ok:#1F7A4D; --err:#B3261E; --sel:#1C5FD6;
  --r:.5rem;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#12181E; --sheet:#1B232B; --ink:#E8EDF1; --muted:#9AA6B1; --line:#2E3A45;
    --edge:#68737E;
    --mark:#F2C94C; --mark-ink:#12181E; --ok:#5BD08F; --err:#FF8A80; --sel:#6FA8FF;
  }
}
:root[data-theme="dark"]{
  --paper:#12181E; --sheet:#1B232B; --ink:#E8EDF1; --muted:#9AA6B1; --line:#2E3A45;
  --edge:#68737E;
  --mark:#F2C94C; --mark-ink:#12181E; --ok:#5BD08F; --err:#FF8A80; --sel:#6FA8FF;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-size:1.0625rem;line-height:1.55;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
img,canvas{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--mark);outline-offset:2px;border-radius:2px}

.wrap{max-width:74rem;margin:0 auto;padding:0 1.25rem}
.skip{position:absolute;inset-inline-start:-9999px;top:0;z-index:20;background:var(--sheet);color:var(--ink);
  padding:.7rem 1rem;border:1px solid var(--line);border-radius:0 0 var(--r) 0}
.skip:focus{inset-inline-start:0}

/* ------------------------------------------------------------------ header */
.top{border-bottom:1px solid var(--line);background:var(--paper)}
.top__in{display:flex;align-items:center;gap:1rem;padding:.9rem 1.25rem;flex-wrap:wrap}
.logo{font-weight:900;font-size:1.25rem;letter-spacing:-.03em;text-decoration:none;flex:0 0 auto}
.logo span{background:var(--mark);color:var(--mark-ink);padding:0 .28em;margin-inline-start:.12em;border-radius:2px}
.nav{display:flex;gap:.4rem;margin-inline-start:auto;flex-wrap:wrap}
.local{margin:0;font-size:.8125rem;color:var(--muted);display:flex;align-items:center;gap:.45em;flex:0 0 auto}
.local::before{content:"";width:.5em;height:.5em;border-radius:50%;background:var(--ok);flex:0 0 auto}
.local[data-state="off"]::before{background:var(--muted)}

.menu{position:relative}
.menu>summary{
  list-style:none;cursor:pointer;font-size:.9375rem;font-weight:500;
  padding:.4rem .75rem;border:1px solid var(--edge);border-radius:var(--r);background:var(--sheet);
  white-space:nowrap
}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary::after{content:" ▾";color:var(--muted)}
.menu[open]>summary{border-color:var(--ink)}
.menu__list{
  position:absolute;z-index:10;inset-inline-end:0;margin:.35rem 0 0;padding:.35rem;
  list-style:none;min-width:12.5rem;background:var(--sheet);
  border:1px solid var(--line);border-radius:var(--r);box-shadow:0 10px 30px rgba(0,0,0,.14);
  /* The language list grows with every locale added, so cap it and scroll
     rather than letting it run off the bottom of the screen. */
  max-height:min(70vh,26rem);overflow-y:auto;overscroll-behavior:contain
}
.menu__list a{display:block;padding:.45rem .6rem;border-radius:.3rem;text-decoration:none;font-size:.9375rem}
.menu__list a:hover{background:var(--paper)}
.menu__list a[aria-current]{font-weight:700;background:var(--paper)}


/* The handful of jobs most visits are for, in the bar rather than behind a
   menu. They collapse away on a narrow screen, where "All tools" is the
   better door anyway. */
.nav__q{align-self:center;padding:.45rem .6rem;border-radius:.3rem;
  text-decoration:none;font-size:.9375rem;font-weight:500;white-space:nowrap}
.nav__q:hover{background:var(--paper)}
.nav__q[aria-current]{font-weight:700;background:var(--paper)}
@media (max-width:46rem){.nav__q{display:none}}

/* Group headings inside the menu. They label the list for the eye; screen
   readers get the same grouping from the page, so these stay decorative
   rather than being read out as if they were choices. */
.menu__g{padding:.5rem .6rem .2rem;font-size:.75rem;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.menu__g:first-child{padding-top:.2rem}

/* Twenty-seven languages in one column is a scroll, not a choice. */
.menu--lang .menu__list{min-width:min(92vw,34rem);columns:3;column-gap:.4rem}
.menu--lang .menu__list li{break-inside:avoid}
@media (max-width:40rem){.menu--lang .menu__list{min-width:min(92vw,20rem);columns:2}}

/* A group of tools reads as a group: a quiet heading, then its own grid. */
.more__g{margin:2rem 0 .75rem;font-size:1rem;letter-spacing:.02em;
  text-transform:uppercase;color:var(--muted)}
.more__g:first-of-type{margin-top:1rem}

/* ------------------------------------------------------------------ layout */
.page{
  display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;
  max-width:74rem;margin:0 auto;padding:0 1.25rem 1rem
}
/* The rail column only exists when there is a rail to put in it. Reserving
 * 300px for an ad that is switched off left the content squeezed into
 * two-thirds of a desktop window with a void beside it. :has() keeps the
 * reservation tied to the markup rather than to a build flag. */
@media (min-width:75rem){ .page:has(> .rail){grid-template-columns:minmax(0,1fr) 300px} }
main{min-width:0}

.crumbs{display:flex;gap:.5rem;font-size:.875rem;color:var(--muted);margin:1.25rem 0 0}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}

h1{font-size:clamp(1.9rem,5.2vw,3.1rem);line-height:1.04;letter-spacing:-.035em;font-weight:900;
  margin:1.1rem 0 .6rem;max-width:22ch}
.lede{color:var(--muted);max-width:56ch;margin:0 0 1.75rem;font-size:1.0625rem}
h2{font-size:clamp(1.3rem,3vw,1.7rem);letter-spacing:-.025em;margin:0 0 .9rem}
h3{font-size:1.0625rem;margin:0}

.trust{list-style:none;display:grid;gap:1rem;padding:0;margin:0 0 2.5rem;
  grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.trust li{background:var(--sheet);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.1rem}
.trust strong{display:block}
.trust span{color:var(--muted);font-size:.9375rem}

/* -------------------------------------------------------------- tool panel */
.tool{background:var(--sheet);border:1px solid var(--line);border-radius:var(--r);padding:1.25rem}
@media (min-width:40rem){ .tool{padding:1.75rem} }

/* The first thing a visitor has to do is give us a file, so the drop zone is
   the loudest thing on the page. An outline on bare paper read as decoration;
   a tinted surface with a mark in it reads as somewhere to act. */
.drop{display:block;border:2px dashed var(--edge);border-radius:var(--r);padding:2.6rem 1rem;
  text-align:center;cursor:pointer;transition:border-color .15s,background .15s;position:relative;
  background:color-mix(in srgb,var(--mark) 9%,var(--sheet))}
.drop:hover,.drop.over{border-color:var(--ink);background:color-mix(in srgb,var(--mark) 22%,var(--sheet))}
.drop__ico{width:34px;height:34px;display:block;margin:0 auto .7rem;
  stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  color:var(--ink)}
/* The input inside is transparent and covers the whole box, so a focus ring on
   it would be invisible. Draw it on the drop zone instead. */
.drop:focus-within{outline:3px solid var(--mark);outline-offset:2px;border-color:var(--ink)}
.drop input:focus-visible{outline:none}
.drop strong{display:block;font-size:1.05rem}
.drop small{color:var(--muted)}
.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

.files{list-style:none;margin:1rem 0 0;padding:0}
.files li{display:flex;align-items:center;gap:.6rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
.files .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.files .meta{color:var(--muted);font-size:.8125rem;white-space:nowrap}

.icon{font:inherit;background:transparent;border:1px solid var(--edge);color:var(--ink);
  border-radius:.3rem;width:2rem;height:2rem;cursor:pointer;line-height:1;flex:0 0 auto}
.icon:hover:not(:disabled){border-color:var(--ink)}
.icon:disabled{opacity:.3;cursor:default}

.fields{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}
.field{display:flex;flex-direction:column;gap:.3rem;margin:0;font-size:.9375rem}
.field label{font-weight:500}
.field select,.field input[type=text],.field input[type=number]{
  font:inherit;padding:.55rem .7rem;border:1px solid var(--edge);border-radius:.35rem;
  background:var(--paper);color:var(--ink)}
.field select,.field input[type=text]{min-width:15rem}
.field--num input{width:7rem}
.field--wide{flex:1 1 18rem}
.field--wide input{width:100%}
.field--check{flex-direction:row;align-items:center;gap:.5rem;align-self:end;padding-bottom:.55rem}
.field--check input{width:1.1rem;height:1.1rem;accent-color:var(--ink)}
.hint{color:var(--muted);font-size:.8125rem}
.field[hidden]{display:none}

.act{margin-top:1.5rem}
.go{font:inherit;font-weight:700;background:var(--ink);color:var(--sheet);border:none;
  border-radius:.4rem;padding:.8rem 1.5rem;cursor:pointer}
.go:hover:not(:disabled){opacity:.88}
/* Disabled is the state every tool page opens in, so it has to read as "not
   yet", not as "broken". A ghosted fill at 35% looked like a failure; an
   outline says the control exists and is waiting for a file. It keeps its
   size either way, so nothing shifts when it becomes available. */
.go:disabled{background:transparent;color:var(--muted);
  box-shadow:inset 0 0 0 2px var(--line);cursor:default}

.status{margin:1rem 0 0;min-height:1.5em;font-size:.9375rem;color:var(--muted)}
.status.err{color:var(--err);font-weight:500}
.status.done{color:var(--ink)}
.results{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.results a{font-weight:700;color:var(--mark-ink);background:var(--mark);padding:.5rem .85rem;
  border-radius:.35rem;text-decoration:none;font-size:.9375rem}
.results a.zip{background:var(--ink);color:var(--sheet)}

/* --------------------------------------------------------------- page grid */
.grid-wrap{margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1.25rem}
.grid-bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between}
.grid-count{font-size:.875rem;color:var(--muted)}
.grid-acts{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{font:inherit;font-size:.875rem;font-weight:500;background:var(--paper);color:var(--ink);
  border:1px solid var(--edge);border-radius:999px;padding:.35rem .8rem;cursor:pointer;white-space:nowrap}
.chip:hover{border-color:var(--ink)}
.grid-help{margin:.6rem 0 1rem;font-size:.875rem;color:var(--muted);max-width:60ch}

.pagegrid{list-style:none;margin:0;padding:0;display:grid;gap:.75rem;
  grid-template-columns:repeat(auto-fill,minmax(7rem,1fr))}
.pg{position:relative}
.pg__btn{
  display:block;width:100%;padding:0;font:inherit;cursor:pointer;
  background:var(--paper);border:1px solid var(--edge);border-radius:.3rem;overflow:hidden
}
.pg__thumb{position:relative;width:100%;aspect-ratio:1/1.414;background:var(--sheet);display:block}
.pg__thumb canvas{position:absolute;inset:0;width:100%;height:100%}
.pg__spin{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:.75rem}
.pg__n{display:block;padding:.3rem;font-size:.75rem;color:var(--muted);text-align:center;
  border-top:1px solid var(--line)}
.pg[data-selected="1"] .pg__btn{border-color:var(--sel);box-shadow:0 0 0 2px var(--sel)}
.pg[data-selected="1"] .pg__n{background:var(--sel);color:#fff;border-top-color:var(--sel)}
.pg[data-marked="1"] .pg__btn{opacity:.45}
.pg[data-marked="1"]::after{
  content:"×";position:absolute;top:.3rem;inset-inline-end:.3rem;width:1.5rem;height:1.5rem;
  display:grid;place-items:center;border-radius:50%;background:var(--err);color:#fff;
  font-weight:700;line-height:1;pointer-events:none}
.pg__move{position:absolute;bottom:1.9rem;inset-inline:.25rem;display:flex;justify-content:space-between;
  opacity:0;transition:opacity .12s}
.pg:hover .pg__move,.pg:focus-within .pg__move{opacity:1}
.pg__move .icon{width:1.7rem;height:1.7rem;background:var(--sheet);font-size:.8rem}
.pg[draggable="true"] .pg__btn{cursor:grab}
.pg.dragging{opacity:.4}
.pg.dropbefore .pg__btn{box-shadow:-3px 0 0 0 var(--sel)}

/* --------------------------------------------------------------- sections */
.steps,.prose,.faq,.more{margin:3rem 0}
.steps ol{margin:0;padding-inline-start:1.3rem;max-width:62ch}
.steps li{margin-bottom:.6rem}
.prose p{max-width:68ch;color:var(--muted);margin:0 0 1rem}
.prose--doc p{color:var(--ink)}
.prose--doc h2{margin:2rem 0 .7rem;font-size:1.25rem}

.cards{list-style:none;margin:0;padding:0;display:grid;gap:.75rem;
  grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}
.cards a{display:block;height:100%;background:var(--sheet);border:1px solid var(--line);
  border-radius:var(--r);padding:.9rem 1rem;text-decoration:none}
.cards a:hover{border-color:var(--ink)}
.cards strong{display:block}
.cards span{color:var(--muted);font-size:.9375rem}

.qa{border-bottom:1px solid var(--line)}
.qa>summary{list-style:none;cursor:pointer;padding:.9rem 0;padding-inline-end:1.75rem;position:relative;font-weight:500}
.qa>summary::-webkit-details-marker{display:none}
.qa>summary::after{content:"+";position:absolute;inset-inline-end:.25rem;top:.8rem;
  font-size:1.25rem;color:var(--muted);line-height:1}
.qa[open]>summary::after{content:"–"}
.qa>summary h3{display:inline;font-size:1.0625rem;font-weight:500}
.qa>p{margin:0 0 1.1rem;color:var(--muted);max-width:68ch}

/* -------------------------------------------------------------- ad slots
 * Space is reserved at a fixed height whether or not an ad is served, so a
 * filled slot never moves the page. Nothing here is above the tool.
 */
/* A block, deliberately not a grid. A centring grid sizes its single track to
   the widest item, and at the moment the slot is requested the ins element is
   still empty — so the track was the width of the word "Advertisement", about
   110px, and AdSense refused to serve anything that narrow. A block box is the
   full width of the column before any ad exists, which is what gets asked for. */
.ad{display:block;text-align:center;margin:2.5rem 0;contain:layout;overflow:hidden;
  background:color-mix(in srgb,var(--line) 22%,transparent);border-radius:var(--r)}
.ad[hidden]{display:none}
.ad--inline,.ad--mid{min-height:282px}
@media (min-width:48rem){ .ad--inline,.ad--mid{min-height:252px} }
.ad--rail{min-height:600px;width:300px}
.ad__label{display:block;font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);padding:.25rem}
.ad .adsbygoogle{display:block;width:100%}
/* A reserved slot with no ad in it is a labelled hole, and on a phone it is
   nearly half the screen. Space is still held while the request is in flight —
   that is what keeps the layout from jumping when an ad does arrive — but once
   AdSense says it has nothing for this slot, the whole box goes, label and all.
   Google sets data-ad-status="unfilled" itself; there is no script of ours. */
.ad:has(> .adsbygoogle[data-ad-status="unfilled"]){display:none}
.rail{display:none}
@media (min-width:75rem){ .rail{display:block}.rail .ad{position:sticky;top:1.5rem;margin-top:3.5rem} }

/* ------------------------------------------------------------------ footer */
.foot{border-top:1px solid var(--line);margin-top:2rem;padding:2rem 0 2.5rem;
  color:var(--muted);font-size:.875rem}
.foot__tools{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;margin-bottom:1.1rem}
.foot__tools a{text-decoration:none}
.foot__tools a:hover{text-decoration:underline}
.foot p{margin:0 0 .5rem;max-width:68ch}
.foot__meta a{font-weight:500}
/* Looks like the links beside it, because that is what it is. */
.foot__consent{font:inherit;font-weight:500;color:inherit;background:none;border:0;
  padding:0;cursor:pointer;text-decoration:underline}
.foot__consent[hidden]{display:none}

/* The floating consent card is hidden in app.js, not here. Its element sets
   every property to `initial !important` inline — display included — to seal
   itself off from the page's styles, and an inline !important beats any
   stylesheet, so no rule written here could ever apply to it. */

/* ------------------------------------------------- language offer bar
 * Pinned to the bottom and added after load, so it never moves the page.
 */
.langbar{
  position:fixed;z-index:30;inset-inline:1rem;bottom:1rem;margin-inline:auto;
  max-width:34rem;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;
  padding:.75rem .9rem;background:var(--sheet);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--r);
  box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:.9375rem
}
.langbar p{margin:0;flex:1 1 14rem;min-width:0}
.langbar__go{
  font-weight:700;background:var(--mark);color:var(--mark-ink);
  padding:.4rem .8rem;border-radius:.35rem;text-decoration:none;white-space:nowrap
}
.langbar__no{
  font:inherit;background:transparent;color:var(--muted);border:1px solid var(--edge);
  border-radius:.35rem;padding:.4rem .7rem;cursor:pointer;white-space:nowrap
}
.langbar__no:hover{color:var(--ink);border-color:var(--ink)}
@media (max-width:30rem){ .langbar{inset-inline:.5rem;bottom:.5rem} }
@media print{ .langbar{display:none} }

/* Right-to-left. The layout is built from logical properties, so this only
   has to flip the handful of glyphs that encode a direction. */
[dir="rtl"] .crumbs,
[dir="rtl"] .foot__tools{direction:rtl}
[dir="rtl"] .pg__move{flex-direction:row-reverse}

@media (prefers-reduced-motion:reduce){ *{transition:none!important;animation:none!important} }

/* --- signature pad and placement ----------------------------------------
 * The pad is a real canvas drawn on with a pointer; the handle is a button so
 * it can be tabbed to and nudged with the arrow keys, not only dragged.
 */
.signwrap{margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1.25rem;
  display:grid;gap:1.75rem}
.sig__h{font-size:1rem;margin:0 0 .6rem}
/* The pad stands for paper, so it stays light even in the dark theme — the
 * ink drawn on it has to end up legible on a white page.
 *
 * The signature line and the cross are a CSS background, not canvas ink. The
 * canvas bitmap holds only what the visitor draws, so the guide can never end
 * up in the PDF — which is also why it is safe to make it this visible.
 *
 * In the dark theme the pad is obviously a place to write, because it is a
 * white panel on a dark page. In the light theme it was #FCFCFD on #FFFFFF:
 * a contrast ratio of 1.03, held together only by its border. The line is
 * what makes it read as somewhere to sign in both. */
.sig__pad{display:block;width:100%;max-width:40rem;aspect-ratio:16/5;
  border:1px solid var(--edge);border-radius:var(--r);
  background-color:#FCFCFD;
  background-image:linear-gradient(#C3C9D2,#C3C9D2);
  background-size:86% 1px;
  background-position:50% 76%;
  background-repeat:no-repeat;
  box-shadow:inset 0 1px 4px rgba(16,20,24,.08);
  touch-action:none;cursor:crosshair}
.sig__pad:focus-visible{outline:3px solid var(--mark);outline-offset:2px}
.sig__bar{display:flex;flex-wrap:wrap;gap:.5rem;margin:.7rem 0 0;align-items:center}
.chip--file{position:relative;overflow:hidden;display:inline-flex;align-items:center}
.chip--file input{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
.chip--file:focus-within{outline:3px solid var(--mark);outline-offset:2px}
.sig__help{margin:.6rem 0 0;font-size:.875rem;color:var(--muted);max-width:60ch}

.place{position:relative;display:inline-block;max-width:100%;line-height:0;
  border:1px solid var(--line);border-radius:var(--r);background:var(--sheet)}
.place canvas{display:block;max-width:100%;height:auto;border-radius:var(--r)}
.handle{position:absolute;margin:0;padding:0;background:transparent;cursor:grab;
  border:1px dashed var(--edge);border-radius:.2rem;touch-action:none}
.handle:hover,.handle:focus-visible{border-color:var(--ink);border-style:solid}
.handle:focus-visible{outline:3px solid var(--mark);outline-offset:2px}
.handle img{display:block;width:100%;height:100%;pointer-events:none}

/* A slider with its number kept beside it. */
.field--range{flex:0 1 16rem}
.range{display:flex;align-items:center;gap:.6rem}
.range input[type=range]{flex:1 1 auto;min-width:7rem;accent-color:var(--ink)}
.range output{min-width:2.5rem;text-align:end;font-variant-numeric:tabular-nums;
  font-weight:600}

/* The watermark as it will actually land, on the visitor's own first page. */
.wmstage{margin-top:1.25rem}
.wmstage canvas{display:block;max-width:100%;height:auto;border-radius:var(--r)}

/* Six places on a page, shown as a page. A dropdown makes you read six
 * phrases and picture each one; this is the same choice with the picturing
 * already done. They are radio inputs underneath, so the keyboard and
 * assistive software get the ordinary control and the ordinary labels. */
.field--spots{border:0;margin:0;padding:0;min-width:0}
.field--spots legend{padding:0;font-weight:500;font-size:.9375rem;margin-bottom:.3rem}
.spots{position:relative;display:grid;grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(2,1fr);gap:.15rem;width:7.5rem;aspect-ratio:1/1.414;
  padding:.3rem;border:1px solid var(--line);border-radius:var(--r);
  background:var(--sheet)}
.spots__s{display:flex;align-items:center;justify-content:center;cursor:pointer;
  border-radius:.25rem}
.spots__s--tl,.spots__s--tc,.spots__s--tr{align-items:flex-start}
.spots__s--bl,.spots__s--bc,.spots__s--br{align-items:flex-end}
.spots__s input{position:absolute;opacity:0;width:0;height:0}
.spots__d{display:block;width:1.15rem;height:.45rem;border-radius:.1rem;
  background:color-mix(in srgb,var(--ink) 16%,transparent)}
.spots__s:hover .spots__d{background:color-mix(in srgb,var(--ink) 34%,transparent)}
.spots__s input:checked+.spots__d{background:var(--ink)}
.spots__s input:focus-visible+.spots__d{outline:3px solid var(--mark);outline-offset:3px}

/* Cropping by eye. The frame is the control and the millimetre boxes follow
 * it, so the two are never out of step. Edges are real buttons: a crop you can
 * only set with a mouse is a crop some people cannot set at all.
 *
 * Everything here sits on top of a rendered page, and a rendered page is
 * always a white sheet whatever the site's theme is doing. So these colours
 * are fixed rather than tokens — --ink flips to near-white in dark mode, which
 * once made the mask invisible against the paper it was meant to dim. */
.crop{touch-action:none;cursor:crosshair}
.crop__shade{position:absolute;inset:0;pointer-events:none;border-radius:var(--r);
  background:rgba(12,18,24,.55);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,
    var(--cl) var(--ct),var(--cl) var(--cb),var(--cr) var(--cb),var(--cr) var(--ct),var(--cl) var(--ct))}
.crop__frame{position:absolute;left:var(--cl);top:var(--ct);
  width:calc(var(--cr) - var(--cl));height:calc(var(--cb) - var(--ct));
  border:1px solid #fff;box-shadow:0 0 0 1px rgba(12,18,24,.65)}
.crop__g{position:absolute;margin:0;padding:0;border:0;background:transparent;
  touch-action:none;min-width:0;min-height:0}
.crop__g--top,.crop__g--bottom{left:8%;right:8%;height:20px;cursor:ns-resize}
.crop__g--top{top:-10px}
.crop__g--bottom{bottom:-10px}
.crop__g--left,.crop__g--right{top:8%;bottom:8%;width:20px;cursor:ew-resize}
.crop__g--left{left:-10px}
.crop__g--right{right:-10px}
.crop__g:focus-visible{outline:3px solid var(--mark);outline-offset:0;border-radius:.2rem}
/* The corners only show where the frame is; the edge bands beside them, which
 * reach to within 8% of each end, are what the pointer actually grabs. */
.crop__c{position:absolute;width:14px;height:14px;border:3px solid #fff;
  filter:drop-shadow(0 0 1px rgba(12,18,24,.8));pointer-events:none}
.crop__c--tl{left:-3px;top:-3px;border-right:0;border-bottom:0}
.crop__c--tr{right:-3px;top:-3px;border-left:0;border-bottom:0}
.crop__c--br{right:-3px;bottom:-3px;border-left:0;border-top:0}
.crop__c--bl{left:-3px;bottom:-3px;border-right:0;border-top:0}
.cropwrap{margin-top:1.5rem}

/* A standing note about the file itself, as opposed to the run's status. */
.note{margin:.9rem 0 0;padding:.65rem .8rem;font-size:.875rem;color:var(--ink);
  background:color-mix(in srgb,var(--mark) 14%,transparent);
  border:1px solid var(--edge);border-radius:var(--r);max-width:62ch}

/* What a machine found wrong in a resume. A list, not a score: each line is
 * something measurable in the file, and an invented number would be worse
 * than saying nothing. */
.findings{flex-basis:100%;margin:0 0 .25rem;padding:.7rem .9rem .7rem 2rem;
  list-style:disc;font-size:.9rem;max-width:62ch;
  background:color-mix(in srgb,var(--mark) 14%,transparent);
  border:1px solid var(--edge);border-radius:var(--r)}
.findings li+li{margin-top:.45rem}

/* The cross that printed forms put at the start of the signature line. It
 * sits beside the canvas rather than on it, for the same reason the line
 * does: nothing but the visitor's own ink belongs in the bitmap. */
.sig__sheet{position:relative;max-width:40rem}
.sig__x{position:absolute;left:4.5%;top:76%;transform:translateY(-100%);
  color:#9AA2AD;font-size:1.25rem;line-height:1;pointer-events:none;user-select:none}

/* --- tool icons ---------------------------------------------------------- */
/* The sprite itself never renders; only the <use> references do. */
.sprite{display:none}
/* Quiet at rest and inked on hover: the glyph is there to be recognised at a
   glance, which wants size and a distinct shape rather than contrast. Colour
   comes from tokens, so both themes are handled without an opacity trick. */
.ico{width:26px;height:26px;display:block;margin-bottom:.6rem;
     stroke:currentColor;fill:none;stroke-width:1.6;
     stroke-linecap:round;stroke-linejoin:round;color:var(--muted);
     transition:color .12s ease}
.cards a:hover .ico,.cards a:focus-visible .ico{color:var(--ink)}
@media (prefers-reduced-motion:reduce){.ico{transition:none}}

/* --- jump to a group ----------------------------------------------------- */
/* Ordinary links to the headings below: no script, nothing hidden, and the
   browser does the scrolling. */
.jump{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.25rem}
.jump a{display:inline-block;padding:.4rem .85rem;border:1px solid var(--line);
  border-radius:2rem;color:var(--ink);text-decoration:none;font-size:.9375rem;
  background:var(--sheet);transition:border-color .12s ease,background .12s ease}
.jump a:hover{border-color:var(--ink)}
.jump a:focus-visible{outline:3px solid var(--mark);outline-offset:2px}
/* 38px is a comfortable click and a mean tap. Grow them for fingers only, so
   a mouse keeps the tighter row. */
@media (pointer:coarse){
  .jump a{min-height:44px;display:inline-flex;align-items:center}
}

/* A little air above the heading you land on, so it is not flush with the
   top edge of the window. The header does not stick, so this is breathing
   room rather than clearance. */
.more__g{scroll-margin-top:1.5rem}
/* A moment's confirmation of where you landed, drawn with the brand mark. */
.more__g:target{box-shadow:-.55rem 0 0 var(--mark)}
@media (prefers-reduced-motion:reduce){.jump a{transition:none}}
