

/* ── DG HERO ── */
.dg-hero {
  min-height: 52vh;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 60%, #4e3680 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 4rem 5rem;
  position: relative; overflow: hidden;
}
.dg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(ellipse 55% 65% at 50% 100%, rgba(232,160,32,0.12) 0%, transparent 70%);
}
.dg-hero-overlay {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.025) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.025) 80px);
}
.dg-hero-content { position: relative; z-index: 2; max-width: 680px; }
.dg-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400; color: var(--white); line-height: 1.1; margin-bottom: 1.25rem;
}
.dg-hero-title em { font-style: italic; color: var(--gold); }
.dg-hero-sub {
  font-size: 0.92rem; font-weight: 300;
  color: rgba(255,255,255,0.58); line-height: 1.85; max-width: 520px; margin: 0 auto 2rem;
}
.dg-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.dg-breadcrumb a { color: var(--gold); text-decoration: none; }
.dg-breadcrumb a:hover { text-decoration: underline; }
.dg-breadcrumb-sep { color: rgba(255,255,255,0.2); }
.dg-hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 3;
}

/* ── INTRO ── */
.dg-intro { background: var(--violet-pale); border-bottom: 1px solid rgba(61,43,107,0.08); }
.dg-intro-inner {
  max-width: 820px; margin: 0 auto; padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem;
}
.dg-intro-verse {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.dg-verse-text {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.2rem; color: var(--violet); line-height: 1.55;
}
.dg-verse-ref {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.dg-intro-body {
  font-size: 0.93rem; font-weight: 300; color: #555; line-height: 1.9; max-width: 680px;
}
.dg-intro-body strong { font-weight: 600; color: var(--violet); }

/* ── LAYOUT ── */
.dg-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  align-items: start;
}

/* ── SIDEBAR ── */
.dg-sidebar {
  position: sticky;
  /* ensure the sidebar sits below the fixed nav (use a slightly larger offset) */
  top: calc(var(--nav-h) + 3rem);
  /* keep the sidebar above page content when stuck, but below the nav (nav uses z-index:200) */
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  align-self: start;
  padding-right: 2.5rem;     /* gap between sidebar and body — moved here */
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dg-sidebar.toc-visible {
  opacity: 1;
  pointer-events: auto;
}
.dg-toc {
  background: var(--white);
  border: 1px solid rgba(61,43,107,0.1);
  border-radius: 4px;
  padding: 1.75rem;
  margin-right: 0;           /* removed — was causing the bleed */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}
.dg-toc-title {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid rgba(232,160,32,0.2);
}
.dg-toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.dg-toc-link {
  font-size: 0.77rem; font-weight: 400; color: #888;
  text-decoration: none; display: block; padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.dg-toc-link:hover,
.dg-toc-link.active { color: var(--violet); border-left-color: var(--gold); }
.dg-toc-updated {
  margin-top: 1.5rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(61,43,107,0.07);
  font-size: 0.68rem; color: #bbb;
}
.dg-toc-updated strong { color: var(--violet-light); }

/* ── SECTION ARTICLES ── */
.dg-section {
  display: grid; grid-template-columns: 48px 1fr; gap: 0 1.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(61,43,107,0.07);
}
.dg-section:last-of-type { border-bottom: none; }
.dg-section-num {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold); padding-top: 0.35rem;
}
.dg-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400; color: var(--violet); margin-bottom: 1.25rem; line-height: 1.2;
}
.dg-section-body {
  font-size: 0.88rem; font-weight: 300; color: #555; line-height: 1.9; margin-bottom: 1.5rem;
}
.dg-section-body strong { font-weight: 600; color: #333; }
.dg-sub-title {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500;
  color: var(--violet); margin-bottom: 0.75rem;
}

/* INFO GRID */
.dg-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid rgba(61,43,107,0.1); border-radius: 4px; overflow: hidden;
  margin-bottom: 1.5rem;
}
.dg-info-cell {
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(61,43,107,0.08);
  border-bottom: 1px solid rgba(61,43,107,0.08);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.dg-info-cell:nth-child(2n) { border-right: none; }
.dg-info-label {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.dg-info-value { font-size: 0.84rem; font-weight: 400; color: #333; }

/* CALLOUT */
.dg-callout {
  background: var(--violet-pale);
  border-left: 3px solid var(--violet-light);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  display: flex; gap: 0.85rem; align-items: flex-start;
  font-size: 0.83rem; color: #555; line-height: 1.75;
}
.dg-callout-gold { border-left-color: var(--gold); background: rgba(232,160,32,0.06); }
.dg-callout-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; color: var(--violet-light); }
.dg-callout-gold .dg-callout-icon { color: var(--gold); }

/* GOV CARDS */
.dg-card-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dg-gov-card {
  background: var(--cream); border: 1px solid rgba(61,43,107,0.09);
  border-radius: 4px; padding: 1.5rem;
  transition: border-color 0.25s;
}
.dg-gov-card:hover { border-color: var(--gold); }
.dg-gov-card-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--violet-pale); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.dg-gov-card-title {
  font-size: 0.84rem; font-weight: 600; color: var(--violet); margin-bottom: 0.5rem;
}
.dg-gov-card-body { font-size: 0.78rem; font-weight: 300; color: #666; line-height: 1.8; }

/* CHECK LIST */
.dg-check-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.dg-check-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: 0.86rem; font-weight: 300; color: #555; line-height: 1.8;
}
.dg-check-list strong { font-weight: 600; color: #333; }
.dg-check-icon {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0; margin-top: 0.25rem;
  position: relative;
}
.dg-check-icon::after {
  content: '';
  position: absolute; left: 5px; top: 4px;
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--violet-deep);
  border-bottom: 1.5px solid var(--violet-deep);
  transform: rotate(-45deg);
}

/* NUMBERED LIST */
.dg-numbered-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.5rem; }
.dg-numbered-item {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: 0.86rem; font-weight: 300; color: #555; line-height: 1.8;
}
.dg-n {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 500; color: var(--gold); flex-shrink: 0; width: 20px;
}
.dg-numbered-item strong { font-weight: 600; color: #333; }

/* TWO COL */
.dg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1rem; }
.dg-dot-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.dg-dot-list li {
  font-size: 0.82rem; font-weight: 300; color: #666; line-height: 1.7;
  padding-left: 1rem; position: relative;
}
.dg-dot-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5rem;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* DISCLAIMER BLOCKS */
.dg-disclaimer-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(61,43,107,0.08); border-radius: 4px; overflow: hidden; margin-bottom: 1.5rem; }
.dg-disclaimer-block {
  background: var(--white); padding: 1.5rem;
}
.dg-disclaimer-block-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 0.6rem;
}
.dg-disclaimer-block p { font-size: 0.82rem; font-weight: 300; color: #666; line-height: 1.8; }

/* IP ROW */
.dg-ip-row { display: flex; flex-direction: column; gap: 1.25rem; }
.dg-ip-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  font-size: 0.84rem; font-weight: 300; color: #555; line-height: 1.8;
}
.dg-ip-item strong { display: block; font-weight: 600; color: #333; margin-bottom: 0.25rem; }
.dg-ip-item p { margin: 0; }
.dg-ip-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--violet-pale); color: var(--violet);
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(61,43,107,0.14);
}

