/*
Theme Name: Dadfaran Persian Green Legal
Theme URI: https://arashalizadeh.com/
Author: Dadfaran / Arash Alizadeh Niri
Author URI: https://arashalizadeh.com/
Description: Minimal RTL Persian legal WordPress theme with Persian Green accent, editorial layout, responsive header and clean service pages.
Version: 1.5.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dadfaran-persian-green-legal
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, blog, portfolio, one-column, two-columns, wide-blocks
*/

/* Front-end styles are bundled here to keep runtime CSS requests minimal. */

/*
 * Front-end stylesheet bundled in root style.css for safer loading in Firefox/legacy browsers.
 * The same selectors are kept compatible with previous theme versions.
 */

:root {
  --dpgl-primary: #102A2C;
  --dpgl-primary-2: #183E42;
  --dpgl-accent: #009B8A;
  --dpgl-accent-hover: #008476;
  --dpgl-accent-soft: #E6F7F4;
  --dpgl-bg: #FFFFFF;
  --dpgl-bg-soft: #F7FAF9;
  --dpgl-surface: #FFFFFF;
  --dpgl-text: #1F2933;
  --dpgl-muted: #667085;
  --dpgl-border: #DDEBE8;
  --dpgl-shadow: 0 24px 80px rgba(16, 42, 44, .10);
  --dpgl-soft-shadow: 0 14px 44px rgba(16, 42, 44, .08);
  --dpgl-radius-lg: 34px;
  --dpgl-radius-md: 22px;
  --dpgl-radius-sm: 14px;
  --dpgl-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  text-align: right;
  background: var(--dpgl-bg);
  color: var(--dpgl-text);
  font-family: Vazirmatn, Vazir, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, border .2s ease, transform .2s ease; }
a:hover { color: var(--dpgl-accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--dpgl-accent); color: #fff; }
.screen-reader-text,
.dpgl-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.dpgl-skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  background: var(--dpgl-primary);
  color: #fff;
  z-index: 9999;
  padding: 12px 18px;
  margin: 10px;
  border-radius: 12px;
}

.dpgl-container {
  width: min(var(--dpgl-container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.dpgl-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,235,232,.82);
}
.dpgl-topbar {
  background: var(--dpgl-primary);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.dpgl-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 18px;
}
.dpgl-topbar-phone { color: #fff; font-weight: 700; direction: ltr; }
.dpgl-header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.dpgl-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.dpgl-brand .custom-logo-link img { max-height: 58px; width: auto; }
.dpgl-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dpgl-accent);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 14px 26px rgba(0,155,138,.22);
}
.dpgl-brand-mark-small { width: 38px; height: 38px; font-size: 17px; flex: 0 0 auto; }
.dpgl-brand-text { display: grid; line-height: 1.45; }
.dpgl-site-title { font-weight: 900; color: var(--dpgl-primary); font-size: 18px; }
.dpgl-brand-text span { color: var(--dpgl-muted); font-size: 12px; }
.dpgl-primary-nav { justify-self: center; }
.dpgl-menu,
.dpgl-menu ul { list-style: none; padding: 0; margin: 0; }
.dpgl-menu { display: flex; align-items: center; gap: 4px; }
.dpgl-menu > li { position: relative; }
.dpgl-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--dpgl-primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}
.dpgl-menu > li > a:hover,
.dpgl-menu > .current-menu-item > a,
.dpgl-menu > .current-menu-ancestor > a {
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-primary);
}
.dpgl-menu > .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  opacity: .55;
}
.dpgl-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 270px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--dpgl-border);
  border-radius: 24px;
  box-shadow: var(--dpgl-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dpgl-menu li:hover > .sub-menu,
.dpgl-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dpgl-menu .sub-menu li a {
  display: flex;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--dpgl-text);
  font-size: 14px;
}
.dpgl-menu .sub-menu li a:hover { background: var(--dpgl-bg-soft); color: var(--dpgl-primary); }
.dpgl-header-cta,
.dpgl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--dpgl-accent);
  color: #fff;
  font-weight: 850;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(0,155,138,.22);
  white-space: nowrap;
}
.dpgl-header-cta:hover,
.dpgl-button:hover { background: var(--dpgl-accent-hover); color: #fff; transform: translateY(-2px); }
.dpgl-button-ghost { background: #fff; color: var(--dpgl-primary); border-color: var(--dpgl-border); box-shadow: none; }
.dpgl-button-ghost:hover { background: var(--dpgl-accent-soft); color: var(--dpgl-primary); }
.dpgl-button-light { background: #fff; color: var(--dpgl-primary); box-shadow: none; }
.dpgl-button-light:hover { background: var(--dpgl-accent-soft); color: var(--dpgl-primary); }
.dpgl-menu-toggle { display: none; }

/* Hero */
.dpgl-site-main { overflow: hidden; }
.dpgl-hero {
  padding: 78px 0 46px;
  background:
    radial-gradient(circle at top right, rgba(0,155,138,.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
}
.dpgl-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.dpgl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dpgl-accent);
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.dpgl-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.dpgl-hero h1,
.dpgl-page-hero h1 {
  margin: 0;
  color: var(--dpgl-primary);
  letter-spacing: -.055em;
  line-height: 1.22;
  font-size: clamp(40px, 6vw, 76px);
  max-width: 850px;
}
.dpgl-hero p {
  max-width: 640px;
  color: var(--dpgl-muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 22px 0 0;
}
.dpgl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dpgl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 680px;
}
.dpgl-hero-stats div {
  padding: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--dpgl-border);
  border-radius: 22px;
}
.dpgl-hero-stats strong { display: block; color: var(--dpgl-primary); font-size: 24px; line-height: 1.2; }
.dpgl-hero-stats span { display: block; color: var(--dpgl-muted); font-size: 13px; }
.dpgl-hero-visual { position: relative; min-height: 520px; }
.dpgl-hero-visual > img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 42px;
  box-shadow: var(--dpgl-shadow);
}
.dpgl-abstract-portrait {
  position: relative;
  width: min(100%, 560px);
  min-height: 560px;
  margin-inline-start: auto;
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--dpgl-accent-soft), #fff 48%, #eef8f6),
    radial-gradient(circle at top left, rgba(0,155,138,.18), transparent 42%);
  border: 1px solid var(--dpgl-border);
  box-shadow: var(--dpgl-shadow);
}
.dpgl-abstract-portrait::before,
.dpgl-abstract-portrait::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,155,138,.25);
}
.dpgl-abstract-portrait::before { width: 360px; height: 360px; right: -95px; top: 70px; }
.dpgl-abstract-portrait::after { width: 230px; height: 230px; left: 56px; bottom: 70px; background: rgba(0,155,138,.07); }
.dpgl-abstract-card {
  position: absolute;
  right: 52px;
  bottom: 54px;
  width: 250px;
  padding: 28px;
  background: var(--dpgl-primary);
  color: #fff;
  border-radius: 28px;
  z-index: 2;
}
.dpgl-abstract-card span { display: block; opacity: .68; font-size: 14px; }
.dpgl-abstract-card strong { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; }
.dpgl-abstract-line { position: absolute; height: 2px; background: var(--dpgl-accent); border-radius: 50px; opacity: .55; }
.dpgl-abstract-line.one { width: 220px; right: 70px; top: 88px; }
.dpgl-abstract-line.two { width: 130px; left: 80px; top: 190px; }
.dpgl-abstract-line.three { width: 300px; left: 40px; bottom: 172px; }

