
/* ===== Header/Footer Branding (keep your existing styles) ===== */
.wh_header,
.wh_footer {
  background-color: black;
}

.wh_publication_title a {
  color: white;
  font-size: 24pt;
  margin-bottom: 0;
}

.wh_header_description {
  color: white;
  background-color: black;
  padding: 0 1.5em 2em;
}

.wh_main_page {
  background-color: rgb(242, 244, 243);
}

/* ===== Tiles base visuals (keep your existing styles) ===== */
.wh_tile {
  background-color: white;
  /* font-weight: bold; */
  border-radius: 5px;
  box-shadow: 5px 5px lightgray;
}

/* ===== ALIGNMENT FIX: image + title inline; shortdesc under both ===== */
/* Make the inner wrapper a 2-column grid:
   - Column 1: image (fixed width = 30px)
   - Column 2: title text (flexible width)
   The short description will span BOTH columns on the next row. */
.wh_tile > div {
  display: grid;
  grid-template-columns: 30px 1fr;  /* image column + text column */
  column-gap: 18px;                  /* spacing between image and title */
  row-gap: 4px;                     /* spacing between title and shortdesc */
  align-items: center;              /* vertically center title with image */
}

/* Image sizing (matches your metadata) */
.wh_tile_image img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* Allow the children of .wh_tile_text to participate in the outer grid.
   This lets us place .wh_tile_title in row 1 col 2, and .wh_tile_shortdesc
   in row 2 spanning both columns, WITHOUT changing HTML structure. */
.wh_tile_text {
  display: contents;
}

/* Title: right column, first row (aligned with the image on the left) */
.wh_tile_title {
  font-size: 25px;
  grid-column: 2;  /* second column (text column) */
  grid-row: 1;     /* first row */
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* Remove any extra margins/padding on inner elements */
.wh_tile_title .topicref,
.wh_tile_title a {
  margin: 0;
  padding: 0;
}

/* Short description: start on next line, span FULL width (cols 1..2) */
.wh_tile_shortdesc {
  grid-column: 1 / span 2;  /* take both columns */
  grid-row: 2;              /* second row */
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: inherit;
}

/* ===== Optional: mobile behavior ===== */
@media (max-width: 480px) {
  .wh_tile > div {
    grid-template-columns: 30px 1fr;
    column-gap: 6px;
  }
  .wh_tile_title a {
    white-space: normal; /* allow wrapping on narrow screens */
  }
}

/* ===== Defensive resets (in case the stock skin adds indents) ===== */
.wh_tile_text,
.wh_tile_title,
.wh_tile_shortdesc {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
``
