/* Native page blocks own the content. These rules provide shared presentation. */
.bng-home-tools {
  box-sizing: border-box;
  margin-block: 0;
  padding: 44px 32px 48px;
  color: var(--bng-text, var(--contrast, #f1f5f9));
}
.bng-home-tools *, .bng-home-tools *::before, .bng-home-tools *::after { box-sizing: border-box; }
.bng-home-tools > .wp-block-group__inner-container,
.bng-tool-grid > .wp-block-group__inner-container,
.bng-tool-card > .wp-block-group__inner-container,
.bng-tool-picture > .wp-block-group__inner-container { display: contents; }
.bng-home-tools .bng-tools-heading {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 750;
  color: inherit;
}
.bng-home-tools .bng-tools-intro {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bng-muted, var(--contrast-2, #b7c5d3));
}
.bng-home-tools .bng-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 25px;
  margin: 0;
}
.bng-home-tools .bng-tool-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bng-border, var(--contrast-3, #597185));
  border-color: color-mix(in srgb, var(--bng-border, var(--contrast-3, #597185)) 55%, transparent);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--bng-surface-raised, var(--base, #223240)), var(--bng-surface, var(--base-3, #18232e)) 52%);
  box-shadow: 0 5px 0 #0a1119, 0 6px 0 #59718566, 0 15px 28px #0005, inset 0 1px 0 #ffffff17;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bng-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 #ffffff15;
  z-index: 2;
}
.bng-home-tools .bng-tool-picture {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: var(--bng-surface, var(--base-3, #18232e));
}
.bng-tool-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #17232e00 65%, #17232e4d);
}
.bng-home-tools .bng-tool-image { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; }
.bng-home-tools .bng-tool-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(.95);
  transition: transform .5s ease;
}
.bng-home-tools .bng-tool-summary {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 22px 20px;
  background: linear-gradient(180deg, #07121b00 0%, #07121b55 24%, #07121bf0 100%);
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: 0 1px 3px #000;
  opacity: 0;
  transition: opacity .22s ease;
}
.bng-home-tools .bng-tool-title {
  display: flex;
  align-items: center;
  min-height: 102px;
  margin: 0;
  padding: 19px 20px 21px;
  border-top: 1px solid #9acfe221;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(120deg, #2c3e4b5c, transparent);
  color: inherit;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 650;
  letter-spacing: -.015em;
}
.bng-home-tools .bng-tool-card .bng-tool-title a {
  color: inherit;
  text-decoration: none;
}
/* One ordinary title link stretches over its own card. No nested links or JS. */
.bng-tool-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 15px; }
.bng-home-tools .bng-tool-status {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #c9d9e64d;
  border-radius: 6px;
  background: #101820e8;
  color: #eef4f9;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 2px 7px #0003;
}
.bng-home-tools .bng-tool-card:hover,
.bng-home-tools .bng-tool-card:focus-within {
  transform: translateY(-5px);
  border-color: var(--bng-accent, var(--accent, #67d8ef));
  box-shadow: 0 5px 0 #0a1119, 0 6px 0 #59718588, 0 21px 36px #0007;
}
.bng-tool-card:hover .bng-tool-image img,
.bng-tool-card:focus-within .bng-tool-image img { transform: scale(1.035); }
.bng-tool-card:hover .bng-tool-summary,
.bng-tool-card:focus-within .bng-tool-summary { opacity: 1; }
.bng-tool-title a:focus-visible { outline: none; }
.bng-tool-title a:focus-visible::after { outline: 2px solid var(--bng-accent, var(--accent, #67d8ef)); outline-offset: 5px; }
@media (max-width: 1000px) {
  .bng-home-tools { padding-block-start: 38px; }
  .bng-home-tools .bng-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .bng-home-tools { padding: 32px 20px 42px; }
  .bng-home-tools .bng-tool-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .bng-home-tools .bng-tools-intro { margin-bottom: 24px; font-size: 16px; }
  .bng-home-tools .bng-tool-title { min-height: 78px; padding: 17px 18px; }
  .bng-home-tools .bng-tool-summary { padding: 18px; font-size: 14px; }
}
@media (hover: none), (pointer: coarse) {
  .bng-tool-card .bng-tool-summary { opacity: 1; background: linear-gradient(180deg, #07121b00 20%, #07121be8 100%); }
  .bng-home-tools .bng-tool-card:hover { transform: none; }
  .bng-tool-card:hover .bng-tool-image img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bng-home-tools .bng-tool-card, .bng-tool-card .bng-tool-image img, .bng-tool-card .bng-tool-summary { transition: none; }
  .bng-home-tools .bng-tool-card:hover, .bng-home-tools .bng-tool-card:focus-within,
  .bng-tool-card:hover .bng-tool-image img, .bng-tool-card:focus-within .bng-tool-image img { transform: none; }
}
@media print {
  .bng-home-tools { padding: 24px 0; color: black; }
  .bng-home-tools .bng-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bng-home-tools .bng-tool-card { box-shadow: none; border: 1px solid #aaa; background: white; break-inside: avoid; }
  .bng-home-tools .bng-tool-picture { aspect-ratio: auto; overflow: visible; background: white; }
  .bng-tool-picture::after, .bng-tool-card::before, .bng-tool-card .bng-tool-image { display: none; }
  .bng-home-tools .bng-tool-summary { position: static; opacity: 1; padding: 15px; background: white; color: black; text-shadow: none; }
  .bng-home-tools .bng-tool-status { position: static; display: inline-block; margin: 10px; background: white; color: black; }
  .bng-home-tools .bng-tool-title { min-height: 0; background: white; color: black; }
}
