/* MCQsExam – My exam plan and PDF practice sets. Uses the site's colour variables, so dark mode works too. */
.disc-hero.is-plan { --disc-bg: linear-gradient(135deg, #065f46, #16a34a); }
.page-plan .sm-meter, .pdf-menu .sm-meter { background: var(--line-2); border-color: var(--line); }
.plan-tiles .sm-tile strong em { font-style: normal; font-size: 1rem; color: var(--muted); font-weight: 700; margin-left: 2px; }
.plan-tiles .sm-tile .sm-meter { margin-top: 8px; }
.plan-pace { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 16px; color: var(--ink-2); }
.plan-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-left: 4px solid var(--brand-600); }
.plan-next small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.plan-next h2 { font-size: 1.15rem; margin: 2px 0; }
.plan-next h2 span { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.plan-subjects { display: grid; gap: 8px; }
.plan-subject { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.plan-subject > summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.plan-subject > summary::-webkit-details-marker { display: none; }
.plan-subject > summary::before { content: "\25B8"; position: absolute; margin-left: -12px; color: var(--muted); }
.plan-subject[open] > summary::before { content: "\25BE"; }
.plan-subject > summary { position: relative; padding-left: 26px; }
.plan-subject .sm-meter, .plan-topics .sm-meter { grid-column: auto; }
.plan-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-name small { font-weight: 600; margin-left: 6px; }
.plan-name small.is-low { color: var(--bad); }
.plan-name small.is-ok { color: var(--ok); }
.plan-num { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.plan-topics { list-style: none; margin: 0; padding: 0 14px 12px 26px; display: grid; gap: 6px; }
.plan-topics li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: .92rem; }
.plan-topics .btn-sm { padding: 2px 10px; font-size: .8rem; }
@media (max-width: 575.98px) {
  .plan-topics li { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-topics li .sm-meter { grid-column: 1 / -1; order: 3; }
  .plan-subject > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-subject > summary .sm-meter { grid-column: 1 / -1; order: 3; }
}
.plan-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.plan-heat span { aspect-ratio: 1; border-radius: 4px; background: var(--line-2); }
.plan-heat .l1 { background: #bbf7d0; } .plan-heat .l2 { background: #4ade80; } .plan-heat .l3 { background: #15803d; }
.plan-steps { padding-left: 1.2rem; margin-bottom: 16px; } .plan-steps li { margin-bottom: 6px; }
.plan-form-panel { max-width: 640px; }
.plan-live { font-weight: 700; color: var(--ok); white-space: nowrap; }
.plan-next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.plan-cta { border-left: 4px solid var(--brand-600); }

/* "Download PDF" menu */
.pdf-menu { position: relative; }
.pdf-menu > summary { list-style: none; cursor: pointer; }
.pdf-menu > summary::-webkit-details-marker { display: none; }
.pdf-menu > summary small { font-weight: 500; opacity: .8; }
.pdf-menu-list { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; max-height: 300px; overflow: auto; }
.pdf-menu-note { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.pdf-menu-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pdf-menu-list a { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.pdf-menu-list a:hover { border-color: var(--brand-100); background: var(--brand-50); text-decoration: none; color: var(--brand); }
.pdf-menu-list a span { margin-left: auto; font-weight: 500; color: var(--muted); font-size: .75rem; }
