/* ==========================================================================
   Digigosticx – Header with mega menus
   Desktop mega menus from 1180px; hamburger drawer below that.
   All classes are prefixed dgx- so they will not clash with your theme.
   ========================================================================== */

/* ---------- theme tokens ----------
   White (light) is the default for every visitor, whatever their device setting.
   Dark applies only when the visitor picks it with the theme button (<html data-theme="dark">). */
:root {
  --dgx-surface: #FFFFFF;      /* header, dropdowns, drawer */
  --dgx-surface-2: #FFFFFF;    /* tiles, ghost buttons, selected tab */
  --dgx-ground: #F7F6FB;       /* soft panels */
  --dgx-soft: #FBFAFE;         /* dropdown footer strip */
  --dgx-hover: #F4F1FC;        /* link hover */
  --dgx-tint: #F1EBFE;         /* open menu, chips */
  --dgx-tint-2: #E4D9FD;
  --dgx-ink: #16132E;
  --dgx-ink-2: #3B3363;
  --dgx-muted: #5F5A73;
  --dgx-line: #E4E1EE;
  --dgx-line-2: #EEEBF5;
  --dgx-line-strong: #D6D1E6;
  --dgx-violet: #7C3AED;
  --dgx-violet-ink: #5B21B6;
  --dgx-card-dark: #16132E;    /* dark promo cards */
  --dgx-solid: #16132E;        /* "See all 86 tools" button */
  --dgx-on-solid: #FFFFFF;
  --dgx-new: #2457C9;
  --dgx-popular: #B0215F;
  --dgx-trending: #C2410C;
  --dgx-shadow: 0 28px 56px rgba(22, 19, 46, .16);
  --dgx-scrolled: 0 6px 24px rgba(22, 19, 46, .08);
  --dgx-dim: rgba(22, 19, 46, .28);
  --dgx-tab-hover: rgba(255, 255, 255, .6);
  --dgx-media-filter: none;
  color-scheme: light;

  --dgx-grad: linear-gradient(135deg, #2457C9 0%, #7A2FD0 55%, #C42A6B 100%);
  --dgx-font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dgx-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --dgx-bar-h: 76px;
  --dgx-radius: 12px;
  --dgx-ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] { 
  --dgx-surface: #14112A;
  --dgx-surface-2: #1D1938;
  --dgx-ground: #0F0C22;
  --dgx-soft: #110E26;
  --dgx-hover: #231E44;
  --dgx-tint: #2A2253;
  --dgx-tint-2: #362C6B;
  --dgx-ink: #F3F1FA;
  --dgx-ink-2: #D2CCE8;
  --dgx-muted: #A9A3C4;
  --dgx-line: #2B2648;
  --dgx-line-2: #231F3D;
  --dgx-line-strong: #3A3460;
  --dgx-violet: #A78BFA;
  --dgx-violet-ink: #C4B5FD;
  --dgx-card-dark: #221D42;
  --dgx-solid: #F3F1FA;
  --dgx-on-solid: #16132E;
  --dgx-new: #8AB0FF;
  --dgx-popular: #F472B6;
  --dgx-trending: #FB923C;
  --dgx-shadow: 0 28px 60px rgba(0, 0, 0, .55);
  --dgx-scrolled: 0 6px 24px rgba(0, 0, 0, .45);
  --dgx-dim: rgba(5, 4, 15, .6);
  --dgx-tab-hover: rgba(255, 255, 255, .04);
  --dgx-media-filter: brightness(.92);
  color-scheme: dark;
 }
/* ---------- base ---------- */
.dgx-header, .dgx-header * { box-sizing: border-box; }
.dgx-header {
  position: sticky; top: 0; z-index: 1000;
  font-family: var(--dgx-font); color: var(--dgx-ink); font-size: 16px; line-height: 1.45;
  background: var(--dgx-surface); border-bottom: 1px solid var(--dgx-line);
  transition: box-shadow .2s, background .2s;
}
.dgx-header.is-scrolled { box-shadow: var(--dgx-scrolled); }
:where(.dgx-header) ul { list-style: none; margin: 0; padding: 0; }
:where(.dgx-header) p { margin: 0; }
:where(.dgx-header) a { color: inherit; text-decoration: none; }
:where(.dgx-header) button { font: inherit; color: inherit; }
.dgx-header :focus-visible { outline: 2px solid var(--dgx-violet); outline-offset: 2px; border-radius: 8px; }
.dgx-container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

.dgx-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1100; padding: 10px 16px; border-radius: 10px;
  background: var(--dgx-solid); color: var(--dgx-on-solid); font: 700 14px var(--dgx-font); text-decoration: none;
}
.dgx-skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.dgx-bar { height: var(--dgx-bar-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dgx-logo { display: flex; align-items: center; flex: 0 0 auto; }
.dgx-logo__img { display: block; height: 42px; width: auto; }
.dgx-logo__img--dark { display: none; }
:root[data-theme="dark"] .dgx-logo__img--light { display: none; }
:root[data-theme="dark"] .dgx-logo__img--dark { display: block; }
/* theme switch: shows a moon in light theme, a sun in dark theme */
.dgx-theme .dgx-theme__sun { display: none; }
:root[data-theme="dark"] .dgx-theme .dgx-theme__sun { display: block; }
:root[data-theme="dark"] .dgx-theme .dgx-theme__moon { display: none; }
.dgx-menu { display: flex; align-items: center; gap: 2px; height: var(--dgx-bar-h); }
.dgx-item { height: 100%; display: flex; align-items: center; position: static; }
.dgx-trigger {
  position: relative; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--dgx-ink);
  transition: background .15s, color .15s;
}
.dgx-trigger:hover { background: var(--dgx-ground); }
.dgx-chev { color: var(--dgx-violet); transition: transform .2s var(--dgx-ease); }
.dgx-trigger[aria-expanded="true"] { background: var(--dgx-tint); color: var(--dgx-violet-ink); }
.dgx-trigger[aria-expanded="true"] .dgx-chev { transform: rotate(180deg); color: var(--dgx-violet-ink); }
.dgx-trigger::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--dgx-grad); opacity: 0; transition: opacity .15s;
}
.dgx-trigger[aria-expanded="true"]::after { opacity: 1; }

