/* THE ENTRY COMPONENT — the look of the first block of every page a
 * file can be dropped on (owner 23.09.2026: "every content page is an
 * entry page"; C.58 step 3 lifted it out of the start page's hero).
 *
 * WHAT THIS FILE HOLDS. The block's rhythm — title, lead, the theatre
 * panel, the promise line — and the theatre panel itself: the job page's
 * dark stage around the drop zone, so the start page and the job page
 * read as one product. The drop zone's own rules (`.dropzone`, the held
 * list, the picker's two words, the ready state) stay in `abbundo.css`,
 * because the zone is a site-wide control the stamp editor's logo picker
 * uses as well; what stands here is only how the zone looks ON THE
 * STAGE, where the paper-ground rules would light a pale box on a dark
 * panel.
 *
 * WHAT THIS FILE MAY NOT CONTAIN (`kit-tokens`): no length, no duration,
 * no colour. The stage's colours were six literals declared on the
 * start page's own panel and six more on the job page's; they are the
 * `--stage-*` tokens of the token set now, one declaration, both
 * schemes. The media queries below carry no number: the touch/pointer
 * swap and the dark scheme are conditions, not measures. */

.kit-entry { display: block; }

/* The block's rhythm: title, then the lead, then the stage. The lead
   ends the title's group and the stage begins the form's, so the two
   gaps are the rhythm tokens and nothing of this file's own. */
.kit-entry-title {
  margin: 0 0 var(--s4);
  /* the headline never breaks inside a word, never hyphenates one, and
     steps its size down with its column instead (--title-fit) */
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  font-size: min(var(--h1-size), var(--title-fit));
}

.nobreak { white-space: nowrap; }

.kit-entry-lead {
  margin: 0 0 var(--s4);
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  max-width: var(--measure);
}

/* THE THEATRE PANEL: the job page's stage colours around the drop area
   and the held file list. */
.kit-entry-stage {
  background: var(--stage-bg);
  border: var(--hairline) solid var(--stage-line);
  border-radius: var(--radius);
  padding: var(--s3);
  color: var(--stage-soft);
}

.kit-entry-stage .dropzone {
  background: transparent;
  border-color: var(--stage-line-strong);
  color: var(--stage-soft);
}

.kit-entry-stage .dropzone:hover,
.kit-entry-stage .dropzone:focus-within,
.kit-entry-stage .dropzone.dragging {
  border-color: var(--stage-hover-line);
  background: var(--stage-hover-bg);
}

.kit-entry-stage .dropzone strong { color: var(--stage-ink); }
.kit-entry-stage .dropzone .chosen { color: var(--stage-faint); }

/* C.226 (home-9 point 3): before a file the picker is the box's one
   filled button; once files are held (`.ready`) it wears the stage's
   outlined look and the Draw mirror beside it is the strong one - the
   swap is the stylesheet's, like the picker's two words */
.kit-entry-stage .dropzone .button-ghost,
.kit-entry-stage .dropzone.ready .dropzone-choose,
.kit-entry-stage .kit-entry-job .kit-button {
  color: var(--stage-ink);
  border-color: var(--stage-line-strong);
  background: var(--stage-button-bg);
}

/* THE JOB LINE (C.118): the reader's job and what new files do to it,
   above the zone, in the stage's own ink; its link is the kit's way-on
   button, dressed for the stage exactly as the picker is. */
.kit-entry-job {
  margin: 0 0 var(--s3);
  color: var(--stage-ink);
  font-size: var(--fs-small);
}

.kit-entry-job .kit-button { margin-left: var(--s2); }

.kit-entry-stage .dropzone-files { color: var(--stage-soft); }

.kit-entry-stage .dropzone-file {
  background: var(--stage-file-bg);
  border-color: var(--stage-line-strong);
}

.kit-entry-stage .dropzone-file-remove {
  color: var(--stage-faint);
  border-color: var(--stage-line-strong);
}

.kit-entry-stage .dropzone-note { color: var(--stage-faint); }

/* C.226: the zone's formats line and its link to the upload help, in the
   stage's own inks */
.kit-entry-stage .dropzone-formats { color: var(--stage-soft); }
.kit-entry-stage .dropzone-formats a { color: var(--stage-ink); }

/* THE READY STATE ON A DARK PANEL. The site's base rule paints a loaded
   zone with the finished-state green as a FILL, right on the paper
   ground it was written for and wrong here: on the dark stage it lit a
   pale box, and the picker's ghost button — light text on a light fill
   — went with it. The same state, said the way a dark panel says it:
   the green on the border and on the words, the ground left alone. */
.kit-entry-stage .dropzone.ready {
  background: var(--stage-ready-bg);
  border-color: var(--stage-ready-line);
}

