/* Sunday Test: hub pages (.st-*) and the exam screen (.stx-*). Builds on daily-quiz.css. */
.st-back { margin: 0 0 4px; font-size: 13px; }
.st-back a { color: #2952cc; font-weight: 600; text-decoration: none; }
.st-list { display: grid; gap: 10px; margin-top: 12px; }
.st-card { display: block; background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 14px 16px; color: #1d2433; text-decoration: none; }
.st-card:hover { border-color: #9fb4ea; }
.st-card span { display: block; color: #5b6578; font-size: 13.5px; margin-top: 3px; }
.st-box { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 16px; margin-top: 12px; }
.st-box h2 { font-size: 17px; margin: 0 0 8px; }
.st-box p { margin: 8px 0 0; }
.st-box p:first-child { margin-top: 0; }
.st-box ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; font-size: 14.5px; }

.st-parts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; overflow: hidden; font-size: 14px; }
.st-parts th, .st-parts td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #eef1f6; }
.st-parts th:first-child, .st-parts td:first-child { text-align: left; }
.st-top { margin: 0; padding-left: 24px; }
.st-top li { padding: 5px 0; font-size: 14.5px; }
.st-top li span { display: inline-block; min-width: 70%; }
.st-sol { margin-top: 12px; }
.dqz-result a { color: #2952cc; font-weight: 600; }

body.stx { height: 100dvh; display: flex; flex-direction: column; }
.stx form, #stForm { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.stx-top { display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid #e3e8f0; padding: 8px 14px; }
.stx-name { flex: 1; font-size: 15px; }
.stx-time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; color: #2952cc; }
.stx-time.low { color: #b02f2f; }
.stx-pal-btn { display: none; font: inherit; font-weight: 600; font-size: 13px; background: #fff; border: 1px solid #c9d5f5; color: #2952cc; border-radius: 8px; padding: 7px 10px; }
.stx-tabs { display: flex; gap: 4px; background: #fff; border-bottom: 1px solid #e3e8f0; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.stx-tabs button { font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; border: 0; background: #f2f4f8; color: #3a4357; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.stx-tabs button.on { background: #2952cc; color: #fff; }
.stx-body { display: flex; flex: 1; min-height: 0; max-width: 1100px; width: 100%; margin: 0 auto; }
.stx-main { flex: 1; min-width: 0; overflow-y: auto; padding: 14px 16px 20px; }
.stx-q { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.stx-js .stx-q { display: none; }
.stx-js .stx-q.on { display: block; }
.stx-qn { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: #2952cc; }
.stx-qn span { color: #5b6578; font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.stx-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.stx-nav[hidden], .stx-pal[hidden], .stx-tabs[hidden] { display: none; }
.stx-nav .dqz-btn { padding: 9px 12px; }
#stMark.on { background: #fff8e1; border-color: #e2b93b; color: #6b5000; }
.stx-pal { width: 272px; flex: none; overflow-y: auto; padding: 14px 14px 20px 0; }
.stx-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #4a5468; margin-bottom: 10px; }
.stx-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; background: #e7ebf3; }
.stx-legend .a::before { background: #1e9e57; }
.stx-legend .r::before { background: #e2b93b; }
.stx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stx-grid button { font: inherit; font-size: 12.5px; font-weight: 600; aspect-ratio: 1; min-height: 34px; padding: 0; border: 1.5px solid transparent; border-radius: 7px; background: #e7ebf3; color: #3a4357; cursor: pointer; }
.stx-grid button.a { background: #1e9e57; color: #fff; }
.stx-grid button.r { background: #e2b93b; color: #3b2d00; }
.stx-grid button.cur { border-color: #2952cc; }
.stx-dlg { border: 0; border-radius: 14px; padding: 18px; max-width: 340px; width: calc(100% - 32px); }
.stx-dlg::backdrop { background: rgba(20, 28, 45, .45); }
.stx-dlg h2 { margin: 0 0 6px; font-size: 18px; }
.stx-dlg p { margin: 0 0 14px; font-size: 14.5px; color: #4a5468; }
.stx-dlgb { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .stx-pal-btn { display: inline-block; }
  .stx-pal-btn[hidden] { display: none; }
  .stx-body { position: relative; overflow: hidden; }
  .stx-pal { position: absolute; inset: 0 0 0 auto; width: min(300px, 88%); background: #fff; box-shadow: -8px 0 24px rgba(20, 28, 45, .18); padding: 14px; z-index: 5; transform: translateX(105%); transition: transform .18s; }
  .stx-pal.open { transform: none; }
  .stx-grid { grid-template-columns: repeat(5, 1fr); }
  .stx-nav .dqz-btn { flex: 1 1 45%; }
}