.dgx-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dgx-iconbtn {
  width: 46px; height: 46px; border-radius: var(--dgx-radius); border: 1px solid var(--dgx-line); background: var(--dgx-surface-2);
  display: grid; place-items: center; cursor: pointer; color: var(--dgx-ink);
}
.dgx-iconbtn:hover { border-color: var(--dgx-line-strong); }
.dgx-burger { display: none; }
.dgx-burger__close { display: none; }
.dgx-burger[aria-expanded="true"] .dgx-burger__open { display: none; }
.dgx-burger[aria-expanded="true"] .dgx-burger__close { display: inline; }

/* ---------- buttons ---------- */
.dgx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--dgx-radius); border: 0;
  font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.dgx-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.dgx-btn--block { display: flex; width: 100%; }
.dgx-header .dgx-btn--primary { background: var(--dgx-grad); color: #fff; box-shadow: 0 8px 20px rgba(122, 47, 208, .25); }
.dgx-header .dgx-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(122, 47, 208, .32); }
.dgx-header .dgx-btn--ghost { background: var(--dgx-surface-2); border: 1px solid var(--dgx-line-strong); color: var(--dgx-ink); }
.dgx-header .dgx-btn--ghost:hover { border-color: var(--dgx-violet); }
.dgx-header .dgx-btn--dark { background: var(--dgx-solid); color: var(--dgx-on-solid); }
.dgx-header .dgx-btn--dark:hover { opacity: .9; }

/* ---------- icon tiles ----------
   White rounded tile, thin gradient border, soft coloured glow,
   solid gradient glyph (Phosphor "fill" icons painted with url(#dgx-g-<tone>)). */
