/* The site's one stylesheet, in the app's look, "Common Ground": the colours of the app's light and dark themes,
   its two faces, the chart leading its page. Sizes are in rem, so a page follows the reader's text size. The
   bars' lengths are classes (.w0 to .w100), as the site's policy allows no style in a page. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/site/fonts/BricolageGrotesque-Bold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("/site/fonts/BricolageGrotesque-Medium.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/site/fonts/InstrumentSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/site/fonts/InstrumentSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/site/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); }

:root {
  --ground: #F5F7F3; --surface: #FFFFFF; --ink: #15211B; --muted: #5A665F; --line: #DDE3DC;
  --consensus: #8ACE2B; --on-consensus: #12240A; --accent: #2C6E12; --tint: #D9E0D8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light dark;
}
/* Vietnamese in the system's face (part 102c): Instrument Sans lacks its letters with two marks, which would come
   from another face inside a word. Its headings keep Bricolage Grotesque, which has them all. */
:lang(vi) { --text: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1411; --surface: #171F1A; --ink: #E9EFE9; --muted: #9AA79F; --line: #2A342E;
    --accent: #A5DE55; --tint: #33403A;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.head { max-width: 68rem; margin: 0 auto; min-height: 4rem; display: flex; align-items: center; padding: 0 1.25rem; }
.home { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--ink); min-height: 3rem; }
.nod { width: 2rem; height: 2rem; flex: none; }
.name { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; }
.name span { color: var(--accent); }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

h1 { font-family: var(--display); font-weight: 700; font-size: 1.8125rem; line-height: 1.12; letter-spacing: -0.015em; margin: 1.375rem 0 0.625rem; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; margin: 0 0 0.5rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.0625rem; line-height: 1.5; margin: 0 0 1.625rem; }

/* The places from the survey's own to the level the link names, as text (part 93). */
.ladder { color: var(--muted); font-size: 0.97rem; margin: 0.75rem 0 0; }
.ladder .on { color: var(--ink); font-weight: 600; }
/* A survey of several questions (part 100a): its title over the question, which question under it. */
.result .title { font-family: var(--display); font-weight: 600; color: var(--muted); margin: 1.375rem 0 0; }
.result .title + h1 { margin-top: 0.25rem; }
.result .picture { display: block; width: 4.5rem; height: 4.5rem; margin: 1.375rem 0 0; object-fit: contain; }
.result .picture + h1 { margin-top: 0.5rem; }
.answer .pic { width: 1.5rem; height: 1.5rem; vertical-align: -0.375rem; margin-right: 0.5rem; object-fit: contain; }
.result .which { color: var(--muted); font-weight: 600; margin: 0 0 0.5rem; }
.result .asked { color: var(--muted); margin: 0 0 0.5rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--muted); font-size: 0.94rem; margin: 0; }
.facts span { display: inline-flex; align-items: center; gap: 0.375rem; }
/* What is different at the level shown (part 82). */
.different { margin: 1rem 0 0; padding: 0.625rem 0.875rem; border-left: 3px solid var(--consensus); border-radius: 0 0.5rem 0.5rem 0; background: var(--surface); font-size: 1rem; }
svg.i { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* The answers, as the app draws them. */
.answers { list-style: none; margin: 1.375rem 0 0.375rem; padding: 0; }
.answer { margin-bottom: 0.9375rem; break-inside: avoid; }
.answer .line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.0625rem; margin-bottom: 0.4375rem; }
.answer .share { font-variant-numeric: tabular-nums; white-space: nowrap; }
.answer.lead .line { font-weight: 600; }
.answer .firsts { display: block; color: var(--muted); font-size: 0.94rem; margin: -0.125rem 0 0.375rem; }
.answer .bar { display: block; height: 0.6875rem; border-radius: 0.375rem; }
.answer .bar i { display: block; height: 100%; border-radius: 0.375rem; background: var(--tint); min-width: 0.6875rem; }
.answer.lead .bar i { background: var(--consensus); }
.more { color: var(--muted); font-size: 0.94rem; margin: 0.125rem 0 0; }
/* Under a result's page on a computer, the card's HTML to paste on another site (part 93). */
.embed { margin: 1.75rem 0 0; font-size: 0.94rem; }
.embed summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 3rem; display: flex; align-items: center; }
.embed p { margin: 0 0 0.5rem; color: var(--muted); }
.embed pre { margin: 0; padding: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; }
.values { margin: 1.375rem 0 0.375rem; }
.values p { margin: 0 0 0.375rem; color: var(--muted); }
.values .average { font-size: 1.5rem; font-weight: 600; color: inherit; }
.reasons { list-style: none; padding: 0; margin: 1rem 0 0; }
.reasons li { margin: 0 0 0.5rem; line-height: 1.45; }

