/* ============================================================
   Components & layout. Class prefix `dg-` (Diggo), BEM-ish modifiers.
   Styles only via tokens.css custom properties.
   ============================================================ */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface-page); color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--text-body-m); line-height: var(--leading-body);
  letter-spacing: var(--tracking-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--weight-semibold); line-height: var(--leading-heading); margin: 0; color: var(--text-primary); letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; flex-shrink: 0; width: 1em; overflow: hidden; }
.ms--fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------- Layout Spec ---------- */
.dg-container { width: 100%; max-width: calc(var(--container-max-width) + 2 * var(--container-safe-gutter)); margin-inline: auto; padding-inline: var(--container-safe-gutter); }
.dg-two-col { display: grid; grid-template-columns: minmax(0, var(--layout-two-col-main)) var(--layout-two-col-sidebar); column-gap: var(--layout-two-col-gutter); justify-content: space-between; align-items: start; }
.dg-main { min-width: 0; }
/* Sidebar runs the full height of the main column so its last box can stick while scrolling. */
.dg-sidebar { display: flex; flex-direction: column; gap: var(--space-6); align-self: stretch; }
.dg-widget--sticky { position: sticky; top: calc(var(--header-height-desktop) + 16px); }
@media (max-width: 1099px) {
  .dg-two-col { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-10); }
  .dg-widget--sticky { position: static; }
}
@media (max-width: 767px) {
  .dg-container { padding-inline: var(--mobile-side-padding); }
}
.dg-page { padding-block: var(--space-6) var(--space-16); }
.dg-section { margin-top: var(--space-12); }
.dg-section:first-child { margin-top: 0; }
.dg-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.dg-section__title { font-size: var(--text-headline-s); }
.dg-section__sub { color: var(--text-secondary); font-size: var(--text-body-s); margin-top: var(--space-1); }
.dg-band { background: var(--surface-subtle); padding-block: var(--space-14); }
@media (max-width: 767px) {
  .dg-section { margin-top: var(--space-10); }
  .dg-section__title { font-size: var(--text-headline-xs); }
  .dg-band { padding-block: var(--space-10); }
}

/* ---------- Header ---------- */
.dg-header { position: sticky; top: 0; z-index: 40; background: var(--surface-page); border-bottom: 1px solid var(--border-subtle); }
.dg-header__inner { height: var(--header-height-desktop); display: flex; align-items: center; gap: var(--space-8); }
.dg-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 22px; letter-spacing: -0.01em; color: var(--text-primary); white-space: nowrap; }
.dg-brand__mark { width: 32px; height: 32px; border-radius: var(--radius-s); background: var(--brand-primary); color: var(--brand-on-primary); display: inline-flex; align-items: center; justify-content: center; }
.dg-brand__mark .ms { font-size: 20px; }
.dg-brand b { color: var(--brand-primary); font-weight: inherit; }
.dg-nav { display: flex; align-items: center; gap: var(--space-1); flex: 1; }
.dg-nav a { padding: 8px 12px; border-radius: var(--radius-s); font-weight: var(--weight-medium); font-size: 15px; color: var(--text-secondary); transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); white-space: nowrap; }
.dg-nav a:hover { background: var(--surface-subtle); color: var(--text-primary); }
.dg-nav a.is-active { color: var(--text-primary); font-weight: var(--weight-semibold); }
.dg-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.dg-header .dg-header__menu { display: none; }
.dg-drawer { display: none; }
@media (max-width: 1099px) {
  .dg-nav { display: none; }
  .dg-header .dg-header__menu { display: inline-flex; }
  .dg-header .dg-header__cta { display: none; }
}
@media (max-width: 767px) {
  .dg-header__inner { height: var(--header-height-mobile); }
  .dg-brand { font-size: 20px; }
}
.dg-drawer.is-open { display: block; position: fixed; inset: var(--header-height-mobile) 0 0 0; background: var(--surface-page); z-index: 39; overflow-y: auto; padding: var(--space-4) var(--mobile-side-padding) var(--space-10); }
.dg-drawer a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-body-m); font-weight: var(--weight-medium); }
@media (min-width: 768px) { .dg-drawer.is-open { inset: var(--header-height-desktop) 0 0 0; } }

