/* The client portal in ReThink-IT's default look: near-black bar, red accent, Raleway headings, Open Sans text (served
   from the portal itself, fonts/, SIL Open Font License). Text pairs meet WCAG 2.2 AA; the focus ring is always visible. */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/raleway-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/open-sans-latin.woff2") format("woff2"); }

:root {
  --accent: #e62528; --action: #c41e21; --ink: #1f1f1f; --muted: #555555; --line: #e4e4e4; --bg: #f5f5f5; --bar: #1c1c1c;
  --head: "Raleway", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
h1 { font-family: var(--head); font-size: 1.6rem; margin: 0 0 0.5rem; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.bar :focus-visible { outline-color: #ffffff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #ffffff; color: var(--ink); padding: 10px 16px; border: 2px solid var(--action); border-radius: 6px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }
.bar { background: var(--bar); color: #ffffff; border-bottom: 4px solid var(--accent); display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1.4rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { display: block; }
.brand-product { font-family: var(--head); font-weight: 700; }
.bar-tools { margin-left: auto; display: flex; gap: 0.6rem; align-items: center; }
select, button { font: inherit; min-height: 44px; border-radius: 6px; }
.bar select { background: transparent; color: #ffffff; border: 1px solid #8a8a8a; padding: 0 0.6rem; }
.bar select option { color: var(--ink); background: #ffffff; }
button { padding: 0 1.1rem; cursor: pointer; font-weight: 600; border: 1px solid var(--line); background: #ffffff; color: var(--ink); }
button.primary { background: var(--action); border-color: var(--action); color: #ffffff; }
button.primary:hover { background: #a3181b; }
button.ghost { background: transparent; color: #ffffff; border-color: #8a8a8a; }
main { flex: 1; padding: 2rem 1.4rem 3rem; max-width: 60rem; width: 100%; margin: 0 auto; }
main:focus { outline: none; }
section { background: #ffffff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; padding: 1.6rem; }
.lede { color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.4rem; margin: 1.2rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.status { min-height: 1.5em; margin-top: 1rem; }
.foot { padding: 1rem 1.4rem; color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--line); background: #ffffff; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.6rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.problem { border: 3px solid #b3171b; border-radius: 8px; padding: 0.8rem 1.1rem; margin: 0 0 1.2rem; background: #ffffff; }
.problem h2 { color: #b3171b; font-size: 1.05rem; margin: 0 0 0.3rem; }
.problem p { margin: 0; }
.step h1:focus { outline: none; }
.field { display: grid; gap: 0.35rem; margin: 0 0 1.1rem; max-width: 28rem; }
.field label { font-weight: 600; }
.field .check { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
input { font: inherit; min-height: 44px; padding: 0.4rem 0.7rem; border: 1px solid #767676; border-radius: 6px; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--action); text-decoration: underline; font-weight: 600; }
button:disabled { opacity: 0.6; cursor: progress; }
.steps { padding-left: 1.2rem; max-width: 60ch; }
.setup { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; margin: 1rem 0 1.4rem; }
.setup img { border: 1px solid var(--line); border-radius: 6px; background: #ffffff; image-rendering: pixelated; }
.secret code { font-size: 1.1rem; letter-spacing: 0.05em; word-break: break-all; }
