/* Shared styles for the pages of myoushq.com. System fonts only, no
   external resources. Page-specific styles stay inline in each page. */
:root {
  color-scheme: light dark; /* dark scrollbars and focus rings in dark mode */
  --bg: #f6f7f9; --surface: #ffffff; --fg: #18212d; --muted: #5a6574; --line: #dde2e9;
  --box: #eef1f5; --brand: #1f3a5f; --brand-fg: #ffffff; --brand-soft: #e7edf5; --brand-ink: #1f3a5f;
  --link: #1f4f8a; --ok: #1f9d55;
  --hero: linear-gradient(180deg, #eaf0f7 0%, #f6f7f9 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 16px rgba(16, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b; --surface: #161d27; --fg: #e4e8ee; --muted: #98a3b2; --line: #283241;
    --box: #1b232e; --brand: #3d6ea8; --brand-fg: #ffffff; --brand-soft: #1b2a3d; --brand-ink: #9cc2ef;
    --link: #8db8ec; --ok: #3fcf7f;
    --hero: linear-gradient(180deg, #142133 0%, #0f141b 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
/* The padding keeps anchors, focused elements and find-in-page matches clear of the sticky bar */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); overflow-wrap: break-word; }
a { color: var(--link); }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
.wide { max-width: 54rem; margin: 0 auto; padding: 0 1rem; }

/* Top bar: the mark and the wordmark, then the links */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.bar .wide { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.05rem; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.2rem; font-size: 0.93rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--fg); }
@media (max-width: 26rem) { .bar nav { column-gap: 0.8rem; font-size: 0.88rem; } }
/* Under 352 px the bar and links would not fit on one line: tighter spacing */
@media (max-width: 22rem) { .bar .wide { padding: 0 0.75rem; gap: 0.5rem; } .brand { gap: 0.4rem; font-size: 1rem; } .bar nav { column-gap: 0.6rem; font-size: 0.84rem; } }
/* The two-tone wordmark: "myous" in the text colour, "HQ" in brand navy */
.hq { color: var(--brand-ink); font-size: 0.84em; font-weight: 600; letter-spacing: 0.05em; margin-left: 0.04em; }

/* Buttons and paste boxes */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: var(--brand-fg); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
button { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 0.45rem 1rem; border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-fg); cursor: pointer; min-width: 6rem; }
button:hover { filter: brightness(1.12); }
.copy { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 0.8rem 0; overflow: hidden; }
.copy .msg { margin: 0; padding: 1rem 1.1rem 0.4rem; font-size: 0.96rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy .row { display: flex; justify-content: flex-end; padding: 0.4rem 0.8rem 0.8rem; }

.small { color: var(--muted); font-size: 0.92rem; }
.top { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.4rem; }

/* A quiet, link-style disclosure */
details { margin: 1.1rem 0; }
summary { cursor: pointer; color: var(--link); font-size: 0.93rem; list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 0.45em; height: 0.45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; margin-right: 0.15rem; }
details[open] summary::before { transform: rotate(45deg); }
summary:hover { text-decoration: underline; }
details p { margin: 0.6rem 0; }

/* Text pages: docs, terms, pairing, not found */
.page { padding-top: 2.4rem; padding-bottom: 3.5rem; }
.page h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
.page h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 2.4rem 0 0.8rem; }
.page h3 { font-size: 1.12rem; margin: 1.9rem 0 0.6rem; }
.page h4 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.page li { margin-bottom: 0.35rem; }
.page ul, .page ol { padding-left: 1.4rem; }
.page img { max-width: 100%; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.page blockquote { margin: 1rem 0; padding: 0.2rem 1rem; border-left: 3px solid var(--brand-ink); color: var(--muted); }
.page code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--box); border-radius: 4px; padding: 0.1em 0.3em; overflow-wrap: anywhere; }
.page pre { background: var(--box); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; overflow-x: auto; line-height: 1.45; }
.page pre code { background: none; padding: 0; font-size: 0.85rem; overflow-wrap: normal; }
.page table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
.page th, .page td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.page th { background: var(--box); }

/* Footer with the relay status; the pill stays hidden until it has text */
footer { margin-top: 3.5rem; border-top: 1px solid var(--line); padding: 1.2rem 0 2.5rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.85rem; color: var(--muted); margin: 0; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.pill:empty { display: none; }
