/* The pages anyone may read signed out -- privacy, terms, support -- in the
   gate's colours, so they read as the same place. */
:root {
  --bg:         #f6f6f4;
  --card:       #ffffff;
  --brown:      #4f3a33;
  --brown-soft: #7a6a62;
  --line:       #e4dcd6;
  --link:       #2f6f4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 16px;
  background: var(--bg);
  color: var(--brown);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 20px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
header a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
header img { width: 40px; height: 40px; }
header img.wordmark { width: auto; height: 30px; }
header span { font-size: 20px; font-weight: 600; }

nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 18px; font-size: 14px; }
nav a { color: var(--brown-soft); }
nav a[aria-current] { color: var(--brown); font-weight: 600; text-decoration: none; }

h1 { font-size: 26px; margin: 8px 0 2px; }
h2 { font-size: 18px; margin: 26px 0 6px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, ul { margin: 0 0 10px; }
ul { padding-left: 22px; }
li { margin-bottom: 4px; }
a { color: var(--link); }
.updated { color: var(--brown-soft); font-size: 14px; margin-bottom: 18px; }
.lead { font-size: 17px; }

table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 7px 8px 7px 0;
         border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

footer { max-width: 680px; margin: 14px auto 0; color: var(--brown-soft); font-size: 13px;
         text-align: center; }

/* The page an assistant's sign-in opens (server/routes/assistant_oauth.py): who wants in, a
   username and password when not signed in already, "Let it make changes
   too", Allow and Cancel. */
.brand { display: flex; align-items: center; gap: 10px; }
.consent { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.consent input[name="username"], .consent input[name="password"] {
  font: inherit; padding: 10px 12px; border: 2px solid var(--brown); border-radius: 10px; }
.consent .tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent .tick input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.consent .buttons { display: flex; gap: 10px; margin-top: 6px; }
.consent button { flex: 1; font: inherit; font-weight: 600; padding: 11px; border-radius: 10px;
                  border: 2px solid var(--brown); cursor: pointer; }
.consent .go { background: #f4d58d; color: var(--brown); }
.consent .no { background: var(--card); color: var(--brown); }
/* Continue with Google or Apple (server/routes/sso.py): side by side, each its
   maker's logo on its maker's colours -- Google's white, Apple's black --
   the words in its label for screen readers. Apple, until it's set up, is a
   grey placeholder saying "soon". Then what continuing agrees to, on one
   line, then "or" over the username and password. */
.sso { display: flex; flex-direction: column; gap: 8px; }
.sso-row { display: flex; gap: 10px; }
.sso-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
           height: 40px; box-sizing: border-box; border-radius: 12px; text-decoration: none; }
.sso-btn img { width: 18px; height: 18px; flex: none; }
.sso-google { background: #fff; border: 1px solid #747775; }
.sso-google:hover { background: #f8f6f4; }
.sso-apple { background: #000; border: 1px solid #000; }
.sso-apple img { width: 15px; height: 18px; margin-top: -2px; }
.sso-soon { background: #cfc5bb; border-color: #cfc5bb; cursor: default; }
.sso-soon::after { content: "soon"; font-size: 12px; font-weight: 600; color: #fff; }
.sso-agree { margin: 0; font-size: 12px; line-height: 1.4; color: #7a6a62; text-align: center; }
.sso-agree a { color: inherit; }
.sso-or { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 13px;
          color: #9a8a82; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; border-top: 1.5px solid #eadfd3; }
.hint { color: var(--brown-soft); font-size: 14px; }
.error { color: #a33a2a; font-weight: 600; }
