/* Every page of docs.bb84dynamics.com.au: the public links (/p) and the
   signed in portal, which share one look.
   Ink header with the mark, cream page, Orbitron for the heading only, and the
   footer rule. The one cyan is the diagonal inside the mark itself; nothing
   on these pages adds another. No inline styles anywhere: the site's policy
   allows none. */

@font-face{
  font-family:'Orbitron';
  src:url('/fonts/Orbitron-Bold.woff2') format('woff2'),
      url('/fonts/Orbitron-Bold.woff') format('woff');
  font-weight:700; font-style:normal; font-display:swap;
}

:root{
  --ink:       #0B0B0F;
  --cream:     #F0F0EC;
  --text:      #0B0B0F;
  --text-2:    rgba(11,11,15,.64);
  --rule:      rgba(11,11,15,.14);
  --field:     #FAFAF7;
  --danger:    #A8323A;
  --identity:  'Orbitron', 'Helvetica Neue', Arial, sans-serif;
  --body:      'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ background:var(--cream); }
body{
  margin:0; min-height:100vh; display:flex; flex-direction:column;
  background:var(--cream); color:var(--text);
  font:16px/1.5 var(--body);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

.mast{ background:var(--ink); padding:28px 16px; display:flex; justify-content:center; }
.mast img{ display:block; width:190px; max-width:62%; height:auto; }

.page{ flex:1; width:100%; max-width:640px; margin:0 auto; padding:44px 16px 56px; }

h1{
  font-family:var(--identity); font-weight:700;
  font-size:22px; line-height:1.3; letter-spacing:.06em; text-transform:uppercase;
  margin:0 0 12px; overflow-wrap:anywhere;
}
.lead{ margin:0 0 32px; color:var(--text-2); font-size:15px; }
.error{ margin:0; font-size:15px; }

.docs{ list-style:none; margin:0; padding:0; border-top:1px solid var(--rule); }
.doc{
  display:flex; align-items:center; gap:16px;
  padding:16px 0; border-bottom:1px solid var(--rule);
}
.doc .what{ flex:1; min-width:0; }
.doc .title{ display:block; font-weight:600; overflow-wrap:anywhere; }
.doc .kind{ display:block; color:var(--text-2); font-size:13px; margin-top:2px; }
.open{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; min-width:88px; padding:0 20px;
  background:var(--ink); color:var(--cream); border-radius:4px;
  font-size:14px; font-weight:600; letter-spacing:.04em; text-decoration:none;
}
.open:hover{ background:#24242B; }
.open:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

.foot{ width:100%; max-width:640px; margin:0 auto; padding:0 16px 32px; }
.foot .rule{ border:0; border-top:1px solid var(--rule); margin:0 0 14px; }
.foot p{ margin:0; color:var(--text-2); font-size:13px; letter-spacing:.02em; }

/* --- the signed in portal --------------------------------------------------------- */

/* Who is signed in, and the way out, on the cream under the ink header. */
.who{
  width:100%; max-width:640px; margin:0 auto; padding:16px 16px 0;
  display:flex; justify-content:flex-end; align-items:center; gap:12px;
  font-size:14px; color:var(--text-2); min-height:16px;
}
.who:empty{ padding:0; min-height:0; }
.who span{ overflow-wrap:anywhere; }

/* A form keeps the page's left edge, in line with the footer rule, and is
   only narrower within it. */
.page.narrow > *{ max-width:440px; }
.note{ margin:0 0 16px; color:var(--text-2); font-size:15px; }
.note.after{ margin-top:32px; }
.error{ color:var(--danger); font-size:15px; min-height:1.5em; margin:12px 0 0; }
form .note{ margin:12px 0 0; }

label{ display:block; font-size:14px; color:var(--text-2); margin:24px 0 8px; }
input{
  width:100%; font:inherit; font-size:16px; color:var(--text);
  padding:12px 14px; border:1px solid var(--rule); border-radius:4px; background:var(--field);
}
input:focus{ outline:2px solid var(--ink); outline-offset:1px; border-color:var(--ink); }
input.code{ letter-spacing:.4em; font-family:ui-monospace, Menlo, monospace; font-size:22px; }

/* One button, ink with cream text, at three sizes of importance. */
button, .button, .open{
  font:inherit; font-size:14px; font-weight:600; letter-spacing:.04em;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 18px; border-radius:4px; cursor:pointer;
  border:1px solid var(--ink); background:var(--ink); color:var(--cream); text-decoration:none;
}
button:hover, .button:hover{ background:#24242B; border-color:#24242B; }
button:focus-visible, .button:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
button:disabled{ opacity:.45; cursor:default; }
button.primary{ width:100%; margin-top:20px; }
/* Beside the ink one: the same shape, outlined, so two never compete. */
button.quiet, .button.quiet{ background:transparent; color:var(--ink); }
button.quiet:hover, .button.quiet:hover{ background:rgba(11,11,15,.06); border-color:var(--ink); }
button.link{
  min-height:44px; padding:0; border:0; background:none; color:var(--ink); font-weight:400;
  letter-spacing:0; text-decoration:underline; text-underline-offset:3px;
}
button.link:hover{ background:none; }

.list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--rule); }
.item{ display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--rule); flex-wrap:wrap; }
.item .name{
  flex:1 1 180px; min-width:0; min-height:0; padding:0; border:0; background:none; color:var(--text);
  font-size:16px; font-weight:600; letter-spacing:0; text-align:left; justify-content:flex-start;
  overflow-wrap:anywhere;
}
.item .name:hover{ background:none; text-decoration:underline; text-underline-offset:3px; }
.item .kind{ color:var(--text-2); font-size:13px; }
.item .acts{ display:flex; gap:8px; margin-left:auto; }

.trail{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.trail button{ min-height:36px; padding:0 12px; font-size:13px; }

.reader-head{ display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.reader-head h1{ flex:1 1 200px; margin:0; font-size:18px; }
.page.reader{ max-width:900px; }
.pages{ display:flex; flex-direction:column; align-items:center; gap:16px; }
.pages img{
  width:100%; max-width:820px; background:#fff; border:1px solid var(--rule);
  user-select:none; -webkit-user-drag:none;
}

@media print{
  body *{ display:none !important; }
  body::after{ content:"These documents are shared to read on screen."; display:block; padding:40px; }
}