/* ---------- Buttons ---------- */
.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 12px 20px; border-radius: var(--radius-s); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: var(--weight-medium); font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.dg-btn--primary { background: var(--brand-primary); color: var(--brand-on-primary); }
.dg-btn--primary:hover { background: var(--brand-primary-hover); }
.dg-btn--primary:active { background: var(--brand-primary-active); }
.dg-btn--secondary { background: var(--surface-muted); color: var(--text-primary); }
.dg-btn--secondary:hover { background: var(--neutral-200); }
.dg-btn--outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.dg-btn--outline:hover { background: var(--surface-subtle); border-color: var(--border-focus); }
.dg-btn--ghost { background: transparent; color: var(--text-primary); }
.dg-btn--ghost:hover { background: var(--surface-subtle); }
.dg-btn--white { background: var(--neutral-0); color: var(--brand-primary); }
.dg-btn--white:hover { background: var(--blue-50); }
.dg-btn--s { height: 40px; padding: 8px 16px; font-size: 14px; gap: 6px; }
.dg-btn--s .ms { font-size: 18px; }
.dg-btn--l { height: 56px; padding: 15px 24px; font-size: 18px; border-radius: var(--radius-m); }
.dg-btn--pill { border-radius: var(--radius-full); }
.dg-btn--block { display: flex; width: 100%; }
.dg-icon-btn { width: 40px; height: 40px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--text-primary); cursor: pointer; }
.dg-icon-btn:hover { background: var(--surface-subtle); }
.dg-icon-btn .ms { font-size: 24px; }

/* ---------- Links ---------- */
.dg-link { color: var(--text-link); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 4px; }
.dg-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dg-link .ms { font-size: 18px; }

/* ---------- Hero banner ---------- */
.dg-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 440px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-8); align-items: center; padding: var(--space-12) var(--space-14);
  background: var(--blue-700); color: #fff; }
.dg-hero__art { width: 100%; height: auto; display: block; }
@media (max-width: 1099px) { .dg-hero { grid-template-columns: minmax(0, 1fr) 320px; padding: var(--space-10); } }
@media (max-width: 899px) { .dg-hero { grid-template-columns: minmax(0, 1fr); } .dg-hero__art { display: none; } }
.dg-hero__body { position: relative; max-width: 620px; display: flex; flex-direction: column; gap: var(--space-4); }
.dg-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(255,255,255,0.16); backdrop-filter: blur(4px); font-size: 13px; font-weight: var(--weight-medium); }
.dg-hero__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(32px, 5vw, 56px); line-height: 1.1; color: #fff; text-wrap: balance; }
.dg-hero__sub { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.9); max-width: 560px; }
.dg-hero__search { margin-top: var(--space-2); }
.dg-hero__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); font-size: 14px; color: rgba(255,255,255,0.85); align-items: center; }
.dg-hero__chips a { padding: 4px 12px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.dg-hero__chips a:hover { background: rgba(255,255,255,0.14); }
@media (max-width: 767px) {
  .dg-hero { min-height: 0; padding: var(--space-10) var(--space-5); border-radius: var(--radius-l); }
}
.dg-page-hero { background: var(--brand-soft); border-bottom: 1px solid var(--blue-100); padding-block: var(--space-8) var(--space-10); }
.dg-page-hero__title { font-size: var(--text-headline-l); margin-top: var(--space-3); }
.dg-page-hero__sub { color: var(--text-secondary); margin-top: var(--space-2); max-width: 760px; }
.dg-page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 767px) {
  .dg-page-hero { padding-block: var(--space-5) var(--space-6); }
  .dg-page-hero__title { font-size: var(--text-headline-s); }
}

/* ---------- Search / select box ---------- */
.dg-search { display: flex; gap: var(--space-2); background: var(--neutral-0); padding: 6px; border-radius: var(--radius-full); box-shadow: var(--shadow-l); }
.dg-search__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--text-secondary); }
.dg-search__field select, .dg-search__field input { flex: 1; min-width: 0; height: 48px; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--text-primary); appearance: none; -webkit-appearance: none; cursor: pointer; }
.dg-search .dg-btn { border-radius: var(--radius-full); }
@media (max-width: 767px) {
  .dg-search { flex-direction: column; border-radius: var(--radius-l); padding: 8px; }
  .dg-search__field { padding: 0 10px; border-bottom: 1px solid var(--border-subtle); }
}
.dg-select { position: relative; }
.dg-select select { width: 100%; height: 48px; padding: 0 40px 0 16px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--neutral-0); font: inherit; color: var(--text-primary); appearance: none; -webkit-appearance: none; cursor: pointer; }
.dg-select select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--border-focus); border-color: transparent; }
.dg-select .ms { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); }
.dg-input { width: 100%; height: 48px; padding: 0 16px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--neutral-0); font: inherit; color: var(--text-primary); }
.dg-input::placeholder { color: var(--text-tertiary); }
.dg-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--border-focus); border-color: transparent; }
.dg-label { display: block; font-size: var(--text-body-s); font-weight: var(--weight-medium); margin-bottom: 6px; }

/* ---------- Breadcrumb ---------- */
.dg-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.dg-crumbs a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.dg-crumbs .ms { font-size: 16px; color: var(--text-tertiary); }
.dg-crumbs span:last-child { color: var(--text-primary); font-weight: var(--weight-medium); }

/* ---------- Grids ---------- */
.dg-grid { display: grid; gap: var(--space-5); }
.dg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .dg-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .dg-grid--3, .dg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .dg-grid--2, .dg-grid--3 { grid-template-columns: minmax(0, 1fr); } .dg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }

