/* nc-register -- the whole stylesheet, in the look of
   stats-demo.icos-cp.eu: a system font stack, the ICOS blue, white
   cards on a light ground, one column. */

:root {
  --blue: #1b4f8a;
  --blue-dark: #143a66;
  --blue-light: #e8f0fa;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --ground: #f4f6f8;
  --card: #ffffff;
  --accent: #2b7bbf;
  --ok-bg: #e9f6ee;
  --ok-line: #9fd3b2;
  --bad-bg: #fdecec;
  --bad-line: #efaaaa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 70, .06), 0 4px 16px rgba(20, 40, 70, .05);
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.45;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-weight: 600; margin: 0; }
h2 { font-size: 1.05rem; }

/* header */
.top {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .75rem 1.5rem; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 1.25rem; color: var(--blue-dark); flex: 1; }
.top .logo img { display: block; }
.views { display: flex; gap: .75rem; align-items: center; }
.views .who { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .top { flex-wrap: wrap; padding: .75rem 1rem; } }

/* layout */
.single {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 700px) { .single { padding: 1rem; } }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem 0 2rem; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.25rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-foot { margin: .75rem 0 0; color: var(--muted); font-size: .92rem; }
.lead { color: var(--muted); margin: 0 0 1rem; max-width: 60rem; }
.badge { background: var(--blue); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .5rem; font-weight: 600; vertical-align: middle; }

/* notices */
.note { border-radius: 8px; padding: .6rem 1rem; border: 1px solid; }
.note ul { margin: .2rem 0; padding-left: 1.2rem; }
.note p { margin: .3rem 0; }
.note.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.note.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.card .note { margin-bottom: 1rem; }

/* forms */
.reg { max-width: 40rem; display: flex; flex-direction: column; gap: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .25rem; font-size: .92rem; }
.field span { color: var(--muted); font-weight: 500; }
.field input {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.policies { border: 1px solid var(--line); border-radius: 8px; padding: .5rem 1rem .75rem; margin: 0; }
.policies legend { color: var(--muted); font-size: .92rem; font-weight: 500; padding: 0 .3rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .3rem .25rem; border-radius: 5px; cursor: pointer; }
.check:hover { background: var(--blue-light); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }

.apply {
  padding: .55rem 1.1rem; background: var(--blue); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer; align-self: flex-start;
}
.apply:hover { background: var(--blue-dark); }
.apply:disabled, .apply:disabled:hover { background: #b8c4d2; color: #fff; cursor: not-allowed; }
.hint { margin: -.3rem 0 0; color: var(--muted); font-size: .88rem; }
.hint[hidden] { display: none; }
.apply.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.apply.ghost:hover { background: var(--blue-light); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.link:hover { text-decoration: underline; }
.addteam {
  display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem;
}
.addteam .field { flex: 1; min-width: 14rem; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
tbody tr:hover { background: var(--blue-light); }
td input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }
td.when { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
td.err { color: #a12a2a; }
.st { border-radius: 999px; padding: .05rem .55rem; font-size: .8rem; font-weight: 600; }
.st.approved { background: var(--ok-bg); color: #1d6b3a; }
.st.rejected { background: var(--bad-bg); color: #a12a2a; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; }
