/* Production AV brand overrides. Keep this small: layout and components belong in dbgroup-core. */

/*
 * Red text links, as on the old productionav.co.uk. Only links in running text (paragraphs, list items,
 * quotes) inside page and post content: not headings, card titles over photos, buttons, the header or
 * the footer. Two reds, each picked for contrast (WCAG AA, 4.5:1 for normal text):
 *   primary   #dc423d  4.89:1 on black (dark sections, posts)
 *   highlight #ce433b  4.68:1 on white (white sections)
 * Links in post lists (query loops) are left out too: a post title in a list is not a text link.
 */
.wp-block-post-content :is(p, li, blockquote) a:not(.wp-element-button, .wp-block-query a) {
  color: var(--wp--preset--color--primary);
}

.wp-block-post-content .has-base-background-color :is(p, li, blockquote) a:not(.wp-element-button, .wp-block-query a) {
  color: var(--wp--preset--color--highlight);
}

.wp-block-post-content :is(p, li, blockquote) a:not(.wp-element-button, .wp-block-query a):hover {
  text-decoration: underline;
}

/*
 * Header logo. The shared header gives the logo 150px, sized for logos with padding round them; the
 * Production AV SVG is cropped tight (435:62), so at 150px it is only ~21px tall. Wider here instead.
 */
.wp-block-image.brand-logo {
  flex-basis: 260px !important;
}

.wp-block-image.brand-logo img {
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .wp-block-image.brand-logo {
    flex-basis: 200px !important;
  }
}

/* News cards without a featured image show the Production AV dots. */
.post-card:not(:has(.post-card__media))::before { background-image: url(assets/favicon.svg); }