/* ---------- Cards ---------- */
.dg-card { display: block; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-l); padding: var(--space-6); transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard); }
a.dg-card:hover, .dg-card--hover:hover { box-shadow: var(--shadow-m); }
.dg-card--flat { background: var(--surface-subtle); border-color: transparent; }
.dg-card__title { font-family: var(--font-accent); font-weight: var(--weight-bold); font-size: 20px; line-height: 1.25; }
.dg-card__text { color: var(--text-secondary); font-size: 15px; margin-top: var(--space-2); }

/* Category tile */
.dg-cat { position: relative; overflow: hidden; min-height: 168px; border-radius: var(--radius-l); background: var(--surface-subtle); padding: 28px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow var(--duration-base) var(--ease-standard); }
.dg-cat:hover { box-shadow: var(--shadow-s); }
.dg-cat__title { font-family: var(--font-accent); font-weight: var(--weight-bold); font-size: 22px; position: relative; z-index: 1; }
.dg-cat__text { font-size: 15px; line-height: 1.4; color: var(--text-secondary); padding-right: 76px; position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dg-cat__go { margin-top: auto; position: relative; z-index: 1; }
.dg-cat__icon { position: absolute; right: 16px; bottom: 12px; font-size: 72px !important; color: var(--blue-200); transition: transform var(--duration-base) var(--ease-standard); }
.dg-cat:hover .dg-cat__icon { transform: scale(1.06); }

/* State tile (compact link card) */
.dg-tile { display: flex; align-items: center; gap: var(--space-3); padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-m); background: var(--surface-card); transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard); min-width: 0; }
.dg-tile:hover { box-shadow: var(--shadow-s); border-color: var(--border-default); }
.dg-tile__abbr { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand-primary); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.dg-tile__body { min-width: 0; flex: 1; }
.dg-tile__name { display: block; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-tile__meta { display: block; font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-tile > .ms { color: var(--text-tertiary); }
.dg-tile:hover > .ms { color: var(--brand-primary); }

/* Provider card */
.dg-provider { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-provider__head { display: flex; align-items: flex-start; gap: var(--space-3); }
.dg-provider__name { font-size: 18px; }
.dg-logo { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-m); border: 1px solid var(--border-subtle); background: var(--neutral-0); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; }
.dg-logo img { width: 100%; height: 100%; object-fit: contain; }
.dg-logo--l { width: 96px; height: 96px; }
.dg-logo--s { width: 44px; height: 44px; border-radius: var(--radius-s); padding: 4px; }
.dg-logo__fallback { font-family: var(--font-heading); font-weight: var(--weight-bold); color: var(--brand-primary); font-size: 22px; }
.dg-provider__name { font-family: var(--font-accent); font-weight: var(--weight-bold); font-size: 20px; line-height: 1.25; }
.dg-provider__features { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); margin: 0; padding: 0; list-style: none; }
.dg-provider__features li { display: flex; gap: 8px; align-items: flex-start; }
.dg-provider__features .ms { color: var(--success); font-size: 18px; margin-top: 1px; }
.dg-provider__actions { display: flex; gap: var(--space-2); margin-top: auto; }
.dg-provider__actions .dg-btn { flex: 1; }

/* Store card */
/* Photo runs the full card height on the left; actions column on the right (desktop). */
.dg-store { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: stretch; padding: 0; overflow: hidden; }
.dg-store__img { position: relative; min-height: 150px; background: var(--surface-muted); }
.dg-store__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-store__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--space-4) var(--space-5); }
.dg-store__actions { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-4) 0; }
.dg-store__actions .dg-btn { justify-content: center; }
.dg-store__actions a { position: relative; z-index: 2; }
.dg-store__name { font-weight: var(--weight-semibold); font-size: 16px; line-height: 1.35; }
.dg-store__addr, .dg-store__meta { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.dg-store__addr .ms, .dg-store__meta .ms { font-size: 16px; }
@media (max-width: 767px) {
  .dg-store { grid-template-columns: 112px minmax(0, 1fr); }
  .dg-store__img { min-height: 112px; }
  .dg-store__body { padding: var(--space-3) var(--space-4); gap: 4px; }
  .dg-store__actions { display: none; }
}

/* Article card */
.dg-article { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-article__img { aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.dg-article__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-standard); }
.dg-article:hover .dg-article__img img { transform: scale(1.04); }
.dg-article__img .ms { font-size: 56px; color: var(--blue-300); }
.dg-article__title { font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 20px; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dg-article__text { color: var(--text-secondary); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dg-article__more { color: var(--blue-700); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Tags, chips, rate ---------- */
.dg-tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 4px 10px; border-radius: var(--radius-s); font-size: 13px; font-weight: var(--weight-medium); line-height: 1; white-space: nowrap; background: var(--surface-muted); color: var(--text-primary); }
.dg-tag .ms { font-size: 16px; }
.dg-tag--s { height: 24px; padding: 3px 8px; font-size: 12px; }
.dg-tag--brand { background: var(--brand-soft-strong); color: var(--blue-700); }
.dg-tag--success { background: var(--success-bg); color: var(--emerald-600); }
.dg-tag--warning { background: var(--warning-bg); color: #8a6d00; }
.dg-tag--solid { background: var(--brand-primary); color: var(--brand-on-primary); }
.dg-tag--white { background: var(--neutral-0); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.dg-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dg-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--border-default); background: var(--neutral-0); font-size: 14px; font-weight: var(--weight-medium); white-space: nowrap; transition: background var(--duration-fast), border-color var(--duration-fast); }
.dg-chip:hover { background: var(--surface-subtle); border-color: var(--border-strong); }
.dg-chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.dg-chip small { color: var(--text-tertiary); font-size: 12px; }
.dg-chip.is-active small { color: rgba(255,255,255,0.8); }
.dg-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: var(--weight-medium); line-height: 1; }
.dg-stars { position: relative; display: inline-flex; }
.dg-stars__base, .dg-stars__fill { display: inline-flex; white-space: nowrap; }
.dg-stars__base { color: var(--neutral-200); }
.dg-stars__fill { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; color: var(--star); }
.dg-stars .ms { font-size: 16px; }

/* ---------- Lists ---------- */
.dg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.dg-list li { border-bottom: 1px solid var(--border-subtle); }
.dg-list a, .dg-list .dg-list__row { display: flex; align-items: center; gap: var(--space-3); padding: 14px 4px; }
.dg-list a:hover { background: var(--surface-subtle); }
.dg-list__label { flex: 1; min-width: 0; font-weight: var(--weight-medium); }
.dg-list__meta { color: var(--text-secondary); font-size: 14px; }
.dg-list .ms { color: var(--text-tertiary); }
.dg-cols { columns: 3; column-gap: var(--space-8); }
.dg-cols a { display: block; padding: 6px 0; break-inside: avoid; color: var(--text-primary); }
.dg-cols a:hover { color: var(--text-link); }
.dg-cols small { color: var(--text-tertiary); }
@media (max-width: 899px) { .dg-cols { columns: 2; } }

/* ---------- Accordion ---------- */
.dg-acc { border-top: 1px solid var(--border-subtle); }
.dg-acc details { border-bottom: 1px solid var(--border-subtle); }
.dg-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 18px 4px; cursor: pointer; font-weight: var(--weight-medium); }
.dg-acc summary::-webkit-details-marker { display: none; }
.dg-acc summary .ms { font-size: 22px; color: var(--text-secondary); transition: transform var(--duration-base) var(--ease-standard); }
.dg-acc details[open] summary .ms { transform: rotate(180deg); }
.dg-acc__body { padding: 0 4px 18px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- Stepper ---------- */
.dg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; }
.dg-step { position: relative; padding: var(--space-6); border-radius: var(--radius-l); background: var(--neutral-0); border: 1px solid var(--border-subtle); }
.dg-step__num { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--brand-primary); color: var(--brand-on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--weight-semibold); }
.dg-step__title { font-size: var(--text-headline-xs); margin-top: var(--space-4); }
.dg-step__text { color: var(--text-secondary); margin-top: var(--space-2); font-size: 15px; }
@media (max-width: 767px) { .dg-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }

