/* DEVELOPMENT EXPERIMENT ONLY. Loaded exclusively by /design-preview/borderless/ pages. */
.borderless-experiment [data-public-header] .wordmark,
.borderless-experiment [data-public-header] nav,
.borderless-experiment [data-public-footer] p {
  font-size: var(--size-ui); font-weight: var(--weight-regular); line-height: var(--line-ui);
}
.borderless-experiment.core-experience > main { display: flex; flex-direction: column; }
.borderless-experiment .interactive-hero {
  flex: 1; display: flex; flex-direction: column; padding: 0;
  --workspace-inset: clamp(20px, 5vw, 64px);
}
.borderless-experiment .core-workspace { flex: 1; border: 0; margin: 0; background: transparent; box-shadow: none; }
.borderless-experiment .core-statement { padding-top: calc(40px + 5vh); }
.borderless-experiment .core-workspace .flow-content { padding-bottom: calc(40px + 2vh); }
.borderless-experiment .drop-target { padding-bottom: calc(40px + 2vh); cursor: default; }
.borderless-experiment .drop-target:hover, .borderless-experiment .drop-target:active { background: transparent; }
.borderless-experiment .drop-target > * { margin: 0; }
.borderless-experiment .home-actions { display: flex; flex-wrap: wrap; gap: 0 32px; }
.borderless-experiment .home-actions .cta { margin: 0; }
@media (min-width: 701px) {
  .borderless-experiment #work-area[data-step="link"] { min-height: var(--core-workspace-height, 620px); }
}
@media (max-width: 700px) {
  .borderless-experiment .core-statement { padding-top: 50px; }
  .borderless-experiment .core-workspace .flow-content, .borderless-experiment .drop-target { padding-bottom: 40px; }
}

/* Moving-word experiment: only white, including during file drags. */
.borderless-experiment .core-workspace[data-step="drop"],
.borderless-experiment .core-workspace[data-step="drop"].drag-over { background: #fff; }
.borderless-experiment .core-workspace[data-step="drop"].drag-over > .core-statement,
.borderless-experiment .core-workspace[data-step="drop"].drag-over > #workspace-content { opacity: 1; }
/* The slot always occupies the original word's space; only the one visible word moves. */
.borderless-experiment .here-slot, .borderless-experiment .moving-here { display: inline-block; }
.borderless-experiment .moving-here { position: relative; z-index: 1; pointer-events: none; }
@media (hover: none), (pointer: coarse), (max-width: 700px), (prefers-reduced-motion: reduce) {
  .borderless-experiment .moving-here { transform: none !important; }
}

/* One receiving surface including Header, main and Footer; keep normal-flow geometry. */
.borderless-experiment #drop-surface { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.borderless-experiment #drop-surface > main { flex: 1; display: flex; flex-direction: column; width: 100%; }

/* One non-interactive canvas under the whole State 01 surface, including Header and Footer. */
.borderless-experiment #drop-surface { position: relative; isolation: isolate; background: #fff; }
.borderless-experiment .vector-field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity 320ms ease;
}
.borderless-experiment #drop-surface:has(#work-area[data-step="drop"]) .core-workspace,
.borderless-experiment #drop-surface:has(#work-area[data-step="drop"]) [data-public-footer] { background: transparent; }
.borderless-experiment #drop-surface:not(:has(#work-area[data-step="drop"])) .vector-field { visibility: hidden; }
@media (hover: none), (pointer: coarse), (max-width: 700px), (prefers-reduced-motion: reduce) {
  .borderless-experiment .vector-field { display: none; transition: none; }
}

/* Transparent chrome lets the same field continue through every canvas region. */
.borderless-experiment #drop-surface > [data-public-header],
.borderless-experiment #drop-surface > [data-public-footer] { background: transparent; }

/* State 01 has only the primary invitation; no statement space is retained. */
.borderless-experiment #work-area[data-step="drop"] > .core-statement { display: none; }

/* Selectors share the approved palette; text actions use desktop-system.css.
   Never paint a pseudo-element across an entire link/control hit area. */
