/*
| DGM website extras (copied to assets/dgm-extras.css by build-site.php).
| Loaded only by pages the build creates or rebuilds: blog articles with sidebar
| media, the Work portfolio page, the OnePost page, the growth audit landing page,
| and the pages with a OnePost section (home, social media management).
| styles.css is never changed; everything here uses the "dx-" prefix.
*/

/* ---------- Shared: stats, buttons row, cards ---------- */
.dx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 32px; }
.dx-stats li { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid rgba(17, 17, 17, .07); box-shadow: 0 14px 34px -28px rgba(17, 17, 17, .35); }
.dx-stats strong { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--red); line-height: 1.1; }
.dx-stats span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: #555; }
.dx-stats--large { max-width: 1100px; margin: 0 auto; }
.dx-stats--large strong { font-size: clamp(30px, 3.4vw, 42px); }

/* ---------- Work page ---------- */
.dx-work-hero .ab-hero-inner { text-align: left; }
.dx-work-hero .sp-crumbs { justify-content: flex-start; }
.dx-work-hero .ab-hero-sub { margin-left: 0; }
.dx-industries { margin-top: 32px; }
.dx-industries p { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.dx-industries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-industries a { display: inline-block; padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: #222; background: #fff; border: 1px solid rgba(17, 17, 17, .1); border-radius: 999px; transition: border-color .25s, color .25s; }
.dx-industries a:hover { color: var(--red); border-color: rgba(208, 2, 27, .45); }

.dx-subnav { position: sticky; top: 72px; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(17, 17, 17, .07); }
.dx-subnav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dx-subnav-inner::-webkit-scrollbar { display: none; }
.dx-subnav a { flex-shrink: 0; padding: 14px 12px; font-size: 13.5px; font-weight: 600; color: #444; white-space: nowrap; border-bottom: 2px solid transparent; }
.dx-subnav a:hover, .dx-subnav a:focus-visible { color: var(--red); border-bottom-color: var(--red); }
#cases, #videos, #designs, #shoots, #services, #process, #brands, #creators, #events, #proof, #results { scroll-margin-top: 130px; }

.dx-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dx-svc { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); box-shadow: 0 18px 44px -32px rgba(17, 17, 17, .3); transition: transform .4s var(--ease-out), border-color .4s ease; }
.dx-svc:hover { transform: translateY(-5px); border-color: rgba(208, 2, 27, .3); }
.dx-svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f1eeea; }
.dx-svc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.dx-svc-body strong { font-size: 17px; color: #111; }
.dx-svc-body > span { flex: 1; font-size: 14px; line-height: 1.65; color: #555; }
.dx-svc em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--red); }
.dx-svc em svg, .dx-cap svg, .dx-proof-links svg, .dx-op-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.dx-creators-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dx-creators-inner > div > p { font-size: 16px; line-height: 1.75; color: #444; }
.dx-cap { display: grid; gap: 14px; }
.dx-cap li { display: grid; gap: 6px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); }
.dx-cap strong { font-size: 16px; color: #111; }
.dx-cap span { font-size: 14px; line-height: 1.6; color: #555; }
.dx-cap a, .dx-proof-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); }
.dx-proof-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 28px; }