/* CONTACT GRID */
.dg-contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.dg-contact-card {
  background: var(--cream); border: 1px solid rgba(61,43,107,0.1);
  border-radius: 4px; padding: 1.5rem; text-align: center;
  transition: border-color 0.25s;
}
.dg-contact-card:hover { border-color: var(--violet-light); }
.dg-contact-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--violet-pale); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}
.dg-contact-card-label {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.dg-contact-card-value {
  font-size: 0.82rem; color: var(--violet); text-decoration: none; font-weight: 400; display: block; line-height: 1.6;
}
a.dg-contact-card-value:hover { text-decoration: underline; }

/* INLINE LINK */
.dg-inline-link {
  color: var(--violet); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s;
}
.dg-inline-link:hover { color: var(--gold); }

/* CLOSING BANNER */
.dg-closing-banner {
  margin-top: 2rem;
  background: var(--violet-deep);
  border-radius: 4px; padding: 3.5rem;
  text-align: center;
}
.dg-closing-verse {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.dg-closing-verse blockquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.35rem; color: var(--white); line-height: 1.5;
}
.dg-closing-verse cite {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.dg-closing-note {
  font-size: 0.8rem; font-weight: 300; color: rgba(255,255,255,0.42); line-height: 1.8;
  max-width: 580px; margin: 0 auto;
}
.dg-closing-note strong { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
   .dg-layout { grid-template-columns: 220px 1fr; padding: 3.5rem 1.5rem; }
  .dg-toc { margin-right: 1.5rem; }
  .dg-card-row { grid-template-columns: 1fr; }
  .dg-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dg-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; }
  .dg-layout { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
  .dg-sidebar { position: static; }
  .dg-toc { margin-right: 0; margin-bottom: 2.5rem; }
  .dg-section { grid-template-columns: 36px 1fr; }
  .dg-info-grid { grid-template-columns: 1fr; }
  .dg-info-cell { border-right: none; }
  .dg-two-col { grid-template-columns: 1fr; }
  .dg-disclaimer-blocks { grid-template-columns: 1fr; }
  .dg-closing-banner { padding: 2.5rem 1.5rem; }
  .dg-closing-banner .btn-violet,
  .dg-closing-banner .btn-outline-gold { display: block; margin: 0.5rem auto !important; text-align: center; max-width: 220px; }
}

@media (max-width: 480px) {
  .dg-hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .dg-section { grid-template-columns: 1fr; }
  .dg-section-num { margin-bottom: 0.25rem; }
}