/* Sections */
.dpgl-section { padding: 86px 0; }
.dpgl-section-head { max-width: 580px; }
.dpgl-section-head h2,
.dpgl-final-cta h2 {
  margin: 0;
  color: var(--dpgl-primary);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.25;
  letter-spacing: -.04em;
}
.dpgl-section-head-wide { max-width: 820px; }
.dpgl-section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; margin-bottom: 28px; }
.dpgl-split { display: grid; grid-template-columns: .85fr 1fr; gap: 80px; align-items: start; }
.dpgl-intro-copy p { margin-top: 0; color: var(--dpgl-muted); font-size: 18px; }
.dpgl-check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.dpgl-check-list li { position: relative; padding: 14px 44px 14px 16px; border: 1px solid var(--dpgl-border); border-radius: 18px; background: #fff; }
.dpgl-check-list li::before {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent);
  font-weight: 900;
  line-height: 1;
}
.dpgl-expertise { background: var(--dpgl-bg-soft); }
.dpgl-card-grid { display: grid; gap: 18px; margin-top: 38px; }
.dpgl-card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dpgl-service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--dpgl-border);
  border-radius: var(--dpgl-radius-md);
  box-shadow: 0 8px 30px rgba(16,42,44,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dpgl-service-card:hover { transform: translateY(-6px); box-shadow: var(--dpgl-soft-shadow); border-color: rgba(0,155,138,.35); }
.dpgl-card-number { color: var(--dpgl-accent); font-weight: 900; letter-spacing: -.02em; }
.dpgl-service-card h3 { margin: 22px 0 10px; color: var(--dpgl-primary); font-size: 22px; line-height: 1.35; }
.dpgl-service-card p { margin: 0; color: var(--dpgl-muted); font-size: 15px; }
.dpgl-service-card a { margin-top: auto; color: var(--dpgl-primary); font-weight: 900; display: inline-flex; align-items: center; gap: 8px; }
.dpgl-service-card a::after { content: "←"; color: var(--dpgl-accent); }
.dpgl-feature-band { padding: 0; background: var(--dpgl-bg-soft); }
.dpgl-feature-band-inner {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 54px;
  border-radius: 36px;
  background: var(--dpgl-primary);
  color: rgba(255,255,255,.82);
  box-shadow: var(--dpgl-shadow);
}
.dpgl-feature-band h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.7vw, 48px); line-height: 1.28; letter-spacing: -.045em; }
.dpgl-feature-band .dpgl-eyebrow { color: var(--dpgl-accent-soft); }
.dpgl-feature-band p { margin: 0; font-size: 17px; }
.dpgl-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.dpgl-team-card { background: #fff; border: 1px solid var(--dpgl-border); border-radius: 30px; overflow: hidden; box-shadow: 0 8px 30px rgba(16,42,44,.05); }
.dpgl-team-photo { height: 320px; display: grid; place-items: center; background: linear-gradient(135deg, var(--dpgl-accent-soft), #fff); position: relative; overflow: hidden; }
.dpgl-team-photo::before { content: ""; width: 210px; height: 210px; border-radius: 50%; border: 1px solid rgba(0,155,138,.23); position: absolute; }
.dpgl-team-photo span { position: relative; z-index: 1; font-size: 64px; color: var(--dpgl-accent); font-weight: 900; opacity: .55; }
.dpgl-team-info { padding: 24px; }
.dpgl-team-info h3 { margin: 0 0 4px; color: var(--dpgl-primary); font-size: 21px; }
.dpgl-team-info p { margin: 0; color: var(--dpgl-muted); }
.dpgl-insights { background: linear-gradient(180deg, #fff, var(--dpgl-bg-soft)); }
.dpgl-link-arrow { color: var(--dpgl-primary); font-weight: 900; }
.dpgl-link-arrow::after { content: " ←"; color: var(--dpgl-accent); }
.dpgl-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dpgl-post-grid-list { grid-template-columns: 1fr; }
.dpgl-post-card { background: #fff; border: 1px solid var(--dpgl-border); border-radius: 30px; overflow: hidden; box-shadow: 0 8px 30px rgba(16,42,44,.05); }
.dpgl-post-thumb { display: block; aspect-ratio: 1.42; overflow: hidden; background: var(--dpgl-accent-soft); }
.dpgl-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dpgl-post-card:hover .dpgl-post-thumb img { transform: scale(1.04); }
.dpgl-placeholder-thumb { display: block; width: 100%; height: 100%; min-height: 220px; background: linear-gradient(135deg, var(--dpgl-accent-soft), #fff 70%); }
.dpgl-post-body { padding: 24px; }
.dpgl-post-meta { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dpgl-muted); font-size: 13px; }
.dpgl-post-body h3 { margin: 12px 0 8px; color: var(--dpgl-primary); font-size: 21px; line-height: 1.45; }
.dpgl-post-body p { margin: 0; color: var(--dpgl-muted); font-size: 14px; }
.dpgl-read-more { display: inline-flex; margin-top: 18px; color: var(--dpgl-accent); font-weight: 900; }

/* Inner pages */
.dpgl-page-hero { padding: 76px 0 52px; background: linear-gradient(180deg, #fff, var(--dpgl-bg-soft)); border-bottom: 1px solid var(--dpgl-border); }
.dpgl-page-hero p { max-width: 760px; color: var(--dpgl-muted); font-size: 18px; margin: 18px 0 0; }
.dpgl-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.dpgl-entry-narrow { max-width: 880px; }
.dpgl-entry { background: #fff; border: 1px solid var(--dpgl-border); border-radius: 32px; padding: 36px; box-shadow: 0 8px 30px rgba(16,42,44,.04); }
.dpgl-featured-image { margin: -36px -36px 30px; border-radius: 32px 32px 0 0; overflow: hidden; }
.dpgl-featured-image img { width: 100%; }
.dpgl-entry-content { color: var(--dpgl-text); }
.dpgl-entry-content h2,
.dpgl-entry-content h3,
.dpgl-entry-content h4 { color: var(--dpgl-primary); line-height: 1.45; letter-spacing: -.025em; }
.dpgl-entry-content a { color: var(--dpgl-accent); font-weight: 700; }
.dpgl-entry-content blockquote { margin: 28px 0; padding: 22px 26px; border-right: 4px solid var(--dpgl-accent); background: var(--dpgl-bg-soft); border-radius: 18px; }
.dpgl-entry-meta { display: inline-flex; gap: 10px; color: var(--dpgl-muted); margin-top: 18px; }
.dpgl-entry-footer { margin-top: 26px; }
.dpgl-tags a { display: inline-flex; margin: 4px; padding: 7px 12px; border-radius: 999px; background: var(--dpgl-accent-soft); color: var(--dpgl-primary); font-size: 13px; }
.dpgl-sidebar { position: sticky; top: 128px; }
.dpgl-widget { background: #fff; border: 1px solid var(--dpgl-border); border-radius: 24px; padding: 22px; margin-bottom: 18px; box-shadow: 0 8px 28px rgba(16,42,44,.04); }
.dpgl-widget h3,
.dpgl-widget .widget-title { margin: 0 0 14px; color: var(--dpgl-primary); font-size: 18px; }
.dpgl-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dpgl-widget a { color: var(--dpgl-text); }
.dpgl-widget a:hover { color: var(--dpgl-accent); }
.dpgl-search-form { display: flex; gap: 8px; align-items: stretch; }
.dpgl-search-form label { flex: 1; }
.dpgl-search-form input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--dpgl-border); border-radius: 999px; outline: none; background: #fff; color: var(--dpgl-text); }
.dpgl-search-form input:focus { border-color: var(--dpgl-accent); box-shadow: 0 0 0 4px rgba(0,155,138,.12); }
.dpgl-search-form button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--dpgl-primary); color: #fff; cursor: pointer; }
.dpgl-pagination { margin-top: 30px; }
.dpgl-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dpgl-pagination a,
.dpgl-pagination span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--dpgl-border); border-radius: 999px; background: #fff; }
.dpgl-pagination .current { background: var(--dpgl-accent); border-color: var(--dpgl-accent); color: #fff; }
.dpgl-empty-state { padding: 38px; border-radius: 30px; border: 1px solid var(--dpgl-border); background: #fff; }
.dpgl-empty-state h2 { color: var(--dpgl-primary); margin-top: 0; }

/* Footer */
.dpgl-final-cta { background: var(--dpgl-primary); color: rgba(255,255,255,.84); padding: 74px 0; }
.dpgl-final-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.dpgl-final-cta h2 { color: #fff; }
.dpgl-final-cta p { max-width: 720px; margin: 18px 0 0; font-size: 17px; }
.dpgl-site-footer { background: #0A1E20; color: rgba(255,255,255,.72); padding: 58px 0 24px; }
.dpgl-footer-grid { display: grid; grid-template-columns: 1.35fr .7fr 1fr 1fr; gap: 34px; }
.dpgl-footer-logo-row { display: flex; align-items: center; gap: 12px; color: #fff; }
.dpgl-footer-brand p { max-width: 420px; }
.dpgl-footer-col h3 { margin: 0 0 16px; color: #fff; font-size: 17px; }
.dpgl-footer-menu,
.dpgl-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dpgl-footer-menu a { color: rgba(255,255,255,.72); }
.dpgl-footer-menu a:hover { color: #fff; }
.dpgl-contact-list a { color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.18); }
.dpgl-contact-list a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.52); }
.dpgl-contact-phone,
.dpgl-contact-email { unicode-bidi: plaintext; }
.dpgl-footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }

/* Comments */
.dpgl-comments { margin-top: 34px; background: #fff; border: 1px solid var(--dpgl-border); border-radius: 30px; padding: 30px; }
.comment-list { padding-right: 22px; }
.comment-form input,
.comment-form textarea { width: 100%; border: 1px solid var(--dpgl-border); border-radius: 18px; padding: 12px 14px; }
.comment-form input[type="submit"] { width: auto; background: var(--dpgl-accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }

/* Page motion
 * v1.3.5: Motion is progressive only. Content must never be hidden before JS/scroll.
 */
.dpgl-motion-enabled .dpgl-site-header { animation: dpgl-header-in .28s ease both; }
.dpgl-motion-enabled .dpgl-hero-content { animation-delay: .03s; }
.dpgl-motion-enabled .dpgl-hero-visual { animation-delay: .06s; }
.dpgl-reveal,
.dpgl-motion-enabled .dpgl-reveal,
.dpgl-motion-enabled .dpgl-reveal:not(.is-visible) {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.dpgl-motion-enabled .dpgl-reveal.is-visible {
  animation: dpgl-soft-reveal .34s ease both;
}
.dpgl-motion-enabled .dpgl-post-card:hover,
.dpgl-motion-enabled .dpgl-service-card:hover,
.dpgl-motion-enabled .dpgl-team-card:hover { transform: translateY(-4px); }

@keyframes dpgl-header-in {
  from { opacity: .98; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dpgl-soft-reveal {
  from { opacity: .98; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .dpgl-motion-enabled .dpgl-reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .dpgl-header-inner { grid-template-columns: auto auto 1fr; }
  .dpgl-primary-nav {
    position: fixed;
    inset: 124px 16px auto 16px;
    max-height: calc(100vh - 144px);
    overflow: auto;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--dpgl-border);
    border-radius: 26px;
    box-shadow: var(--dpgl-shadow);
    justify-self: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .dpgl-primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .dpgl-menu { display: grid; gap: 6px; }
  .dpgl-menu > li > a { width: 100%; justify-content: space-between; border-radius: 16px; padding-inline: 14px; }
  .dpgl-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 18px; margin: 6px 0; display: none; background: var(--dpgl-bg-soft); }
  .dpgl-menu li.is-open > .sub-menu,
  .dpgl-menu li:hover > .sub-menu { display: block; }
  .dpgl-menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 48px;
    height: 48px;
    place-content: center;
    border: 1px solid var(--dpgl-border);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
  }
  .dpgl-menu-toggle span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; background: var(--dpgl-primary); border-radius: 99px; }
  .dpgl-header-cta { justify-self: end; }
  .dpgl-hero-grid,
  .dpgl-split,
  .dpgl-feature-band-inner { grid-template-columns: 1fr; }
  .dpgl-card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpgl-content-layout { grid-template-columns: 1fr; }
  .dpgl-sidebar { position: static; }
  .dpgl-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .dpgl-container { width: min(100% - 30px, var(--dpgl-container)); }
  .dpgl-topbar-inner { justify-content: center; text-align: center; flex-wrap: wrap; padding: 8px 0; }
  .dpgl-header-inner { min-height: 74px; gap: 10px; grid-template-columns: auto auto; }
  .dpgl-brand { min-width: 0; }
  .dpgl-brand-text span { display: none; }
  .dpgl-site-title { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dpgl-header-cta { display: none; }
  .dpgl-primary-nav { inset: 116px 12px auto 12px; }
  .dpgl-hero { padding: 48px 0 30px; }
  .dpgl-hero h1,
  .dpgl-page-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .dpgl-hero-stats { grid-template-columns: 1fr; }
  .dpgl-hero-visual { min-height: auto; }
  .dpgl-hero-visual > img,
  .dpgl-abstract-portrait { min-height: 400px; height: auto; border-radius: 30px; }
  .dpgl-section { padding: 58px 0; }
  .dpgl-section-head-row { display: grid; align-items: start; }
  .dpgl-card-grid-four,
  .dpgl-team-grid,
  .dpgl-post-grid { grid-template-columns: 1fr; }
  .dpgl-feature-band-inner { padding: 30px; border-radius: 28px; }
  .dpgl-team-photo { height: 240px; }
  .dpgl-entry { padding: 24px; border-radius: 24px; }
  .dpgl-featured-image { margin: -24px -24px 24px; border-radius: 24px 24px 0 0; }
  .dpgl-final-cta-inner { grid-template-columns: 1fr; }
  .dpgl-footer-grid { grid-template-columns: 1fr; }
  .dpgl-footer-bottom { display: grid; }
  .dpgl-search-form { display: grid; }
  .dpgl-search-form button { width: 100%; }
}

/* Minimal refinement v1.1 */
:root {
  --dpgl-shadow: 0 18px 54px rgba(16, 42, 44, .08);
  --dpgl-soft-shadow: 0 10px 30px rgba(16, 42, 44, .055);
  --dpgl-radius-lg: 28px;
  --dpgl-radius-md: 18px;
  --dpgl-radius-sm: 12px;
}
body {
  font-size: 15px;
  line-height: 1.82;
}
.dpgl-site-header {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(221,235,232,.72);
}
.dpgl-header-inner {
  min-height: 72px;
  gap: 18px;
}
.dpgl-brand { gap: 10px; min-width: 170px; }
.dpgl-brand .custom-logo-link img { max-height: 46px; }
.dpgl-brand-mark {
  width: 40px;
  height: 40px;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0,155,138,.16);
}
.dpgl-site-title { font-size: 15px; font-weight: 850; }
.dpgl-menu > li > a {
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
}
.dpgl-menu .sub-menu {
  min-width: 238px;
  padding: 10px;
  border-radius: 18px;
  box-shadow: var(--dpgl-soft-shadow);
}
.dpgl-menu .sub-menu li a {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 13px;
}
.dpgl-header-cta,
.dpgl-button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,155,138,.16);
}
.dpgl-site-main { overflow: hidden; }
.dpgl-hero {
  position: relative;
  margin: 18px 24px 0;
  padding: 78px 0 54px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,25,27,.94) 0%, rgba(16,42,44,.86) 46%, rgba(16,42,44,.42) 100%),
    var(--dpgl-hero-bg),
    linear-gradient(135deg, #102A2C, #071819);
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.dpgl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(0,166,147,.23), transparent 34%),
    linear-gradient(180deg, transparent, rgba(7,24,25,.16));
  pointer-events: none;
  z-index: -1;
}
.dpgl-hero-grid {
  grid-template-columns: 1.12fr .7fr;
  gap: 42px;
  min-height: 438px;
}
.dpgl-hero-content {
  max-width: 760px;
}
.dpgl-hero .dpgl-eyebrow {
  color: #BFEDE7;
  font-size: 13px;
  font-weight: 800;
}
.dpgl-hero h1,
.dpgl-page-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.24;
  letter-spacing: -.045em;
}
.dpgl-hero h1 { color: #fff; }
.dpgl-hero p {
  max-width: 590px;
  color: rgba(255,255,255,.76);
  font-size: clamp(14.5px, 1.55vw, 16.5px);
  margin-top: 18px;
}
.dpgl-hero-actions {
  gap: 10px;
  margin-top: 26px;
}
.dpgl-hero .dpgl-button-ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.24);
  backdrop-filter: blur(12px);
}
.dpgl-hero .dpgl-button-ghost:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.dpgl-hero-visual { min-height: 420px; }
.dpgl-hero-visual > img {
  height: 430px;
  border-radius: 28px;
  box-shadow: 0 20px 64px rgba(0,0,0,.18);
  opacity: .94;
}
.dpgl-abstract-portrait {
  width: min(100%, 420px);
  min-height: 430px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 64px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}
.dpgl-abstract-card {
  right: 34px;
  bottom: 34px;
  width: 208px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  color: var(--dpgl-primary);
}
.dpgl-abstract-card span { font-size: 12px; }
.dpgl-abstract-card strong { font-size: 24px; }
.dpgl-section { padding: 68px 0; }
.dpgl-section-head h2,
.dpgl-final-cta h2 {
  font-size: clamp(25px, 3.3vw, 40px);
  line-height: 1.32;
  letter-spacing: -.035em;
}
.dpgl-eyebrow {
  font-size: 13px;
  margin-bottom: 10px;
}
.dpgl-eyebrow::before { width: 26px; }
.dpgl-split { gap: 54px; }
.dpgl-intro-copy p,
.dpgl-page-hero p { font-size: 16px; }
.dpgl-check-list { gap: 10px; margin-top: 18px; }
.dpgl-check-list li {
  padding: 12px 40px 12px 14px;
  border-radius: 14px;
}
.dpgl-card-grid { gap: 14px; }
.dpgl-service-card {
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16,42,44,.035);
}
.dpgl-service-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}
.dpgl-service-card p { font-size: 14px; line-height: 1.82; }
.dpgl-card-number { font-size: 13px; }
.dpgl-feature-band-inner {
  padding: 44px;
  border-radius: 28px;
  box-shadow: none;
}
.dpgl-feature-band h2 { font-size: clamp(24px, 3vw, 36px); }
.dpgl-feature-band p,
.dpgl-final-cta p { font-size: 15.5px; }
.dpgl-team-grid { gap: 14px; }
.dpgl-team-card { border-radius: 22px; box-shadow: 0 8px 24px rgba(16,42,44,.035); }
.dpgl-team-photo { height: 270px; }
.dpgl-team-photo span { font-size: 46px; }
.dpgl-team-info { padding: 20px; }
.dpgl-team-info h3,
.dpgl-post-body h3 { font-size: 18px; }
.dpgl-post-card { border-radius: 22px; box-shadow: 0 8px 24px rgba(16,42,44,.035); }
.dpgl-post-body { padding: 20px; }
.dpgl-page-hero { padding: 58px 0 42px; }
.dpgl-entry {
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(16,42,44,.035);
}
.dpgl-final-cta { padding: 58px 0; }
.dpgl-site-footer { padding: 46px 0 22px; }
.dpgl-footer-grid { gap: 26px; }
.dpgl-footer-col h3 { font-size: 15px; }
.dpgl-footer-bottom { margin-top: 30px; font-size: 12.5px; }

@media (max-width: 1100px) {
  .dpgl-primary-nav { inset: 88px 16px auto 16px; max-height: calc(100vh - 108px); }
  .dpgl-hero-grid { grid-template-columns: 1fr; }
  .dpgl-hero-visual { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .dpgl-header-inner { min-height: 64px; }
  .dpgl-primary-nav { inset: 78px 12px auto 12px; }
  .dpgl-brand-mark { width: 36px; height: 36px; font-size: 16px; }
  .dpgl-site-title { font-size: 14px; max-width: 150px; }
  .dpgl-hero {
    margin: 10px 10px 0;
    padding: 52px 0 42px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(6,25,27,.94), rgba(16,42,44,.78)),
      var(--dpgl-hero-bg),
      linear-gradient(135deg, #102A2C, #071819);
    background-size: cover;
    background-position: center;
  }
  .dpgl-hero-grid { min-height: auto; }
  .dpgl-hero h1,
  .dpgl-page-hero h1 { font-size: clamp(28px, 9.2vw, 39px); }
  .dpgl-hero p { font-size: 14.5px; }
  .dpgl-hero-actions { display: grid; }
  .dpgl-section { padding: 50px 0; }
  .dpgl-section-head h2,
  .dpgl-final-cta h2 { font-size: clamp(23px, 7vw, 32px); }
  .dpgl-feature-band-inner { padding: 26px; border-radius: 22px; }
  .dpgl-team-photo { height: 210px; }
  .dpgl-entry { padding: 22px; border-radius: 20px; }
}

/* Hero uses background image as the main visual; side illustration is intentionally hidden for a cleaner layout. */
.dpgl-hero-grid { grid-template-columns: 1fr; max-width: 820px; margin-inline: 0 auto; }
.dpgl-hero-visual { display: none; }

/* v1.1.1 — Hero inner spacing fix */
.dpgl-hero .dpgl-container {
  width: min(1140px, calc(100% - 104px));
}

.dpgl-hero-content {
  padding: 34px 18px 34px 0;
}

@media (max-width: 1100px) {
  .dpgl-hero .dpgl-container {
    width: min(100% - 72px, var(--dpgl-container));
  }
  .dpgl-hero-content {
    padding: 28px 6px;
  }
}

@media (max-width: 760px) {
  .dpgl-hero .dpgl-container {
    width: calc(100% - 40px);
  }
  .dpgl-hero-content {
    padding: 20px 2px 18px;
  }
}

@media (max-width: 420px) {
  .dpgl-hero .dpgl-container {
    width: calc(100% - 32px);
  }
}


/* v1.2.0 — Customizer-driven homepage and internal decision strip */
.dpgl-brand { min-width: 210px; }
.dpgl-brand-text { min-width: 0; }
.dpgl-site-title { display: block; line-height: 1.35; }
.dpgl-site-subtitle {
  display: block;
  color: var(--dpgl-muted);
  font-size: 11.5px;
  line-height: 1.6;
  margin-top: 1px;
  font-weight: 600;
  white-space: nowrap;
}
.dpgl-card-number { display: none !important; }
.dpgl-service-card {
  min-height: 286px;
  padding: 26px 24px;
}
.dpgl-service-card h3 {
  margin-top: 0;
  position: relative;
  padding-top: 20px;
}
.dpgl-service-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: var(--dpgl-accent);
}
.dpgl-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dpgl-team-photo img + span { display: none; }
.dpgl-post-grid { grid-template-columns: repeat(3, 1fr); }
.dpgl-decision-strip {
  padding: 34px 0 0;
  background: linear-gradient(180deg, var(--dpgl-bg-soft), #fff);
}
.dpgl-decision-inner {
  display: grid;
  grid-template-columns: .9fr 1.25fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--dpgl-border);
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 30px rgba(16,42,44,.045);
}
.dpgl-decision-head h2 {
  margin: 0;
  color: var(--dpgl-primary);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: -.025em;
}
.dpgl-decision-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dpgl-decision-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--dpgl-border);
  border-radius: 18px;
  background: var(--dpgl-bg-soft);
}
.dpgl-decision-card h3 {
  margin: 0 0 6px;
  color: var(--dpgl-primary);
  font-size: 14px;
}
.dpgl-decision-card p {
  margin: 0;
  color: var(--dpgl-muted);
  font-size: 12.5px;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .dpgl-brand { min-width: 0; }
  .dpgl-decision-inner { grid-template-columns: 1fr; }
  .dpgl-decision-cards { grid-template-columns: repeat(3, 1fr); }
  .dpgl-decision-inner .dpgl-button { justify-self: start; }
}

@media (max-width: 760px) {
  .dpgl-site-subtitle {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px;
  }
  .dpgl-brand-text span.dpgl-site-subtitle { display: block; }
  .dpgl-service-card { min-height: auto; }
  .dpgl-post-grid,
  .dpgl-decision-cards { grid-template-columns: 1fr; }
  .dpgl-decision-strip { padding-top: 24px; }
  .dpgl-decision-inner { padding: 18px; border-radius: 22px; }
}


/* v1.2.1 — Full first-view hero and sticky header visibility fix */
.dpgl-site-header {
  position: sticky;
  top: 0;
  z-index: 99990;
  width: 100%;
  min-height: 72px;
  overflow: visible;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(16,42,44,.045);
}

body.admin-bar .dpgl-site-header { top: 32px; }

.dpgl-header-inner {
  min-height: 72px;
  padding-block: 0;
  overflow: visible;
}

.dpgl-primary-nav,
.dpgl-menu,
.dpgl-menu > li { z-index: 99991; }
.dpgl-menu .sub-menu { z-index: 99992; }

body.home .dpgl-site-main,
body.front-page .dpgl-site-main { overflow: visible; }

body.home .dpgl-hero,
body.front-page .dpgl-hero {
  width: 100%;
  min-height: calc(100svh - 72px);
  margin: 0;
  border-radius: 0;
  display: grid;
  align-items: center;
  padding: 42px 0;
}

body.home .dpgl-hero-grid,
body.front-page .dpgl-hero-grid {
  min-height: calc(100svh - 156px);
  align-items: center;
}

body.home .dpgl-hero-content,
body.front-page .dpgl-hero-content {
  padding-block: 42px;
}

@media (max-width: 1100px) {
  .dpgl-primary-nav {
    z-index: 99989;
    top: 88px;
    right: 16px;
    left: 16px;
    bottom: auto;
    max-height: calc(100svh - 108px);
  }
  body.admin-bar .dpgl-primary-nav { top: 120px; max-height: calc(100svh - 140px); }
  body.home .dpgl-hero,
  body.front-page .dpgl-hero { min-height: calc(100svh - 72px); }
  body.home .dpgl-hero-grid,
  body.front-page .dpgl-hero-grid { min-height: calc(100svh - 150px); }
}

@media (max-width: 782px) {
  body.admin-bar .dpgl-site-header { top: 46px; }
  body.admin-bar .dpgl-primary-nav { top: 124px; max-height: calc(100svh - 144px); }
}

@media (max-width: 760px) {
  .dpgl-site-header { min-height: 64px; }
  .dpgl-header-inner { min-height: 64px; }
  .dpgl-primary-nav {
    top: 76px;
    right: 12px;
    left: 12px;
    max-height: calc(100svh - 92px);
  }
  body.admin-bar .dpgl-primary-nav { top: 122px; max-height: calc(100svh - 138px); }
  body.home .dpgl-hero,
  body.front-page .dpgl-hero {
    min-height: calc(100svh - 64px);
    margin: 0;
    border-radius: 0;
    padding: 34px 0;
  }
  body.home .dpgl-hero-grid,
  body.front-page .dpgl-hero-grid {
    min-height: calc(100svh - 132px);
  }
  body.home .dpgl-hero-content,
  body.front-page .dpgl-hero-content {
    padding-block: 28px;
  }
}


/* v1.2.2 — Logo, right sidebar and minimal motion refinements */
.dpgl-brand-logo-link,
.dpgl-footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dpgl-default-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.dpgl-footer-logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.dpgl-brand .custom-logo-link img {
  max-width: 58px;
  object-fit: contain;
}

.dpgl-content-layout {
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}
.dpgl-main-loop,
.dpgl-sidebar {
  direction: rtl;
  min-width: 0;
}
.dpgl-page-layout .dpgl-entry,
.dpgl-single-layout .dpgl-entry {
  width: 100%;
}
.dpgl-sidebar {
  top: 104px;
}
.dpgl-widget {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(16,42,44,.035);
  background: rgba(255,255,255,.92);
}
.dpgl-widget h3,
.dpgl-widget .widget-title {
  font-size: 15.5px;
  line-height: 1.55;
}
.dpgl-widget p {
  margin: 0 0 14px;
  color: var(--dpgl-muted);
  font-size: 13px;
  line-height: 1.85;
}
.dpgl-widget-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--dpgl-accent);
  font-size: 12px;
  font-weight: 900;
}
.dpgl-widget-consult {
  background:
    radial-gradient(circle at top right, rgba(0,155,138,.13), transparent 34%),
    linear-gradient(180deg, #fff, var(--dpgl-bg-soft));
}
.dpgl-sidebar-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dpgl-primary);
  color: #fff;
  font-weight: 850;
  font-size: 13px;
}
.dpgl-sidebar-cta:hover {
  background: var(--dpgl-accent);
  color: #fff;
  transform: translateY(-2px);
}
.dpgl-sidebar-list li {
  position: relative;
  padding-right: 14px;
}
.dpgl-sidebar-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dpgl-accent);
}
.dpgl-sidebar-list a,
.dpgl-widget li a {
  font-size: 13.5px;
  line-height: 1.8;
}

