/* GDOT brand colors (from the GDOT palette supplied for this project). */
:root {
  --gdot-primary: #045594;   /* GDOT Blue */
  --gdot-secondary: #13784B; /* GDOT Green */
  --gdot-text: #4D4D4F;      /* Gray (dark) */
  --gdot-bg: #ffffff;
  --gdot-accent: #FFCC33;    /* GDOT Yellow */
  --gdot-error: #CA006C;     /* GDOT Pink */
  --gdot-border: #9F9FA2;    /* Gray (mid): borders only, too light for text */
  --gdot-surface: #E2E3E4;   /* Gray (light) */
  /* System fonts only. Josefin Sans shows if installed; no web fonts are loaded. */
  --font-heading: "Josefin Sans", "ITC Avant Garde Gothic", "Century Gothic", sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 1rem;
  max-width: 48rem;
  background: var(--gdot-bg);
  color: var(--gdot-text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2 { font-family: var(--font-heading); color: var(--gdot-primary); margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }

header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--gdot-text); }

section { margin-bottom: 1.5rem; }

.notice { padding: .75rem 1rem; margin-bottom: 1.5rem; border: 1px solid var(--gdot-border); border-left: .5rem solid var(--gdot-accent); }
.notice p { margin: .5rem 0; }
.notice p + h2 { margin-top: 1rem; }

#drop-zone {
  display: block;
  padding: 2rem 1rem;
  border: 2px dashed var(--gdot-primary);
  border-radius: .5rem;
  text-align: center;
  cursor: pointer;
}
#drop-zone:hover, #drop-zone.dragover { background: var(--gdot-surface); }
#drop-zone:focus-within { outline: 3px solid var(--gdot-primary); outline-offset: 2px; }
.drop-title { display: block; font-weight: bold; color: var(--gdot-primary); }
.drop-hint { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.results-head { display: flex; align-items: center; justify-content: space-between; }

button {
  padding: .5rem 1rem;
  border: 0;
  border-radius: .25rem;
  background: var(--gdot-primary);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
button:hover { filter: brightness(1.15); }
button:focus-visible { outline: 3px solid var(--gdot-text); outline-offset: 2px; }

#results, #deliverables { list-style: none; margin: 0; padding: 0; }
#results li, #deliverables li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--gdot-surface);
}
.name { flex: 1 1 14rem; overflow-wrap: anywhere; }
.status { font-weight: bold; }
.status.ok { color: var(--gdot-secondary); }
.status.bad { color: var(--gdot-error); }
.status.pending { font-weight: normal; }
.hint { flex-basis: 100%; font-size: .875rem; }
progress { width: 10rem; accent-color: var(--gdot-primary); }

/* Results: file name and result in two fixed columns, so results always line up. */
#results li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
#results .hint { grid-column: 2; }
@media (max-width: 32rem) {
  #results li { grid-template-columns: minmax(0, 1fr); }
  #results .hint { grid-column: 1; }
}

footer { border-top: 1px solid var(--gdot-surface); padding-top: .5rem; font-size: .875rem; }
