/* MUNBoard: a conference's accreditation desk. Paper and ink, IBM Plex (Serif for names, Mono for labels, Sans for
   the rest), and the three apps' colors as flat bands, the way a badge's lanyard carries a conference's colors. */
:root {
  --paper: #f2efe8; --card: #fffdf8; --ink: #1d1c1a; --ink-2: #57534b; --ink-3: #7a756a;
  --rule: #dcd6c8; --rule-2: #e9e4d8; --field: #f7f4ed; --focus: #1d1c1a; --error: #b3261e; --success: #1e7a3c;
  --enro: #3ddbd9; --reso: #33b1ff; --dais: #a56eff;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
/* light only */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
p { margin: 0 0 16px; }
.muted { color: var(--ink-2); }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* the wordmark: light "MUN", bold "Board", as in the apps */
.word { letter-spacing: -.01em; white-space: nowrap; }
.word .l { font-weight: 300; }
.word .b { font-weight: 600; }

/* a label in small capitals, like the printing on a badge */
.kicker { margin: 0 0 6px; font: 500 .6875rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- the bar along the top ---------- */
.bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--rule); }
.bar__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.bar__brand img { width: 26px; height: 26px; display: block; }
.bar__sp { flex: 1; }
.bar__link { color: var(--ink-2); background: none; border: 0; font: inherit; font-size: .875rem; cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.bar__link:hover { color: var(--ink); }

/* ---------- the badge: sign in, choose a password, a problem ---------- */
.desk { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 48px 16px 56px; }
.badge { position: relative; width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 1px 0 var(--rule-2), 0 18px 40px -24px rgba(40, 32, 16, .35); overflow: hidden; }
/* the lanyard's band: the three apps' colors, flat, with the slot the lanyard goes through */
.badge__band { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 44px; }
.badge__band span:nth-child(1) { background: var(--enro); }
.badge__band span:nth-child(2) { background: var(--reso); }
.badge__band span:nth-child(3) { background: var(--dais); }
.badge__slot { position: absolute; left: 50%; top: 14px; width: 72px; height: 14px; margin-left: -36px; border-radius: 7px; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.badge__body { padding: 28px 32px 8px; }
.badge__title { margin: 0 0 6px; font: 400 2rem/1.15 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.badge__for { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--ink-2); font-size: .9375rem; }
.badge__for img { width: 22px; height: 22px; flex: none; }
.badge__for strong { color: var(--ink); font-weight: 600; }
.badge__body form { margin-top: 22px; }
.badge__body .badge__for + .note, .badge__body .badge__for + form { margin-top: 0; }
/* the stub below the perforation */
.badge__stub { margin-top: 20px; padding: 16px 32px 22px; border-top: 1px dashed var(--rule); background: var(--paper); }
.stub__link { margin: 12px 0 0; font-size: .875rem; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--field) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.field input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.field .help { margin: 6px 0 0; font-size: .75rem; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--card); font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--field); }
.btn[disabled] { opacity: .55; cursor: default; }

.how { font-size: .875rem; color: var(--ink-2); }
.how summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.how dl { margin: 12px 0; display: grid; gap: 2px 0; }
.how dt { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.how dd { margin: 0; }
.how p { margin: 0; }

.note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--field); font-size: .875rem; }
.note--error { border-color: var(--error); color: var(--error); }
.note--success { border-color: var(--success); }

/* the three apps, under the badge */
.family { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 32px 0 6px; }
.family__app { display: inline-flex; align-items: center; gap: 7px; font-size: .9375rem; color: var(--ink); }
.family__app img { width: 20px; height: 20px; }
.family__line { margin: 0; font: italic 400 .9375rem/1.5 var(--serif); color: var(--ink-2); text-align: center; }