.dpgl-team-photo {
  height: 250px;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(0,155,138,.11), transparent 38%),
    linear-gradient(135deg, #fff, var(--dpgl-bg-soft));
}
.dpgl-team-photo::before { display: none; }
.dpgl-team-illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(16,42,44,.06));
  transform: scale(.96);
  transition: transform .45s ease, filter .45s ease;
}
.dpgl-team-card:hover .dpgl-team-illustration {
  transform: scale(1);
  filter: drop-shadow(0 20px 40px rgba(16,42,44,.09));
}

.dpgl-motion-enabled .dpgl-entry,
.dpgl-motion-enabled .dpgl-widget,
.dpgl-motion-enabled .dpgl-post-card,
.dpgl-motion-enabled .dpgl-service-card,
.dpgl-motion-enabled .dpgl-team-card,
.dpgl-motion-enabled .dpgl-decision-card {
  transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease, opacity .62s ease;
}
.dpgl-motion-enabled .dpgl-entry:hover,
.dpgl-motion-enabled .dpgl-widget:hover,
.dpgl-motion-enabled .dpgl-post-card:hover,
.dpgl-motion-enabled .dpgl-service-card:hover,
.dpgl-motion-enabled .dpgl-team-card:hover,
.dpgl-motion-enabled .dpgl-decision-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16,42,44,.065);
  border-color: rgba(0,155,138,.22);
}
.dpgl-motion-enabled .dpgl-entry-content > * {
  opacity: 1;
  transform: none;
}
@media (max-width: 1100px) {
  .dpgl-content-layout {
    direction: rtl;
    grid-template-columns: 1fr;
  }
  .dpgl-sidebar { position: static; }
}
@media (max-width: 760px) {
  .dpgl-default-logo { width: 40px; height: 40px; }
  .dpgl-brand .custom-logo-link img { max-width: 46px; }
  .dpgl-content-layout { gap: 22px; }
  .dpgl-team-photo { height: 200px; padding: 20px; }
  .dpgl-widget { padding: 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dpgl-motion-enabled .dpgl-entry-content > * { animation: none !important; }
}


/* v1.2.3 — Keep right sidebar beside inner page content */
.dpgl-content-layout {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 30px;
  align-items: start;
}
.dpgl-content-layout > .dpgl-main-loop {
  grid-column: 1;
  grid-row: 1;
  direction: rtl;
  min-width: 0;
}
.dpgl-content-layout > .dpgl-sidebar {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 104px;
}
.dpgl-inner-decision-holder {
  margin-bottom: 22px;
}
.dpgl-inner-decision-holder .dpgl-decision-strip {
  padding: 0;
  background: transparent;
}
.dpgl-inner-decision-holder .dpgl-decision-strip .dpgl-container {
  max-width: none;
  width: 100%;
  padding: 0;
}
.dpgl-inner-decision-holder .dpgl-decision-inner {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
}
.dpgl-inner-decision-holder .dpgl-decision-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dpgl-inner-decision-holder .dpgl-decision-inner .dpgl-button {
  justify-self: start;
}
@media (max-width: 980px) {
  .dpgl-content-layout {
    direction: rtl;
    grid-template-columns: 1fr;
  }
  .dpgl-content-layout > .dpgl-main-loop,
  .dpgl-content-layout > .dpgl-sidebar {
    grid-column: 1;
    direction: rtl;
  }
  .dpgl-content-layout > .dpgl-main-loop { grid-row: 1; }
  .dpgl-content-layout > .dpgl-sidebar {
    grid-row: 2;
    position: static;
  }
}
@media (max-width: 760px) {
  .dpgl-inner-decision-holder .dpgl-decision-cards {
    grid-template-columns: 1fr;
  }
}


/* v1.2.4 — Put inner page title beside the right sidebar, not above it */
.dpgl-inner-section {
  padding-top: 54px;
}
.dpgl-inner-page-head {
  margin-bottom: 22px;
  padding: 30px 32px;
  border: 1px solid var(--dpgl-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(0,155,138,.10), transparent 34%),
    linear-gradient(180deg, #fff, var(--dpgl-bg-soft));
  box-shadow: 0 8px 24px rgba(16,42,44,.035);
}
.dpgl-inner-page-head .dpgl-eyebrow {
  margin-bottom: 8px;
}
.dpgl-inner-page-head h1 {
  margin: 0;
  max-width: 820px;
  color: var(--dpgl-primary);
  font-size: clamp(28px, 4.1vw, 46px);
  line-height: 1.28;
  letter-spacing: -.04em;
}
.dpgl-inner-page-head p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--dpgl-muted);
  font-size: 15.5px;
  line-height: 1.9;
}
.dpgl-inner-page-head .dpgl-entry-meta {
  margin-top: 12px;
}
.dpgl-page-hero.dpgl-archive-hero,
.dpgl-page-hero.dpgl-single-hero {
  display: none;
}
@media (max-width: 760px) {
  .dpgl-inner-section {
    padding-top: 34px;
  }
  .dpgl-inner-page-head {
    padding: 22px;
    border-radius: 22px;
  }
  .dpgl-inner-page-head h1 {
    font-size: clamp(25px, 8vw, 36px);
  }
}


