/* roundservant.com: one stylesheet for every page. The colours are the app's
   light theme (src\app\RoundServant.App.Palette): BrandFill for the header, as
   the sign-in page has it, Page, CardFill, CardLine, Ink, Muted and Accent. */

:root {
  --accent: #1f5f8b;
  --ink: #292929;
  --muted: #595959;
  --page: #f1f1f1;
  --card: #ffffff;
  --line: #d4d4d4;
  --todo: #fff4c2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

header {
  background: var(--accent);
  color: #fff;
}

header .bar, main, footer .bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

header a { color: #fff; text-decoration: none; }
header .name { font-size: 20px; font-weight: 600; }
header nav a { margin-left: 18px; font-size: 15px; opacity: 0.9; }
header nav a:first-child { margin-left: 0; }
header nav a:hover, header nav a[aria-current] { opacity: 1; text-decoration: underline; }

main { padding-top: 28px; padding-bottom: 40px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }

.lead { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.dated { color: var(--muted); font-size: 15px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.card h2, .card h3 { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 15px;
}
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: #e6e9ee; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* What is still to be filled in before the page is live: impossible to miss. */
.todo {
  background: var(--todo);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

footer { border-top: 1px solid var(--line); }
footer .bar { padding-top: 18px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .lead { font-size: 18px; }
  table { font-size: 14px; }
  th, td { padding: 8px; }
}