.borderless-experiment { --link-highlight: #82ffc2; --link-highlight-active: #82ffc2; }

/* Home composition: centered within the available main area, not a fixed overlay. */
.borderless-experiment .drop-target > #drop-message + .small { margin-top: 48px; }
@media (min-width: 701px) {
  .borderless-experiment #work-area[data-step="drop"] { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .borderless-experiment #work-area[data-step="drop"] > #workspace-content { width: 100%; }
}
.borderless-experiment #drop-surface > [data-public-footer] { justify-content: space-between; align-items: flex-end; }
.borderless-experiment .on-duty { padding: 0; margin: 0; flex: 1 1 100%; min-width: 0; }
.borderless-experiment .on-duty-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 16px; }
.borderless-experiment .on-duty-judge { display: flex; align-items: center; gap: 16px; min-width: 0; }
.borderless-experiment .on-duty-judge > div:last-child { min-width: 0; }
.borderless-experiment #drop-surface > [data-public-footer] > p { margin-left: auto; }
.borderless-experiment .on-duty-portrait { width: 120px; height: 120px; flex: 0 0 120px; background: #000; border-radius: 24px; }
.borderless-experiment .on-duty-portrait:has(img) { background: transparent; }
.borderless-experiment .on-duty-judge p + p { margin-top: 4px; }
@media (max-width: 700px) {
  .borderless-experiment #drop-surface > [data-public-footer] { align-items: flex-start; gap: 24px; }
  .borderless-experiment .on-duty-roster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.borderless-experiment .on-duty-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 24px; }

/* Portraits share their original stack origin; only their positions are animated. */
.borderless-experiment .on-duty-roster { display: block; position: relative; transition: height 300ms ease; }
.borderless-experiment .on-duty-judge { position: absolute; left: 0; top: 0; display: block; pointer-events: none; transition: transform 300ms cubic-bezier(.25,.75,.25,1); }
.borderless-experiment .on-duty-info { position: absolute; transition: opacity 200ms ease, left 300ms ease, top 300ms ease; }
.borderless-experiment .judge-stack-control { position: absolute; inset: 0 auto 0 0; z-index: 20; padding: 0; border: 0; background: transparent; color: #000; font: inherit; cursor: pointer; text-align: left; }
.borderless-experiment .judge-stack-more { background: var(--link-highlight); transition: background-color 120ms ease; position: absolute; white-space: nowrap; font-size: var(--size-ui); line-height: var(--line-ui); text-decoration: none; }
.borderless-experiment .judge-stack-control:focus-visible { outline: none; }
.borderless-experiment .judge-stack-control:focus-visible .judge-stack-more { background: var(--link-highlight-active); outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .borderless-experiment .judge-stack-control:hover .judge-stack-more { background: var(--link-highlight-active); }
}
@media (prefers-reduced-motion: reduce) {
  .borderless-experiment .on-duty-roster, .borderless-experiment .on-duty-judge, .borderless-experiment .on-duty-info, .borderless-experiment .judge-stack-more { transition: none; }
}

/* One outer frame: Header typography and copyright share both axis tokens. */
.borderless-experiment {
  --canvas-gutter: clamp(20px, 5vw, 64px);
  --canvas-header-height: 64px;
  --canvas-nav-hit-height: 44px;
  --canvas-chrome-line-height: calc(var(--size-ui) * var(--line-ui));
  --canvas-type-edge: calc((var(--canvas-header-height) - var(--canvas-chrome-line-height)) / 2);
}
.borderless-experiment [data-public-header] {
  height: var(--canvas-header-height);
  min-height: var(--canvas-header-height);
  padding-inline: var(--canvas-gutter);
  padding-block: calc((var(--canvas-header-height) - var(--canvas-nav-hit-height)) / 2);
}
.borderless-experiment [data-public-header] nav a { min-height: var(--canvas-nav-hit-height); }
.borderless-experiment [data-public-footer] {
  padding-inline: var(--canvas-gutter);
  padding-bottom: var(--canvas-type-edge);
}
.borderless-experiment [data-public-footer] > p { margin-inline-start: auto; }
@media (max-width: 700px) {
  .borderless-experiment { --canvas-type-edge: var(--canvas-gutter); }
  .borderless-experiment [data-public-header] { height: auto; padding-block: var(--canvas-type-edge); }
  .borderless-experiment [data-public-header] > .wordmark { min-height: var(--canvas-chrome-line-height); }
  .borderless-experiment [data-public-header] nav { align-self: flex-end; justify-content: flex-end; max-width: 100%; }
}