/* ---------- Stats ---------- */
.dg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.dg-stat { display: flex; flex-direction: column; gap: 4px; }
.dg-stat__value { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(28px, 4vw, 44px); line-height: 1; color: var(--brand-primary); }
.dg-stat__label { color: var(--text-secondary); font-size: 15px; }
@media (max-width: 767px) { .dg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Table ---------- */
.dg-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-l); }
.dg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dg-table th, .dg-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.dg-table th { background: var(--surface-subtle); font-weight: var(--weight-semibold); font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.dg-table tr:last-child td { border-bottom: none; }

/* ---------- Pagination ---------- */
.dg-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: var(--space-8); }
.dg-pager a, .dg-pager span { min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius-s); border: 1px solid var(--border-default); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--weight-medium); font-size: 15px; }
.dg-pager a:hover { background: var(--surface-subtle); }
.dg-pager .is-active { background: var(--brand-primary); border-color: transparent; color: var(--brand-on-primary); }
.dg-pager .is-gap { border: none; min-width: 24px; color: var(--text-tertiary); }
.dg-pager .is-disabled { color: var(--text-disabled); }

/* ---------- Prose (rich text from DB) ---------- */
.dg-prose { font-size: var(--text-body-m); line-height: 1.7; color: var(--text-primary); overflow-wrap: anywhere; }
.dg-prose > * + * { margin-top: 1em; }
.dg-prose h2 { font-size: var(--text-headline-xs); margin-top: 1.6em; }
.dg-prose h3 { font-size: 18px; margin-top: 1.4em; }
.dg-prose h4 { font-size: var(--text-headline-xs); margin-top: 1.2em; }
.dg-prose > h4:first-child { margin-top: 0; }
.dg-prose ul, .dg-prose ol { padding-left: 1.4em; }
.dg-prose li + li { margin-top: 0.35em; }
.dg-prose a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.dg-prose img { border-radius: var(--radius-m); height: auto; }
.dg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.dg-prose th, .dg-prose td { border: 1px solid var(--border-subtle); padding: 8px 12px; text-align: left; }
.dg-prose th { background: var(--surface-subtle); }
.dg-prose strong, .dg-prose b { font-weight: var(--weight-semibold); }

