/* The ArkOSa console's stylesheet. Set in the ArkOSa typeface (D56; the faces
   come from ArkOSa's brand.css, linked first), code in ArkOSa Mono; one
   weight, each face its own A (no crossbar, D85); the words Arktri and
   ArkOSa in their own faces. The header's ARKOSA is the wordmark, drawn by the font. The console
   is black: white text, the wordmark white with its red; the Arktri logo
   appears only small, in white, above the copyright in the footer. The home page is
   quick-access tiles in the original Arktri style; each tile's page is a
   column of sections that open and close. Headings keep the scale of D43. */

:root {
  color-scheme: only dark; /* the console is black (Ruari, 13 Oct) */
  --ink: #f5f4f0;   /* text: ArkOSa paper */
  --muted: #9a9994;
  --paper: #111111; /* background: ArkOSa ink */
  --rule: #2e2e2c;
  --shade: #1d1d1c;
  --accent: #e3262a; /* ArkOSa red */
  --sans: 'ArkOSa', 'Arktri', system-ui, 'Segoe UI', sans-serif;
  --body: 'Zen Kaku Gothic New', 'Arktri', system-ui, 'Segoe UI', sans-serif; /* body text (Ruari, 29 Nov 2026); names, titles, headings, labels and buttons keep --sans */
  --mono: 'ArkOSa Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.75;
  font-feature-settings: "kern"; /* each face its own A: the crossbar is never switched on (D85) */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
code { overflow-wrap: anywhere; }

header { padding: 60px 24px 0; text-align: center; }
header .mark { color: inherit; text-decoration: none; }
.arkosa-mark { display: inline-block; font-size: 52px; line-height: 1.1; } /* the ARKOSA wordmark, drawn by the font: no letter-spacing added */
header .rule { width: 72px; height: 2px; margin: 26px auto 0; background: var(--ink); }

main { flex: 1 0 auto; width: 100%; max-width: 880px; margin: 0 auto; padding: 36px 24px 56px; }
footer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 24px 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; text-align: center; }
/* Who is logged in: far right of the footer, the name above the Log out button (Ruari, 14 Oct). */
footer .who { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* Under the name, one row: the key symbol (Your keys), then Log out, the same height. */
footer .who .acts { display: flex; align-items: stretch; gap: 8px; }
.button.icon { display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; text-indent: 0; }
.button.icon svg { display: block; }
/* The Arktri logo, small and white, above the copyright notice: the only place it appears. */
.copyright { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.copyright .logo { width: 60px; height: auto; filter: invert(1); mix-blend-mode: lighten; } /* black-on-white turned white; its background melts into the black */

/* Headings: larger than the body text, each smaller than the one above. */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.35; text-transform: uppercase; color: var(--ink); }
h1 { font-size: 24px; letter-spacing: 0.14em; text-indent: 0.14em; margin: 0 0 26px; text-align: center; }
h2 { font-size: 20px; letter-spacing: 0.12em; margin: 36px 0 20px; }
h3 { font-size: 18px; letter-spacing: 0.1em; margin: 28px 0 16px; }
h4 { font-size: 17px; letter-spacing: 0.08em; margin: 28px 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro { margin: 0 0 30px; color: var(--muted); text-align: center; }

/* The home page: quick-access tiles, as on the original Arktri page. */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.tile { display: flex; flex-direction: column; align-items: center; width: 150px; color: var(--ink); text-decoration: none; }
.tile .icon { width: 48px; height: 48px; margin-bottom: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; transition: transform .25s ease; }
.tile:hover .icon, .tile:focus-visible .icon { transform: translateY(-3px); }
.tile:focus-visible { outline: 1px dotted var(--ink); outline-offset: 6px; }
.tile .foot { align-self: stretch; display: flex; }
.tile .label { flex: 1; padding: 10px 0; background: var(--ink); border-radius: 5px 0 0 5px; color: var(--paper); font-size: 15px; line-height: 1; letter-spacing: 0.18em; text-indent: 0.18em; text-align: center; text-transform: uppercase; }
.tile .kanji { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-left: 0; border-radius: 0 5px 5px 0; }
.tile .kanji svg { width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 1.1; stroke-linecap: square; }

/* A tile's page: sections that open and close. */
.section { border-top: 1px solid var(--ink); interpolate-size: allow-keywords; }
.section.inset { margin-left: 32px; } /* inside a group: a website under its website, a project under the group's own */
.section.inset2 { margin-left: 64px; }
.section:last-of-type { border-bottom: 1px solid var(--ink); }
.section > summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; }
.section > summary::-webkit-details-marker { display: none; }
.section > summary h2, .section > summary h3 { margin: 0; }
.section > summary { flex-wrap: wrap; row-gap: 6px; position: relative; padding-right: 30px; }
/* The Sites page: a group (its heading, its rows, closed by a rule and a gap), and each row's kind (globe or record sheet) and short name. */
section.site-group { margin: 44px 0; }
h2.site-group { margin: 0 0 18px; }
.section:has(+ section.site-group) { border-bottom: 1px solid var(--ink); }
.kind-icon + h2, .kind-icon + h3 { max-width: calc(100% - 36px); } /* the title wraps beside its icon, not under it */
.kind-icon { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.site-slug { font-family: var(--mono); font-size: 14px; color: var(--muted); text-transform: none; white-space: nowrap; }
.section > summary::after { content: ""; position: absolute; right: 2px; top: 24px; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .35s ease; }
.section[open] > summary::after { transform: rotate(-135deg); }
.section > summary:focus-visible { outline: 1px dotted var(--ink); outline-offset: 3px; }
.section::details-content { block-size: 0; overflow: clip; transition: block-size .45s ease, content-visibility .45s allow-discrete; }
.section[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .section::details-content, .section > summary::after, .tile .icon { transition: none; } }
.section-body { padding: 0 0 24px; }
.count { white-space: nowrap; padding: 1px 8px; border: 1px solid var(--rule); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: 11em 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Forms and buttons. */
.form { max-width: 340px; margin: 0 auto; }
.form label { display: block; margin: 0 0 16px; font-size: 13px; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.form input { display: block; width: 100%; margin-top: 9px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; }
.form input:focus { outline: none; border-color: var(--ink); }
.form input[readonly] { color: var(--muted); background: var(--shade); }
.form .note { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.form .forgot { margin: -4px 0 20px; text-align: center; } /* under the password box, centred (your ask, 17 October) */
.problem { margin: 0 0 16px; color: var(--accent); font-size: 15px; line-height: 1.5; }
.form button, .button, .inline button { display: inline-block; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font: inherit; font-size: 13px; letter-spacing: 0.18em; text-indent: 0.18em; text-transform: uppercase; text-decoration: none; }
.form button { width: 100%; margin-top: 6px; padding: 11px 0; }
.button.quiet, .inline button.quiet { background: var(--paper); color: var(--ink); }
.form button:hover, .button:hover, .inline button:hover { background: #ffffff; color: var(--paper); }
form.inline { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 20px 0 0; }
.actions .inline button { height: 100%; }
/* A site's people, by rank (owner, managers, people, invited, disabled), each
   rank sorted by name and drawn as a branch under its heading. */
.ranks, .ranks ul { list-style: none; margin: 0; padding: 0; }
.ranks > li { margin: 0 0 14px; }
.rank { display: block; margin: 0 0 6px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.rank .n { margin-left: 6px; letter-spacing: 0.1em; }
.ranks ul { border-left: 1px solid var(--rule); margin-left: 4px; padding-left: 16px; }
.ranks ul li { margin: 0 0 6px; overflow-wrap: anywhere; }
.ranks .email, .ranks .note { color: var(--muted); font-size: 0.9em; }
.ranks .note::before { content: "· "; }

@media (max-width: 480px) {
  h1 { font-size: 21px; }
  h2 { font-size: 18.5px; }
  h3 { font-size: 17px; }
  h4 { font-size: 16.5px; }
  body { font-size: 16px; }
  .arkosa-mark { font-size: 38px; }
  footer .who { position: static; transform: none; align-items: center; } /* phones: no room beside the logo */
  header { padding-top: 40px; }
  .tiles { gap: 16px; }
  .tile { width: 132px; }
  .tile .label { font-size: 13px; letter-spacing: 0.1em; text-indent: 0.1em; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* ArkOSa Mono, the fixed-width cut, only for technical values: file paths,
   addresses, versions, sizes. Headings, tiles and ordinary text stay in
   ArkOSa. */
.mono, code { font-family: var(--mono); font-size: 0.88em; }

/* A tick box in a form: beside its words, not stretched. */
.form label.check { display: flex; align-items: center; gap: 10px; letter-spacing: 0.1em; }
.form label.check input { display: inline-block; width: auto; margin: 0; }

/* The log-in page: the ARKOSA wordmark and the log-in box together in the
   middle of the screen, across and down (Ruari, 14 Oct). */
body.page-login header { margin-top: auto; padding-top: 48px; }
body.page-login main { flex: 0 0 auto; margin-bottom: auto; padding-bottom: 48px; }
.count.main { border-color: var(--accent); color: var(--ink); } /* MAIN SITE: no parent, sites below it */

/* A notice after an action, and a short note under a heading. */
.notice { margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--rule); }
.meta { color: var(--muted); font-size: 15px; line-height: 1.5; }
.alarm { padding: 10px 14px; border: 1px solid var(--accent); }
.plain { margin: 0 0 16px; padding-left: 18px; } .plain li { margin: 2px 0; }
/* setting an authenticator app up (S174): its QR code, the steps, the spare codes */
.qr { margin: 12px 0; line-height: 0; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 8px; }
.steps li { margin: 0 0 10px; }
.spare-codes { columns: 2; list-style: none; padding: 0; margin: 16px 0; font-size: 18px; }
.spare-codes li { margin: 0 0 8px; }

/* "Forgotten your password?": a button sending the sign-in form's username to the reset page (20 Nov 2026). It comes after Log in, so Enter still logs in; shown under the password box. */
form.has-forgot { display: flex; flex-direction: column; }
form.has-forgot > .forgot { order: 1; }
form.has-forgot > button[type=submit] { order: 2; }
form.has-forgot > .forgot ~ * { order: 3; }
.form button.linklike, .signin-box button.linklike { display: inline; width: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; text-decoration: underline; cursor: pointer; }
.form button.linklike:hover, .signin-box button.linklike:hover { background: none; border: 0; color: inherit; }

/* Reading and operation (24 Nov 2026): the smallest type is 13px; running text keeps a
   comfortable line, and the keyboard always shows where it is. The scale of D43 and the
   faces are untouched. */
main p, main li, .section-body > .meta { max-width: 68ch; }
.intro { margin-left: auto; margin-right: auto; max-width: 60ch; }
main p { margin: 0 0 1em; }
.facts { max-width: 100%; }
a:focus-visible, .button:focus-visible, .form button:focus-visible, .inline button:focus-visible, .form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.form input:focus-visible { border-color: var(--ink); }
.section > summary:hover h2, .section > summary:hover h3 { color: #fff; }
.notice, .alarm { line-height: 1.6; }
.ranks .email, .ranks .note { font-size: 14px; }

/* Under the centred title, a stand-alone button or form is centred as a box; inside an opened
   section everything lines up on the left, like the text around it (Ruari, 27 Nov 2026).
   Buttons stay smaller than the headings they sit under. */
.form button, .button, .inline button { padding: 7px 16px; line-height: 1.3; }
.form button { padding: 9px 0; }
main > form.inline { display: flex; justify-content: center; margin: 1.2em 0; }
main > .actions { justify-content: center; max-width: none; }
main > p:has(> .button:only-child) { text-align: center; margin-left: auto; margin-right: auto; }
main > .intro + p.meta { text-align: center; margin-left: auto; margin-right: auto; }
main > h2:has(+ p.intro) { text-align: center; }
.section-body .form { margin: 20px 0 28px; }
.section-body .actions { margin: 22px 0 10px; max-width: none; }
.section-body .form + p, .section-body .actions + p, .section-body form.inline + p { margin-top: 14px; }
.section-body h2, .section-body h3 { margin-top: 40px; }
.section-body .facts { margin-bottom: 8px; }

/* Display text keeps the brand face; only body text is Zen Kaku Gothic New (Ruari, 29 Nov 2026). */
h1, h2, h3, h4, h5, h6, .tile .label, .count, .rank, .button, button, label, legend, th, summary, .form label, .form button, .inline button { font-family: var(--sans); }

/* Audit of 29 Nov 2026: every block stands clear of the next, tables and folds styled, nothing overflows a phone. */
main > .actions { margin: 20px 0 30px; }
main > .form { margin: 0 auto 30px; }
main table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 22px 8px; margin: 0 0 24px -22px; }
main th { text-align: left; font-weight: 400; color: var(--muted); }
main td { text-align: left; vertical-align: top; }
details.item { margin: 0 0 16px; }
details.item > summary { cursor: pointer; margin: 0 0 10px; }
details.item > .body { margin: 0 0 24px 20px; }
details.item .actions { margin: 16px 0 6px; }
.plain li { margin: 0 0 14px; }
.plain li > form.inline { display: block; margin: 8px 0 0; }
h1, h2, h3, h4, main p, main li, .notice, .problem, dd { overflow-wrap: anywhere; }
main > p.notice, main > p.problem { margin: 0 auto 20px; }
@media (max-width: 640px) { footer .who { position: static; transform: none; align-items: center; } }
@media (max-width: 480px) { .section.inset { margin-left: 14px; } .section.inset2 { margin-left: 28px; } }