/* ---------- your account ---------- */
.page { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 44px 24px 64px; }
.me { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.me__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 500 1.375rem/1 var(--serif); color: var(--card); background: var(--ink); }
.me h1 { margin: 0; font: 400 2.25rem/1.15 var(--serif); letter-spacing: -.01em; }
.me p { margin: 4px 0 0; color: var(--ink-2); }
.section-title { margin: 32px 0 14px; font: 400 1.375rem/1.3 var(--serif); }
.confs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
/* each conference: a badge, its band in the colors of the apps it uses */
.conf { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.conf__band { display: flex; height: 10px; }
.conf__band span { flex: 1; }
.conf__band .enroboard { background: var(--enro); } .conf__band .resoboard { background: var(--reso); } .conf__band .daisboard { background: var(--dais); }
.conf__body { padding: 16px 18px 18px; }
.conf__name { margin: 0 0 12px; font: 400 1.25rem/1.25 var(--serif); }
.conf__apps { display: grid; gap: 6px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; border: 1px solid var(--rule-2); background: var(--field); }
.app-tile:hover { border-color: var(--ink); }
.app-tile img { width: 26px; height: 26px; flex: none; }
.app-tile .word { display: block; font-size: 1rem; }
.app-tile small { display: block; font-size: .8125rem; color: var(--ink-2); }
.app-tile::after { content: '→'; margin-left: auto; color: var(--ink-3); }
/* two conferences that are one */
.combine { margin-top: 18px; }
.combine__pair { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--rule-2); }
.combine__pair p { margin: 0; min-width: 0; }
.combine--more summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; }
.empty { padding: 24px 20px; border-radius: 16px; border: 1px dashed var(--rule); color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.narrow { max-width: 420px; }
.acct { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.acct .section-title { margin-top: 0; }
.setting { margin-bottom: 16px; }
.setting__title { margin: 0 0 6px; font: 400 1.25rem/1.3 var(--serif); }
.setting form { margin-top: 14px; }
.small { font-size: .875rem; }
@media (max-width: 860px) { .acct { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .desk { padding-top: 24px; }
  .badge__body { padding: 24px 20px 4px; }
  .badge__stub { padding: 14px 20px 18px; }
  .badge__title { font-size: 1.75rem; }
  .me h1 { font-size: 1.75rem; }
  .page { padding: 28px 16px 48px; }
}

/* which account: one row each */
.choices { display: grid; gap: 8px; margin-bottom: 18px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); text-decoration: none; }
.choice:hover { border-color: var(--ink); }
.choice img { width: 28px; height: 28px; flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; font-size: .8125rem; color: var(--ink-2); }
.choice::after { content: '→'; margin-left: auto; color: var(--ink-3); }
.badge__body:last-child { padding-bottom: 28px; }

/* sign in, step two: who, with a way back */
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--rule-2); font-weight: 600; overflow-wrap: anywhere; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 400; }
.switch { margin: 14px 0 0; text-align: center; }
.mono { font-family: var(--mono); font-size: .75rem; }
.app-tile > span { min-width: 0; }

/* the apps' committees, side by side */
.merge__title { margin: 0 0 10px; font: 400 2rem/1.2 var(--serif); }
.lead { max-width: 720px; color: var(--ink-2); }
.merge__quick { margin: 8px 0 20px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: .8125rem; }
.mtable { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--card); margin-bottom: 14px; }
.mrow { display: grid; grid-template-columns: 56px minmax(90px, .7fr) repeat(2, minmax(0, 1.3fr)) minmax(0, 1.6fr); gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--rule-2); font-size: .9375rem; }
.mrow:first-child { border-top: 0; }
.mtable--1 .mrow { grid-template-columns: 56px minmax(90px, .7fr) minmax(0, 1.3fr) minmax(0, 1.6fr); }
.mtable--3 .mrow { grid-template-columns: 56px minmax(90px, .7fr) repeat(3, minmax(0, 1.2fr)) minmax(0, 1.5fr); }
.mrow--head { background: var(--field); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mapp { display: inline-flex; align-items: center; gap: 6px; }
.mapp img { width: 16px; height: 16px; }
.pick { display: flex; gap: 6px; align-items: flex-start; }
.chairs { display: grid; gap: 4px; }
.mrow input { accent-color: var(--ink); }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 40px 1fr; }
  .mrow--head { display: none; }
  .mrow > span:nth-child(n+3) { grid-column: 2; }
  /* (no column headings here: each says which app, or the chairs) */
  .mrow > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 .625rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
}
