/* صفحات المنهج (/curriculum و/curriculum/g3): بعد home.css، بلغته نفسها: ورق الدفتر المسطّر والكحلي والأصفر وخط النسخ */
.pub-main:has(.cu-hero) { padding-top: 0; }

.cu-crumbs { font-size: 14px; color: #6B7495; padding: 14px 0 0; }
.cu-crumbs a { color: var(--ink); text-decoration: none; }
.cu-crumbs a:hover { text-decoration: underline; }

.cu-hero { position: relative; padding: 44px 0 40px; isolation: isolate; }
.cu-hero-grade { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding-top: 28px; }
.cu-kicker { margin: 0 0 4px; font-weight: 700; color: #B4471A; }
.cu-kicker a { color: inherit; text-decoration: none; }
.cu-hero h1 { font-family: "Naskh", serif; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.4; margin: 0 0 10px; color: var(--ink); }
.cu-lead { font-size: 18px; color: #3B4670; max-width: 60ch; margin: 0 0 18px; }
.cu-big-n { font-family: "Naskh", serif; font-weight: 700; font-size: clamp(96px, 16vw, 180px); line-height: 1; width: 1.35em; height: 1.35em; display: grid; place-items: center; border-radius: 40px; background: var(--sky); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--sun); }
.cu-hero-grade.g1 .cu-big-n { background: #FFF0C9; } .cu-hero-grade.g2 .cu-big-n { background: #DDF3E8; } .cu-hero-grade.g3 .cu-big-n { background: #FFE3E8; }

.cu-stats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cu-stats li { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 6px 14px; color: #3B4670; }
.cu-stats b { font-family: "Naskh", serif; font-size: 22px; color: var(--ink); }

.cu-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.cu-switch a { font-family: "Naskh", serif; font-weight: 700; font-size: 20px; min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.cu-switch a:hover { background: var(--sky); }
.cu-switch a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cu-section { margin-top: 48px; }
.cu-sub { color: #3B4670; margin: -8px 0 16px; max-width: 75ch; }
.cu-h3 { font-family: "Naskh", serif; font-size: 22px; color: var(--ink); margin: 28px 0 10px; }

/* الفهرس: بطاقات الصفوف روابط */
.cu-grade-row { align-items: stretch; }
.cu-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.cu-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--sun); border-color: var(--ink); }
.cu-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.cu-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cu-facts li { background: #F2F8F4; color: #17734F; border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.cu-more { margin-top: auto; font-weight: 700; color: var(--ink); }
.hm-grade.gb.cu-card .cu-more { color: #4B2C9E; }

/* الوحدات والدروس */
.cu-units, .cu-domains { display: grid; gap: 10px; }
.cu-unit, .cu-domain { background: #fff; border: 1px solid var(--rule); border-radius: 20px; }
.cu-unit summary, .cu-domain summary { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; list-style: none; }
.cu-unit summary::-webkit-details-marker, .cu-domain summary::-webkit-details-marker { display: none; }
.cu-unit summary::after, .cu-domain summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; font-weight: 700; color: var(--ink); }
.cu-unit[open] summary::after, .cu-domain[open] summary::after { content: "−"; }
.cu-unit summary:focus-visible, .cu-domain summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 20px; }
.cu-unit-n { flex: none; background: var(--sky); color: var(--ink); font-weight: 700; border-radius: 12px; padding: 2px 10px; font-size: 14px; }
.cu-unit-name { font-family: "Naskh", serif; font-weight: 700; font-size: 21px; color: var(--ink); }
.cu-unit-meta { color: #6B7495; font-size: 14px; white-space: nowrap; }
.cu-lessons { list-style: none; margin: 0; padding: 0 18px 14px; border-top: 1px dashed var(--rule); }
.cu-lessons li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEF2FA; }
.cu-lessons li:last-child { border-bottom: 0; }
.cu-l-label { flex: none; min-width: 74px; font-size: 13px; color: #6B7495; padding-top: 3px; }
.cu-lessons li.is-letter .cu-l-label { font-family: "Naskh", serif; font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; min-width: 44px; text-align: center; padding: 0; }
.cu-l-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cu-l-body b { color: var(--ink); font-weight: 700; }
.cu-l-body small { color: #6B7495; font-size: 13.5px; }
.cu-ok { flex: none; color: var(--leaf); font-weight: 700; }
.cu-empty { background: #fff; border: 1px dashed var(--rule); border-radius: 20px; padding: 16px 20px; color: #3B4670; }
.cu-empty p { margin: 0 0 6px; }
.cu-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cu-marks li { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 4px 12px; }
.cu-marks span { color: #6B7495; font-size: 14px; }

/* نواتج الوثيقة: الرمز والصفحة أولًا (تعتمدهما المدارس) */
.cu-dom-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FFF0C9; color: var(--ink); font-weight: 700; }
.cu-domain summary { font-family: "Naskh", serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.cu-domain summary small { font-family: Tahoma, sans-serif; font-weight: 400; font-size: 14px; color: #6B7495; }
.cu-codes { list-style: none; margin: 0; padding: 4px 18px 14px; border-top: 1px dashed var(--rule); display: grid; gap: 2px; }
.cu-codes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid #EEF2FA; }
.cu-codes li:last-child { border-bottom: 0; }
.cu-codes code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--sky); color: var(--ink); border-radius: 8px; padding: 1px 8px; }
.cu-page { font-size: 13px; color: #B4471A; font-weight: 700; white-space: nowrap; }
.cu-o-label { flex-basis: 100%; color: #3B4670; font-size: 15px; }

.cu-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.cu-pn a { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 8px 16px; color: var(--ink); text-decoration: none; font-weight: 700; }
.cu-pn a:hover { background: var(--sky); }

.cu-cta { margin-top: 56px; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 32px; padding: 28px 20px 32px; box-shadow: 10px 10px 0 var(--sun); }
.cu-cta-word { font-family: "Naskh", serif; font-size: clamp(40px, 7vw, 64px); color: var(--ink); margin: 0; line-height: 1.4; }
.cu-cta h2 { margin: 0 0 6px; }
.cu-cta p { color: #3B4670; max-width: 60ch; margin: 0 auto 18px; }
.cu-cta .hm-actions { justify-content: center; }

@media (max-width: 760px) {
    .cu-hero-grade { grid-template-columns: 1fr; gap: 18px; }
    .cu-big-n { font-size: 80px; border-radius: 28px; box-shadow: 6px 6px 0 var(--sun); }
    .cu-lead { font-size: 16.5px; }
    .cu-unit summary { flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; }
    .cu-unit-name { font-size: 19px; }
    .cu-lessons { padding: 0 14px 12px; }
    .cu-l-label { min-width: 0; max-width: 32%; }
    .cu-cta { box-shadow: 6px 6px 0 var(--sun); }
    .cu-cta .hm-btn { flex: 1 1 100%; text-align: center; }
}