/* Flexible sidebar box below consultation card */
.dpgl-sidebar-extra { margin-top: -2px; }
.dpgl-widget-flex {
  overflow: hidden;
}
.dpgl-widget-flex > *:last-child { margin-bottom: 0; }
.dpgl-widget-flex .textwidget,
.dpgl-widget-flex .wp-block-group,
.dpgl-widget-flex .wp-block-columns,
.dpgl-widget-flex .wp-block-media-text {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--dpgl-text);
}
.dpgl-widget-flex img,
.dpgl-widget-flex figure,
.dpgl-widget-flex .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
.dpgl-widget-flex figure { margin: 0 0 12px; }
.dpgl-widget-flex p { margin: 0 0 12px; }
.dpgl-widget-flex .wp-block-button__link,
.dpgl-widget-flex a.button,
.dpgl-widget-flex .button {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 850;
}
.dpgl-widget-flex ul,
.dpgl-widget-flex ol {
  margin: 0 0 12px;
  padding-right: 18px;
}
.dpgl-widget-flex iframe,
.dpgl-widget-flex video {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}

/* v1.2.6 - Consultation CTA contrast fix */
.dpgl-widget a.dpgl-sidebar-cta,
.dpgl-widget-consult a.dpgl-sidebar-cta,
.dpgl-sidebar .dpgl-widget-consult a.dpgl-sidebar-cta {
  color: #ffffff !important;
  background: var(--dpgl-primary);
  font-family: Vazirmatn, Vazir, Tahoma, Arial, sans-serif;
  font-weight: 850;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(16,42,44,.12);
}
.dpgl-widget a.dpgl-sidebar-cta:hover,
.dpgl-widget a.dpgl-sidebar-cta:focus,
.dpgl-widget-consult a.dpgl-sidebar-cta:hover,
.dpgl-widget-consult a.dpgl-sidebar-cta:focus,
.dpgl-sidebar .dpgl-widget-consult a.dpgl-sidebar-cta:hover,
.dpgl-sidebar .dpgl-widget-consult a.dpgl-sidebar-cta:focus {
  color: #ffffff !important;
  background: var(--dpgl-accent-hover);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,155,138,.18);
}
.dpgl-widget a.dpgl-sidebar-cta:focus-visible,
.dpgl-widget-consult a.dpgl-sidebar-cta:focus-visible {
  outline: 3px solid rgba(0,155,138,.25);
  outline-offset: 3px;
}