/* ---------- Callouts ---------- */
.dg-callout { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); border-radius: var(--radius-l); background: var(--info-bg); border: 1px solid var(--blue-100); }
.dg-callout > .ms { color: var(--brand-primary); font-size: 28px; }
.dg-callout__title { font-weight: var(--weight-semibold); font-size: 17px; }
.dg-callout__text { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }
.dg-callout--success { background: var(--success-bg); border-color: #d1fae5; }
.dg-callout--success > .ms { color: var(--success); }
.dg-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-xl); background: var(--brand-primary); color: #fff; }
.dg-cta h2 { color: #fff; font-size: var(--text-headline-s); }
.dg-cta p { color: rgba(255,255,255,0.88); margin-top: var(--space-2); }
@media (max-width: 767px) { .dg-cta { flex-direction: column; align-items: flex-start; padding: var(--space-6); } }

/* ---------- Sidebar widgets ---------- */
.dg-widget { border: 1px solid var(--border-subtle); border-radius: var(--radius-l); padding: var(--space-5); background: var(--neutral-0); }
.dg-widget__title { font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: 18px; margin-bottom: var(--space-3); }
.dg-widget--brand { background: var(--brand-soft); border-color: var(--blue-100); }
.dg-widget .dg-list { border-top: none; }
.dg-widget .dg-list a { padding: 10px 0; font-size: 15px; }
.dg-widget .dg-list li:last-child { border-bottom: none; }

/* ---------- Ad slots ---------- */
.dg-ad { display: flex; align-items: center; justify-content: center; margin-inline: auto; background: var(--surface-subtle); border-radius: var(--radius-s); color: var(--text-tertiary); font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; overflow: hidden; }
.dg-ad--leader { width: 100%; max-width: 728px; min-height: 90px; margin-block: var(--space-6); }
.dg-ad--wide { width: 100%; min-height: 120px; margin-block: var(--space-8); }
.dg-ad--rect { width: 300px; max-width: 100%; min-height: 250px; }
.dg-ad--infeed { grid-column: 1 / -1; width: 100%; min-height: 120px; }
@media (max-width: 767px) { .dg-ad--leader { min-height: 100px; } }
.is-ads-off .dg-ad { display: none; }

/* ---------- Detail facts ---------- */
.dg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dg-fact { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface-subtle); min-width: 0; }
.dg-fact > .ms { color: var(--brand-primary); font-size: 22px; }
.dg-fact__label { font-size: 13px; color: var(--text-secondary); }
.dg-fact__value { font-weight: var(--weight-medium); overflow-wrap: anywhere; }
@media (max-width: 599px) { .dg-facts { grid-template-columns: minmax(0, 1fr); } }
.dg-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.dg-hours td { padding: 8px 0; border-bottom: 1px dashed var(--border-default); }
.dg-hours td:last-child { text-align: right; color: var(--text-secondary); }
.dg-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--space-5); }
.dg-checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.dg-checks .ms { color: var(--success); font-size: 20px; }
@media (max-width: 599px) { .dg-checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tabs (anchor nav on detail pages) ---------- */
.dg-tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-height-desktop); background: var(--surface-page); z-index: 5; }
.dg-tabs::-webkit-scrollbar { display: none; }
.dg-tabs a { padding: 14px 0; font-weight: var(--weight-medium); color: var(--text-secondary); border-bottom: 2px solid transparent; white-space: nowrap; }
.dg-tabs a:hover, .dg-tabs a.is-active { color: var(--text-primary); border-bottom-color: var(--brand-primary); }
@media (max-width: 767px) { .dg-tabs { top: var(--header-height-mobile); gap: var(--space-5); } }

