/* DanaWeb selected real projects, contextual links and article contents. */
.dwc-page .dwc-toc{margin:10px 0 36px;padding:22px clamp(16px,3vw,28px);border:1px solid #dbe4f0;border-right:4px solid #1d3a8a;border-radius:16px;background:#f7f9fc;color:#25324b}
.dwc-page .dwc-toc .dwc-toc-heading{font-size:clamp(17px,2vw,21px);margin:0 0 13px;color:#1d3a8a;line-height:1.5}
.dwc-page .dwc-toc ol{list-style:decimal;margin:0;padding:0 23px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px}
.dwc-page .dwc-toc li{font-size:14px;line-height:1.9;margin:0;padding:0}
.dwc-page .dwc-toc a{color:#334466;text-decoration:none;transition:color .2s ease}
.dwc-page .dwc-toc a:hover,.dwc-page .dwc-toc a:focus-visible{color:#1d3a8a;text-decoration:underline}
.dwc-page .dwc-toc-sub{font-size:13px;opacity:.85}
.dwc-page .dwc-article h2[id],.dwc-page .dwc-article h3[id]{scroll-margin-top:110px}
.dwc-page .dwc-projects,.dwc-page .dwc-related{max-width:1180px;margin:60px auto;padding:0 clamp(20px,4vw,45px);box-sizing:border-box;direction:rtl}
.dwc-page .dwc-enrich-head{margin:0 0 23px}
.dwc-page .dwc-enrich-head .dwc-section-kicker{display:block;color:#4866a4;font-weight:600;font-size:13px;margin-bottom:7px}
.dwc-page .dwc-enrich-head h2,.dwc-page .dwc-related>h2{font-size:clamp(22px,2.8vw,30px);line-height:1.55;color:#231d1f;margin:0 0 12px}
.dwc-page .dwc-enrich-head p{max-width:820px;font-size:15px;line-height:2;color:#586377;margin:0}
.dwc-page .dwc-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dwc-page .dwc-project-card{background:#fff;border:1px solid #e1e7f0;border-radius:17px;overflow:hidden;min-width:0;box-shadow:0 5px 20px rgba(17,40,85,.045);transition:box-shadow .2s ease,transform .2s ease}
.dwc-page .dwc-project-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(17,40,85,.12)}
.dwc-page .dwc-project-card>a{display:block;text-decoration:none;color:inherit;height:100%}
.dwc-page .dwc-project-cover{aspect-ratio:16/10;overflow:hidden;background:#f0f2f7;display:grid;place-items:center;color:#74829a;font-size:14px}
.dwc-page .dwc-project-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.dwc-page .dwc-project-card:hover img{transform:scale(1.025)}
.dwc-page .dwc-project-info{padding:18px 20px 20px;display:flex;flex-direction:column;align-items:flex-start;height:auto;min-height:175px}
.dwc-page .dwc-project-category{display:block;font-size:12px;color:#1d3a8a;margin-bottom:6px}
.dwc-page .dwc-project-info h3{font-size:17px;line-height:1.75;margin:0 0 8px;color:#182e60}
.dwc-page .dwc-project-info p{font-size:13px;line-height:1.9;color:#687489;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dwc-page .dwc-project-more{font-size:13px;font-weight:700;color:#1d3a8a;margin-top:auto}
.dwc-page .dwc-related{margin-top:42px}
.dwc-page .dwc-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dwc-page .dwc-related-card{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #e1e7f0;border-radius:12px;padding:18px 20px;color:#233963;text-decoration:none!important;line-height:1.8;font-weight:600;background:#fbfcff;transition:background .2s ease,border-color .2s ease}
.dwc-page .dwc-related-card:hover{border-color:#b7c9ea;background:#f1f6ff}
.dwc-page .dwc-related-arrow{color:#1d3a8a;font-size:18px;flex:none}
@media(max-width:940px){.dwc-page .dwc-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.dwc-page .dwc-toc ol,.dwc-page .dwc-project-grid,.dwc-page .dwc-related-grid{grid-template-columns:1fr}.dwc-page .dwc-projects,.dwc-page .dwc-related{margin:38px auto;padding:0 18px}.dwc-page .dwc-project-info{min-height:0}.dwc-page .dwc-toc{padding:18px}}


/* v1.1 — Isolate dynamic-page additions from the website's global headings/nav theme.
 * In v1 a <nav> caused the related-links section to inherit header navigation styling.
 * In v1.1 it is a labeled <section>; the IDs below are intentionally scoped to these
 * two generated headings and never change headings inside the editorial body or FAQ.
 */
.dwc-page section.dwc-projects,
.dwc-page section.dwc-related {
  display:block;
  position:relative;
  isolation:isolate;
  background:transparent;
  background-image:none;
  box-shadow:none;
  border-radius:0;
  height:auto;
  min-height:0;
  text-align:right;
}
.dwc-page section.dwc-projects .dwc-enrich-head {
  margin:0 0 24px;
  text-align:right;
}
.dwc-page section.dwc-projects .dwc-enrich-head .dwc-section-kicker {
  display:block;
  margin:0 0 8px;
  padding:0;
  background:none;
  border:0;
  color:#1d3a8a;
  font-size:12px;
  font-weight:600;
  line-height:1.8;
  text-align:right;
}
.dwc-page section.dwc-projects #dwc-projects-title,
.dwc-page section.dwc-related #dwc-related-title {
  display:block !important;
  position:static !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 0 12px !important;
  padding:0 !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  color:#231d1f !important;
  font-size:clamp(20px,2.1vw,26px) !important;
  line-height:1.65 !important;
  font-weight:750 !important;
  letter-spacing:normal !important;
  text-align:right !important;
  text-decoration:none !important;
  transform:none !important;
}
.dwc-page section.dwc-projects #dwc-projects-title::before,
.dwc-page section.dwc-projects #dwc-projects-title::after,
.dwc-page section.dwc-related #dwc-related-title::before,
.dwc-page section.dwc-related #dwc-related-title::after {
  content:none !important;
  display:none !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
}
.dwc-page section.dwc-projects .dwc-enrich-head > p {
  margin:0;
  padding:0;
  max-width:830px;
  background:transparent;
  color:#667184;
  font-size:14px;
  line-height:2;
  text-align:right;
}
.dwc-page section.dwc-related {
  margin-top:42px;
  padding-top:30px;
  border:0;
  border-top:1px solid #e6ebf3;
}
.dwc-page section.dwc-related #dwc-related-title {margin-bottom:18px !important;}
.dwc-page section.dwc-related .dwc-related-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  background:none;
  border:0;
}
.dwc-page section.dwc-related .dwc-related-card {
  min-width:0;
  margin:0;
  background:#fbfcff;
  border:1px solid #e1e7f0;
  box-shadow:none;
  font-size:14px;
  text-decoration:none !important;
}
.dwc-page section.dwc-related .dwc-related-card:hover {
  background:#f1f6ff;
  border-color:#b7c9ea;
}
@media (max-width:650px) {
  .dwc-page section.dwc-projects #dwc-projects-title,
  .dwc-page section.dwc-related #dwc-related-title {
    font-size:20px !important;
    line-height:1.7 !important;
  }
  .dwc-page section.dwc-related {padding-top:22px;}
  .dwc-page section.dwc-related .dwc-related-grid {grid-template-columns:1fr;}
}
