/* Dock Boss: shared base, prose pages (privacy, support) and footer. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a164e;          /* the wordmark's navy outline */
  --dock: #1d3b8a;         /* the icon's blue */
  --dock-deep: #0a2478;
  --night: #061953;
  --lift: #ffbe28;         /* the forklift's yellow */
  --cream: #fff4c8;        /* the wordmark's top fill */
  --hud: #f3ae23;          /* the game's HUD orange */
  --hud-brown: #5a3a20;
  --floor: #eceef1;        /* warehouse floor */
  --text: #1b2238;
  --muted: #4a5270;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }

a { color: var(--dock); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lift); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--lift); color: var(--ink); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Blanks for the owner: one element, one class, plainly visible on every page */
mark.owner-fill {
  background: #fff06a;
  color: #2a1f00;
  padding: 0.05em 0.3em;
  border-radius: 0.2em;
  box-shadow: inset 0 -2px 0 #e0a800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark.owner-fill[data-prefilled]::after { content: " (owner to confirm)"; font-weight: 600; font-size: 0.85em; }

/* ---------- footer ---------- */
.site-foot { padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.foot-inner { max-width: 72rem; margin: 0 auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 1rem; }
.site-foot nav a { font-family: var(--display); font-size: 1.35rem; text-decoration: none; padding: 0.35rem 0; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot p { margin: 0.35rem 0; }
.foot-a { background: var(--night); color: #dfe5f7; }
.foot-a nav a { color: var(--cream); }
.foot-a nav a:hover { color: #fff; }

/* ---------- prose pages ---------- */
.prose-page { background: #fff; }
.bar { background: var(--dock-deep); padding: 0.75rem 1.25rem; }
.bar-home {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.4rem;
}
.bar-home:hover { color: var(--cream); }
.bar-home img { width: 2.5rem; height: 2.5rem; border-radius: 22%; }

.prose { padding: 2rem 1.25rem 3.5rem; }
.prose > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.prose h1 { font-size: clamp(2rem, 7vw, 2.9rem); color: var(--ink); margin-top: 0.5rem; margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.55rem; color: var(--ink); margin-top: 2.4rem; margin-bottom: 0.6rem; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose strong { color: #0d1430; }

/* tables: in full, wider than the text column on big screens, restacked on phones */
.prose .table-wrap { max-width: 72rem; margin: 1.5rem auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border: 1px solid #cfd5e6; }
.prose th { background: #e8edf8; color: var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: #f7f9fd; }

@media (max-width: 47.99rem) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose tr { border: 1px solid #cfd5e6; border-radius: 0.6rem; margin-bottom: 1rem; overflow: hidden; }
  .prose td { border: 0; border-top: 1px solid #e1e6f2; padding: 0.6rem 0.85rem; }
  .prose td:first-child { border-top: 0; background: #e8edf8 !important; font-weight: 600; color: var(--ink); }
  .prose tbody tr:nth-child(even) td { background: #fff; }
  .prose td::before {
    content: attr(data-label);
    display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