/* ---------- Quiz (eligibility checker) ---------- */
.dg-quiz { border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-8); background: var(--neutral-0); box-shadow: var(--shadow-s); }
.dg-quiz__progress { height: 6px; border-radius: var(--radius-full); background: var(--surface-muted); overflow: hidden; margin-bottom: var(--space-6); }
.dg-quiz__bar { height: 100%; background: var(--brand-primary); border-radius: inherit; transition: width var(--duration-base) var(--ease-standard); }
.dg-quiz__q { font-size: var(--text-headline-s); }
.dg-quiz__hint { color: var(--text-secondary); margin-top: var(--space-2); }
.dg-options { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.dg-option { display: flex; align-items: center; gap: var(--space-3); padding: 16px 18px; border: 1px solid var(--border-default); border-radius: var(--radius-m); cursor: pointer; font-weight: var(--weight-medium); background: var(--neutral-0); text-align: left; width: 100%; color: var(--text-primary); transition: border-color var(--duration-fast), background var(--duration-fast); }
.dg-option:hover { border-color: var(--brand-primary); background: var(--brand-soft); }
.dg-option .ms { color: var(--brand-primary); }
.dg-option.is-selected { border-color: var(--brand-primary); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-primary); }
@media (max-width: 767px) { .dg-quiz { padding: var(--space-5); border-radius: var(--radius-l); } .dg-quiz__q { font-size: var(--text-headline-xs); } }

/* ---------- Footer ---------- */
.dg-footer { background: var(--neutral-800); color: var(--neutral-0); padding: var(--space-14) 0 var(--space-8); margin-top: var(--space-16); }
.dg-footer__top { display: flex; gap: var(--space-12); flex-wrap: wrap; justify-content: space-between; }
.dg-footer__about { max-width: 300px; }
.dg-footer .dg-brand { color: #fff; }
.dg-footer__tagline { margin-top: var(--space-3); font-size: 14px; color: rgba(255,255,255,0.6); }
.dg-footer__cols { display: flex; gap: var(--space-12); flex-wrap: wrap; }
.dg-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.dg-footer__col h4 { font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.5); }
.dg-footer__col a { font-size: 15px; color: rgba(255,255,255,0.8); }
.dg-footer__col a:hover { color: #fff; }
.dg-footer__bottom { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); }
.dg-footer__legal { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.dg-footer__legal a:hover { color: #fff; }
.dg-footer__note { margin-top: var(--space-6); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.45); }
@media (max-width: 767px) { .dg-footer { padding-top: var(--space-10); margin-top: var(--space-12); } .dg-footer__cols { gap: var(--space-8); } }

/* ---------- Bottom nav (mobile) ---------- */
.dg-bottom-nav { display: none; }
@media (max-width: 767px) {
  .dg-bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--neutral-0); border-top: 1px solid var(--border-subtle); padding-bottom: env(safe-area-inset-bottom); }
  .dg-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: var(--weight-medium); color: var(--text-secondary); }
  .dg-bottom-nav a .ms { font-size: 24px; }
  .dg-bottom-nav a.is-active { color: var(--brand-primary); }
  body { padding-bottom: 64px; }
}

/* ---------- Misc ---------- */
.dg-muted { color: var(--text-secondary); }
.dg-small { font-size: 14px; }
.dg-center { text-align: center; }
.dg-mt-2 { margin-top: var(--space-2); } .dg-mt-4 { margin-top: var(--space-4); } .dg-mt-6 { margin-top: var(--space-6); } .dg-mt-8 { margin-top: var(--space-8); }
.dg-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.dg-divider { border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-8) 0; }
.dg-empty { text-align: center; padding: var(--space-12) var(--space-6); border: 1px dashed var(--border-default); border-radius: var(--radius-l); color: var(--text-secondary); }
.dg-empty .ms { font-size: 48px; color: var(--text-tertiary); }
.dg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.dg-locate-status { font-size: 14px; color: var(--text-secondary); margin-top: var(--space-3); min-height: 1.5em; }

/* ---------- Ad wrapper (label + ≥24px clearance from controls, docs §5.1) ---------- */
.dg-adwrap { margin-block: var(--space-8); }
.dg-adwrap .dg-ad { margin-block: 0; }
.dg-ad__label { text-align: center; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 6px; }
.dg-adwrap--rect { margin-block: 0; }
.dg-adwrap--infeed { grid-column: 1 / -1; margin-block: var(--space-2); }

/* ---------- Header search bar ---------- */
.dg-searchbar { border-top: 1px solid var(--border-subtle); background: var(--surface-page); }
.dg-searchbar__form { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); color: var(--text-secondary); }
.dg-searchbar__form input { flex: 1; min-width: 0; height: 44px; border: none; outline: none; font: inherit; font-size: 16px; background: transparent; color: var(--text-primary); }

/* ---------- Stretched links (whole card clickable, one anchor) ---------- */
.dg-card, .dg-tile, .dg-cat { position: relative; }
.dg-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dg-card .dg-stretch:hover { color: var(--brand-primary); }
.dg-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* ---------- Category card head ---------- */
.dg-cat__head { display: flex; align-items: center; gap: var(--space-3); position: relative; z-index: 1; }
.dg-cat__head .dg-cat__title { font-size: 20px; }