.note { display: flex; gap: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; font-size: 0.97rem; line-height: 1.45; margin: 0.375rem 0 0; }
.note svg.i { width: 1.375rem; height: 1.375rem; }
.note.room { flex-direction: column; gap: 0.625rem; }
.note.room p { margin: 0; }
.seats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seat { display: block; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 2px dashed var(--muted); box-sizing: border-box; }
.seat.in { background: var(--ink); border: 0; }
.seat.in svg { display: block; width: 100%; height: 100%; fill: var(--surface); }
.subhead { font-family: var(--text); font-weight: 600; font-size: 0.94rem; color: var(--muted); margin: 1.375rem 0 -0.625rem; }

.btn { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.5rem 1rem; border-radius: 0.875rem; font-weight: 600; font-size: 1.0625rem; text-decoration: none; border: 0; width: 100%; font-family: var(--text); cursor: pointer; }
.btn.main { background: var(--consensus); color: var(--on-consensus); }
.btn.second { background: transparent; color: var(--consensus); border: 2px solid var(--consensus); margin-top: 0.75rem; }
.btn:disabled { opacity: 0.6; }
.under { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0.625rem 0 0; }
.under a, .link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-block; min-height: 3rem; line-height: 3rem; }
.stores { margin-top: 0.25rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.125rem 1.125rem 0.375rem; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { position: relative; padding-left: 1.125rem; margin-bottom: 0.75rem; font-size: 0.97rem; line-height: 1.45; }
.panel li::before { content: ""; position: absolute; left: 0.125rem; top: 0.5625rem; width: 0.375rem; height: 0.375rem; border-radius: 0.1875rem; background: var(--muted); }

/* A result: one column on a phone, the answers and beside them the way to the app on a computer. */
.cols aside { margin-top: 0.75rem; }
.get { margin-bottom: 1.75rem; }
.get .wide { display: none; }
@media (min-width: 56rem) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 3.5rem; align-items: start; }
  .cols h1 { font-size: 2.5rem; }
  .cols .answers { columns: 2; column-gap: 2.25rem; }
  .cols aside { margin-top: 1.5rem; }
  .get { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.125rem; margin-bottom: 1.125rem; }
  .get .wide { display: block; }
  .get p.wide { font-size: 0.97rem; margin: 0 0 0.875rem; }
  .get .narrow { display: none; }
}

