/* Use the wordmark colours for service navigation and the editorial card grid. */
@media screen {
  html[data-alphasec-brand] [data-brand-card] {
    --card-accent: var(--brand-red);
    --card-edge: var(--brand-line);
    border-color: var(--card-edge);
  }
  html[data-alphasec-brand] :is(.bg-card, .sector-card, .industry-service-panel, .dg-option,
      .blog-card, .catalog-detail, .course-card, .ipo-service-card, .cyber-card, .related-card) {
    background-color: white;
  }
  html[data-alphasec-brand] [data-brand-card] :is(h2, h3, h2 a, h3 a) { color: var(--brand-navy); }
  html[data-alphasec-brand] :is(.bg-card .bg-number, .sector-card .sector-number) {
    display: inline-flex; align-items: center; gap: .55rem; color: var(--brand-blue);
  }
  html[data-alphasec-brand] :is(.bg-card .bg-number, .sector-card .sector-number)::before {
    content: ''; width: 1.1rem; height: 3px; background: var(--brand-red); flex: none;
  }
  html[data-alphasec-brand] :is(.sector-card, .catalog-detail, .industry-service-panel, .rc-link) {
    border-block-start-color: var(--brand-blue);
  }
  html[data-alphasec-brand] [data-brand-card] :is(.bg-next, .industry-detail-link, .text-link) { color: var(--brand-blue); }
  html[data-alphasec-brand] :is(.bg-next, .industry-detail-link) > [aria-hidden="true"]:not(.brand-card-surface),
  html[data-alphasec-brand] .rc-link > span[aria-hidden="true"],
  html[data-alphasec-brand] [data-brand-card] .text-link::after,
  html[data-alphasec-brand] .bg-card li a::after {
    display: inline-block; color: var(--brand-red);
    transition: transform 180ms ease-out;
  }
  html[data-alphasec-brand] [data-brand-card] .row-open:not(:hover,:focus-visible) { color: var(--brand-red); }
  html[data-alphasec-brand] [data-brand-card="link"] {
    position: relative; isolation: isolate;
    transition: transform 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
  }
  html[data-alphasec-brand] [data-brand-card-link] { position: static; }
  html[data-alphasec-brand] [data-brand-card] .brand-card-surface {
    display: block; position: absolute; inset: 0; z-index: 1;
    width: auto; height: auto; padding: 0; margin: 0;
    border: 0; background: transparent; transform: none; cursor: pointer;
  }
  html[data-alphasec-brand] [data-brand-card="link"]:is(:focus-visible,:has(:focus-visible)) {
    outline: 3px solid var(--brand-blue); outline-offset: 3px; border-color: var(--brand-blue);
  }
  html[data-alphasec-brand] [data-brand-card="link"]:active { background-color: var(--brand-pale); }
  html[data-alphasec-brand] .bg-browse[data-brand-browse] a {
    background: white; border-color: var(--brand-line); color: var(--brand-blue);
  }
  html[data-alphasec-brand] .bg-browse[data-brand-browse] a[aria-current] {
    background: var(--brand-navy); border-color: var(--brand-navy); color: white;
    box-shadow: inset 0 -3px var(--brand-red);
  }
  html[data-alphasec-brand] .bg-browse a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
}
@media screen and (hover: hover) and (pointer: fine) {
  html[data-alphasec-brand] [data-brand-card="link"]:hover {
    border-color: var(--brand-blue); transform: translateY(-2px);
  }
  html[data-alphasec-brand] [data-brand-card="link"]:hover :is(.bg-next, .industry-detail-link) > [aria-hidden="true"]:not(.brand-card-surface),
  html[data-alphasec-brand] [data-brand-card="link"]:hover .text-link::after {
    transform: translateX(3px);
  }
  html[data-alphasec-brand] [data-brand-card="group"] a:hover { text-decoration: underline; text-underline-offset: .18em; }
}
@keyframes brand-cards-arrive { from { opacity: .65; } to { opacity: 1; } }
@media screen and (prefers-reduced-motion: no-preference) {
  #business-goals:target .bg-grid, #industries:target .industry-services-grid,
  #service-catalog:target .all-services, #industries[data-filtered="true"] .industry-service-panel:not([hidden]) {
    animation: brand-cards-arrive 180ms ease-out;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  html[data-alphasec-brand] [data-brand-card],
  html[data-alphasec-brand] [data-brand-card="link"]:hover,
  html[data-alphasec-brand] [data-brand-card] :is(.bg-next, .industry-detail-link) > [aria-hidden="true"],
  html[data-alphasec-brand] [data-brand-card] .text-link::after,
  html[data-alphasec-brand] [data-brand-card] .row-open {
    transition: none !important; transform: none !important;
  }
}
