/* webdropoff front end. Lodestone palette from the brand guidelines; system fonts because the brand
   fonts are not web licensed and the content security policy only allows fonts from this site. */
:root {
  --ink: #145A60;
  --midnight: #002F45;
  --teal: #34ADA3;
  --teal-light: #D5F0ED;
  --teal-line: #62D0C7;
  --gold: #F4B22D;
  --yellow: #FADC58;
  --bone: #F4F2ED;
  --white: #FFFFFF;
  --text: #1C1C1E;
  --text-2: #433E40;
  --text-3: #585455;
  --line: #EAEAEA;
  --line-2: #979495;
  --red: #9B0000;
  --red-bg: #FBDADA;
  --red-line: #DA0000;
  --amber-bg: #FFF1BF;
  --amber-text: #4A3600;
  --orange-bg: #FDE3BE;
  --orange-text: #5A3200;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bone); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); }
a:hover { color: var(--midnight); }
:focus-visible { outline: 3px solid var(--teal-line); outline-offset: 2px; }
h1, h2, h3 { color: var(--midnight); line-height: 1.2; }
h1 { font-size: 2.25rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar: white, so the official Dark Ink logo can be used exactly as supplied */
.topbar { background: var(--white); border-bottom: 4px solid var(--ink); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-sub { color: var(--ink); font-size: 0.95rem; font-weight: 600; padding-left: 14px; border-left: 2px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--midnight); border-bottom-color: var(--teal-line); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--midnight); border-bottom-color: var(--gold); }
.nav .who { color: var(--text-3); }
@media (max-width: 520px) { .brand-sub { display: none; } }

/* Page */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; }
.page:focus { outline: none; }
.page-narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 1.05rem; }
.back { display: inline-block; margin-bottom: 12px; }
.foot { text-align: center; color: var(--text-3); font-size: 0.85rem; padding: 16px; }
.loading { color: var(--text-3); }

/* Cards and layout */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main-col { flex: 999 1 560px; min-width: 0; }
.split > .side-col { flex: 1 1 320px; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-light); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.btn-cta { background: var(--gold); border-color: var(--gold); color: var(--midnight); font-weight: 800; }
.btn-cta:hover { background: var(--yellow); border-color: var(--yellow); color: var(--midnight); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-danger.solid { background: var(--red); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--text-3); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkish[disabled] { color: var(--text-3); cursor: not-allowed; }

/* Forms */
label { display: block; font-weight: 700; margin: 16px 0 6px; }
label.check { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; margin: 0; cursor: pointer; }
label.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
input[type=email], input[type=text], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--white); border: 2px solid var(--line-2); border-radius: 10px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--teal-line); border-color: var(--ink); }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row > div { flex: 1 1 200px; }
.hint { color: var(--text-3); font-size: 0.9rem; margin: 6px 0 0; }
.code-input { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; }

/* Notices */
.notice { border-radius: 10px; padding: 12px 16px; margin: 16px 0 0; font-size: 0.95rem; }
.notice.info { background: var(--teal-light); color: #0F4A4F; }
.notice.warn { background: var(--orange-bg); color: var(--orange-text); }
.notice.error { background: var(--red-bg); color: #7A0000; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.attest { border: 2px solid var(--ink); }

/* Status chips */
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; border: 1px solid transparent; white-space: nowrap; }
.chip-grey { background: #EAEAEA; color: var(--text-2); border-color: #C0BFBF; }
.chip-amber { background: var(--amber-bg); color: var(--amber-text); border-color: var(--gold); }
.chip-teal { background: var(--teal-light); color: #0F4A4F; border-color: var(--teal-line); }
.chip-ink { background: var(--ink); color: var(--white); }
.chip-red { background: var(--red-bg); color: #7A0000; border-color: var(--red-line); }
.chip-orange { background: var(--orange-bg); color: var(--orange-text); border-color: var(--gold); }
.chip-outline { background: var(--white); color: var(--text-3); border-color: var(--line-2); }

/* Drop list (rows are links) */
.rows { min-width: 0; }
.row-head, .row { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(110px, 0.9fr) minmax(150px, 1.3fr) minmax(100px, 0.8fr) minmax(100px, 0.8fr); gap: 16px; align-items: center; padding: 14px 20px; }
.rows.admin .row-head, .rows.admin .row { grid-template-columns: minmax(160px, 1.2fr) minmax(170px, 1.4fr) minmax(100px, 0.8fr) minmax(170px, 1.4fr) minmax(90px, 0.7fr) minmax(80px, 0.6fr); }
.row-head { background: var(--bone); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.row { border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row:hover { background: #F7FBFA; color: var(--text); }
.row .strong { font-weight: 700; overflow-wrap: anywhere; }
.row .sub { display: block; font-size: 0.85rem; color: var(--text-3); margin-top: 3px; }
.row.attention { background: #FFF8EA; }
.empty { padding: 24px; margin: 0; color: var(--text-2); }
@media (max-width: 760px) {
  .row-head { display: none; }
  .row, .rows.admin .row { grid-template-columns: 1fr; gap: 4px; }
}

/* Files and progress */
.dropzone { border: 2px dashed var(--line-2); border-radius: 12px; padding: 24px; text-align: center; background: var(--bone); }
.dropzone.over { border-color: var(--ink); background: var(--teal-light); }
.dropzone p { margin: 0 0 10px; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; }
.filelist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filelist .name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.filelist .meta { color: var(--text-3); font-size: 0.9rem; }
.bar { width: 100%; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.2s; }
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }

/* Facts and timeline */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.dot.done { background: var(--ink); }
.timeline .when { display: block; color: var(--text-3); font-size: 0.85rem; }
