/* Dropbits user styles — safe for LLM/chat edits via patch_user_css.
 * Loaded after dropbits-site.css; rules here win.
 * Prefer :root token overrides (Admin → Site → Appearance, or markers below).
 * Whole-site colours: set both surfaces —
 *   page: --color-bg, --color-text
 *   content panel: --color-content-bg, --color-content-fg, --color-content-heading
 * Reuse names from dropbits-site.css; do not invent new --color-* tokens.
 */
/* dropbits:user-styles:start */

/* Text-only hero: solid primary so theme white titles contrast (~7.7:1).
 * When a photo is added, :has(.hero-media) stops this; enable Title scrim then. */
.hero-jumbo:not(:has(.hero-media)) {
  background: var(--color-primary);
}

/* dropbits:tokens:start */
/* Optional :root token overrides go here (e.g. --color-content-bg, --color-content-fg) */
/* dropbits:tokens:end */


/* Shaftesbury home section tiles (mirrored FAU hub) */
ul.shaftesbury-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
ul.shaftesbury-tiles > li {
  margin: 0;
}
ul.shaftesbury-tiles img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 0.35rem;
}
ul.shaftesbury-tiles a {
  display: block;
  text-decoration: none;
  font-weight: 600;
}
ul.shaftesbury-tiles span {
  display: block;
}

/* D45 section hub — image tiles (kernel nav-cards.css injects after this file) */
.region-main .db-nav-cards {
  margin: 1.5rem 0;
}
.region-main .db-nav-cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem 1.25rem;
}
.region-main .db-nav-cards__link {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.region-main .db-nav-cards__link:hover,
.region-main .db-nav-cards__link.is-active {
  border: 0;
}
.region-main .db-nav-cards__image {
  aspect-ratio: auto;
  height: auto;
  border-radius: 2px;
  margin-bottom: 0.35rem;
}
.region-main .db-nav-cards__body {
  padding: 0;
  gap: 0;
}
.region-main .db-nav-cards__title {
  font-family: inherit;
  font-weight: 600;
  font-size: inherit;
}

[data-field="richtext"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
[data-field="richtext"] table td {
  vertical-align: top;
  padding: 0.4rem 0.6rem 0.4rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-content-fg, #222) 12%, transparent);
}
[data-field="richtext"] table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  width: 6.5rem;
}
[data-field="richtext"] img {
  max-width: min(100%, 22rem);
  height: auto;
}

/* dropbits:user-styles:end */
