/* Commonside simple style. Plain basic HTML look. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e0d7c4; color: #111;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; }
h1 { font-size: 24px; color: #000; margin: 0 0 10px; }
h2 { font-size: 19px; color: #000; margin: 24px 0 8px; }
h3 { font-size: 15px; color: #000; margin: 14px 0 6px; }
p { margin: 8px 0; }
a { color: #1a0dab; }
a:visited { color: #551a8b; }
.btn:visited { color: #000; }
.btn-primary:visited { color: #e0d7c4; }
.btn-danger:visited { color: #900; }
.topnav a:visited, .side a:visited, .moplinks a:visited { color: #000; }
small, .small { font-size: 12px; }
.muted { color: #444; }
.mono { font-family: monospace; font-size: 13px; }
.kicker { font-size: 11px; font-weight: bold; letter-spacing: 1px; color: #444; text-transform: uppercase; }
.lede { font-size: 15px; max-width: 640px; }
.token { user-select: all; word-break: break-all; background: #f4efe2; border: 1px dashed #777; padding: 6px 8px; display: inline-block; }
ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 6px; }
.center { text-align: center; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* simple header: name left, links right */
.site-head { padding: 12px 0 0; }
.head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid #111; padding-bottom: 10px; }
.logo { margin-right: auto; line-height: 0; text-decoration: none; }
.logoimg { height: 42px; width: auto; display: block; }
.beta { font-size: 10px; font-weight: bold; border: 1px solid #111; border-radius: 8px; padding: 1px 7px; }
.topnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topnav a { color: #000; font-size: 13px; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.topnav a.here { font-weight: bold; text-decoration: underline; }
.topnav .cta { font-weight: bold; }
.topnav .who { font-size: 12px; color: #444; }

/* page */
main.page { padding: 16px 16px 28px; }

/* simple footer */
.site-foot { font-size: 12px; color: #333; padding-bottom: 24px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  border-top: 2px solid #111; padding-top: 14px; margin-top: 8px; }
.foot-grid b { color: #000; }
.foot-grid a { display: block; padding: 2px 0; }
.foot-base { padding-top: 10px; color: #444; }

/* plain content blocks */
.cols2, .cols3, .cols5 { margin: 6px 0; }
.layout { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: start; }
.side { border: 1px solid #111; padding: 8px; }
.side a { display: block; padding: 6px 8px; font-size: 13px; color: #000; text-decoration: none; }
.side a:hover { text-decoration: underline; }
.side a.here { font-weight: bold; text-decoration: underline; }

.card { border: 1px solid #111; padding: 12px; margin-bottom: 12px; background: #e8e0cd; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.rowline { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0;
  border-bottom: 1px dotted #777; font-size: 13px; }
.rowline:last-child { border-bottom: 0; }

/* plain buttons */
.btn { display: inline-block; padding: 8px 16px; background: #f4efe2; color: #000;
  border: 2px solid #111; border-radius: 4px; font-size: 13px; font-weight: bold;
  cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { background: #fff; text-decoration: none; }
.btn-primary { background: #111; color: #e0d7c4; }
.btn-primary:hover { background: #333; }
.btn-danger { border-color: #900; color: #900; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btnlogo { height: 18px; width: auto; vertical-align: -4px; margin-right: 6px; }

/* forms */
.field { margin-bottom: 12px; }
.label { display: block; font-size: 12px; font-weight: bold; color: #000; margin-bottom: 4px; }
.input, .textarea, .select { display: block; width: 100%; border: 1px solid #111;
  background: #fff; padding: 8px 10px; font-size: 14px; font-family: inherit; color: #000; }
.textarea { resize: vertical; }
.help { font-size: 12px; color: #444; margin-top: 4px; }

/* tables */
.tablewrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #000; padding: 8px; border-bottom: 2px solid #111; }
.table td { padding: 8px; border-bottom: 1px solid #999; vertical-align: top; }

/* status badges, plain */
.badge { display: inline-block; padding: 2px 8px; border: 1px solid #111; font-size: 11px;
  font-weight: bold; background: #f4efe2; color: #000; white-space: nowrap; }
.badge-active, .badge-approved, .badge-registered { background: #111; color: #e0d7c4; }
.badge-pending, .badge-hold, .badge-on-hold { background: #fff; }
.badge-planned { border-style: dashed; color: #444; }

/* notes */
.note, .flash { padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
  background: #f4efe2; border: 1px solid #111; }
.note.ok, .flash { border-left: 6px solid #111; }
.note.warn { border-left: 6px solid #777; }
.note.err { border: 2px solid #900; color: #900; }
.record-warning { color: #c00; font-weight: bold; }

/* homepage blocks */
.hero { padding: 16px 0 8px; text-align: center; }
.heroimg { display: block; max-width: 380px; width: 100%; height: auto; margin: 4px auto 12px; }
.hero .cta-row { margin-top: 12px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 6px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 6px; }
.svc-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.svc-item svg { flex: 0 0 auto; width: 32px; height: 32px; stroke: #000; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-item b { display: block; }
.svc-item p { margin: 2px 0 0; }
.flow { margin: 10px 0; }
.node { padding: 4px 0; font-size: 13px; }
.node b { display: inline; }
.node b::after { content: ": "; }

details summary { cursor: pointer; text-decoration: underline; }

/* fluid media and overflow guards for every screen size */
img, svg { max-width: 100%; height: auto; }
.mono { overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table td { overflow-wrap: anywhere; }

/* tablets and small laptops */
@media (max-width: 1024px) {
  .wrap { padding: 0 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .svc-list, .why-grid { grid-template-columns: 1fr 1fr; }
}

/* phones */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .cols2, .cols3, .cols5 { display: block; }
  .svc-list, .why-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .side { padding: 6px; }
  .side a { display: inline-block; margin: 0 4px 6px 0; border: 1px solid #111; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 21px; }
  h2 { font-size: 17px; }
  main.page { padding: 12px 12px 20px; }
  .card { padding: 10px; }
  .btn { padding: 10px 18px; }
  .btn-lg { display: block; width: 100%; margin: 8px 0; text-align: center; }
  .cta-row .btn { display: block; width: 100%; margin: 8px 0; text-align: center; }
  .cta-row button[disabled] { display: block; width: 100%; margin: 8px 0; }
  /* 16px inputs stop iOS auto-zoom on focus */
  .input, .textarea, .select { font-size: 16px; }
  .head-row { gap: 8px; }
  .topnav { gap: 10px; }
  .rowline { flex-direction: column; gap: 2px; }
}

/* small phones */
@media (max-width: 420px) {
  body { font-size: 14px; }
  .wrap { padding: 0 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  h1 { font-size: 19px; }
  .logoimg { height: 32px; }
  .heroimg { max-width: 260px; }
  .table th, .table td { padding: 6px; font-size: 12px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .side a { font-size: 12px; padding: 6px; }
}

.btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm svg { width: 12px; height: 12px; }

/* old-school scrollbar: wide, bevelled thumb, dotted track, arrow buttons */
:root { color-scheme: light; }
* { scrollbar-width: auto; scrollbar-color: #6b6455 #e0d7c4; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track {
  background-color: #e0d7c4;
  background-image: repeating-linear-gradient(45deg, #d3c8ac 0 1px, transparent 1px 3px);
}
*::-webkit-scrollbar-thumb {
  background: #e8e0cd;
  border-top: 2px solid #fffdf4;
  border-left: 2px solid #fffdf4;
  border-right: 2px solid #6b6455;
  border-bottom: 2px solid #6b6455;
}
*::-webkit-scrollbar-thumb:hover { background: #f4efe2; }
*::-webkit-scrollbar-thumb:active {
  border-top: 2px solid #6b6455;
  border-left: 2px solid #6b6455;
  border-right: 2px solid #fffdf4;
  border-bottom: 2px solid #fffdf4;
}
*::-webkit-scrollbar-button:single-button {
  background: #e8e0cd;
  border-top: 2px solid #fffdf4;
  border-left: 2px solid #fffdf4;
  border-right: 2px solid #6b6455;
  border-bottom: 2px solid #6b6455;
  width: 11px; height: 11px;
  background-size: 8px 8px;
  background-repeat: no-repeat;
  background-position: center;
}
*::-webkit-scrollbar-button:single-button:active {
  border-top: 2px solid #6b6455;
  border-left: 2px solid #6b6455;
  border-right: 2px solid #fffdf4;
  border-bottom: 2px solid #fffdf4;
}
*::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 5l-4 5h8z' fill='%23111'/%3E%3C/svg%3E");
}
*::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 11l-4-5h8z' fill='%23111'/%3E%3C/svg%3E");
}
*::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 8l5-4v8z' fill='%23111'/%3E%3C/svg%3E");
}
*::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M11 8l-5-4v8z' fill='%23111'/%3E%3C/svg%3E");
}
*::-webkit-scrollbar-corner { background: #e0d7c4; }

.login-mascot { display: block; width: clamp(90px, 18vw, 130px); margin: 0 auto 10px; }

/* big beaver tucked behind the login box, slides out on focus. No JS. */
.login-stage { position: relative; margin-bottom: 110px; }
.login-card { position: relative; z-index: 1; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
.peek-big {
  position: absolute; right: -80px; bottom: -46px; z-index: 0; pointer-events: none;
  width: clamp(180px, 34vw, 300px); height: auto;
}
@media (max-width: 700px) {
  .login-stage { margin-bottom: 70px; }
  .peek-big { right: 8px; bottom: -14px; }
}
