/* Shared look of the demo sites (www/corpus/demo/*). System fonts only; nothing loads from another site. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #222; background: #f5f6f8; line-height: 1.4; }
a { color: #1a5fb4; }
.demo-banner { background: #fff4c2; border-bottom: 1px solid #e0c96b; padding: .4em 1em; font-size: .85em; }
.demo-banner a { margin-left: .5em; }
.topbar { display: flex; align-items: center; gap: 1em; background: #23395b; color: #fff; padding: .7em 1em; }
.topbar a, .topbar button.link { color: #fff; }
.topbar .brand { font-weight: bold; font-size: 1.15em; text-decoration: none; }
.topbar .spacer { flex: 1; }
main { max-width: 64em; margin: 1.2em auto; padding: 0 1em; }
.panel { background: #fff; border: 1px solid #dde1e6; border-radius: 6px; padding: 1em 1.2em; margin-bottom: 1em; }
button, .button { font: inherit; padding: .4em .9em; border: 1px solid #9aa4b2; border-radius: 4px; background: #fff; cursor: pointer; color: #222; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: #1a5fb4; border-color: #1a5fb4; color: #fff; }
button.danger { background: #b42318; border-color: #b42318; color: #fff; }
button:disabled { opacity: .5; cursor: default; }
button.link { border: 0; background: none; padding: 0; text-decoration: underline; }
input, select, textarea { font: inherit; padding: .35em .5em; border: 1px solid #9aa4b2; border-radius: 4px; }
label { display: block; margin: .5em 0 .2em; font-size: .9em; color: #444; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .45em .6em; border-bottom: 1px solid #e3e6ea; vertical-align: top; }
th button { border: 0; background: none; padding: 0; font-weight: bold; }
.error { color: #b42318; font-size: .9em; min-height: 1.2em; }
.muted { color: #667; font-size: .9em; }
.badge { display: inline-block; padding: .05em .5em; border-radius: 1em; font-size: .8em; background: #e8eef7; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal[hidden] { display: none; }
.modal > div { background: #fff; border-radius: 8px; padding: 1.2em 1.5em; width: 26em; max-width: 92vw; }
.row { display: flex; gap: .8em; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: 1em; }
.swatch { height: 7em; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 1.5em; }