.kit-entry-stage .dropzone.ready .dropzone-ready-label,
.kit-entry-stage .dropzone.ready .chosen { color: var(--stage-ready-ink); }

.kit-entry-stage .dropzone.ready .button-ghost,
.kit-entry-stage .dropzone.ready .dropzone-choose {
  color: var(--stage-ready-button-ink);
  border-color: var(--stage-ready-line);
}

/* THE UPLOAD UNDER WAY ON A DARK PANEL (C.231): the accent on the
   border, the stage's own inks on the words and the track; the fill is
   the bar's own. */
.kit-entry-stage .dropzone.uploading {
  background: transparent;
  border-color: var(--stage-hover-line);
}
.kit-entry-stage .dropzone-upload-line,
.kit-entry-stage .dropzone-upload-reason { color: var(--stage-soft); }
.kit-entry-stage .dropzone-upload-track { background: var(--stage-line-strong); }

/* THE PROMISE LINE (owner 23.09.2026, 12:30 and 12:35): what comes at
   once, what it does not need, what the paid event is — under the zone,
   inside the stage, in the stage's own soft ink. One line; it is not a
   help line for a control but the offer the zone makes. */
.kit-entry-promise {
  margin: var(--s3) 0 0;
  text-align: center;
  color: var(--stage-soft);
  font-size: var(--fs-small);
}

/* THE CARD MODE: the same promise as a closing card on a content page,
   one button, no zone, the page's own panel colours. */
.kit-entry-card {
  padding: var(--s5);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.kit-entry-card .kit-entry-promise {
  color: var(--ink-soft);
  margin: 0 0 var(--s4);
}

.kit-entry-action { margin: 0; }

/* The card's one further way on (C.58k), a step under the button. */
.kit-entry-card .kit-entry-link { margin: var(--s3) 0 0; }

/* THE DROP BAR (C.119, owner ruling 29.09.2026). Pinned under the site
   header once the zone is out of sight: the zone's drop line and its
   picker on one slim line, across the whole width. It is FIXED, so it
   takes no room in the flow and its coming and going moves nothing;
   the room it covers at the top of the screen is the scroll padding's
   `--entry-bar-h` (abbundo.css), which kit/entrybar.js measures once
   per layout. `top` is the header's own bottom edge, set by the same
   script (nought where the header scrolls away, as on a phone). Below
   the header's layer (an open menu of the header stands over the bar)
   and below the start page's action bar, which keeps the screen's foot.
   Invisible and out of reach until it is shown: `visibility` takes it
   out of the tab order and out of the pointer's way, so a hidden bar can
   neither cover nor catch anything. */
.kit-entry-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: var(--s1) var(--s3);
  /* the drop zone's own language in slim form (owner, 29.10.2026): its
     dashed edge in the zone's border token and its sunken tone */
  background: var(--panel-sunken);
  border-bottom: calc(var(--hairline) * 2) dashed var(--line-strong);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--kit-status-fade);
}

.kit-entry-bar[hidden] { display: none; }

/* A reader who asked for less movement gets the bar at once. */
@media (prefers-reduced-motion: reduce) {
  .kit-entry-bar { transition: none; }
}

.kit-entry-bar.is-shown {
  visibility: visible;
  opacity: 1;
}

/* A file is being dragged over the page: the bar says it will take it. */
.kit-entry-bar.is-dragging {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.kit-entry-bar-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
}

.kit-entry-bar-hint { color: var(--ink); }

.kit-entry-bar-status {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.kit-entry-bar.is-ready .kit-entry-bar-status { color: var(--good); }

/* The entry's own notices (the guest's job line, C.118), copied into the
   bar as they stand: a row of their own under the bar's one line, in the
   page's ink rather than the stage's, since the bar stands on the page's
   panel and not on the dark stage. */
.kit-entry-bar { flex-wrap: wrap; }

.kit-entry-bar-extra {
  flex: 1 1 100%;
  order: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
}

.kit-entry-bar .kit-entry-job {
  margin: 0;
  color: var(--ink);
}

.kit-entry-bar-extra[hidden],
.kit-entry-bar-status[hidden],
.kit-entry-bar-hint[hidden],
.kit-entry-bar .kit-button[hidden] { display: none; }

.kit-entry-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

/* A PHONE HAS NO DRAG: the drop line gives way and the picker's button
   is the bar, one tap target across the width - the same touch swap the
   zone's own hint makes (a condition, not a measure). */
@media (hover: none) and (pointer: coarse) {
  .kit-entry-bar-hint { display: none; }
  .kit-entry-bar-actions { flex: 1 1 auto; }
  .kit-entry-bar-actions .kit-button { flex: 1 1 auto; }
}
