/* Rotated Exchange platform (network + admin). The brand base and header are the website's own rules (rotated.co.za/style.css),
   so the whole platform looks like the same product. Keep this file identical in network/ and admin/ (a test checks it). */
:root {
  --ink: #151b2b; --ink-2: #4a5568; --white: #ffffff; --tint: #f3f7fc; --rule: #d9e2ee;
  --blue: #2b7bf5; --cyan: #27b7f7; --green: #1fcf8f; --link: #0b57d0; --error: #a12a22; --warn: #9a5b00; --ok: #17794f;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 50%, var(--green) 100%);
  --radius: 14px;
  --display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 0.2em; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.wrap { width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; font-weight: 800; margin: 1.5rem 0 1rem; text-wrap: balance; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); line-height: 1.15; font-weight: 800; margin: 2rem 0 .9rem; }
h3 { font-size: 1.1rem; line-height: 1.2; font-weight: 700; margin: 1.25rem 0 .5rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Header: identical to rotated.co.za */
.top { padding-block: 1rem; border-bottom: 1px solid var(--rule); background: var(--white); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { font: 600 1.15rem/1 var(--display); letter-spacing: -.01em; color: var(--ink-2); padding-left: .6rem; border-left: 2px solid var(--rule); }
.brand img { height: 2.4rem; width: auto; }
.bar-right { display: flex; align-items: center; gap: 1rem; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.bar-right a:not(.button) { color: var(--ink-2); font-weight: 600; font-size: .98rem; text-decoration: none; }
.bar-right a:not(.button):hover, .bar-right a[aria-current] { color: var(--link); }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-2); background: var(--tint); border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .85rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); }

/* Buttons: the website's pill buttons */
.button, button { display: inline-block; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .55rem 1.2rem; font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.button:hover, button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 123, 245, .35); }
.button:disabled, button:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-ghost:hover { border-color: var(--blue); box-shadow: none; }
.button-small { padding: .4rem 1rem; font-size: .92rem; }
button.danger { background: var(--error); border-color: var(--error); }
button.link { background: none; color: var(--link); border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; box-shadow: none; transform: none; }

/* Page */
.page { padding-block: .5rem 3rem; }
.page-narrow { max-width: 30rem; }
.page-normal { max-width: 52rem; }
.page-wide { max-width: 64rem; }
.titlebar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.foot { border-top: 1px solid var(--rule); padding-block: 1.25rem 2rem; color: var(--ink-2); font-size: .9rem; }
.foot a { color: var(--ink-2); }

/* Text, notices, status */
.hint, small { color: var(--ink-2); }
.hint { font-size: .95rem; max-width: 44rem; }
.note { background: var(--tint); border: 1px solid var(--rule); border-left: 6px solid var(--green); border-radius: var(--radius); padding: .8rem 1.1rem; }
.err { color: var(--error); font-weight: 600; }
code { font-size: .85rem; word-break: break-all; background: var(--tint); border-radius: 6px; padding: .05rem .35rem; }
pre { overflow-x: auto; padding: .8rem 1rem; background: var(--tint); border: 1px solid var(--rule); border-radius: 10px; }
pre code { background: none; padding: 0; }
ol li { margin-bottom: .8rem; }
.badge { display: inline-block; border-radius: 999px; padding: .05rem .7rem; font-size: .8rem; font-weight: 700; border: 1px solid var(--rule); background: var(--white); }
.badge.approved { border-color: var(--ok); color: var(--ok); }
.badge.rejected { border-color: var(--error); color: var(--error); }
.badge.pending { border-color: var(--warn); color: var(--warn); }
.tag { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 0 .65rem; font-size: .8rem; margin: .15rem 0; background: var(--tint); }
.tag.sens { border-color: var(--error); color: var(--error); background: var(--white); }

/* Tables and cards */
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; }
tr.sub td { color: var(--ink-2); }
.card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; margin: 1rem 0; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.thumb { max-width: 150px; max-height: 100px; border: 1px solid var(--rule); border-radius: 6px; vertical-align: middle; }

/* Forms: as on the website's waitlist */
label, legend { display: block; font-weight: 600; margin: .9rem 0 .4rem; padding: 0; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=date], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--rule); border-radius: 10px; padding: .6rem .8rem; }
input[type=file] { font: inherit; padding: .4rem 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 123, 245, .18); }
.row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; align-items: center; }
.row input, .row select { width: auto; flex: 1 1 11rem; }
form.inline { display: inline; }
details { border-bottom: 1px solid var(--rule); margin: .3rem 0; }
summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.kw { columns: 2; column-gap: 1.5rem; padding: .4rem 0 .8rem; }
.chk { display: block; margin: .15rem 0; font-size: .95rem; font-weight: 400; }
.chk input { width: auto; margin-right: .35rem; accent-color: var(--blue); }

/* Getting-started checklist */
.steps { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.steps li { padding: .15rem 0; }
.steps .done { color: var(--ok); }
.steps .todo { color: var(--ink-2); }

@media (max-width: 52rem) {
  .pill { display: none; }
  .brand img { height: 2rem; }
  .kw { columns: 1; }
  .bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .button, button { transition: none; } }