/* v1.2.8 — Technical SEO UX helpers */
.dpgl-breadcrumbs {
  margin: 0 0 18px;
  color: var(--dpgl-muted);
  font-size: 12.5px;
}
.dpgl-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dpgl-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.dpgl-breadcrumbs li + li::before { content: "‹"; color: color-mix(in srgb, var(--dpgl-muted) 60%, transparent); }
.dpgl-breadcrumbs a { color: var(--dpgl-muted); text-decoration: none; }
.dpgl-breadcrumbs a:hover { color: var(--dpgl-accent); }
.dpgl-breadcrumbs [aria-current="page"] { color: var(--dpgl-primary); font-weight: 700; }
.dpgl-featured-image img,
.dpgl-post-thumb img,
.dpgl-team-photo img,
.custom-logo,
.dpgl-default-logo,
.dpgl-footer-logo-mark { height: auto; }
.dpgl-entry-content img { max-width: 100%; height: auto; }


/* Bundled compatibility layer v1.3.5 — merged to avoid one extra CSS request. */
/*
 * Dadfaran Persian Green Legal — Browser compatibility layer v1.3.5
 * هدف: نمایش پایدارتر در Firefox و fallback قابل قبول برای IE/Edge Legacy.
 */

/* Firefox fallback: اگر backdrop-filter/ترکیب پس‌زمینه مشکل ایجاد کند، هدر کاملاً خوانا بماند. */
@-moz-document url-prefix() {
  .dpgl-site-header {
    background: rgba(255, 255, 255, .98);
  }

  .dpgl-primary-nav,
  .dpgl-menu .sub-menu {
    background-color: #fff;
  }

  .dpgl-default-logo,
  .custom-logo {
    image-rendering: auto;
  }
}

/* fallback عمومی برای مرورگرهایی که width:min یا margin-inline را ناقص اجرا می‌کنند */
.dpgl-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@supports not (width: min(100%, 1200px)) {
  .dpgl-container {
    width: calc(100% - 48px);
    max-width: 1200px;
  }
}

@supports not (margin-inline: auto) {
  .dpgl-container {
    margin-left: auto;
    margin-right: auto;
  }
}

