/* Plain theme: tidy, unstyled reference. No external fonts or images. */
:root {
  --text: #1d1d1f;
  --muted: #5b5b61;
  --bg: #ffffff;
  --line: #d6d6db;
  --accent: #1a56c4;
  --error: #b3261e;
  --note-bg: #f4f5f7;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececef;
    --muted: #a8a8b0;
    --bg: #17171a;
    --line: #3a3a40;
    --accent: #8cb4ff;
    --error: #ff8a80;
    --note-bg: #222227;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-header, .site-main, .site-footer {
  max-width: 40rem;
  margin: 0 auto;
}

.site-header { padding: 1.5rem 0 0.5rem; border-bottom: 1px solid var(--line); }
.site-name { margin: 0; font-weight: 700; font-size: 1.1rem; }
.site-name a { color: inherit; text-decoration: none; }
.site-tagline { margin: 0.25rem 0 0; color: var(--muted); }
.site-main { padding: 1.5rem 0 2rem; }
.site-footer { padding: 1rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; }

a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
h1:focus { outline: none; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }

.file-name, .file-label, .link-box { overflow-wrap: anywhere; }

.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.optional, .help { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.help { margin: 0.25rem 0 0; }

input[type="text"], input[type="file"], select {
  font: inherit;
  max-width: 100%;
}
input[type="text"], select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 6px;
  padding: 1rem;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}
button[type="button"] { background: transparent; color: var(--accent); margin-top: 0.4rem; }
.download-form button { font-size: 1.15rem; padding: 0.75rem 1.75rem; }

.error { color: var(--error); font-weight: 600; }
.notice, .no-js, .scan-note { background: var(--note-bg); padding: 0.75rem 1rem; border-radius: 4px; }
.scan-note { color: var(--muted); font-size: 0.9rem; }

.file-details { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; }
.file-details dt { font-weight: 600; }
.file-details dd { margin: 0; }

.report { margin-top: 2rem; color: var(--muted); }
.report summary { cursor: pointer; }
.report form { margin-top: 0.75rem; }

.copy-status { margin-left: 0.5rem; color: var(--muted); }

/* Scanning indicator: a bar that slides. Off when the visitor asks for less motion. */
.scan-indicator { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.scan-indicator span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--accent);
  animation: scan-slide 1.4s ease-in-out infinite alternate;
}
@keyframes scan-slide {
  from { transform: translateX(0); }
  to { transform: translateX(233%); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-indicator span { animation: none; width: 100%; opacity: 0.5; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Upload honeypot (@core/_upload_guard.html.twig). Moved off-screen rather than display:none,
   because simple bots skip fields that are not displayed. People never see or reach it. */
.form-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
