/* One stylesheet for the four public pages. Deliberately plain: these are documents a reviewer
   and a worried parent both have to be able to read, so legibility beats the app's cockpit look.
   Dark mode follows the reader's system setting. */

:root {
  --bg: #ffffff;
  --fg: #1b1d22;
  --muted: #5d626d;
  --line: #e2e5ea;
  --box: #f5f7f9;
  --link: #a8420f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8eaee;
    --muted: #a2a7b2;
    --line: #2c3038;
    --box: #1b1e24;
    --link: #ff9d6b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.crumb { margin: 0 0 24px; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }

h1 { font-size: 26px; line-height: 1.4; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 15px; margin: 24px 0 4px; }
h2 + p, h3 + p, h2 + ul { margin-top: 0; }

p, ul, table { margin: 12px 0; }
li { margin: 4px 0; }

.meta { color: var(--muted); font-size: 13px; margin-top: 0; }

a { color: var(--link); }

.box {
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 20px 16px;
  margin: 24px 0;
}
.box > p:first-child { margin-bottom: 8px; }

.contact {
  font-size: 18px;
  font-weight: 700;
  word-break: break-all;
}

/* Wide tables scroll inside their own box rather than pushing the page sideways on a phone.
   The scroller is a wrapper element rather than `display: block; overflow-x: auto` on the
   <table> itself, because a block-level table still contributes its intrinsic width to the
   layout and can widen the page it sits in. `min-width` then keeps the columns readable
   instead of crushing three of them into a phone's width. */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}
table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--line);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}
/* No `nowrap`: these headers are short, and forcing them onto one line is what pushed
   the last column out of a phone's width. */
th { background: var(--box); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); }

.cards { display: grid; gap: 12px; margin: 24px 0; }
.cards a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--fg);
  background: var(--box);
}
.cards b { display: block; font-size: 16px; }
.cards span { color: var(--muted); font-size: 13px; }