/* IE10/IE11 + Edge Legacy fallback. IE متغیرهای CSS، grid مدرن، sticky و clamp را پشتیبانی نمی‌کند. */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  html,
  body {
    background: #ffffff;
    color: #1F2933;
    font-family: Tahoma, Arial, sans-serif;
    overflow-x: hidden;
  }

  body {
    padding-top: 92px;
  }

  body.admin-bar {
    padding-top: 124px;
  }

  a:hover,
  .dpgl-widget a:hover,
  .dpgl-read-more,
  .dpgl-link-arrow::after,
  .dpgl-service-card a::after {
    color: #009B8A;
  }

  .dpgl-container {
    width: 92%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }

  .dpgl-site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 1px solid #DDEBE8;
  }

  .admin-bar .dpgl-site-header {
    top: 32px;
  }

  .dpgl-header-inner,
  .dpgl-topbar-inner,
  .dpgl-brand,
  .dpgl-menu,
  .dpgl-hero-actions,
  .dpgl-footer-logo-row,
  .dpgl-footer-bottom,
  .dpgl-search-form,
  .dpgl-post-meta,
  .dpgl-breadcrumbs {
    display: -ms-flexbox;
    display: flex;
  }

  .dpgl-header-inner {
    min-height: 88px;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .dpgl-brand {
    -ms-flex-align: center;
    align-items: center;
    min-width: 260px;
  }

  .dpgl-brand-text,
  .dpgl-check-list,
  .dpgl-contact-list,
  .dpgl-widget ul {
    display: block;
  }

  .dpgl-primary-nav {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    text-align: center;
  }

  .dpgl-menu {
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .dpgl-menu > li > a,
  .dpgl-button,
  .dpgl-header-cta,
  .dpgl-sidebar-cta {
    background: #009B8A;
    color: #ffffff !important;
  }

  .dpgl-menu > li > a {
    background: transparent;
    color: #102A2C !important;
  }

  .dpgl-menu > li > a:hover,
  .dpgl-menu > .current-menu-item > a,
  .dpgl-menu > .current-menu-ancestor > a,
  .dpgl-button-ghost,
  .dpgl-button-light {
    background: #E6F7F4;
    color: #102A2C !important;
  }

  .dpgl-menu .sub-menu {
    background: #ffffff;
    border: 1px solid #DDEBE8;
    box-shadow: 0 18px 54px rgba(16, 42, 44, .12);
  }

  .dpgl-site-title,
  .dpgl-hero h1,
  .dpgl-page-hero h1,
  .dpgl-section-head h2,
  .dpgl-service-card h3,
  .dpgl-team-info h3,
  .dpgl-post-body h3,
  .dpgl-entry-content h1,
  .dpgl-entry-content h2,
  .dpgl-entry-content h3,
  .dpgl-entry-content h4,
  .dpgl-widget .widget-title,
  .dpgl-widget-consult h3,
  .dpgl-final-cta h2,
  .dpgl-footer h3,
  .dpgl-inner-page-head h1 {
    color: #102A2C;
  }

  .dpgl-muted,
  .dpgl-hero p,
  .dpgl-page-hero p,
  .dpgl-service-card p,
  .dpgl-team-info p,
  .dpgl-post-body p,
  .dpgl-widget p,
  .dpgl-site-subtitle {
    color: #667085;
  }

  .dpgl-eyebrow,
  .dpgl-widget-kicker,
  .dpgl-card-number {
    color: #009B8A;
  }

  .dpgl-hero,
  .dpgl-page-hero,
  .dpgl-expertise,
  .dpgl-insights,
  .dpgl-inner-section {
    background: #F7FAF9;
  }

  .dpgl-hero {
    min-height: 680px;
    padding-top: 110px;
  }

  .dpgl-hero h1,
  .dpgl-page-hero h1 {
    font-size: 52px;
  }

  .dpgl-section-head h2,
  .dpgl-final-cta h2 {
    font-size: 36px;
  }

  .dpgl-hero-grid,
  .dpgl-split,
  .dpgl-feature-band-inner,
  .dpgl-team-grid,
  .dpgl-post-grid,
  .dpgl-card-grid,
  .dpgl-content-layout,
  .dpgl-final-cta-inner,
  .dpgl-footer-grid,
  .dpgl-decision-cards {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .dpgl-hero-grid > *,
  .dpgl-split > *,
  .dpgl-feature-band-inner > *,
  .dpgl-final-cta-inner > * {
    -ms-flex: 1 1 420px;
    flex: 1 1 420px;
  }

  .dpgl-service-card,
  .dpgl-team-card,
  .dpgl-post-card,
  .dpgl-decision-card {
    -ms-flex: 1 1 280px;
    flex: 1 1 280px;
    margin: 9px;
  }

  .dpgl-main-loop,
  .dpgl-main-content {
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 360px);
  }

  .dpgl-sidebar {
    position: static;
    -ms-flex: 0 0 320px;
    flex: 0 0 320px;
    width: 320px;
    margin-left: 34px;
  }

  .dpgl-entry,
  .dpgl-widget,
  .dpgl-service-card,
  .dpgl-team-card,
  .dpgl-post-card,
  .dpgl-inner-page-head,
  .dpgl-decision-strip {
    background: #ffffff;
    border: 1px solid #DDEBE8;
    box-shadow: 0 8px 28px rgba(16, 42, 44, .06);
  }

  .dpgl-final-cta,
  .dpgl-site-footer,
  .dpgl-footer,
  .dpgl-feature-band-inner {
    background: #102A2C;
    color: #ffffff;
  }

  .dpgl-final-cta h2,
  .dpgl-site-footer h3,
  .dpgl-footer h3,
  .dpgl-feature-band-inner h2 {
    color: #ffffff;
  }

  .dpgl-post-thumb,
  .dpgl-team-photo,
  .dpgl-placeholder-thumb {
    background: #E6F7F4;
  }

  .dpgl-reveal,
  .dpgl-motion-enabled .dpgl-reveal,
  .dpgl-motion-enabled .dpgl-service-card,
  .dpgl-motion-enabled .dpgl-team-card,
  .dpgl-motion-enabled .dpgl-post-card,
  .dpgl-motion-enabled .dpgl-widget,
  .dpgl-motion-enabled .dpgl-entry {
    opacity: 1 !important;
    transform: none !important;
  }

  .dpgl-breadcrumbs li + li:before {
    color: #8A98A5;
  }

  @media (max-width: 980px) {
    body {
      padding-top: 78px;
    }

    .dpgl-primary-nav,
    .dpgl-header-cta {
      display: none;
    }

    .dpgl-menu-toggle {
      display: block;
    }

    .dpgl-content-layout,
    .dpgl-hero-grid,
    .dpgl-split,
    .dpgl-feature-band-inner,
    .dpgl-team-grid,
    .dpgl-post-grid,
    .dpgl-card-grid,
    .dpgl-footer-grid {
      display: block;
    }

    .dpgl-main-loop,
    .dpgl-main-content,
    .dpgl-sidebar {
      max-width: 100%;
      width: 100%;
      margin-left: 0;
    }

    .dpgl-service-card,
    .dpgl-team-card,
    .dpgl-post-card {
      margin: 0 0 18px;
    }
  }
}


/* v1.3.5 — Performance/minimal page fixes */
.dpgl-motion-enabled .dpgl-reveal { will-change: auto; }
.dpgl-inner-decision-holder,
.dpgl-decision-strip { display: none !important; }
.dpgl-default-logo,
.dpgl-footer-logo-mark { aspect-ratio: 220 / 218; object-fit: contain; }
.dpgl-team-illustration { aspect-ratio: 1 / 1; object-fit: contain; }
@media (max-width: 900px) {
  .dpgl-hero { min-height: auto; }
}


/* v1.3.5 — No flicker/no disappearing content fix
   The theme no longer hides content while waiting for scroll observers. */
.dpgl-reveal,
.dpgl-motion-enabled .dpgl-reveal,
.dpgl-motion-enabled .dpgl-reveal:not(.is-visible),
.dpgl-motion-enabled .dpgl-entry-content > * {
  opacity: 1 !important;
  visibility: visible !important;
}
.dpgl-motion-enabled .dpgl-reveal:not(.is-visible),
.dpgl-motion-enabled .dpgl-entry-content > * {
  transform: none !important;
}


/* v1.3.5 — Inner pages exact alignment: breadcrumb/title and right sidebar */
@supports (display: grid) {
  .dpgl-inner-section {
    padding-top: 42px;
  }

  .dpgl-inner-aligned-layout {
    display: grid !important;
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 30px;
    align-items: start !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-main-loop,
  .dpgl-inner-aligned-layout > .dpgl-sidebar {
    direction: rtl;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: start !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-main-loop {
    grid-column: 1;
    grid-row: 1;
  }

  .dpgl-inner-aligned-layout > .dpgl-sidebar {
    grid-column: 2;
    grid-row: 1;
    position: static !important; /* اولویت با هم‌ترازی دقیق عنوان/بریدکرامب و ابتدای سایدبار است. */
    top: auto !important;
  }

  .dpgl-inner-aligned-layout .dpgl-breadcrumbs:first-child,
  .dpgl-inner-aligned-layout .dpgl-inner-page-head:first-child,
  .dpgl-inner-aligned-layout .dpgl-sidebar > .dpgl-widget:first-child,
  .dpgl-inner-aligned-layout .dpgl-sidebar > .widget:first-child {
    margin-top: 0 !important;
  }

  .dpgl-inner-aligned-layout .dpgl-breadcrumbs {
    margin: 0 0 12px !important;
  }

  .dpgl-inner-aligned-layout .dpgl-inner-page-head {
    margin: 0 0 22px !important;
  }

  .dpgl-inner-aligned-layout .dpgl-inner-page-head h1 {
    margin-top: 0 !important;
  }

  .dpgl-inner-aligned-layout .dpgl-sidebar .dpgl-widget:first-child,
  .dpgl-inner-aligned-layout .dpgl-sidebar .widget:first-child {
    transform: none !important;
  }

  @media (max-width: 980px) {
    .dpgl-inner-aligned-layout {
      direction: rtl;
      grid-template-columns: 1fr;
    }

    .dpgl-inner-aligned-layout > .dpgl-main-loop,
    .dpgl-inner-aligned-layout > .dpgl-sidebar {
      grid-column: 1;
      direction: rtl;
    }

    .dpgl-inner-aligned-layout > .dpgl-main-loop { grid-row: 1; }
    .dpgl-inner-aligned-layout > .dpgl-sidebar { grid-row: 2; }
  }
}


/* v1.3.5 — Page featured image duplication fix
 * برگه‌ها دیگر تصویر شاخص را به‌صورت خودکار چاپ نمی‌کنند؛
 * بنابراین اگر همان تصویر داخل محتوای برگه باشد، دوبار دیده نمی‌شود.
 */


/* v1.3.6 — Breadcrumb full-row alignment with sidebar/title
 * Breadcrumb is now a direct child of the inner grid. It spans the full layout,
 * starts from the right edge of the container, and the title card + sidebar begin
 * on the same row below it.
 */
@supports (display: grid) {
  .dpgl-inner-aligned-layout {
    display: grid !important;
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    grid-template-areas:
      "breadcrumb breadcrumb"
      "main sidebar";
    column-gap: 30px;
    row-gap: 14px;
    align-items: start !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-breadcrumbs {
    grid-area: breadcrumb;
    direction: rtl;
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 4px !important;
    align-self: start !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-main-loop {
    grid-area: main;
    direction: rtl;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: start !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-sidebar {
    grid-area: sidebar;
    direction: rtl;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: start !important;
    position: static !important;
    top: auto !important;
  }

  .dpgl-inner-aligned-layout > .dpgl-main-loop > .dpgl-inner-page-head:first-child,
  .dpgl-inner-aligned-layout > .dpgl-sidebar > .dpgl-widget:first-child,
  .dpgl-inner-aligned-layout > .dpgl-sidebar > .widget:first-child {
    margin-top: 0 !important;
  }

  .dpgl-inner-aligned-layout .dpgl-inner-page-head {
    margin: 0 0 22px !important;
  }

  .dpgl-inner-aligned-layout .dpgl-inner-page-head h1 {
    margin-top: 0 !important;
  }

  @media (max-width: 980px) {
    .dpgl-inner-aligned-layout {
      direction: rtl;
      grid-template-columns: 1fr;
      grid-template-areas:
        "breadcrumb"
        "main"
        "sidebar";
      row-gap: 18px;
    }

    .dpgl-inner-aligned-layout > .dpgl-breadcrumbs,
    .dpgl-inner-aligned-layout > .dpgl-main-loop,
    .dpgl-inner-aligned-layout > .dpgl-sidebar {
      grid-column: auto !important;
      grid-row: auto !important;
      direction: rtl;
    }
  }
}


/* v1.3.7 — Smaller legal analysis labels + page duplicate image protection
   - برچسب «تحلیل حقوقی» در کارت‌ها و سربرگ نوشته‌ها ظریف‌تر شد.
   - فیلتر PHP نسخه‌های تکراری دقیق img در محتوای برگه‌ها را حذف می‌کند. */
.dpgl-post-card .dpgl-post-meta,
.dpgl-post-meta {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 750;
  letter-spacing: 0;
}
.dpgl-post-card .dpgl-post-meta {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-primary);
}
.dpgl-inner-page-head .dpgl-eyebrow {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 780;
  letter-spacing: 0;
}
.dpgl-inner-page-head .dpgl-entry-meta {
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .dpgl-post-card .dpgl-post-meta,
  .dpgl-post-meta,
  .dpgl-inner-page-head .dpgl-eyebrow {
    font-size: 10.5px;
  }
}


/* v1.3.9 — Single post duplicate image fix
   تصویر شاخص در صفحه خود نوشته دیگر خودکار چاپ نمی‌شود و تصویرهای تکراری داخل محتوای نوشته/برگه حذف می‌شوند. */


/* v1.4.0 — Minimal article card typography
   متن زیر برچسب «تحلیل حقوقی» در کارت‌های مقاله کوچک‌تر و متناسب‌تر شد. */
.dpgl-post-card .dpgl-post-body {
  padding: 18px 18px 20px;
}
.dpgl-post-card .dpgl-post-meta,
.dpgl-post-meta {
  font-size: 10px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}
.dpgl-post-card .dpgl-post-meta {
  padding: 3px 8px !important;
  gap: 5px !important;
}
.dpgl-post-card .dpgl-post-body h3 {
  margin: 10px 0 7px !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 750 !important;
  letter-spacing: -.015em !important;
}
.dpgl-post-card .dpgl-post-body h3 a {
  color: var(--dpgl-primary);
}
.dpgl-post-card .dpgl-post-body p {
  font-size: 12.5px !important;
  line-height: 1.9 !important;
  color: var(--dpgl-muted);
  margin: 0 !important;
}
.dpgl-post-card .dpgl-read-more {
  margin-top: 13px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}
.dpgl-post-grid-list .dpgl-post-card .dpgl-post-body h3 {
  font-size: 18px !important;
}
.dpgl-post-grid-list .dpgl-post-card .dpgl-post-body p {
  font-size: 13px !important;
}
@media (max-width: 760px) {
  .dpgl-post-card .dpgl-post-body {
    padding: 16px;
  }
  .dpgl-post-card .dpgl-post-body h3 {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }
  .dpgl-post-card .dpgl-post-body p {
    font-size: 12px !important;
    line-height: 1.85 !important;
  }
}


/* v1.4.3 — Dedicated articles listing page template */
.dpgl-articles-template .dpgl-inner-page-head p {
  max-width: 760px;
  color: var(--dpgl-muted);
  font-size: 14px;
  line-height: 2;
  margin: 10px 0 0;
}
.dpgl-articles-template .dpgl-page-intro {
  margin-bottom: 22px;
}
.dpgl-articles-template .dpgl-page-intro:empty {
  display: none;
}
.dpgl-articles-template .dpgl-page-intro .dpgl-entry-content {
  margin-bottom: 22px;
}
.dpgl-articles-template .dpgl-post-grid-list .dpgl-post-card {
  border-radius: 24px;
}
.dpgl-articles-template .dpgl-post-grid-list .dpgl-post-thumb {
  aspect-ratio: 1.9;
}
@media (min-width: 900px) {
  .dpgl-articles-template .dpgl-post-grid-list .dpgl-post-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: stretch;
  }
  .dpgl-articles-template .dpgl-post-grid-list .dpgl-post-thumb {
    aspect-ratio: auto;
    min-height: 100%;
  }
}
@media (max-width: 760px) {
  .dpgl-articles-template .dpgl-inner-page-head p {
    font-size: 13.5px;
  }
}


/* v1.4.3 — Content listing template filters */
.dpgl-content-filter {
  margin: 22px 0 18px;
  padding: 18px;
  border: 1px solid rgba(16, 42, 44, .09);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,249,.96));
  box-shadow: 0 16px 40px rgba(16, 42, 44, .055);
}
.dpgl-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 132px;
  gap: 12px;
  align-items: end;
}
.dpgl-filter-field {
  display: grid;
  gap: 7px;
}
.dpgl-filter-field > span,
.dpgl-filter-categories legend {
  color: var(--dpgl-primary);
  font-size: 12px;
  font-weight: 800;
}
.dpgl-filter-field input,
.dpgl-filter-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16, 42, 44, .13);
  border-radius: 14px;
  background: #fff;
  color: var(--dpgl-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 9px 12px;
  outline: none;
}
.dpgl-filter-field input:focus,
.dpgl-filter-field select:focus {
  border-color: rgba(0, 155, 138, .58);
  box-shadow: 0 0 0 4px rgba(0, 155, 138, .10);
}
.dpgl-filter-categories {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.dpgl-filter-categories legend {
  margin-bottom: 10px;
}
.dpgl-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dpgl-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(16, 42, 44, .11);
  border-radius: 999px;
  background: #fff;
  color: var(--dpgl-primary);
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dpgl-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 155, 138, .42);
}
.dpgl-filter-chip input {
  inline-size: 14px;
  block-size: 14px;
  accent-color: var(--dpgl-accent);
}
.dpgl-filter-chip small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent);
  font-size: 11px;
  text-align: center;
}
.dpgl-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.dpgl-filter-actions .dpgl-btn {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
}
.dpgl-filter-summary {
  margin: 0 0 16px;
  color: var(--dpgl-muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.dpgl-empty-state {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(16, 42, 44, .09);
  background: #fff;
}
.dpgl-empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.dpgl-empty-state p {
  margin: 0;
  color: var(--dpgl-muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .dpgl-filter-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .dpgl-content-filter {
    padding: 14px;
    border-radius: 20px;
  }
  .dpgl-filter-chip {
    width: 100%;
    justify-content: space-between;
  }
}


/* v1.4.7 — UX rewrite for contents page filters and cards
   - دسته‌بندی‌های زیاد دیگر به‌صورت chipهای شلوغ نمایش داده نمی‌شوند.
   - فیلتر اصلی به یک نوار جستجو + انتخاب دسته + دکمه نمایش تبدیل شد.
   - مرتب‌سازی و تعداد نمایش داخل «تنظیمات بیشتر» رفتند.
   - کارت‌های صفحه مطالب با کیفیت و چیدمان کارت‌های صفحه اصلی یکدست شدند. */
.dpgl-contents-listing {
  --dpgl-filter-control-height: 44px;
}
.dpgl-content-filter-compact {
  margin: 22px 0 18px;
  padding: 14px;
  border: 1px solid rgba(16, 42, 44, .085);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(16, 42, 44, .05);
}
.dpgl-filter-mainbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  gap: 10px;
  align-items: end;
}
.dpgl-content-filter-compact .dpgl-filter-field {
  gap: 6px;
}
.dpgl-content-filter-compact .dpgl-filter-field > span {
  color: rgba(16,42,44,.72);
  font-size: 11px;
  font-weight: 800;
}
.dpgl-content-filter-compact input,
.dpgl-content-filter-compact select {
  min-height: var(--dpgl-filter-control-height);
  border-radius: 16px;
  border: 1px solid rgba(16,42,44,.11);
  background-color: #fff;
  color: var(--dpgl-primary);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 9px 13px;
  outline: none;
  box-shadow: none;
}
.dpgl-content-filter-compact input:focus,
.dpgl-content-filter-compact select:focus {
  border-color: rgba(0,155,138,.52);
  box-shadow: 0 0 0 4px rgba(0,155,138,.09);
}
.dpgl-filter-submit {
  min-height: var(--dpgl-filter-control-height);
  align-self: end;
  padding-inline: 20px !important;
  border-radius: 16px !important;
  white-space: nowrap;
}
.dpgl-advanced-filters {
  margin-top: 10px;
}
.dpgl-advanced-filters summary {
  width: fit-content;
  cursor: pointer;
  color: var(--dpgl-accent);
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  padding: 4px 2px;
}
.dpgl-advanced-filters summary::-webkit-details-marker {
  display: none;
}
.dpgl-advanced-filters summary::after {
  content: " +";
  color: var(--dpgl-muted);
}
.dpgl-advanced-filters[open] summary::after {
  content: " −";
}
.dpgl-advanced-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 160px) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(16,42,44,.075);
}
.dpgl-advanced-filter-panel .dpgl-btn {
  min-height: var(--dpgl-filter-control-height);
  border-radius: 16px !important;
  align-self: end;
}
.dpgl-filter-summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-primary);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.8;
}
.dpgl-contents-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
}
.dpgl-articles-template .dpgl-contents-card-grid .dpgl-post-card {
  display: block !important;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dpgl-border);
  box-shadow: 0 8px 30px rgba(16,42,44,.05);
}
.dpgl-articles-template .dpgl-contents-card-grid .dpgl-post-thumb {
  aspect-ratio: 1.42 !important;
  min-height: 0 !important;
}
.dpgl-articles-template .dpgl-contents-card-grid .dpgl-post-body {
  padding: 18px 18px 20px;
}
.dpgl-articles-template .dpgl-contents-card-grid .dpgl-post-body h3 {
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin: 10px 0 7px !important;
}
.dpgl-articles-template .dpgl-contents-card-grid .dpgl-post-body p {
  font-size: 12.5px !important;
  line-height: 1.9 !important;
}
@media (max-width: 1100px) {
  .dpgl-contents-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  .dpgl-filter-mainbar,
  .dpgl-advanced-filter-panel {
    grid-template-columns: 1fr;
  }
  .dpgl-filter-submit,
  .dpgl-advanced-filter-panel .dpgl-btn {
    width: 100%;
    justify-content: center;
  }
  .dpgl-contents-card-grid {
    grid-template-columns: 1fr !important;
  }
  .dpgl-content-filter-compact {
    padding: 12px;
    border-radius: 20px;
  }
}

