/* Trang "Giải đề mẫu" (giai-de.html): dùng nền và chữ của trang Luyện tập (pr-vivid). Không khung, không thẻ:
   tách bằng khoảng trắng và đường kẻ mảnh; chỉ nút hành động chính có nền đặc. */
.gd-main h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; letter-spacing: -.02em; }
.gd-grades { display: flex; gap: 6px; margin: 8px 0 4px; }
.gd-grade { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ep-ink); font: 700 16px "Comfortaa", "Segoe UI", sans-serif; cursor: pointer; }
.gd-grade[aria-pressed="true"] { background: #0e7c8c; color: #fff; }

.gd-group { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--pv-line); }
.gd-group-title { margin: 0 0 14px; font: 700 clamp(22px, 2.8vw, 30px)/1.25 "Comfortaa", "Segoe UI", sans-serif; color: var(--ep-ink); }
.gd-exams { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px 10px; }
.gd-exam { display: grid; justify-items: center; gap: 2px; min-height: 76px; padding: 10px 6px; border: 0; border-radius: 16px; background: transparent; color: var(--ep-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s, transform .15s; }
.gd-exam strong { font: 700 20px/1.2 "Comfortaa", "Segoe UI", sans-serif; }
.gd-exam span { font: 400 14px/1.3 "Segoe UI", system-ui, sans-serif; color: var(--ep-soft); }
.gd-exam.is-done strong { color: #0b8457; }
.gd-exam.is-done span { color: #0b8457; }
.gd-exam:focus-visible { outline: 2px solid #0e7c8c; outline-offset: 2px; }
@media (hover: hover) { .gd-exam:hover { background: rgba(255, 255, 255, .55); transform: translateY(-2px); } }
.gd-exam:active { background: rgba(255, 255, 255, .7); }

/* Một đề */
.gd-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 10px -6px; padding: 0 10px 0 4px; border: 0; background: none; color: var(--ep-ink); font: 700 16px "Comfortaa", "Segoe UI", sans-serif; cursor: pointer; }
.gd-back svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-progress { margin: 0 0 8px; color: #0b8457; font: 700 16px "Comfortaa", "Segoe UI", sans-serif; }
.gd-part { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--pv-line); color: #0e7c8c; font: 700 15px/1.3 "Comfortaa", "Segoe UI", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.gd-q { padding: 18px 0 20px; border-bottom: 1px solid var(--pv-line); }
.gd-q:last-child { border-bottom: 0; }
.gd-q-title { margin: 0 0 6px; color: var(--ep-ink); font: 700 18px/1.3 "Comfortaa", "Segoe UI", sans-serif; }
.gd-q.is-done .gd-q-title { color: #0b8457; }
.gd-q-text { margin: 0 0 10px; color: var(--ep-ink); font: 400 19px/1.6 "Segoe UI", system-ui, sans-serif; white-space: pre-line; }
.gd-q-img { display: block; max-width: min(100%, 520px); height: auto; margin: 6px 0 12px; }
.gd-steps { margin: 4px 0 8px; padding-left: 26px; color: var(--ep-soft); font: 400 17px/1.6 "Segoe UI", system-ui, sans-serif; }
.gd-steps li { margin: 4px 0; animation: gd-in .25s ease-out; }
@keyframes gd-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gd-answer { margin: 6px 0 12px; color: #0b8457; font: 400 18px/1.5 "Segoe UI", system-ui, sans-serif; }
.gd-answer b { font-family: "Comfortaa", "Segoe UI", sans-serif; }
.gd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.gd-hint { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #0e7c8c; color: #fff; font: 700 16px "Comfortaa", "Segoe UI", sans-serif; cursor: pointer; }
@media (hover: hover) { .gd-hint:hover { background: #0b6a78; } }
.gd-board { display: inline-flex; align-items: center; min-height: 46px; color: #0a5f6d; font: 700 15px "Comfortaa", "Segoe UI", sans-serif; text-decoration: none; }
.gd-board:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 560px) {
  .gd-exams { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 4px; }
  .gd-exam strong { font-size: 17px; }
  .gd-q-text { font-size: 17px; }
  .gd-steps { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .gd-steps li { animation: none; } .gd-exam { transition: none; } }

/* 28-11: 4 cột (Giữa HK1 · Cuối HK1 · Cuối HK2 · Đề cương), mỗi cột là danh sách dọc "Đề 1 ……… 9 câu" */
#gd-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pv-line); }
#gd-groups .gd-group { margin: 0; padding: 0; border: 0; min-width: 0; }
#gd-groups .gd-group-title { margin: 0 0 8px; font-size: clamp(19px, 1.8vw, 24px); }
#gd-groups .gd-exams { display: flex; flex-direction: column; gap: 0; }
#gd-groups .gd-exam { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 46px; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--pv-line); text-align: left; }
#gd-groups .gd-exam:last-child { border-bottom: 0; }
#gd-groups .gd-exam strong { font-size: 18px; }
#gd-groups .gd-exam span { font-size: 14px; white-space: nowrap; }
@media (hover: hover) { #gd-groups .gd-exam:hover { transform: none; background: rgba(255, 255, 255, .55); } }
@media (max-width: 980px) { #gd-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; } }
@media (max-width: 420px) { #gd-groups { gap: 26px 14px; } #gd-groups .gd-exam { padding: 10px 4px; } #gd-groups .gd-exam strong { font-size: 16px; } }
#gd-groups .gd-exam { border-radius: 0; }
/* Đường kẻ mảnh dọc chia cột; bỏ đường ngang phía trên */
#gd-groups { border-top: 0; padding-top: 6px; gap: 0 !important; }
#gd-groups .gd-group { padding: 0 22px; }
#gd-groups .gd-group:first-child { padding-left: 0; }
#gd-groups .gd-group:last-child { padding-right: 0; }
#gd-groups .gd-group + .gd-group { border-left: 1px solid var(--pv-line); }
@media (max-width: 980px) {
  #gd-groups { row-gap: 30px !important; }
  #gd-groups .gd-group:nth-child(odd) { padding-left: 0; border-left: 0; }
  #gd-groups .gd-group:nth-child(even) { padding-right: 0; }
}
@media (max-width: 420px) { #gd-groups .gd-group { padding: 0 10px; } }

/* Chọn lớp ngay trên tiêu đề: "Đề Toán lớp 5 · 6 · 7 · 8 · 9" — lớp đang chọn đậm màu, lớp khác mờ */
.gd-grade-row { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.gd-grade-num { min-width: 44px; padding: 0 4px; border: 0; background: none; color: rgba(11, 52, 73, .3); font: inherit; letter-spacing: inherit; line-height: inherit; cursor: pointer; transition: color .15s; }
.gd-grade-num[aria-pressed="true"] { color: #0e7c8c; }
@media (hover: hover) { .gd-grade-num:hover { color: rgba(11, 52, 73, .6); } .gd-grade-num[aria-pressed="true"]:hover { color: #0e7c8c; } }
.gd-grade-num:focus-visible { outline: 2px solid #0e7c8c; outline-offset: 2px; border-radius: 8px; }
.gd-grade-sep { color: rgba(11, 52, 73, .2); font-weight: 400; }
#gd-groups .gd-empty { grid-column: 1 / -1; margin: 10px 0 0; padding: 0; border: 0; color: var(--ep-soft); font: 700 20px/1.4 "Comfortaa", "Segoe UI", sans-serif; }