/* The landing page. */
.hero h1 { font-size: 2.0625rem; margin-top: 1.125rem; }
.hero .under { margin-bottom: 1.75rem; }
.hero .lede + .under { text-align: left; margin-top: 0; }
.today { background: var(--surface); border: 1px solid var(--line); border-radius: 1.125rem; padding: 1.125rem; }
.today .kicker { display: flex; align-items: center; gap: 0.375rem; color: var(--muted); font-size: 0.9rem; margin: 0; }
.today .q { font-size: 1.375rem; line-height: 1.15; margin: 0.5rem 0 0; }
.points { list-style: none; padding: 0; display: grid; gap: 1.125rem; margin: 1.625rem 0 0; }
.point { display: flex; gap: 0.875rem; }
.point .dot { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--tint); display: flex; align-items: center; justify-content: center; flex: none; }
.point .dot svg.i { width: 1.375rem; height: 1.375rem; }
.point b { display: block; font-size: 1.03rem; margin-bottom: 0.125rem; }
.point span span { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
@media (min-width: 56rem) {
  .hero { max-width: 44rem; }
  .hero h1 { font-size: 2.75rem; }
  .today { max-width: 44rem; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* A document. */
.doc { max-width: 44rem; }
.doc h1 { font-size: 1.875rem; margin-top: 1rem; }
.doc .eff { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.125rem; }
.doc p { font-size: 1.03rem; line-height: 1.55; margin: 0 0 0.875rem; }
.doc h2 { margin-top: 1.5rem; }
.doc pre { margin: 0 0 1rem; padding: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; }
.doc h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; overflow-wrap: anywhere; }

/* Organizations' plans (part 95b). */
.plans { max-width: 60rem; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin: 0 0 1rem; }
.plan { padding: 0.875rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; }
.plan h2 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.doc .plan .price { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.plan ul { margin: 0 0 0.5rem; padding-left: 1.125rem; font-size: 0.94rem; line-height: 1.5; }
.doc .plan .for { color: var(--muted); font-size: 0.875rem; margin: 0; }
.wrap > .note { max-width: 44rem; margin-top: 1rem; }

/* What is not there. */
.missing { max-width: 34rem; }
.missing h1 { margin-top: 2.5rem; }

/* The page behind the mails. */
.action { max-width: 30rem; }
.action h1 { margin-top: 1.75rem; }
.action h1:focus { outline: none; }
.label { display: block; font-weight: 600; font-size: 1.03rem; margin-bottom: 0.375rem; }
.box { display: flex; align-items: center; min-height: 3.25rem; border: 1.5px solid var(--ink); border-radius: 0.75rem; padding: 0 0.25rem 0 0.875rem; background: var(--surface); }
.box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; min-height: 3rem; outline: none; }
.box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.show { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; min-height: 3rem; min-width: 3rem; padding: 0 0.625rem; cursor: pointer; }
.help { color: var(--muted); font-size: 0.9rem; margin: 0.4375rem 0 0; line-height: 1.4; }
.error { color: #B3261E; font-weight: 600; font-size: 0.94rem; margin: 0.625rem 0 0; }
@media (prefers-color-scheme: dark) { .error { color: #F2B8B5; } }
form .btn { margin-top: 1.625rem; }
.big-check { width: 4rem; height: 4rem; border-radius: 2rem; background: var(--consensus); display: flex; align-items: center; justify-content: center; margin: 2.125rem 0 0.25rem; }
.big-check svg { width: 2.125rem; height: 2.125rem; stroke: var(--on-consensus); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* The site's foot. */
footer { max-width: 68rem; margin: 1.875rem auto 0; border-top: 1px solid var(--line); padding: 1.25rem 1.25rem 1.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
footer p { margin: 0 0 0.625rem; }
footer .promise { color: var(--ink); font-weight: 600; }
footer .links, footer .langs > div { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0 0 0.625rem; }
/* The languages: a menu that names the page's, the 26 inside. */
footer .langs summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 3rem; display: inline-flex; align-items: center; gap: 0.375rem; }
footer .links a, footer .langs a, footer p a { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-block; min-height: 3rem; line-height: 3rem; }
footer .langs b { color: var(--ink); font-weight: 600; line-height: 3rem; }
/* A short name, as 日本語 is, is still a finger wide. */
footer .langs a, footer .langs b { min-width: 3rem; }

/* The bars' lengths. */
.w0 { width: 0%; }
.w1 { width: 1%; }
.w2 { width: 2%; }
.w3 { width: 3%; }
.w4 { width: 4%; }
.w5 { width: 5%; }
.w6 { width: 6%; }
.w7 { width: 7%; }
.w8 { width: 8%; }
.w9 { width: 9%; }
.w10 { width: 10%; }
.w11 { width: 11%; }
.w12 { width: 12%; }
.w13 { width: 13%; }
.w14 { width: 14%; }
.w15 { width: 15%; }
.w16 { width: 16%; }
.w17 { width: 17%; }
.w18 { width: 18%; }
.w19 { width: 19%; }
.w20 { width: 20%; }
.w21 { width: 21%; }
.w22 { width: 22%; }
.w23 { width: 23%; }
.w24 { width: 24%; }
.w25 { width: 25%; }
.w26 { width: 26%; }
.w27 { width: 27%; }
.w28 { width: 28%; }
.w29 { width: 29%; }
.w30 { width: 30%; }
.w31 { width: 31%; }
.w32 { width: 32%; }
.w33 { width: 33%; }
.w34 { width: 34%; }
.w35 { width: 35%; }
.w36 { width: 36%; }
.w37 { width: 37%; }
.w38 { width: 38%; }
.w39 { width: 39%; }
.w40 { width: 40%; }
.w41 { width: 41%; }
.w42 { width: 42%; }
.w43 { width: 43%; }
.w44 { width: 44%; }
.w45 { width: 45%; }
.w46 { width: 46%; }
.w47 { width: 47%; }
.w48 { width: 48%; }
.w49 { width: 49%; }
.w50 { width: 50%; }
.w51 { width: 51%; }
.w52 { width: 52%; }
.w53 { width: 53%; }
.w54 { width: 54%; }
.w55 { width: 55%; }
.w56 { width: 56%; }
.w57 { width: 57%; }
.w58 { width: 58%; }
.w59 { width: 59%; }
.w60 { width: 60%; }
.w61 { width: 61%; }
.w62 { width: 62%; }
.w63 { width: 63%; }
.w64 { width: 64%; }
.w65 { width: 65%; }
.w66 { width: 66%; }
.w67 { width: 67%; }
.w68 { width: 68%; }
.w69 { width: 69%; }
.w70 { width: 70%; }
.w71 { width: 71%; }
.w72 { width: 72%; }
.w73 { width: 73%; }
.w74 { width: 74%; }
.w75 { width: 75%; }
.w76 { width: 76%; }
.w77 { width: 77%; }
.w78 { width: 78%; }
.w79 { width: 79%; }
.w80 { width: 80%; }
.w81 { width: 81%; }
.w82 { width: 82%; }
.w83 { width: 83%; }
.w84 { width: 84%; }
.w85 { width: 85%; }
.w86 { width: 86%; }
.w87 { width: 87%; }
.w88 { width: 88%; }
.w89 { width: 89%; }
.w90 { width: 90%; }
.w91 { width: 91%; }
.w92 { width: 92%; }
.w93 { width: 93%; }
.w94 { width: 94%; }
.w95 { width: 95%; }
.w96 { width: 96%; }
.w97 { width: 97%; }
.w98 { width: 98%; }
.w99 { width: 99%; }
.w100 { width: 100%; }
