/* KosherSync: a plain, readable policy site, in the logo's own branding: Inter (the wordmark's
   typeface, served from this site), navy #1C3F90 (shield, headings, links), teal #14957F (the
   wordmark's "Sync"), and the logo card's pale blue-grey #F3F6FB behind the header. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1f27;
  --muted: #4d5563;
  --page: #ffffff;
  --rule: #d9dee7;
  --link: #1c3f90;
  --teal: #14957f;
  --navy: #1c3f90;
  --head-cell: #f3f6fb;
  --band: #f3f6fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e9ee;
    --muted: #a9b0bd;
    --page: #121418;
    --rule: #2c3240;
    --link: #a9bdf5;
    --teal: #3cc2a8;
    --navy: #a9bdf5;
    --head-cell: #1b1f27;
    --band: #181c24;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--band);
  border-bottom: 1px solid var(--rule);
}

header .wrap {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img { display: block; border-radius: 6px; }
.brand .sync { color: var(--teal); }

main { padding: 8px 0 40px; }

h1, h2 { color: var(--navy); }

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 32px 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

p, ul { margin: 0 0 16px; }
ul { padding-left: 1.3em; }
li { margin-bottom: 8px; }
ul ul { margin: 8px 0 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.updated { color: var(--muted); }

/* The permissions table scrolls inside its own box on a narrow phone; the page never does. */
.table-box {
  overflow-x: auto;
  margin: 8px 0 20px;
  border: 1px solid var(--rule);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 16px;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

th { background: var(--head-cell); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 16px;
}

footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer a { margin-right: 4px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
}