/* v1.4.7 — Pagination UX fix for مطالب page and archives
   - خروجی list در paginate_links بدون bullet و با چینش RTL درست نمایش داده می‌شود.
   - صفحه‌بندی شورت‌کد از پارامتر اختصاصی dpgl_page استفاده می‌کند تا با برگه‌ها/گوتنبرگ تداخل نداشته باشد. */
.dpgl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 34px 0 4px;
}
.dpgl-pagination .nav-links,
.dpgl-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}
.dpgl-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dpgl-pagination .page-numbers,
.dpgl-pagination .nav-links > * {
  min-width: 38px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(16,42,44,.10);
  border-radius: 999px;
  background: #fff;
  color: var(--dpgl-primary);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(16,42,44,.04);
  direction: rtl;
}
.dpgl-pagination a.page-numbers:hover,
.dpgl-pagination .nav-links a:hover {
  color: #fff;
  border-color: var(--dpgl-accent);
  background: var(--dpgl-accent);
  transform: translateY(-1px);
}
.dpgl-pagination .page-numbers.current,
.dpgl-pagination .nav-links .current {
  color: #fff;
  border-color: var(--dpgl-accent);
  background: var(--dpgl-accent);
  box-shadow: 0 10px 26px rgba(0,155,138,.18);
}
.dpgl-pagination .page-numbers.dots {
  min-width: 22px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--dpgl-muted);
}
.dpgl-pagination .prev,
.dpgl-pagination .next {
  min-width: 84px;
}
@media (max-width: 560px) {
  .dpgl-pagination ul.page-numbers,
  .dpgl-pagination .nav-links {
    gap: 6px;
  }
  .dpgl-pagination .page-numbers,
  .dpgl-pagination .nav-links > * {
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .dpgl-pagination .prev,
  .dpgl-pagination .next {
    min-width: auto;
    flex: 1 1 42%;
  }
}



/* v1.4.7 — RTL pagination and related posts cleanup */
.dpgl-pagination,
.dpgl-pagination .nav-links,
.dpgl-pagination ul.page-numbers {
  direction: rtl;
  unicode-bidi: isolate;
}
.dpgl-pagination ul.page-numbers {
  flex-direction: row;
}
.dpgl-pagination .prev,
.dpgl-pagination .next {
  white-space: nowrap;
}

/* خروجی افزونه‌های مرتبط، مخصوصاً CRP، برای جلوگیری از دوبار نمایش/به‌هم‌ریختگی پنهان می‌شود؛ قالب خودش بخش مرتبط استاندارد دارد. */
.crp_related,
.crp_related_posts,
.crp_related.crp-rounded-thumbs,
.dpgl-entry-content > .crp_related {
  display: none !important;
}

.dpgl-related-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(16,42,44,.08);
}
.dpgl-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dpgl-related-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent);
  font-size: 11.5px;
  font-weight: 800;
}
.dpgl-related-head h2 {
  margin: 0;
  color: var(--dpgl-primary);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.45;
}
.dpgl-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dpgl-related-grid .dpgl-post-card {
  min-height: 100%;
}
@media (max-width: 980px) {
  .dpgl-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .dpgl-related-head {
    display: grid;
    align-items: start;
  }
  .dpgl-related-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.4.9 — Internal related posts + homepage links customization */
.dpgl-feature-band-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.dpgl-feature-band-copy .dpgl-process-button {
  margin-top: 2px;
}
.dpgl-team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent) !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}
.dpgl-team-link:hover,
.dpgl-team-link:focus {
  background: var(--dpgl-accent);
  color: #fff !important;
}
/* پنهان‌سازی خروجی‌های رایج افزونه‌های مطالب مرتبط، وقتی قالب خودش خروجی استاندارد دارد. */
.yarpp-related,
.jp-relatedposts,
.related-posts,
.related_posts,
.post-related,
.wp_rp_wrap,
.wp_rp_content,
#jp-relatedposts,
.dpgl-entry-content > div[class*="related"],
.dpgl-entry-content > section[class*="related"] {
  display: none !important;
}
.dpgl-related-section .dpgl-post-card {
  display: flex;
  flex-direction: column;
}
.dpgl-related-section .dpgl-post-body {
  flex: 1;
}

/* v1.5.0 — Related posts are enabled by default on upgrade/install. */

/* v1.5.1 — Related title cleanup, legal 404, and CTA contrast hardening */
.dpgl-related-section .dpgl-related-head span {
  display: none !important;
}
.dpgl-related-section .dpgl-related-head h2 {
  margin: 0;
}
.dpgl-final-cta .dpgl-button-light,
.dpgl-final-cta a.dpgl-button-light,
.dpgl-page-hero .dpgl-button-light,
.dpgl-inner-decision-holder .dpgl-button,
.dpgl-feature-band-copy .dpgl-button-light {
  color: var(--dpgl-primary) !important;
  background: #ffffff !important;
  border: 1px solid rgba(16,42,44,.12) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.12) !important;
  text-decoration: none !important;
}
.dpgl-final-cta .dpgl-button-light:hover,
.dpgl-final-cta .dpgl-button-light:focus,
.dpgl-page-hero .dpgl-button-light:hover,
.dpgl-page-hero .dpgl-button-light:focus,
.dpgl-inner-decision-holder .dpgl-button:hover,
.dpgl-inner-decision-holder .dpgl-button:focus,
.dpgl-feature-band-copy .dpgl-button-light:hover,
.dpgl-feature-band-copy .dpgl-button-light:focus {
  color: #ffffff !important;
  background: var(--dpgl-accent) !important;
  border-color: var(--dpgl-accent) !important;
}
.dpgl-404-main {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0,155,138,.10), transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--dpgl-bg-soft) 58%, #fff 100%);
}
.dpgl-404-hero {
  padding: 92px 0 54px;
}
.dpgl-404-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: stretch;
}
.dpgl-404-copy,
.dpgl-404-card,
.dpgl-404-link-card {
  border: 1px solid rgba(16,42,44,.09);
  background: rgba(255,255,255,.84);
  box-shadow: 0 22px 60px rgba(16,42,44,.08);
  backdrop-filter: blur(14px);
}
.dpgl-404-copy {
  border-radius: 34px;
  padding: clamp(30px, 5vw, 54px);
}
.dpgl-404-copy h1 {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--dpgl-primary);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.22;
  letter-spacing: -.05em;
}
.dpgl-404-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--dpgl-muted);
  font-size: 16px;
  line-height: 2;
}
.dpgl-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.dpgl-404-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
}
.dpgl-404-card::before {
  content: "";
  position: absolute;
  inset: auto -42px -58px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(0,155,138,.12);
}
.dpgl-404-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 30px;
  background: var(--dpgl-primary);
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.dpgl-404-card h2 {
  margin: 4px 0 0;
  color: var(--dpgl-primary);
  font-size: 22px;
}
.dpgl-404-card p {
  margin: 0;
  color: var(--dpgl-muted);
  font-size: 14px;
  line-height: 1.9;
}
.dpgl-404-card .search-form {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.dpgl-404-card .search-field {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--dpgl-border);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--dpgl-text);
  outline: none;
}
.dpgl-404-card .search-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--dpgl-accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.dpgl-404-links {
  padding: 0 0 76px;
}
.dpgl-404-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.dpgl-404-link-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border-radius: 24px;
  padding: 22px;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dpgl-404-link-card strong {
  color: var(--dpgl-primary);
  font-size: 18px;
  font-weight: 900;
}
.dpgl-404-link-card span {
  color: var(--dpgl-muted);
  font-size: 13.5px;
  line-height: 1.9;
}
.dpgl-404-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,155,138,.28);
  box-shadow: 0 26px 70px rgba(16,42,44,.10);
}
@media (max-width: 980px) {
  .dpgl-404-grid { grid-template-columns: 1fr; }
  .dpgl-404-card { order: -1; }
  .dpgl-404-link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dpgl-404-hero { padding: 56px 0 34px; }
  .dpgl-404-copy,
  .dpgl-404-card { border-radius: 24px; padding: 22px; }
  .dpgl-404-actions,
  .dpgl-404-card .search-form { display: grid; }
  .dpgl-404-number { width: 84px; height: 84px; border-radius: 24px; font-size: 25px; }
}


