@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.ttf); font-display: swap; }
@font-face { font-family: Vazirmatn; font-weight: bold; src: url(fonts/Vazirmatn-Bold.ttf); font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Vazirmatn, sans-serif; background: #f4f5f7; color: #1d2430; line-height: 1.8; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; background: #14365c; color: #fff; }
header a, header .plain { color: #fff; text-decoration: none; }
.brand { font-weight: bold; font-size: 1.25rem; }
nav { display: flex; gap: 16px; align-items: center; }
nav form { margin: 0; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
section { background: #fff; border: 1px solid #e2e5ea; border-radius: 10px; padding: 16px; margin-bottom: 14px; overflow-x: auto; }
h1 { font-size: 1.2rem; margin-top: 0; } h2 { font-size: 1.05rem; margin-top: 0; }
label { display: block; margin-bottom: 10px; }
input, select, textarea { display: block; width: 100%; font: inherit; padding: 8px; border: 1px solid #c5cad3; border-radius: 7px; background: #fff; }
button, .button { font: inherit; background: #14365c; color: #fff; border: 0; border-radius: 7px; padding: 7px 18px; cursor: pointer; text-decoration: none; display: inline-block; margin-inline-end: 10px; }
.plain { background: none; padding: 0; color: #14365c; text-decoration: underline; }
.error { background: #fdecec; color: #8f1d1d; padding: 10px; border-radius: 8px; }
.pre { white-space: pre-line; }
.active { font-weight: bold; }
.off { opacity: .55; }
.question table { width: 100%; border-collapse: collapse; }
.question table.grid td, .question table.grid th { border: 1px solid #999; padding: 3px 6px; }
.question p { margin: 0; } .stem { font-weight: bold; }
.question table.match > tbody > tr > td:first-child { width: 80%; }
.question table.grp > tbody > tr > td:first-child { width: 6%; }
small[dir] { white-space: nowrap; }
