/* Geometry Test Prep — MrJGeometry house style
   Light grey page, Arial, white panels, one uniform column. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #D3D3D3;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  font-size: 17px;
  line-height: 1.5;
}
.wrap { max-width: min(94vw, 1320px); margin: 0 auto; padding: 14px 14px 30px; }
a { color: #1144cc; }
/* Header — mimics mrjgeometry.com: a deep-blue band with the site name in
   white, a gold rule under the band, and white pill nav buttons (gold on
   hover / for the current page). */
.site-header { background: #1f3a5f; border-bottom: 4px solid #ffd94d; }
.header-inner { max-width: min(94vw, 1320px); margin: 0 auto; padding: 18px 14px 14px; }
.site-title { font-size: 32px; font-weight: bold; letter-spacing: .3px; margin: 0; }
.site-title a { color: #ffffff; text-decoration: none; }
.site-sub { font-size: 15.5px; color: #dbe4f0; margin: 6px 0 0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.main-nav a {
  display: inline-flex; align-items: center; padding: 10px 16px; min-height: 44px;
  background: #ffffff; border: 1px solid #ffffff; border-radius: 7px;
  color: #1f3a5f; text-decoration: none; font-size: 16px; font-weight: bold;
}
.main-nav a:hover { background: #ffd94d; border-color: #ffd94d; }
.main-nav a.current { background: #ffd94d; border-color: #ffd94d; }
.site-footer { color: #333; font-size: 14px; text-align: center; padding: 8px 0 22px; }
.panel {
  background: #fff; border: 1px solid #9a9a9a; border-radius: 10px;
  padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.15); margin-bottom: 14px;
}
.panel h1 { font-size: 26px; margin: 0 0 8px; }
.panel h2 { font-size: 21px; margin: 0 0 10px; }
.panel h3 { font-size: 18px; margin: 14px 0 6px; }
button, .btn {
  font-family: Arial, sans-serif; font-size: 15px; background: #eee; color: #000;
  border: 1px solid #9a9a9a; border-radius: 7px; padding: 9px 16px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: #ffd94d; }
button:disabled { opacity: .55; cursor: default; }
button:disabled:hover { background: #eee; }
.btn-primary { background: #ffd94d; font-weight: bold; }
.btn-primary:hover { background: #ffcf1f; }
label.filter-label { display: block; font-weight: bold; margin: 12px 0 4px; }
select, input[type="text"] {
  font-family: Arial, sans-serif; font-size: 16px; padding: 8px 10px;
  border: 1px solid #9a9a9a; border-radius: 7px; width: 100%; background: #fff;
}
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.count-line { font-size: 17px; }
table.bank { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.bank th, table.bank td { border: 1px solid #c9d6e4; padding: 6px 8px; text-align: left; vertical-align: top; }
table.bank th { background: #f4f9ff; }
.bank-scroll { max-height: 430px; overflow: auto; border: 1px solid #c9d6e4; border-radius: 8px; }
table.bank tbody tr.clickable { cursor: pointer; }
table.bank tbody tr.clickable:hover td { background: #eaf1ff; }
table.bank tbody tr.clickable td:last-child { color: #1144cc; font-weight: bold; white-space: nowrap; }
/* Practice engine */
.q-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #333; margin-bottom: 8px; }
.q-meta .tag { background: #f4f9ff; border: 1px solid #c9d6e4; border-radius: 999px; padding: 2px 10px; }
.q-progress { font-size: 15px; margin-bottom: 6px; }
.progress-track { height: 10px; background: #eee; border: 1px solid #c9d6e4; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress-fill { height: 100%; background: #3f9e2f; width: 0%; }
.q-prompt { font-size: 18px; margin: 6px 0 14px; white-space: pre-wrap; }
.q-figure { text-align: center; margin: 0 auto 14px; max-width: 860px; }
.q-figure img { max-width: 100%; height: auto; border: 1px solid #c9d6e4; border-radius: 8px; background: #fff; }
.q-figure figcaption { font-size: 13.5px; color: #333; margin-top: 4px; }
.choices { display: flex; flex-direction: column; gap: 9px; margin: 10px 0; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid #9a9a9a; border-radius: 8px; padding: 11px 13px; font-size: 16.5px;
}
.choice:hover { background: #f4f9ff; }
.choice .letter { font-weight: bold; color: #1144cc; min-width: 22px; }
.choice.selected { border-color: #1144cc; background: #eaf1ff; }
.choice.correct-reveal { border-color: #2e7d32; background: #e6f4e6; box-shadow: 0 0 0 2px #2e7d32 inset; }
.choice.wrong-pick { border-color: #b26a00; background: #fdf3e0; }
.choice input { margin-top: 4px; }
.numeric-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.numeric-row input { flex: 1 1 260px; }
.attempt-dots { font-size: 15px; margin: 8px 0; }
.attempt-dots .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #9a9a9a; margin-right: 5px; vertical-align: -2px; background: #fff; }
.attempt-dots .dot.used-wrong { background: #f2b13c; border-color: #b26a00; }
.attempt-dots .dot.used-right { background: #3f9e2f; border-color: #2e7d32; }
.feedback { border-radius: 8px; padding: 13px 15px; margin: 12px 0; font-size: 16px; display: none; }
.feedback.show { display: block; }
.feedback.amber { background: #fdf3e0; border: 1px solid #b26a00; border-left: 6px solid #b26a00; }
.feedback.green { background: #e6f4e6; border: 1px solid #2e7d32; border-left: 6px solid #2e7d32; }
.feedback .fb-title { font-weight: bold; margin-bottom: 4px; }
.explanation { background: #f4f9ff; border: 1px solid #c9d6e4; border-left: 6px solid #1144cc; border-radius: 8px; padding: 13px 15px; margin: 12px 0; display: none; }
.explanation.show { display: block; }
.explanation h3 { margin: 0 0 8px; font-size: 17px; }
.explanation ol { margin: 0; padding-left: 22px; }
.explanation li { margin-bottom: 7px; }
.q-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 16px; }
.q-nav .nav-group { display: flex; gap: 10px; flex-wrap: wrap; }
.score-strip { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15.5px; background: #f4f9ff; border: 1px solid #c9d6e4; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.rad { white-space: nowrap; }
.rad .radicand { border-top: 1.5px solid currentColor; padding: 0 2px; }
.frac { display: inline-block; vertical-align: middle; text-align: center; margin: 0 2px; }
.frac .num { display: block; border-bottom: 1.5px solid currentColor; padding: 0 4px; line-height: 1.15; }
.frac .den { display: block; padding: 0 4px; line-height: 1.15; }
.summary-score { font-size: 30px; font-weight: bold; }
.proof-table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 15.5px; background: #fff; }
.proof-table th, .proof-table td { border: 1px solid #b9c6d4; padding: 7px 10px; text-align: left; vertical-align: top; }
.proof-table th { background: #eef3f9; font-size: 15px; }
.proof-table td:first-child, .proof-table th:first-child { width: 34px; text-align: right; color: #333; }
.credits-list { font-size: 15px; }
.credits-list li { margin-bottom: 6px; }
.bottom-note, .copyright-line { font-size: 14px; color: #333; text-align: center; margin: 4px 0; }
.back-bar { background: #fff; border: 1px solid #9a9a9a; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.15); padding: 10px 20px; margin-bottom: 14px; }
.back-bar.bottom { margin-top: 0; }
.small { font-size: 14px; color: #333; }
@media (max-width: 640px) {
  .site-header .site-title { font-size: 25px; }
  .panel h1 { font-size: 22px; }
  .q-prompt { font-size: 16.5px; }
}