/* v1.5.2 — Duplicate comment-form guard styles and more creative legal 404 */
.dpgl-comments .comment-respond + .comment-respond,
.dpgl-comments form#commentform + form#commentform,
.dpgl-entry-content .wp-block-post-comments-form,
.dpgl-entry-content form#commentform {
  display: none !important;
}
.dpgl-404-main {
  position: relative;
  background:
    radial-gradient(circle at 12% 16%, rgba(0,155,138,.13), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(16,42,44,.11), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f3faf8 54%, #ffffff 100%);
}
.dpgl-404-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(16,42,44,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,42,44,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}
.dpgl-404-main > * { position: relative; z-index: 1; }
.dpgl-404-copy { position: relative; overflow: hidden; }
.dpgl-404-copy::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -86px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 36px solid rgba(0,155,138,.08);
}
.dpgl-404-case-file {
  position: relative;
  display: grid;
  gap: 6px;
  width: min(100%, 360px);
  margin: 0 0 24px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(16,42,44,.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(230,247,244,.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 44px rgba(16,42,44,.08);
  transform: rotate(-1.2deg);
}
.dpgl-404-file-tab {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,155,138,.12);
  color: var(--dpgl-accent-hover);
  font-size: 12px;
  font-weight: 900;
}
.dpgl-404-case-file strong {
  color: var(--dpgl-primary);
  font-size: clamp(54px, 9vw, 92px);
  line-height: 1;
  letter-spacing: -.07em;
}
.dpgl-404-case-file small {
  color: var(--dpgl-muted);
  font-size: 13px;
  font-weight: 700;
}
.dpgl-404-stamp {
  position: absolute;
  top: 22px;
  left: 22px;
  transform: rotate(-11deg);
  padding: 7px 12px;
  border: 2px solid rgba(153,10,0,.38);
  border-radius: 8px;
  color: #990a00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.01em;
  background: rgba(255,255,255,.6);
}
.dpgl-404-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent-hover);
  font-size: 13px;
  font-weight: 950;
}
.dpgl-404-card .search-submit { white-space: nowrap; }
@media (max-width: 640px) {
  .dpgl-404-case-file { transform: none; padding: 18px; border-radius: 22px; }
  .dpgl-404-stamp { position: static; justify-self: start; transform: rotate(-6deg); }
  .dpgl-404-copy::after { display: none; }
}

/* v1.5.3 — stronger duplicate comment form guard + playful legal 404 */
body.dpgl-theme .dpgl-entry-content .wp-block-comments,
body.dpgl-theme .dpgl-entry-content .wp-block-post-comments-form,
body.dpgl-theme .dpgl-entry-content .comment-respond,
body.dpgl-theme .dpgl-entry-content #respond,
body.dpgl-theme .dpgl-entry-content #comments,
body.dpgl-theme .dpgl-entry-content #commentform {
  display: none !important;
}

.dpgl-404-court-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(0,155,138,.12), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(16,42,44,.10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4fbf9 48%, #ffffff 100%);
}
.dpgl-404-court {
  position: relative;
  padding: 92px 0 48px;
}
.dpgl-404-court::before,
.dpgl-404-court::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(0,155,138,.10);
  border-radius: 999px;
}
.dpgl-404-court::before {
  width: 520px;
  height: 520px;
  right: -220px;
  top: 50px;
}
.dpgl-404-court::after {
  width: 340px;
  height: 340px;
  left: -150px;
  bottom: -50px;
}
.dpgl-404-court-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 34px;
  align-items: center;
}
.dpgl-404-court-copy {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(221,235,232,.92);
  box-shadow: 0 26px 90px rgba(16,42,44,.10);
  border-radius: 38px;
  padding: 38px;
  backdrop-filter: blur(12px);
}
.dpgl-404-court-copy h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  color: var(--dpgl-primary);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.35;
  letter-spacing: -.04em;
}
.dpgl-404-court-copy p {
  max-width: 720px;
  color: var(--dpgl-muted);
  font-size: 15.5px;
  line-height: 2.15;
  margin: 0 0 20px;
}
.dpgl-404-verdict {
  display: grid;
  gap: 7px;
  max-width: 620px;
  margin: 26px 0 28px;
  padding: 18px 20px;
  border: 1px dashed rgba(0,155,138,.45);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(230,247,244,.88), rgba(255,255,255,.92));
}
.dpgl-404-verdict span {
  color: var(--dpgl-accent);
  font-size: 12px;
  font-weight: 900;
}
.dpgl-404-verdict strong {
  color: var(--dpgl-primary);
  font-size: 18px;
  font-weight: 950;
}
.dpgl-404-verdict small {
  color: var(--dpgl-muted);
  font-size: 13px;
  line-height: 1.9;
}
.dpgl-button-light {
  background: #fff !important;
  color: var(--dpgl-primary) !important;
  border: 1px solid rgba(0,155,138,.24) !important;
}
.dpgl-button-light:hover,
.dpgl-button-light:focus {
  color: var(--dpgl-accent-hover) !important;
  border-color: rgba(0,155,138,.45) !important;
}
.dpgl-404-case-card {
  position: relative;
  z-index: 1;
  min-height: 560px;
  border-radius: 40px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(16,42,44,.97), rgba(24,62,66,.95)),
    radial-gradient(circle at 20% 10%, rgba(0,155,138,.25), transparent 35%);
  color: #fff;
  box-shadow: 0 35px 100px rgba(16,42,44,.24);
  overflow: hidden;
}
.dpgl-404-case-card::before {
  content: "§";
  position: absolute;
  left: 18px;
  bottom: -40px;
  color: rgba(255,255,255,.06);
  font-size: 220px;
  font-weight: 900;
  line-height: 1;
}
.dpgl-404-paper-stack {
  position: relative;
  height: 330px;
  margin: 10px 0 24px;
}
.dpgl-404-paper {
  position: absolute;
  inset: 22px 16px auto 16px;
  height: 250px;
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  transform: rotate(-7deg);
}
.dpgl-404-paper:nth-child(2) {
  transform: rotate(6deg) translateY(18px);
  opacity: .76;
}
.dpgl-404-paper-front {
  inset: 38px 34px auto 34px;
  height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f4faf8);
  color: var(--dpgl-primary);
  transform: rotate(-1deg) translateY(16px);
}
.dpgl-404-paper-front em {
  color: var(--dpgl-muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.dpgl-404-paper-front strong {
  color: var(--dpgl-accent);
  font-size: 82px;
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: 1;
}
.dpgl-404-paper-front small {
  color: var(--dpgl-primary);
  font-size: 13px;
  font-weight: 850;
}
.dpgl-404-stamp {
  position: absolute;
  right: 28px;
  bottom: 20px;
  display: inline-grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 4px solid rgba(0,155,138,.72);
  border-radius: 50%;
  color: var(--dpgl-accent);
  background: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.6;
  text-align: center;
  transform: rotate(-14deg);
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}
.dpgl-404-evidence {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dpgl-404-evidence li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.dpgl-404-evidence span {
  color: rgba(255,255,255,.66);
  font-size: 12.5px;
}
.dpgl-404-evidence strong {
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
}
.dpgl-404-search-box {
  padding: 16px 0 48px;
}
.dpgl-404-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--dpgl-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(16,42,44,.08);
}
.dpgl-404-search-inner h2 {
  margin: 6px 0 8px;
  color: var(--dpgl-primary);
  font-size: 24px;
}
.dpgl-404-search-inner p {
  margin: 0;
  color: var(--dpgl-muted);
  font-size: 14px;
  line-height: 1.9;
}
.dpgl-404-search-inner .search-form {
  display: flex;
  gap: 10px;
}
.dpgl-404-search-inner .search-field {
  min-width: 0;
  flex: 1;
}
.dpgl-404-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--dpgl-accent-soft);
  color: var(--dpgl-accent-hover);
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 1020px) {
  .dpgl-404-court-grid,
  .dpgl-404-search-inner {
    grid-template-columns: 1fr;
  }
  .dpgl-404-case-card {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  .dpgl-404-court { padding: 58px 0 32px; }
  .dpgl-404-court-copy,
  .dpgl-404-case-card,
  .dpgl-404-search-inner {
    padding: 22px;
    border-radius: 26px;
  }
  .dpgl-404-actions,
  .dpgl-404-search-inner .search-form {
    display: grid;
  }
  .dpgl-404-paper-stack { height: 280px; }
  .dpgl-404-paper { height: 220px; }
  .dpgl-404-paper-front strong { font-size: 64px; }
  .dpgl-404-stamp { width: 104px; height: 104px; font-size: 12.5px; }
}

/* v1.5.4 — CTA shortcode */
.dpgl-shortcode-cta {
  margin: 32px 0;
  padding: 30px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.dpgl-shortcode-cta::before {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  inset-block-start: -90px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.dpgl-shortcode-cta h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
}
.dpgl-shortcode-cta p {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 15.5px;
  line-height: 2;
}
.dpgl-shortcode-cta .dpgl-eyebrow { margin-bottom: 4px; }
.dpgl-shortcode-cta-button { white-space: nowrap; position: relative; z-index: 1; }
.dpgl-shortcode-cta-dark {
  background: var(--dpgl-primary);
  color: rgba(255,255,255,.84);
  box-shadow: 0 24px 54px rgba(16,42,44,.16);
}
.dpgl-shortcode-cta-dark h2 { color: #fff; }
.dpgl-shortcode-cta-dark .dpgl-eyebrow { color: #A9F1E7; }
.dpgl-shortcode-cta-dark .dpgl-shortcode-cta-button {
  background: #fff !important;
  color: var(--dpgl-primary) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}
.dpgl-shortcode-cta-dark .dpgl-shortcode-cta-button:hover,
.dpgl-shortcode-cta-dark .dpgl-shortcode-cta-button:focus {
  background: var(--dpgl-accent) !important;
  color: #fff !important;
}
.dpgl-shortcode-cta-light,
.dpgl-shortcode-cta-soft,
.dpgl-shortcode-cta-outline,
.dpgl-shortcode-cta-compact {
  background: #fff;
  color: var(--dpgl-text);
  border: 1px solid var(--dpgl-border);
  box-shadow: 0 16px 38px rgba(16,42,44,.06);
}
.dpgl-shortcode-cta-soft {
  background: linear-gradient(135deg, var(--dpgl-accent-soft), #fff 72%);
}
.dpgl-shortcode-cta-outline {
  background: transparent;
  box-shadow: none;
}
.dpgl-shortcode-cta-compact {
  padding: 22px 24px;
  border-radius: 24px;
}
.dpgl-shortcode-cta-compact h2 { font-size: clamp(20px, 2.5vw, 28px); }
.dpgl-shortcode-cta-align-center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.dpgl-shortcode-cta-align-center p { margin-inline: auto; }
.dpgl-shortcode-cta-align-left { text-align: left; direction: rtl; }
@media (max-width: 760px) {
  .dpgl-shortcode-cta {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 24px;
  }
  .dpgl-shortcode-cta-button {
    width: 100%;
  }
}
