/* One button theme for every document / page link list on the site
   (same design as the blue "dg-syllabus-btn" syllabus buttons). Added by html_build/link_buttons.py. */

.dbjc-btn-item {
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: 0 !important;
  background: none !important;
}
.dbjc-btn-item::before,
.dbjc-btn-item::after { content: none !important; display: none !important; }
ul > li.dbjc-btn-item:last-child { margin-bottom: 0 !important; }
ul:has(> li.dbjc-btn-item) { padding-left: 0 !important; margin-left: 0 !important; }

a.dbjc-btn {
  --brand: #1a75bb;
  --brand-deep: #0e4f86;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 17px 34px;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: .2px;
  line-height: 1.25 !important;
  text-transform: none;
  text-align: left;
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 8px 22px -8px rgba(26, 117, 187, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
  overflow: hidden;
  isolation: isolate;
  vertical-align: middle;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

/* subtle top gloss */
a.dbjc-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  z-index: 1;
}

/* diagonal light sweep */
a.dbjc-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-22deg);
  z-index: 2;
  pointer-events: none;
  transition: left .7s ease;
}

a.dbjc-btn:hover,
a.dbjc-btn:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(26, 117, 187, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
a.dbjc-btn:hover::before,
a.dbjc-btn:focus-visible::before { left: 130%; }
a.dbjc-btn:active { transform: translateY(-1px); }
a.dbjc-btn:focus-visible { outline: 3px solid rgba(26, 117, 187, .45); outline-offset: 3px; }

a.dbjc-btn .dbjc-btn__ico,
a.dbjc-btn .dbjc-btn__arrow,
a.dbjc-btn .dbjc-btn__label {
  position: relative;
  z-index: 3;
  color: #fff !important;
}
a.dbjc-btn .dbjc-btn__ico,
a.dbjc-btn .dbjc-btn__arrow { display: inline-flex; flex: none; }
a.dbjc-btn svg { display: block; }
a.dbjc-btn .dbjc-btn__arrow { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
a.dbjc-btn:hover .dbjc-btn__arrow,
a.dbjc-btn:focus-visible .dbjc-btn__arrow { transform: translateX(4px); }

/* small screens */
@media (max-width: 480px) {
  a.dbjc-btn { padding: 15px 24px; font-size: 14.5px !important; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  a.dbjc-btn,
  a.dbjc-btn::before,
  a.dbjc-btn .dbjc-btn__arrow { transition: none; }
}

/* Runs of buttons: three per row (grouped by /assets/js/link-buttons.js).
   Columns never get narrower than 200px, so a narrow content column shows 2 (or 1) per row instead. */
.dbjc-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 40px) / 3)), 1fr));
  gap: 16px 20px;
  width: 100%;
  margin: 10px 0 24px;
  text-align: left;
}
.dbjc-btn-grid > a.dbjc-btn {
  display: flex;
  width: 100%;
  margin: 0;
  gap: 10px;
  padding: 15px 18px;
  font-size: 15px !important;
}
.dbjc-btn-grid > a.dbjc-btn .dbjc-btn__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .dbjc-btn-grid { grid-template-columns: 1fr; gap: 14px; } }
