/* ============================================================
   صفحة النموذج — article.html + صفحة التحميل download.html
   ============================================================ */

.article-hero {
  position: relative;
  padding: 40px 0 38px;
  background:
    radial-gradient(800px 320px at 85% -20%, rgba(14, 122, 95, 0.14), transparent 60%),
    linear-gradient(180deg, #f0faf6, #f8fafc);
  text-align: center;
}
.article-bread {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.article-bread a { color: var(--primary); }
.article-bread a:hover { text-decoration: underline; }
.article-bread span { color: var(--ink); }
.article-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.article-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tools-spacer { flex: 1; }
.word-btn { color: #1d4ed8; }
.word-btn:hover { border-color: #1d4ed8; color: #1d4ed8; }
.pdf-btn { color: #b91c1c; }
.pdf-btn:hover { border-color: #b91c1c; color: #b91c1c; }

/* ---------- لوحة التحميل اليدوي (بعد انتهاء العداد) ---------- */
.dl-manual {
  margin: -6px 0 22px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(400px 120px at 90% -40%, rgba(14, 122, 95, 0.18), transparent 60%),
    linear-gradient(135deg, #e6f4ef, #f0faf6);
  border: 1px solid rgba(14, 122, 95, 0.35);
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: dlPanelIn 0.4s cubic-bezier(0.22, 1.2, 0.36, 1);
}
@keyframes dlPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.dl-manual-head { font-size: 15px; color: var(--ink); margin-bottom: 13px; }
.dl-manual-head b { color: var(--primary); }
.dl-manual-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-manual-note { margin-top: 12px; font-size: 13.5px; color: #78350f; line-height: 1.9; }
.dl-manual-note .dl-btn { padding: 10px 22px; font-size: 14px; }

.article-letter {
  background: #eef2f1;
  border-radius: 20px;
  padding: 26px;
}
.article-letter .letter-sheet { max-width: 700px; }

.article-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-sm);
  color: #78350f;
  font-size: 14.5px;
  line-height: 1.9;
}
.article-note b { color: #92400e; }

/* ---------- نماذج مشابهة ---------- */
.related-title {
  margin: 40px 0 16px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.22s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 122, 95, 0.4);
  color: var(--primary);
}
.related-card .req-open { color: var(--muted); }
.related-card:hover .req-open { color: var(--primary); }

/* ---------- بطاقة نموذج المباراة (exam) ---------- */
.exam-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 720px;
  margin-inline: auto;
}
.exam-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.exam-badge {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.exam-badge.year { background: var(--accent-soft); color: var(--accent); }
.exam-badge.type { background: #eef2ff; color: #4338ca; }
.exam-h { font-size: 19px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.exam-desc { font-size: 15px; line-height: 1.95; }
.exam-meta { margin-top: 16px; display: grid; gap: 8px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; }
.exam-meta li b { color: var(--ink); }
.exam-dl { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(14, 122, 95, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  margin: 0 0 8px;
}
.dl-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 122, 95, 0.32); }
.dl-btn[disabled] { background: var(--muted); box-shadow: none; cursor: not-allowed; }
.dl-btn[disabled]:hover { transform: none; }
.exam-note { margin-top: 16px; font-size: 13.5px; color: var(--body); background: var(--accent-soft); border: 1px dashed rgba(217, 119, 6, 0.35); border-radius: var(--radius-sm); padding: 12px 16px; line-height: 1.9; }

/* ---------- فقرات SEO لصفحات الامتحانات ---------- */
.exam-seo { margin-top: 26px; display: grid; gap: 10px; }
.exam-seo-h { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 12px 0 0; }
.exam-seo-p { font-size: 14.5px; line-height: 2.05; color: var(--body); margin: 0; }

/* ---------- بطاقة سيرة ذاتية جاهزة (cv article) ---------- */
.cv-art {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.cv-art-icon { font-size: 52px; margin-bottom: 10px; }
.cv-art-lang {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.cv-art h3 { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.cv-art-desc { font-size: 15px; line-height: 1.95; text-align: right; margin-bottom: 8px; }
.cv-art-note { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.cv-art-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   معاينة السيرة الذاتية (mockup احترافي — محتوى نموذجي حقيقي)
   ============================================================ */
.cv-pv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.cv-pv-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
}
.cv-pv-zoom {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.cv-pv-zoom:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.cv-pv-zoom[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* منصة العرض: تصغير افتراضي ثم تكبير عند الطلب */
.cv-pv-stage {
  margin-inline: auto;
  max-width: 480px;
  transition: max-width 0.35s ease;
}
.cv-pv-stage.zoomed { max-width: 640px; }

/* ورقة المعاينة — الحجم بالـ em يتغير مع font-size (تكبير/تصغير) */
.cv-preview {
  --acc: #0e7a5f;
  --acc-deep: #0a5c47;
  --acc-tint: #eefaf5;
  --acc-lite: #4fb59b;
  font-size: 9.5px;
  width: min(430px, 100%);
  margin-inline: auto;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  text-align: start;
  display: flex;
  flex-direction: column;
  transition: font-size 0.35s ease, box-shadow 0.35s ease;
}
.cv-pv-stage.zoomed .cv-preview { font-size: 12.5px; box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22); }

/* ---------- عناصر مشتركة ---------- */
.pvt-sec { margin-bottom: 1.05em; }
.pvt-sec-t {
  font-size: 1.02em;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5em;
  padding-bottom: 0.24em;
  border-bottom: 0.16em solid var(--acc);
  letter-spacing: 0.01em;
}
.pvt-text { font-size: 0.95em; line-height: 1.5; color: #374151; }
.pvt-line {
  display: block;
  font-size: 0.88em;
  color: #4b5563;
  margin-bottom: 0.42em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pvt-avatar {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4em;
  font-weight: 800;
  flex-shrink: 0;
}
.pvt-name { font-size: 1.42em; font-weight: 900; color: #111827; line-height: 1.22; }
.pvt-role { font-size: 1.02em; font-weight: 700; color: var(--acc); margin-top: 0.14em; }
.pvt-tagline { font-size: 0.84em; color: #6b7280; margin-top: 0.34em; }

/* مدخلات الخبرة والتكوين */
.pvt-entry { margin-bottom: 0.8em; }
.pvt-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; }
.pvt-entry-top b { font-size: 0.96em; color: #111827; }
.pvt-period { font-size: 0.78em; color: var(--acc); font-weight: 700; white-space: nowrap; }
.pvt-org { font-size: 0.86em; color: #6b7280; margin-top: 0.1em; }
.pvt-entry ul { margin: 0.25em 0 0; padding-inline-start: 1.1em; }
.pvt-entry li { font-size: 0.84em; color: #4b5563; line-height: 1.42; margin-bottom: 0.15em; }

/* المهارات واللغات */
.pvt-skill { margin-bottom: 0.45em; }
.pvt-skill span { display: block; font-size: 0.83em; color: #374151; font-weight: 600; margin-bottom: 0.18em; }
.pvt-bar { display: block; height: 0.52em; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.pvt-bar b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--acc-deep), var(--acc)); }
.pvt-lang { display: flex; justify-content: space-between; gap: 0.6em; font-size: 0.84em; color: #374151; margin-bottom: 0.38em; }
.pvt-lang b { color: var(--acc); font-weight: 700; font-size: 0.92em; white-space: nowrap; }

/* ---------- تصميم 1: عصري (شريط علوي ملون + عمودان) ---------- */
.pv-v1 .pvt-head {
  background: linear-gradient(120deg, var(--acc-deep), var(--acc));
  color: #fff;
  padding: 1.5em 1.4em;
  display: flex;
  align-items: center;
  gap: 1.1em;
}
.pv-v1 .pvt-head .pvt-avatar { background: rgba(255, 255, 255, 0.22); }
.pv-v1 .pvt-id { flex: 1; min-width: 0; }
.pv-v1 .pvt-head .pvt-name { color: #fff; }
.pv-v1 .pvt-head .pvt-role { color: rgba(255, 255, 255, 0.94); }
.pv-v1 .pvt-head .pvt-tagline { color: rgba(255, 255, 255, 0.82); }
.pv-v1 .pvt-cols { display: flex; flex: 1; min-height: 0; }
.pv-v1 .pvt-main { flex: 1.5; padding: 1.1em 1.1em 0.8em; overflow: hidden; }
.pv-v1 .pvt-side { flex: 1; padding: 1.1em 1.1em 0.8em; background: var(--acc-tint); overflow: hidden; }

/* ---------- تصميم 2: كلاسيكي (ترويسة وسطية + عمود واحد) ---------- */
.pv-v2 .pvt-ctr {
  text-align: center;
  padding: 1.45em 1.4em 1.05em;
  border-bottom: 0.22em solid var(--acc);
  background: #f8fafc;
}
.pv-v2 .pvt-ctr .pvt-name { letter-spacing: 0.01em; }
.pv-v2 .pvt-ctr .pvt-role { margin-top: 0.28em; }
.pv-v2 .pvt-contacts {
  display: block;
  margin-top: 0.7em;
  font-size: 0.8em;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-v2 .pvt-body { padding: 0.95em 1.5em 0.7em; }
.pv-v2 .pvt-sec-t { letter-spacing: 0.03em; }
.pv-v2 .pvt-2col { display: flex; gap: 1.6em; }
.pv-v2 .pvt-2col .pvt-sec { flex: 1; }

/* ---------- تصميم 3: شريط جانبي داكن + محتوى رئيسي ---------- */
.pv-v3 .pvt-wrap { display: flex; flex: 1; min-height: 0; }
.pv-v3 .pvt-sidebar {
  width: 35%;
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.35em 1.1em;
  overflow: hidden;
}
.pv-v3 .pvt-sidebar .pvt-avatar { background: var(--acc); margin-bottom: 0.75em; }
.pv-v3 .pvt-sidebar .pvt-name { color: #fff; font-size: 1.28em; }
.pv-v3 .pvt-sidebar .pvt-role { color: var(--acc-lite); }
.pv-v3 .pvt-sb-sec { margin-top: 1.05em; }
.pv-v3 .pvt-sb-sec h3 {
  font-size: 0.9em;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.5em;
  padding-bottom: 0.2em;
  border-bottom: 0.12em solid var(--acc-lite);
}
.pv-v3 .pvt-sidebar .pvt-line { color: #cbd5e1; }
.pv-v3 .pvt-sidebar .pvt-skill span { color: #e2e8f0; }
.pv-v3 .pvt-sidebar .pvt-bar { background: rgba(255, 255, 255, 0.16); }
.pv-v3 .pvt-sidebar .pvt-bar b { background: linear-gradient(90deg, var(--acc), var(--acc-lite)); }
.pv-v3 .pvt-sidebar .pvt-lang { color: #e2e8f0; }
.pv-v3 .pvt-sidebar .pvt-lang b { color: var(--acc-lite); }
.pv-v3 .pvt-content { flex: 1; padding: 1.25em 1.25em 0.85em; overflow: hidden; }

/* ============================================================
   صفحة التحميل — download.html (عَدّاد 10 ثوانٍ)
   ============================================================ */
.dl-hero {
  position: relative;
  padding: 46px 0 44px;
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(14, 122, 95, 0.16), transparent 60%),
    radial-gradient(700px 340px at 0% 120%, rgba(217, 119, 6, 0.12), transparent 60%),
    linear-gradient(180deg, #f0faf6, #f8fafc);
  text-align: center;
}
.dl-bread { font-size: 13.5px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.dl-bread a { color: var(--primary); }
.dl-bread a:hover { text-decoration: underline; }

.countdown-card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.dl-icon { font-size: 46px; margin-bottom: 8px; }
.dl-title { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.dl-format {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.countdown-wrap { display: grid; place-items: center; margin: 26px 0 10px; }
.countdown-ring { position: relative; width: 150px; height: 150px; }
.countdown-ring svg { transform: rotate(-90deg); }
.countdown-ring .ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.countdown-ring .ring-fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.countdown-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
}
.countdown-status { font-size: 15px; font-weight: 700; color: var(--body); min-height: 26px; }
.dl-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.dl-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 800;
  font-size: 14.5px;
}
.dl-doc-link:hover { text-decoration: underline; }

/* المحتوى الطويل (أكثر من 500 حرف) */
.dl-article {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: right;
}
.dl-article h2 {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl-article h2 .ic { color: var(--primary); }
.dl-article p { font-size: 15px; line-height: 2.1; margin-bottom: 14px; color: var(--body); }
.dl-article ul { list-style: none; display: grid; gap: 9px; margin-bottom: 16px; }
.dl-article ul li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.dl-article ul li .tick { color: var(--primary); font-weight: 900; flex-shrink: 0; }
.dl-article .dl-tip {
  background: var(--accent-soft);
  border: 1px dashed rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: #78350f;
}
.dl-meta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.dl-meta-chip {
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- الطباعة: الطلب فقط ---------- */
@media print {
  .site-header,
  .site-footer,
  .article-hero,
  .article-tools,
  .article-note,
  .related-title,
  .related-grid,
  .to-top { display: none !important; }
  .print-hide { display: none !important; }
  body { background: #fff !important; }
  .section { padding: 0 !important; }
  .container { width: 100% !important; }
  .article-letter { background: #fff !important; padding: 0 !important; border-radius: 0 !important; }
  .letter-sheet {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    font-size: 12pt !important;
  }
  .letter-sheet .ls-head { border-bottom: 2px solid #0e7a5f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .letter-sheet .ph { background: transparent !important; color: #111 !important; }
  .cv-pv-bar,
  .cv-pv-stage,
  .dl-manual { display: none !important; }
}

@media (max-width: 768px) {
  .article-tools { position: static; }
  .tools-spacer { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .article-letter { padding: 14px; border-radius: 14px; }
  .countdown-card { padding: 28px 18px 24px; }
  .dl-article p { font-size: 14.5px; }
  .cv-pv-stage { max-width: 100%; }
}

@media (max-width: 480px) {
  .cv-preview { font-size: 8px; }
  .cv-pv-stage.zoomed .cv-preview { font-size: 10px; }
  .pv-v3 .pvt-wrap { flex-direction: column; }
  .pv-v3 .pvt-sidebar { width: 100%; padding: 1.15em 1.1em; }
  .cv-art { padding: 20px 16px; }
  .dl-manual { padding: 14px 12px; }
}


/* ---------- معاينة PDF الحقيقية داخل صفحة الطلب ----------
   .pdf-frame: المعاينة تعرض ملف PDF الحقيقي داخل إطار واسع
   (على مقاس المستند الأصلي تقريبًا: A4 عند 980px) */
.letter-sheet.pdf-frame { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; max-width: 980px !important; }
.letter-sheet.pdf-frame .pdf-preview-single { margin-inline: auto; }
@media print {
  .letter-sheet.pdf-frame { display: none !important; }
}


/* ---------- صفحة 404 ---------- */
.nf-wrap { text-align: center; }
.nf-code { font-size: clamp(72px, 16vw, 140px); font-weight: 900; line-height: 1; color: var(--primary); opacity: .9; letter-spacing: 4px; margin-bottom: 6px; }
.nf-status { margin: 14px 0 6px; font-weight: 700; color: var(--ink); }
.nf-path { margin: 0 auto 18px; max-width: 100%; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.nf-h2 { font-size: 20px; margin: 0 0 14px; text-align: center; }


/* ============================================================
   Pages anciennes (URLs conservées) — styles de contenu
   ============================================================ */
.old-fig { margin: 26px auto; max-width: 720px; text-align: center; }
.old-fig img { max-width: 100%; height: auto; border: 1px solid rgba(14, 122, 95, 0.18); border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 40, 33, 0.10); }
.old-fig figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.old-h2 { margin: 34px 0 14px; font-size: 1.45rem; font-weight: 800; color: var(--primary); border-inline-start: 4px solid var(--accent); padding-inline-start: 12px; }
.old-h3 { margin: 24px 0 10px; font-size: 1.12rem; font-weight: 700; color: var(--ink, #1f2a28); }
.old-p { margin: 0 0 14px; line-height: 1.95; font-size: 1.02rem; }
.old-list { margin: 0 0 18px; padding-inline-start: 22px; }
.old-list li { margin-bottom: 10px; line-height: 1.85; }
.old-list li::marker { color: var(--accent); }
.article-letter .letter-sheet { max-width: 700px; margin: 0 auto; }
@media print {
  .old-fig img { box-shadow: none; border: none; }
}

/* ---------- Aperçus PDF (sujets + corrections) ----------
   المعاينة الواسعة: exam-sheet يكسر حد 700px ليعرض المستند بحجمه الأصلي */
.article-letter .letter-sheet.exam-sheet { max-width: 100%; padding: 0; background: transparent; border: 0; box-shadow: none; }
.exam-sheet .exam-card { max-width: 760px; }
.pdf-previews{margin-top:24px;display:flex;flex-direction:column;gap:28px}
.pdf-preview-block{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(2,6,23,.07)}
.pdf-preview-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.pdf-preview-title{margin:0;font-size:1.02rem;font-weight:800;color:#0f172a}
.pdf-preview-open{font-size:.85rem;color:#0e7a5f;font-weight:700;text-decoration:none;white-space:nowrap}
.pdf-preview-open:hover{text-decoration:underline}
.pdf-preview-frame{display:block;width:100%;height:min(1450px,92vh);border:0;background:#eef2f7}
@media print{.pdf-previews{display:none}}
@media (max-width:640px){.pdf-preview-frame{height:78vh}}
