/* SCLA Professional Integrity Registry — shared styles (public site and admin).
   Follows scla.world: Swiss typographic style. White ground, black type, one accent red (#D0202A);
   no serif, no radius, 4px red rule at the top, black footer. Amber is used only for "under appeal / stayed". */
:root {
  --red: #D0202A;
  --red-dark: #AF171F;
  --red-50: #FBEAEB;
  --amber: #8A5300;
  --amber-50: #FFF3DC;
  --amber-line: #E9B45C;
  --g1: #F4F4F4;
  --g2: #E4E4E4;
  --g3: #CFCFCF;
  --g4: #8C8C8C;
  --g5: #5A5A5A;
  --ink: #111;
  --bg: #fff;
  --line: var(--g2);
  --muted: var(--g5);
  --wrap: 1240px;
  --gutter: 32px;
  --font: "Helvetica Neue", Helvetica, Inter, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.meta { font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .135em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; line-height: 1.4; display: block; }
.eyebrow.ink { color: var(--ink); }
.eyebrow.grey { color: var(--muted); }
.link { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 500; }
.ulink { text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; }
.ulink:hover { text-decoration-color: var(--red); }
.toprule { height: 4px; background: var(--red); }
.rule { width: 72px; height: 4px; background: var(--red); border: 0; margin: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 34px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; }
.topbar nav a { color: var(--ink); font-weight: 500; padding: 0 10px; border-left: 1px solid var(--g3); line-height: 1; }
.topbar nav a:first-child { border-left: 0; }
.topbar nav a:last-child { padding-right: 0; }
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); flex: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { display: block; height: 46px; width: auto; }
.brand .product { border-left: 1px solid var(--g3); padding-left: 16px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2; }
.brand .product small { display: block; font-weight: 600; font-size: 10px; letter-spacing: .135em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.mainnav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; }
.mainnav a { color: var(--ink); font-weight: 500; padding: 8px 12px; font-size: .92rem; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--red); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--red); }
.navtoggle { display: none; margin-left: auto; background: var(--bg); border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; font-weight: 600; font-size: .88rem; border: 1px solid var(--ink); cursor: pointer; background: var(--bg); color: var(--ink); transition: background .15s, color .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; }
.btn.sm { padding: 7px 13px; font-size: .8rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; line-height: 1.4; border: 1px solid var(--g3); color: var(--g5); background: var(--bg); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }
.pill.red { background: var(--red); border-color: var(--red); color: #fff; }
.pill.red::before { background: #fff; }
.pill.amber { background: var(--amber-50); border-color: var(--amber-line); color: var(--amber); }
.pill.grey { background: var(--g1); border-color: var(--g3); color: var(--g5); }
.pill.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.ink::before { background: #fff; }
.pill.plain::before { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border: 1px solid var(--g3); background: var(--g1); color: var(--ink); line-height: 1.5; }
.badge.note { border-color: var(--ink); background: var(--bg); }
.badge.note::before { content: "↻"; color: var(--red); font-weight: 700; }
.tag { display: inline-block; font-size: .72rem; padding: 1px 7px; background: var(--g1); border: 1px solid var(--line); color: var(--g5); white-space: nowrap; line-height: 1.5; }

/* ---------- Notices ---------- */
.notice { font-size: .88rem; color: var(--ink); background: var(--g1); border-left: 4px solid var(--red); padding: 12px 16px; margin: 16px 0; }
.notice b { font-weight: 600; }
.notice.strong { background: var(--red-50); color: var(--red-dark); }
.notice.ink { background: var(--ink); color: #fff; border-left-color: var(--red); }
.notice.ink a { color: #fff; }
.alert { padding: 12px 16px; border: 1px solid var(--red); background: var(--red-50); color: var(--red-dark); font-size: .9rem; margin: 12px 0; }
.ok { padding: 12px 16px; border: 1px solid var(--ink); background: var(--g1); font-size: .9rem; margin: 12px 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; max-width: 760px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.req::after { content: " *"; color: var(--red); }
.input, .form input[type="text"], .form input[type="email"], .form input[type="date"], .form input[type="url"], .form input[type="password"], .form textarea, .form select, .input-like {
  width: 100%; border: 1px solid var(--g3); padding: 10px 12px; background: var(--bg); font-size: .95rem; min-width: 0;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }
.field.invalid input, .field.invalid textarea, .field.invalid select, fieldset.invalid { border-color: var(--red) !important; }
.field .err, fieldset .err { color: var(--red-dark); font-size: .82rem; font-weight: 600; }
fieldset { border: 1px solid var(--g3); padding: 14px 16px 16px; margin: 0; min-width: 0; }
fieldset > legend { padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.radios { display: grid; gap: 2px; }
.radio { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 10px; border: 1px solid transparent; cursor: pointer; }
.radio:hover { background: var(--g1); }
.radio input { margin: 4px 0 0; accent-color: var(--red); width: 16px; height: 16px; }
.radio b { display: block; font-weight: 600; font-size: .93rem; }
.radio span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.45; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .88rem; cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--red); width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--ink); flex-wrap: wrap; justify-self: start; }
.seg button { all: unset; cursor: pointer; padding: 8px 16px; font-weight: 600; font-size: .86rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.drop { border: 1px dashed var(--g4); padding: 16px; background: var(--g1); display: grid; gap: 8px; }
.drop input[type="file"] { max-width: 100%; font-size: .88rem; }
.filelist { list-style: none; margin: 0; padding: 0; font-size: .84rem; display: grid; gap: 4px; }
.filelist li { display: flex; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; min-width: 0; }
.filelist li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filelist li.bad { color: var(--red-dark); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.counter { font-size: .76rem; color: var(--muted); text-align: right; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--g1); }
table.t tr.sel td { background: var(--red-50); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); font-size: .88rem; margin-top: 0; }
.site-footer .inner { padding-block: 56px 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.site-footer .flogo { display: block; height: 42px; width: auto; margin-bottom: 20px; }
.site-footer h4 { font-size: 11px; letter-spacing: .135em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.site-footer .tag-line { color: #fff; font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .62); display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 44px; padding-top: 18px; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; font-size: .85rem; border-left: 4px solid var(--red); z-index: 100; max-width: calc(100% - 32px); }

@media (max-width: 980px) {
  .navtoggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 4px solid var(--red); padding: 4px var(--gutter) 12px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .mainnav.open { display: flex; }
  .mainnav a { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .mainnav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .topbar .tl { display: none; }
  .topbar nav { margin-left: 0; }
  .site-header .wrap { min-height: 62px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { height: 30px; }
  .brand .product { font-size: .86rem; padding-left: 10px; }
  .brand .product small { display: none; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .btn { padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
