/* plan-summary.css: «ملخص خطتك» (/my-plan/) and its hooks. Site tokens only (zm.css): --paper ivory, --ink navy,
   --primary burgundy for buttons and done marks, gold #B98A3C for the next-step mark only. Light only, like the site. */
.zps-page{padding-block:8px 32px}
.zps-page h1{margin-block:8px 6px;text-wrap:balance}
.zps-lede{color:var(--muted);font-size:17px;max-width:62ch}
.zps-page ::selection{background:#E9DDE0;color:var(--ink)}
#zps-root{margin-block-start:20px}
.zps-loading{color:var(--muted)}
.zps-row{display:flex;flex-wrap:wrap;gap:10px;margin-block-start:14px}
.zps-page .zm-btn{transition:transform 160ms cubic-bezier(.23,1,.32,1),background-color 160ms ease}
.zps-page .zm-btn:active{transform:scale(.97)}

/* actions */
.zps-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block:0 22px}
.zps-status{flex-basis:100%;font-size:15px;color:var(--ink);min-height:0}
.zps-status:empty{display:none}

/* «أنت هنا» */
.zps-now{background:var(--sand);border-radius:var(--r);padding:18px 16px 16px;margin-block-end:18px}
.zps-now h2{font-size:20px;margin-block-end:4px}
.zps-now-plan{font-weight:700}
.zps-now-next{margin-block-start:10px;font-size:19px;line-height:1.6;font-weight:700;text-wrap:pretty}
.zps-now-label{display:block;font-size:14px;font-weight:700;color:var(--muted);margin-block-end:2px}
.zps-go{min-height:48px}

/* cost and time, only where the site states them */
.zps-info{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:6px}
.zps-info li{font-size:15px;line-height:1.7;background:var(--paper);border:1px solid var(--line);border-radius:var(--rc);padding:6px 10px}
.zps-info b{margin-inline-end:4px}
.zps-src{font-size:14px;color:var(--primary);text-underline-offset:4px;white-space:nowrap}

/* plans */
.zps-all>h2{margin-block:8px 6px}
.zps-plan{padding-block:16px;border-block-start:1px solid var(--line)}
.zps-plan:first-of-type{border-block-start:0}
.zps-plan-h{font-size:19px;scroll-margin-block-start:80px}
.zps-meta{color:var(--muted);font-size:15px;margin-block-start:2px}
.zps-crs{margin-block-start:8px;font-weight:700;font-variant-numeric:tabular-nums}
.zps-more{margin-block-start:10px}
.zps-more>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--primary);font-weight:700;list-style-position:inside}
.zps-reveal{margin-block:8px 4px;font-size:15px;min-height:44px}
.zps-include{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;cursor:pointer}
.zps-include input{width:20px;height:20px;accent-color:var(--primary);flex-shrink:0}
.zps-plan-go a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--primary);text-underline-offset:5px}

/* steps: done = burgundy box with a drawn tick, next = gold outline, todo = line */
.zps-steps{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:2px}
.zps-step{display:grid;grid-template-columns:22px 1fr;gap:10px;padding-block:8px;align-items:start}
.zps-mark{width:20px;height:20px;margin-block-start:5px;border:2px solid #B9BBB0;border-radius:5px;position:relative;background:var(--paper)}
.zps-step[data-state=done] .zps-mark{background:var(--primary);border-color:var(--primary);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.zps-step[data-state=done] .zps-mark::after{content:"";position:absolute;inset-inline-start:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.zps-step[data-state=next] .zps-mark{border-color:#B98A3C;border-width:3px}
.zps-step-title{font-size:16px;line-height:1.65;text-wrap:pretty}
.zps-step[data-state=next] .zps-step-title{font-weight:700}
.zps-n{font-variant-numeric:tabular-nums;color:var(--muted);margin-inline-end:2px}
.zps-step-state{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.zps-step[data-state=done] .zps-step-state{color:var(--primary);font-weight:700}
.zps-step[data-state=next] .zps-step-state{color:var(--ink);font-weight:700}
.zps-note{margin-block-start:18px;font-size:14px;color:var(--muted);max-width:62ch}

/* empty state */
.zps-empty{background:var(--sand);border-radius:var(--r);padding:18px 16px}
.zps-empty h2{font-size:20px}
.zps-how{padding-inline-start:22px;margin-block:10px 0}
.zps-how li{margin-block:6px}

/* privacy box (static) */
.zps-privacy{margin-block-start:32px;padding-block-start:14px;border-block-start:1px solid var(--line);font-size:15px;color:var(--muted);max-width:62ch}
.zps-privacy h2{font-size:17px;color:var(--ink);margin-block-end:4px}
.zps-privacy a{color:var(--ink);text-underline-offset:4px;display:inline-flex;min-height:44px;align-items:center}
.zps-print-head{display:none}

/* hook 1: path pages, under the H1 */
.zps-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-block:8px 14px}
.zps-entry .zm-btn{min-height:44px;transition:transform 160ms cubic-bezier(.23,1,.32,1)}
.zps-entry .zm-btn:active{transform:scale(.97)}
.zps-entry-note{flex-basis:100%;font-size:14px;color:var(--muted);margin:0}
.zps-entry-note:empty{display:none}
.zps-home-row{margin:0 0 12px}
.zps-home-row .zm-btn{min-height:44px}
.zps-entry-status{flex-basis:100%;font-size:14px;margin:0}
.zps-entry-status:empty{display:none}

/* hook 2: question pages, under the H1 */
.zps-resume{margin:4px 0 12px;font-size:15px;line-height:1.8;color:var(--muted)}
.zps-resume-link{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--primary);text-underline-offset:5px}
.zps-resume-sum{color:var(--ink);text-underline-offset:4px}

@media (min-width:768px){
  .zps-now{padding:22px 24px 20px}
  .zps-now-next{font-size:21px}
  .zps-step{grid-template-columns:24px 1fr}
}
@media (prefers-reduced-motion:reduce){.zps-page .zm-btn,.zps-entry .zm-btn{transition:none}.zps-page .zm-btn:active,.zps-entry .zm-btn:active{transform:none}}

@media print{
  @page{margin:14mm}
  .zps-page{padding:0}
  .zps-actions,.zps-now .zps-row,.zps-reveal,.zps-include,.zps-privacy a,.zps-more>summary,.zps-src,.zps-lede,.zm-crumbs,.zps-entry,.zps-resume{display:none!important}
  .zps-print-head{display:block;font-size:12pt;font-weight:700;margin-block-end:8px}
  .zps-page h1{font-size:20pt;margin-block-start:0}
  .zps-plan[data-include=no]{display:none}
  .zps-now{background:none;border:1px solid #999;padding:10px 12px;break-inside:avoid}
  .zps-step{break-inside:avoid;padding-block:4px}
  .zps-info li{border-color:#bbb}
  .zps-plan-go a::after{content:" " attr(data-print-url);font-weight:400;font-size:9pt;color:#333;direction:ltr;unicode-bidi:isolate}
  .zps-plan-go a{min-height:0}
  body{font-size:11pt}
}