/* ---------- Collapsible state grid ---------- */
[data-collapse]:not(.is-expanded) > :nth-child(n+17) { display: none; }
@media (max-width: 599px) { [data-collapse]:not(.is-expanded) > :nth-child(n+9) { display: none; } }
.dg-collapse-btn { margin: var(--space-5) auto 0; display: flex; }
[data-collapse].is-expanded + .dg-collapse-btn { display: none; }

/* ---------- Customer-service phone ---------- */
.dg-cs-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 24px; color: var(--brand-primary); }
.dg-cs-phone .ms { font-size: 24px; }
.dg-cs-phone--xl { font-size: clamp(28px, 4vw, 40px); }
.dg-cs-phone--xl .ms { font-size: 32px; }

/* ---------- Subscribe ---------- */
.dg-subscribe { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: var(--space-6); align-items: center; }
.dg-subscribe__title { font-size: var(--text-headline-xs); margin-bottom: 4px; }
.dg-subscribe__form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.dg-subscribe__msg { grid-column: 1 / -1; min-height: 1.2em; margin: 0; }
.dg-subscribe__msg.is-ok { color: var(--emerald-600); }
.dg-subscribe__msg.is-err { color: var(--error); }
@media (max-width: 767px) { .dg-subscribe { grid-template-columns: minmax(0, 1fr); } }
.dg-main .dg-subscribe { grid-template-columns: minmax(0, 1fr); }

/* ---------- Callout variants ---------- */
.dg-callout--neutral { background: var(--surface-subtle); border-color: var(--border-subtle); }
.dg-callout--neutral > .ms { color: var(--text-secondary); }
.dg-callout--warning { background: var(--warning-bg); border-color: #ffe8a3; }
.dg-callout--warning > .ms { color: #b88600; }
.dg-link-inline { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Store image fallback ---------- */
.dg-store__img.is-empty { display: flex; align-items: center; justify-content: center; background: var(--brand-soft); }
.dg-store__img.is-empty .ms { font-size: 40px; color: var(--blue-300); }

/* ---------- Plan cards (provider detail) ---------- */
.dg-plan { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-plan__title { font-family: var(--font-accent); font-weight: var(--weight-bold); font-size: 18px; }
.dg-plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.dg-plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.dg-plan__list .ms { color: var(--brand-primary); font-size: 20px; }
.dg-plan__badge { align-self: flex-start; }

/* ---------- Detail header (provider/store) ---------- */
.dg-detail-head { display: flex; gap: var(--space-6); align-items: flex-start; }
.dg-detail-head__body { min-width: 0; flex: 1; }
.dg-detail-head__photo { flex-shrink: 0; width: 220px; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--surface-muted); }
.dg-detail-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.dg-detail-head__photo.is-empty { display: flex; align-items: center; justify-content: center; background: var(--brand-soft); }
.dg-detail-head__photo.is-empty .ms { font-size: 56px; color: var(--blue-300); }
@media (max-width: 767px) {
  .dg-detail-head { flex-direction: column; gap: var(--space-4); }
  .dg-detail-head__photo { width: 100%; max-height: 220px; }
}
.dg-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
@media (max-width: 599px) { .dg-actions .dg-btn { flex: 1 1 calc(50% - 8px); } }

/* ---------- Main column rhythm ---------- */
.dg-main > .dg-section:first-child { margin-top: 0; }
.dg-block-title { font-size: var(--text-headline-xs); margin-bottom: var(--space-4); }
.dg-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-hours tr.is-today td { font-weight: var(--weight-semibold); color: var(--text-primary); }
.dg-hours tr.is-today td:first-child::after { content: ' · Today'; color: var(--brand-primary); font-weight: var(--weight-medium); font-size: 13px; }

/* ---------- Quiz extras ---------- */
.dg-quiz__q:focus { outline: none; }
.dg-quiz__nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
.dg-quiz__nav .dg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dg-options--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 599px) { .dg-options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-option--center { justify-content: center; font-size: 18px; }
.dg-quiz__result { text-align: center; padding: var(--space-4) 0; }
.dg-quiz__result-icon { font-size: 56px !important; color: var(--warning); }
.dg-quiz__result.is-ok .dg-quiz__result-icon { color: var(--success); }
.dg-quiz__result .dg-actions { justify-content: center; }
.dg-money { position: relative; }
.dg-money::before { content: '$'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.dg-money .dg-input { padding-left: 30px; font-size: 18px; height: 56px; }
.dg-option > span { display: flex; flex-direction: column; gap: 2px; }
.dg-option__note { font-size: 13px; font-weight: var(--weight-regular); color: var(--text-secondary); }
.dg-quiz__more .dg-input { width: 120px; height: 48px; font-size: 18px; }
.dg-quiz__note { max-width: 520px; margin: var(--space-3) auto 0; color: var(--text-secondary); }
.dg-error { color: var(--error); }
.dg-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-full); background: var(--surface-muted); }
.dg-seg__btn { border: 0; font: inherit; padding: 8px 18px; border-radius: var(--radius-full); font-weight: var(--weight-medium); color: var(--text-secondary); background: transparent; cursor: pointer; }
.dg-seg__btn.is-active { background: var(--neutral-0); color: var(--text-primary); box-shadow: var(--shadow-s); }

/* ---------- A–Z index ---------- */
.dg-az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-5); }
.dg-az a { min-width: 32px; height: 32px; border-radius: var(--radius-s); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--weight-medium); font-size: 14px; background: var(--surface-subtle); }
.dg-az a:hover { background: var(--brand-soft-strong); color: var(--blue-700); }
.dg-az-group { margin-top: var(--space-5); }
.dg-az-group h3 { font-size: 18px; color: var(--brand-primary); border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; margin-bottom: 6px; scroll-margin-top: 90px; }

