/**
 * Catalogue page chrome shared by the E-Card Designs and Website Designs pages:
 * tokens, content wrapper, compact page header, buttons, inline notice, notes strip.
 */
:root {
  --dg-ink: #0a2540;
  --dg-text: #1f2d3d;
  --dg-muted: #52606f;
  --dg-faint: #6b7a8a;
  --dg-line: #dfe4ea;
  --dg-line-strong: #c5ccd5;
  --dg-bg: #ffffff;
  --dg-bg-alt: #f6f8fa;
  --dg-stage: #eef1f5;
  --dg-accent: var(--portal-accent, #2563eb);
  --dg-accent-hover: var(--portal-accent-hover, #1d4ed8);
  --dg-radius: 6px;
  --dg-max: 1200px;
  --dg-pad: clamp(16px, 4vw, 32px);
}

.dg-wrap {
  width: 100%;
  max-width: calc(var(--dg-max) + 2 * var(--dg-pad));
  margin: 0 auto;
  padding-left: var(--dg-pad);
  padding-right: var(--dg-pad);
}


/* ───────── Page header ───────── */
.dg-head {
  background: var(--dg-bg-alt);
  border-bottom: 1px solid var(--dg-line);
  padding: 28px 0 32px;
}

.dg-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--dg-faint);
}

.dg-crumbs a {
  color: var(--dg-accent);
  text-decoration: none;
}

.dg-crumbs a:hover {
  text-decoration: underline;
}

.dg-crumbs [aria-current] {
  color: var(--dg-muted);
}

.dg-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.dg-head h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--dg-ink);
}

.dg-head__lead {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dg-muted);
}

.dg-head__stats {
  display: flex;
  flex: none;
  gap: 0;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
  background: var(--dg-bg);
}

.dg-head__stats > div {
  padding: 12px 20px;
  min-width: 120px;
}

.dg-head__stats > div + div {
  border-left: 1px solid var(--dg-line);
}

.dg-head__stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dg-faint);
}

.dg-head__stats dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dg-ink);
}


.dg-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--dg-line);
  border-left: 3px solid var(--dg-accent);
  border-radius: var(--dg-radius);
  background: var(--dg-bg);
  font-size: 14px;
  color: var(--dg-text);
}

.dg-notice[hidden] {
  display: none;
}

.dg-notice__icon {
  flex: none;
  color: var(--dg-accent);
}

.dg-notice p {
  flex: 1;
  line-height: 1.45;
}

/* buttons */
.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dg-btn--secondary {
  border-color: var(--dg-accent);
  background: transparent;
  color: var(--dg-accent);
}

.dg-btn--secondary:hover {
  background: color-mix(in srgb, var(--dg-accent) 8%, transparent);
}

.dg-btn--ghost {
  background: transparent;
  color: var(--dg-muted);
  border-color: var(--dg-line-strong);
}

.dg-btn--ghost:hover:not(:disabled) {
  border-color: var(--dg-ink);
  color: var(--dg-ink);
}

.dg-btn[hidden] {
  display: none;
}

.dg-btn--primary {
  background: var(--dg-accent);
  border-color: var(--dg-accent);
  color: #fff;
}

.dg-btn--primary:hover {
  background: var(--dg-accent-hover);
  border-color: var(--dg-accent-hover);
}

.dg-btn:focus-visible {
  outline: 2px solid var(--dg-accent);
  outline-offset: 2px;
}


/* ───────── Notes strip ───────── */
.dg-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
  background: var(--dg-bg);
}

.dg-notes article {
  padding: 24px;
}

.dg-notes article + article {
  border-left: 1px solid var(--dg-line);
}

.dg-notes h2 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dg-ink);
}

.dg-notes p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dg-muted);
}


@media (max-width: 900px) {
  .dg-head__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .dg-notes {
    grid-template-columns: 1fr;
  }

  .dg-notes article + article {
    border-left: 0;
    border-top: 1px solid var(--dg-line);
  }
}

@media (max-width: 639px) {
  .dg-head {
    padding: 20px 0 24px;
  }

  .dg-head__stats {
    width: 100%;
  }

  .dg-head__stats > div {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
  }

  .dg-notice {
    flex-wrap: wrap;
  }
}