/* ---------- Blog article: second side column (videos, DGM work, related) ---------- */
.post-layout--media { max-width: 1280px; grid-template-columns: 250px minmax(0, 1fr) 280px; }
.post-aside--media { position: sticky; top: 100px; display: grid; gap: 22px; }
.dx-side { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: #FAF7F4; }
.dx-side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.dx-video { display: grid; gap: 8px; }
.dx-video figcaption { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #222; }
.dx-video video, .dx-video iframe, .dx-video-play { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #111; }
.dx-video-play { position: relative; display: block; overflow: hidden; padding: 0; cursor: pointer; }
.dx-video-play img { width: 100%; height: 100%; object-fit: cover; }
.dx-video-ph { position: absolute; inset: 0; background: radial-gradient(90% 80% at 100% 0%, rgba(208, 2, 27, .45), transparent 70%), #0b0b0c; }
.dx-video-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.dx-video-icon svg { width: 54px; height: 54px; padding: 14px; fill: #fff; background: var(--red); border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease-out); }
.dx-video-play:hover .dx-video-icon svg, .dx-video-play:focus-visible .dx-video-icon svg { transform: scale(1.08); }
.dx-work { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); transition: border-color .25s; }
.dx-work:hover { border-color: rgba(208, 2, 27, .4); }
.dx-work img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.dx-work strong { display: block; font-size: 14px; line-height: 1.35; color: #111; }
.dx-work small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #666; }
.dx-related { display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }
.dx-related a { font-weight: 600; color: #222; }
.dx-related a:hover { color: var(--red); }

/* ---------- OnePost (product page and sections) ---------- */
.dx-op { position: relative; }
.dx-op-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dx-op-copy > p { font-size: 16px; line-height: 1.75; color: #444; }
.dx-op-copy .section-title { text-align: left; }
.dx-op-features { display: grid; gap: 12px; }
.dx-op-features li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); box-shadow: 0 14px 34px -28px rgba(17, 17, 17, .3); }
.dx-op-features strong { font-size: 16px; color: #111; }
.dx-op-features span { font-size: 14px; line-height: 1.6; color: #555; }
.dx-op-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dx-op-platforms li { padding: 6px 14px; font-size: 13px; font-weight: 600; color: #222; background: #fff; border: 1px solid rgba(17, 17, 17, .1); border-radius: 999px; }
.dx-op-note, .dx-op-copy > p.dx-op-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #666; }
.dx-op-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.dx-op-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); }
.dx-op-hero .ab-hero-inner { text-align: center; }
.dx-op-shot { max-width: 960px; margin: 40px auto 0; }
.dx-op-shot img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 70px -40px rgba(17, 17, 17, .5); }
.dx-op-hero .dx-hero-actions { justify-content: center; }
.dx-op-security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.dx-op-security li { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); font-size: 15px; line-height: 1.65; color: #333; }

/* ---------- Growth audit landing page ---------- */
/* A focused campaign page: the menu links are hidden so the form stays the one thing to do. */
.dx-landing .nav-links, .dx-landing .nav-hamburger, .dx-landing .mobile-menu, .dx-landing .floating-concierge { display: none !important; }
.dx-landing .ctc-copy .dx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-landing .ctc-copy .dx-stats li { padding: 14px 16px; }
.dx-landing .ctc-copy .dx-stats strong { font-size: clamp(20px, 2.2vw, 26px); }

@media (max-width: 1180px) {
  .post-layout--media { grid-template-columns: 250px minmax(0, 1fr); }
  .post-aside--media { position: static; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 1024px) {
  .dx-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .post-layout--media { grid-template-columns: minmax(0, 1fr); }
  .post-aside--media { grid-template-columns: minmax(0, 1fr); }
  .dx-creators-inner, .dx-op-inner { grid-template-columns: minmax(0, 1fr); }
  .dx-op-security { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dx-svc-grid { grid-template-columns: minmax(0, 1fr); }
  .dx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-landing .ctc-copy .dx-stats { grid-template-columns: minmax(0, 1fr); }
  .dx-subnav { top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-svc, .dx-video-icon svg { transition: none; }
}

/* ---------- Blog pages published by the portal (Admin → Blog, /blog/...) ---------- */
.post-body figure { margin: 28px 0; }
.post-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.post-body figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: #666; text-align: center; }
.post-body > img { display: block; max-width: 100%; height: auto; margin: 28px 0; border-radius: 14px; }
.post-body hr { margin: 32px 0; border: 0; border-top: 1px solid rgba(17, 17, 17, .1); }
.post-body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid rgba(17, 17, 17, .1); text-align: left; vertical-align: top; }
.post-body th { background: #FAF7F4; font-weight: 600; }
.blog-filter--links a { padding: 9px 18px; font-size: 13.5px; font-weight: 500; color: #333; background: #FAF7F4; border: 1px solid rgba(17, 17, 17, .08); border-radius: 999px; text-decoration: none; transition: all .2s ease; }
.blog-filter--links a:hover { border-color: rgba(208, 2, 27, .4); }
.blog-filter--links a.is-active { color: #fff; background: var(--red, #d0021b); border-color: var(--red, #d0021b); }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; font-size: 14px; }
.blog-pager a { padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, .12); color: #111; font-weight: 600; text-decoration: none; }
.blog-pager a:hover { border-color: var(--red, #d0021b); color: var(--red, #d0021b); }
.blog-pager span { color: #666; }