/* ---------- Support TOC ---------- */
.dg-toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-secondary); }
.dg-toc a:hover { color: var(--text-primary); }
.dg-prose h2 { scroll-margin-top: 90px; }

/* ---------- Misc page pieces ---------- */
.dg-search--inline { box-shadow: none; border: 1px solid var(--border-default); }
.dg-card__title .ms { font-size: 22px; color: var(--brand-primary); vertical-align: -4px; margin-right: 4px; }
.dg-checks--one { grid-template-columns: minmax(0, 1fr); }
.dg-prose--checks ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--space-5); }
.dg-prose--checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.dg-prose--checks li + li { margin-top: 0; }
.dg-prose--checks li::before { content: 'check_circle'; font-family: 'Material Symbols Rounded'; font-variation-settings: 'FILL' 1; position: absolute; left: 0; top: 0; font-size: 20px; color: var(--success); line-height: 1.2; }
@media (max-width: 599px) { .dg-prose--checks ul { grid-template-columns: minmax(0, 1fr); } }
.dg-cs-phone--s { font-size: 17px; margin-top: 2px; }
.dg-csrow .dg-card__text { margin-top: var(--space-3); font-size: 14px; }
.dg-cs-main { padding: var(--space-8); }
@media (max-width: 767px) { .dg-cs-main { padding: var(--space-5); } }
.dg-page--home .dg-stats { padding: var(--space-6) 0; border-bottom: 1px solid var(--border-subtle); }
.dg-provider__head .dg-provider__name a { color: inherit; }
.dg-tile .dg-logo--s { flex-shrink: 0; }

.dg-faq-wrap { margin-top: var(--space-12); }
.dg-article__img, .dg-article__title, .dg-article__text, .dg-article__more, .dg-cat__text, .dg-cat__go { display: block; }
.dg-article__more, .dg-cat__go { display: inline-flex; }
.dg-section__head > .dg-link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 599px) {
  .dg-grid--m1 { grid-template-columns: minmax(0, 1fr) !important; }
  .dg-tile { padding: 12px; gap: 10px; }
  .dg-tile__abbr { width: 32px; height: 32px; font-size: 13px; }
  .dg-grid--4 .dg-tile > .ms { display: none; }
  .dg-section__head { flex-wrap: wrap; align-items: flex-start; }
}

.dg-store__meta { flex-wrap: wrap; column-gap: var(--space-4); row-gap: 2px; }
.dg-store__m { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.dg-prose picture { display: block; }
.dg-prose picture img { width: 100%; height: auto; border-radius: var(--radius-l); background: var(--surface-muted); }

/* ---------- Sidebar: popular guides ---------- */
.dg-side-guides__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.dg-side-guides__head .dg-widget__title { margin-bottom: 0; }
.dg-side-guide { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-side-guide + .dg-side-guide { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.dg-side-guide__img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--brand-soft); }
.dg-side-guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-standard); }
.dg-side-guide__title { font-family: var(--font-heading); font-weight: var(--weight-semibold); font-size: 18px; line-height: 1.3; color: var(--text-primary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color var(--duration-fast) var(--ease-standard); }
.dg-side-guide:hover .dg-side-guide__title { color: var(--brand-primary); }
.dg-side-guide:hover img { transform: scale(1.04); }
/* Three cards are ~740px tall: only keep the box pinned when the window can show all of it. */
@media (max-height: 899px) { .dg-widget--sticky { position: static; } }
/* Sidebar stacked under the content (tablet): the 3 cards side by side. */
@media (min-width: 600px) and (max-width: 1099px) {
  .dg-side-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-5); }
  .dg-side-guides__head { grid-column: 1 / -1; }
  .dg-side-guide + .dg-side-guide { margin-top: 0; padding-top: 0; border-top: none; }
  .dg-side-guide__title { font-size: 16px; -webkit-line-clamp: 3; }
}