.dgx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dgx-tile {
  --dgx-tg: linear-gradient(135deg, #A855F7, #6D28D9);
  --dgx-glow: 109, 40, 217;
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--dgx-surface-2), var(--dgx-surface-2)) padding-box, var(--dgx-tg) border-box;
  box-shadow: 0 6px 14px -6px rgba(var(--dgx-glow), .45), 0 2px 6px rgba(var(--dgx-glow), .08);
  transition: transform .18s var(--dgx-ease), box-shadow .18s;
}
.dgx-glyph { display: block; }
.dgx-tile--sm { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; border-width: 1.25px; }
.dgx-tile--lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; }
.dgx-t-violet  { --dgx-tg: linear-gradient(135deg, #A855F7, #6D28D9); --dgx-glow: 109, 40, 217; }
.dgx-t-pink    { --dgx-tg: linear-gradient(135deg, #FB7185, #E11D48); --dgx-glow: 225, 29, 72; }
.dgx-t-blue    { --dgx-tg: linear-gradient(135deg, #38BDF8, #2563EB); --dgx-glow: 37, 99, 235; }
.dgx-t-green   { --dgx-tg: linear-gradient(135deg, #4ADE80, #16A34A); --dgx-glow: 22, 163, 74; }
.dgx-t-orange  { --dgx-tg: linear-gradient(135deg, #FBBF24, #EA580C); --dgx-glow: 234, 88, 12; }
.dgx-t-indigo  { --dgx-tg: linear-gradient(135deg, #818CF8, #4F46E5); --dgx-glow: 79, 70, 229; }
.dgx-t-magenta { --dgx-tg: linear-gradient(135deg, #F472B6, #C026D3); --dgx-glow: 192, 38, 211; }
.dgx-t-teal    { --dgx-tg: linear-gradient(135deg, #2DD4BF, #0D9488); --dgx-glow: 13, 148, 136; }
.dgx-link:hover .dgx-tile, .dgx-link:focus-visible .dgx-tile, .dgx-tab[aria-selected="true"] .dgx-tile {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(var(--dgx-glow), .55), 0 2px 6px rgba(var(--dgx-glow), .12);
}
/* on dark cards the tile keeps its white face */
.dgx-card--dark .dgx-tile { box-shadow: 0 8px 22px -6px rgba(var(--dgx-glow), .7); }

/* ---------- mega panels ---------- */
.dgx-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--dgx-surface); border-top: 1px solid var(--dgx-line); box-shadow: var(--dgx-shadow);
  display: none; max-height: calc(100vh - var(--dgx-bar-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
}
.dgx-item.is-open > .dgx-panel { display: block; animation: dgx-in .18s var(--dgx-ease); }
@keyframes dgx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dgx-panel__body { display: grid; gap: 32px; padding-top: 26px; padding-bottom: 26px; }
.dgx-panel__body--growth { grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 0; padding-top: 0; padding-bottom: 0; }
.dgx-panel__body--web { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
.dgx-panel__body--brand { grid-template-columns: minmax(0, 1fr) 340px; }
.dgx-panel__body--solutions { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.dgx-solmain { padding: 0; min-width: 0; }
.dgx-panel__body--product { grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 28px; }
.dgx-panel__body--product .dgx-grid--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgx-compside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dgx-media--wide { aspect-ratio: 16 / 9; margin: 0; }
.dgx-panel__body--company { grid-template-columns: minmax(0, 2fr) 340px; }

.dgx-panel__foot { border-top: 1px solid var(--dgx-line); background: var(--dgx-soft); }
.dgx-panel__foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.dgx-panel__foot p { font-size: 14px; color: var(--dgx-ink-2); }
.dgx-panel__foot strong { color: var(--dgx-ink); }

.dgx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dgx-muted); margin: 0 0 8px 10px !important; }
.dgx-eyebrow span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.dgx-note { font-size: 13px; color: var(--dgx-muted); }
.dgx-more { font-size: 13.5px; font-weight: 700; color: var(--dgx-violet-ink) !important; }
.dgx-more:hover { text-decoration: underline !important; }

.dgx-grid { display: grid; gap: 2px 16px; }
.dgx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgx-grid--tight { gap: 4px; }
.dgx-grid--tools { gap: 2px 12px; }
.dgx-list { display: flex; flex-direction: column; gap: 4px; }
.dgx-cols { display: grid; gap: 20px; }
.dgx-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgx-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dgx-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .12s; }
.dgx-link:hover, .dgx-link:focus-visible { background: var(--dgx-hover); }
.dgx-link:hover .dgx-link__name { color: var(--dgx-violet-ink); }
.dgx-link__text { display: flex; flex-direction: column; min-width: 0; }
.dgx-link__name { font-weight: 700; font-size: 14.5px; color: var(--dgx-ink); }
.dgx-link__sub { font-size: 13px; color: var(--dgx-muted); }
.dgx-link--sm { padding: 7px 8px; gap: 10px; border-radius: 10px; }
.dgx-link--sm .dgx-link__name { font-size: 13.5px; font-weight: 600; }
.dgx-grid--tools .dgx-link__name { font-size: 14px; }
.dgx-grid--tools .dgx-link__sub { font-size: 12.5px; }

.dgx-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; margin-left: 4px; vertical-align: 3px; }
.dgx-badge--new { color: var(--dgx-new); }
.dgx-badge--popular { color: var(--dgx-popular); }
.dgx-badge--trending { color: var(--dgx-trending); }

/* Growth Studio tabs */
.dgx-side { background: var(--dgx-ground); padding: 26px 20px 26px 0; position: relative; }
.dgx-side::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--dgx-ground); }
.dgx-tablist { display: flex; flex-direction: column; gap: 6px; }
.dgx-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; text-align: left;
  border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.dgx-tab:hover { background: var(--dgx-tab-hover); }
.dgx-tab[aria-selected="true"] { background: var(--dgx-surface-2); border-color: var(--dgx-line); box-shadow: 0 6px 18px rgba(22, 19, 46, .07); }
.dgx-tab__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dgx-tab__title { font-weight: 700; font-size: 15px; }
.dgx-tab__desc { font-size: 13px; color: var(--dgx-muted); line-height: 1.4; }
.dgx-tab__arrow { color: var(--dgx-violet); opacity: 0; transition: opacity .15s; flex: 0 0 auto; }
.dgx-tab[aria-selected="true"] .dgx-tab__arrow { opacity: 1; }
.dgx-panel__body--growth .dgx-main { padding: 26px 32px; border-right: 1px solid var(--dgx-line); }
.dgx-tabpanel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dgx-tabpanel__head .dgx-eyebrow { margin-bottom: 12px !important; }
.dgx-aside { padding: 26px 0 26px 28px; display: flex; flex-direction: column; gap: 14px; }

/* Solutions */
.dgx-solsec--rule { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--dgx-line); }
.dgx-solcol__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 10px; }
.dgx-solcol__head .dgx-eyebrow { margin-bottom: 8px !important; }
.dgx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dgx-grid--ind { gap: 2px 12px; }
.dgx-link--ind { padding: 8px 10px; gap: 12px; }
.dgx-link--ind .dgx-link__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dgx-tile--md { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
.dgx-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dgx-levels > span:first-child { font-weight: 700; color: var(--dgx-ink); margin-right: 2px; }
.dgx-level { padding: 3px 10px; border-radius: 999px; background: var(--dgx-surface-2); border: 1px solid var(--dgx-line); font-size: 12.5px; font-weight: 700; color: var(--dgx-violet-ink); }
.dgx-levels__note { color: var(--dgx-ink-2); }

/* Web Studio care column */
.dgx-webmain { display: flex; flex-direction: column; min-width: 0; }
.dgx-webmain__all { margin: auto 0 0 10px; padding-top: 16px; }
.dgx-care { gap: 8px; }
.dgx-care .dgx-eyebrow { margin-bottom: 4px !important; }
.dgx-careplan {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; margin-bottom: 4px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--dgx-surface-2), var(--dgx-surface-2)) padding-box, linear-gradient(135deg, #FB7185, #7A2FD0) border-box;
  box-shadow: 0 8px 20px -10px rgba(225, 29, 72, .35); transition: transform .15s, box-shadow .15s;
}
.dgx-careplan:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(225, 29, 72, .45); }
.dgx-careplan__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dgx-careplan__name { font-weight: 700; font-size: 15px; color: var(--dgx-ink); }
.dgx-careplan__sub { font-size: 13px; color: var(--dgx-muted); }
.dgx-careplan__go { color: var(--dgx-violet-ink); font-weight: 700; font-size: 18px; }
.dgx-list--care { gap: 0; }
.dgx-list--care { gap: 2px; }
.dgx-list--care .dgx-link--ind { padding: 6px 10px; }

/* service illustrations (Growth Studio, Brand Studio) */
.dgx-aside { gap: 10px; }
.dgx-aside--brand { padding: 0; }
.dgx-media { margin: 0 0 6px; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dgx-ground); border: 1px solid var(--dgx-line); }
.dgx-media__img { display: block; width: 100%; height: 100%; object-fit: cover; animation: dgx-fade .25s; filter: var(--dgx-media-filter); }
.dgx-media__img[hidden] { display: none; }
.dgx-media__kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dgx-violet-ink); }
.dgx-media__title { font: 700 19px/1.25 var(--dgx-display); color: var(--dgx-ink); }
.dgx-media__text { font-size: 13.5px; color: var(--dgx-muted); }
.dgx-aside .dgx-btn { margin-top: 4px; }

/* cards */
.dgx-card { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dgx-card--dark { background: var(--dgx-card-dark); color: #fff; padding: 22px; border: 1px solid transparent; }
:root[data-theme="dark"] .dgx-card--dark { border-color: var(--dgx-line-strong); }
.dgx-card--soft { background: var(--dgx-ground); }
.dgx-card__kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #C9B8FF; }
.dgx-card__title { font: 700 21px/1.2 var(--dgx-display); }
.dgx-card__title--ink { font-size: 19px; color: var(--dgx-ink); }
.dgx-card__text { font-size: 13.5px; color: #D9D4EA; }
.dgx-card__text--ink { color: var(--dgx-muted); }
.dgx-card__list { padding-left: 18px !important; list-style: disc !important; font-size: 13.5px; color: #D9D4EA; }
.dgx-card__link { margin-top: auto; font-weight: 700; color: #fff !important; }
.dgx-card__link:hover { text-decoration: underline !important; }
.dgx-card--soft .dgx-eyebrow { margin-left: 0 !important; }
.dgx-plan {
  margin-top: 4px; background: var(--dgx-surface-2); border: 1px solid var(--dgx-line); border-radius: 14px; padding: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dgx-plan > span { display: flex; flex-direction: column; font-size: 13px; color: var(--dgx-muted); }
.dgx-plan strong { font-size: 14.5px; color: var(--dgx-ink); }
.dgx-plan a { font-weight: 700; font-size: 14px; color: var(--dgx-violet-ink) !important; white-space: nowrap; }
.dgx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dgx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dgx-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--dgx-tint); font-size: 12.5px; font-weight: 600; color: var(--dgx-ink-2) !important; }
.dgx-chip:hover { background: var(--dgx-tint-2); }

/* page dimmer */
.dgx-backdrop { position: fixed; inset: var(--dgx-bar-h) 0 0 0; background: var(--dgx-dim); z-index: -1; animation: dgx-fade .18s; }
@keyframes dgx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- desktop widths ---------- */
@media (max-width: 1320px) {
  .dgx-container { padding-left: 28px; padding-right: 28px; }
  .dgx-trigger { padding: 0 9px; font-size: 14.5px; }
  .dgx-panel__body--growth { grid-template-columns: 260px minmax(0, 1fr) 250px; }
  .dgx-panel__body--web { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
  .dgx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgx-panel__body--solutions .dgx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1260px) {
  .dgx-container { padding-left: 20px; padding-right: 20px; }
  .dgx-bar { gap: 12px; }
  .dgx-iconbtn.dgx-desk { display: none; }
  .dgx-btn--primary.dgx-desk { padding: 0 18px; }
}

/* ---------- tablet and mobile: drawer ---------- */
@media (max-width: 1179px) {
  .dgx-nav, .dgx-desk { display: none !important; }
  .dgx-burger { display: grid; }
  .dgx-container { padding-left: 16px; padding-right: 16px; }
  .dgx-bar { height: 68px; }
  .dgx-logo__img { height: 36px; }
  .dgx-backdrop { inset: 68px 0 0 0; }
  .dgx-drawer {
    position: fixed; inset: 68px 0 0 0; background: var(--dgx-surface); display: flex; flex-direction: column;
    animation: dgx-in .2s var(--dgx-ease);
  }
  .dgx-drawer[hidden] { display: none; }
  .dgx-drawer nav { flex: 1; overflow-y: auto; padding: 4px 16px 12px; overscroll-behavior: contain; }
  .dgx-acc { border-bottom: 1px solid var(--dgx-line-2); }
  .dgx-acc__btn {
    width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0;
    background: transparent; border: 0; cursor: pointer; text-align: left; font-weight: 700; font-size: 16px;
  }
  .dgx-acc__label { flex: 1; }
  .dgx-acc__btn[aria-expanded="true"] .dgx-chev { transform: rotate(180deg); }
  .dgx-acc__panel { padding: 0 0 14px 44px; }
  .dgx-acc__head { margin: 10px 0 2px !important; font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--dgx-muted); }
  .dgx-acc__panel a { display: flex; align-items: center; min-height: 42px; font-size: 15px; color: var(--dgx-ink-2); }
  .dgx-acc__panel a:hover { color: var(--dgx-violet-ink); }
  .dgx-drawer__foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dgx-line); background: var(--dgx-ground); display: flex; flex-direction: column; gap: 10px; }
  .dgx-row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgx-drawer .dgx-btn { height: 50px; }
}
@media (min-width: 1180px) { .dgx-drawer { display: none !important; } }

/* lock page scroll while the drawer is open */
html.dgx-lock, html.dgx-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .dgx-header *, .dgx-header *::before, .dgx-header *::after { animation: none !important; transition: none !important; }
}

/* service dropdowns (Growth, Web, Brand): smaller icon tiles, no shadow */
#dgx-panel-growth .dgx-link .dgx-tile,
#dgx-panel-web .dgx-link .dgx-tile,
#dgx-panel-brand .dgx-link .dgx-tile {
  width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px;
  box-shadow: none; transform: none;
}
#dgx-panel-growth .dgx-link .dgx-glyph,
#dgx-panel-web .dgx-link .dgx-glyph,
#dgx-panel-brand .dgx-link .dgx-glyph { width: 20px; height: 20px; }
#dgx-panel-growth .dgx-link:hover .dgx-tile,
#dgx-panel-web .dgx-link:hover .dgx-tile,
#dgx-panel-brand .dgx-link:hover .dgx-tile,
#dgx-panel-growth .dgx-link:focus-visible .dgx-tile,
#dgx-panel-web .dgx-link:focus-visible .dgx-tile,
#dgx-panel-brand .dgx-link:focus-visible .dgx-tile { box-shadow: none; transform: none; }

/* ---- dropdown hardening: keep the panel layouts and promo images in place at every desktop width ---- */
.dgx-header .dgx-panel__body--solutions { grid-template-columns: minmax(0, 1fr) 300px; }
.dgx-header .dgx-panel__body--product { grid-template-columns: 280px minmax(0, 1fr) 280px; }
.dgx-header .dgx-panel__body--product .dgx-grid--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgx-header .dgx-panel__body--web { grid-template-columns: minmax(0, 1fr) 300px; }
.dgx-header .dgx-panel__body--brand { grid-template-columns: minmax(0, 1fr) 340px; }
.dgx-header .dgx-panel__body--company { grid-template-columns: minmax(0, 2fr) 340px; }
.dgx-header .dgx-panel img { max-width: 100%; height: auto; }
@media (max-width: 1179px) { .dgx-header .dgx-panel__body { grid-template-columns: 1fr; } }

/* compact mega-menu: shorter right column */
.dgx-header .dgx-compside { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; }
.dgx-header .dgx-compside .dgx-media { display: none; }
.dgx-header .dgx-compside .dgx-card { padding: 16px 18px; }
.dgx-header .dgx-compside .dgx-card__text { margin: 4px 0 10px; }
.dgx-header .dgx-panel__body--company { grid-template-columns: minmax(0, 2fr) 320px; }

/* images: never crop (overrides earlier caps) */

/* brand-logo tiles (paid ads): white face, brand-coloured logo, no glow */
.dgx-tile.dgx-tile--brand { background: #fff; border: 1.5px solid #E6E8F0; box-shadow: none; }
.dgx-link:hover .dgx-tile--brand, .dgx-link:focus-visible .dgx-tile--brand { box-shadow: none; transform: none; border-color: #C7CBE0; }
:root[data-theme="dark"] .dgx-tile.dgx-tile--brand { background: #fff; border-color: rgba(255,255,255,.2); }

/* original Digigosticx service icons: duotone line glyphs on a soft tile */
.dgx-tile.dgx-tile--ico { background: linear-gradient(145deg, #FFFFFF 0%, #F4F0FF 100%); border: 1.5px solid #E3DBFA; box-shadow: none; color: #4C1D95; }
.dgx-tile--ico .dgx-ico { fill: none; stroke: currentColor; }
.dgx-tile--ico .dgx-ico .a { fill: rgba(139, 92, 246, .18); }
.dgx-tile--ico .dgx-ico .b { stroke: #DB2777; }
.dgx-tile--ico .dgx-ico circle.b { fill: rgba(219, 39, 119, .14); }
.dgx-link:hover .dgx-tile--ico, .dgx-link:focus-visible .dgx-tile--ico { box-shadow: none; transform: none; border-color: #C4B5FD; background: linear-gradient(145deg, #FFFFFF, #EDE7FF); }

/* fix: hidden tab images must stay hidden (earlier display:block rule overrode [hidden]) */

/* left tabs: title only */
.dgx-tab__desc { display: none !important; }

/* menu side images: one visible at a time, shown whole (4:3 art) */
.dgx-header .dgx-media:not(.dgx-media--wide) { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; }
.dgx-header .dgx-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dgx-header .dgx-media img[hidden] { display: none !important; }
