/* ==========================================================================
   FREE TOOLS INDEX — /tools/
   Page: tools/index.html (data: _data/tools.yml).
   Behaviour: /assets/js/tools-index.js (search, AI filter, counts, active
   category). Hero on onyx, directory on bright, final CTA on green.

   Page aliases (CLAUDE.md design rule 10): each category has a fixed colour
   surface, the same on the hero tile and on its section banner, that must
   not follow the section theme. `.tools-tone--*` sets it from the brand
   primitives:
     purple, blue  brand gradients, snow text
     teal          brand gradient with onyx text: snow on light sea green
                   is under 3:1, onyx stays above 4.5:1 across the gradient
     green         yellow-green, onyx text
     carbon        carbon black, snow text
     onyx          onyx, yellow-green text
   Every tone carries a soft radial highlight at the top right.
   ========================================================================== */

.tools-tone--purple,
.tools-tone--teal,
.tools-tone--blue,
.tools-tone--green,
.tools-tone--carbon,
.tools-tone--onyx {
  --tools-glow: radial-gradient(circle at 88% 12%, rgba(var(--js-color-white-rgb), .22), rgba(var(--js-color-white-rgb), 0) 55%);
  --tools-ink: var(--js-color-bright-snow);
  color: var(--tools-ink);
}

.tools-tone--purple {
  --tools-tint-rgb: var(--js-color-purple-light-rgb);
  background-image: var(--tools-glow), var(--js-gradient-purple);
}

.tools-tone--blue {
  --tools-tint-rgb: var(--js-color-blue-light-rgb);
  background-image: var(--tools-glow), var(--js-gradient-blue);
}

.tools-tone--teal {
  --tools-ink: var(--js-color-onyx);
  --tools-tint-rgb: var(--js-color-teal-dark-rgb);
  background-image: var(--tools-glow), var(--js-gradient-teal);
  color: var(--tools-ink);
}

.tools-tone--green {
  --tools-glow: radial-gradient(circle at 88% 12%, rgba(var(--js-color-white-rgb), .35), rgba(var(--js-color-white-rgb), 0) 55%);
  --tools-ink: var(--js-color-onyx);
  --tools-tint-rgb: var(--js-color-yellow-green-rgb);
  background-color: var(--js-color-yellow-green);
  background-image: var(--tools-glow);
  color: var(--tools-ink);
}

.tools-tone--carbon {
  --tools-glow: radial-gradient(circle at 88% 12%, rgba(var(--js-color-white-rgb), .12), rgba(var(--js-color-white-rgb), 0) 55%);
  --tools-tint-rgb: var(--js-color-carbon-black-rgb);
  background-color: var(--js-color-carbon-black);
  background-image: var(--tools-glow);
}

.tools-tone--onyx {
  --tools-glow: radial-gradient(circle at 88% 12%, rgba(var(--js-color-yellow-green-rgb), .28), rgba(var(--js-color-yellow-green-rgb), 0) 55%);
  --tools-ink: var(--js-color-yellow-green);
  --tools-tint-rgb: var(--js-color-onyx-rgb);
  background-color: var(--js-color-onyx);
  background-image: var(--tools-glow);
  color: var(--tools-ink);
}

/* The onyx tile sits on the onyx hero: an outline keeps its edge */
.tools-tile.tools-tone--onyx {
  box-shadow: inset 0 0 0 1px rgba(var(--js-color-yellow-green-rgb), .35);
}

/* ==========================================================================
   BLACK FRIDAY STRIP (campaign ends November 30, 2026: remove this block,
   the include call in tools/index.html and the include itself)
   announcement-bar.css reads the legacy --b26-* variables, which the 2026
   stack does not load: map them to the tokens here. The strip sits below the
   fixed header, so it takes the header's offset; when dismissed (hidden) the
   hero takes it instead.
   ========================================================================== */

.tools-index .announcement-bar {
  --b26-color-onyx: var(--js-color-onyx);
  --b26-color-bright: var(--js-color-bright-snow);
  --b26-color-green: var(--js-color-yellow-green);
  --b26-color-green-light: var(--js-color-green-bright);
  --b26-font-main: var(--font-main);
  --b26-font-secondary: var(--font-secondary);
  --b26-font-button: var(--font-button);
  margin-top: var(--header-height-desktop);
  border-bottom: 1px solid var(--color-border);
}

.tools-index .announcement-bar[hidden] ~ .tools-hero {
  margin-top: var(--header-height-desktop);
}

@media (max-width: 767px) {
  .tools-index .announcement-bar {
    margin-top: var(--header-height-mobile);
  }

  .tools-index .announcement-bar[hidden] ~ .tools-hero {
    margin-top: var(--header-height-mobile);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

/* The solid header already offsets the first section (base.css) */
.tools-hero {
  padding: 64px 40px 80px;
}

.tools-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 56px;
}

.tools-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Same face and size as the eyebrow of /themes/ */
.tools-eyebrow {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
}

/* Size, weight and face come from js-section__title (base.css) */
.tools-hero__title {
  margin: 0;
  max-width: 620px;
  line-height: 1.05;
  text-wrap: balance;
}

.tools-hero__text {
  margin: 4px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-main-op7);
}

.tools-hero__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-main-op6);
}

.tools-hero__note-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--color-accent);
}

/* Mosaic: one square tile per category, each an anchor to its section */
.tools-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tools-tile {
  aspect-ratio: 1 / 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--js-radius-xl);
  text-decoration: none;
  transition: var(--js-transition);
}

.tools-tile:hover {
  color: var(--tools-ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(var(--js-color-onyx-rgb), .35);
}

.tools-tile.tools-tone--onyx:hover {
  box-shadow: inset 0 0 0 1px rgba(var(--js-color-yellow-green-rgb), .35), 0 14px 30px rgba(var(--js-color-onyx-rgb), .35);
}

.tools-tile:focus-visible {
  outline: 3px solid var(--js-color-yellow-green);
  outline-offset: 3px;
}

.tools-tile.is-off {
  opacity: .45;
  pointer-events: none;
}

.tools-tile__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.tools-tile__label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.tools-tile__foot svg {
  flex: 0 0 auto;
  transition: var(--js-transition);
}

.tools-tile:hover .tools-tile__foot svg {
  transform: translateX(3px);
}

/* ==========================================================================
   DIRECTORY — sidebar + sections
   ========================================================================== */

.tools-directory {
  padding: 56px 40px 80px;
}

.tools-directory__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Sidebar -------------------------------------------------------------- */

/* Sticks under the fixed solid header (80px) */
.tools-side {
  position: sticky;
  top: calc(80px + 24px);
  flex: 0 0 264px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tools-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tools-side [hidden] {
  display: none !important;
}

.tools-search {
  position: relative;
}

.tools-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  translate: 0 -50%;
  color: var(--color-main-op6);
  pointer-events: none;
}

.tools-search__input {
  width: 100%;
  height: 48px;
  padding: 0 44px;
  border: 1px solid var(--color-main-op3);
  border-radius: var(--js-radius-lg);
  background: var(--js-color-white);
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-main);
  appearance: none;
}

.tools-search__input::placeholder {
  color: var(--color-main-op6);
}

/* The native clear button is replaced by .tools-search__clear */
.tools-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.tools-search__input:focus-visible {
  outline: 3px solid var(--js-color-onyx);
  outline-offset: 2px;
}

.tools-search__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  translate: 0 -50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--js-radius-md);
  background: transparent;
  color: var(--color-main-op7);
  cursor: pointer;
}

.tools-search__clear:hover {
  background: var(--color-main-op05);
}

.tools-search__clear:focus-visible {
  outline: 3px solid var(--js-color-onyx);
  outline-offset: 1px;
}

.tools-panel {
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--js-radius-xl);
  background: var(--color-background);
}

.tools-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-main);
}

/* One row per category: name and the number of tools it shows now */
.tools-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0 -12px;
  padding: 0 12px;
  border-radius: var(--js-radius-md);
  text-decoration: none;
  color: var(--color-main);
  transition: var(--js-transition);
}

.tools-nav:hover {
  color: var(--color-main);
  background: var(--color-main-op05);
}

.tools-nav.is-active {
  background: var(--js-color-green-tint);
}

.tools-nav.is-active :is(.tools-nav__label, .tools-nav__count) {
  font-weight: 700;
  color: var(--color-main);
}

.tools-nav.is-off {
  opacity: .45;
  pointer-events: none;
}

.tools-nav:focus-visible {
  outline: 3px solid var(--js-color-onyx);
  outline-offset: 2px;
}

.tools-nav__label {
  flex: 1 1 auto;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.tools-nav__count {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary-op7);
}

/* AI checkbox: a real input, visually hidden over a 22px custom box */
.tools-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--color-main);
  cursor: pointer;
}

.tools-check__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tools-check__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-main-op4);
  border-radius: 6px;
  background: var(--js-color-white);
  color: var(--js-color-onyx);
  transition: var(--js-transition);
}

.tools-check__box svg {
  opacity: 0;
}

.tools-check:hover .tools-check__box {
  border-color: var(--js-color-green-dark);
}

.tools-check__input:checked + .tools-check__box {
  border-color: var(--js-color-yellow-green);
  background: var(--js-color-yellow-green);
}

.tools-check__input:checked + .tools-check__box svg {
  opacity: 1;
}

.tools-check__input:focus-visible + .tools-check__box {
  outline: 3px solid var(--js-color-onyx);
  outline-offset: 2px;
}

/* Content -------------------------------------------------------------- */

.tools-content {
  flex: 1 1 0;
  min-width: 0;
}

.tools-content__result {
  position: sticky;
  top: 80px;
  z-index: 2;
  margin: 0 0 16px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-secondary-op7);
  background: var(--color-background);
}

/* Soft edge so cards fade under the sticky line instead of being cut */
.tools-content__result::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 14px;
  background: linear-gradient(var(--color-background), rgba(var(--js-color-bright-rgb), 0));
  pointer-events: none;
}

.tools-group {
  padding-bottom: 56px;
  /* Header (80px) + the sticky result line (~40px) + air */
  scroll-margin-top: calc(80px + 40px + 16px);
}

.tools-group:last-of-type {
  padding-bottom: 0;
}

.tools-group[hidden] {
  display: none;
}

/* Section banner: tone surface, count at the top left, large faint icon */
.tools-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 24px 36px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border-radius: var(--js-radius-xl);
}

/* Count as an eyebrow above the title, in the flow, so it never meets the
   faint icon on the right (same for banners of a few tools) */
.tools-banner__count {
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
}

.tools-banner__icon {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 96px;
  height: 96px;
  translate: 0 -50%;
  opacity: .24;
  pointer-events: none;
}

/* The banner takes its category colour as a light tint (--tools-tint-rgb at
   14%), so the title and text stay dark (--color-main) on every tone; the
   hero tiles and card glyphs keep the full colour */
.tools-index .tools-banner {
  background-color: rgba(var(--tools-tint-rgb), .14);
  background-image: none;
  color: var(--color-main);
}

.tools-index .tools-banner__icon {
  color: rgb(var(--tools-tint-rgb));
  opacity: .4;
}

/* Face and size from js-section__title (base.css); colour follows the tone */
.tools-banner__title {
  position: relative;
  margin: 0;
  max-width: calc(100% - 140px);
  color: inherit;
  text-wrap: balance;
}

.tools-banner__text {
  position: relative;
  margin: 0;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  opacity: .88;
}

/* Pinned category bar (phones only): icon and name stay under the main
   header while the category's cards scroll. The wrapper is a zero-height
   sticky first child of the section, so the next category's bar replaces it
   when the section ends; the script adds .is-on once the banner is gone. */
.tools-pin {
  display: none;
}

@media (max-width: 767px) {
  .tools-pin {
    display: block;
    position: sticky;
    top: calc(var(--header-height-mobile) + 8px);
    z-index: 5;
    height: 0;
    background: none;
    color: var(--color-main);
  }

  /* Masks the 8px between the header and the bar so cards do not show through */
  .tools-pin.is-on::before {
    content: "";
    position: absolute;
    inset: -8px 0 auto;
    height: 8px;
    background: var(--color-background);
  }

  .tools-pin__bar {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--js-radius-lg);
    background-color: var(--color-background);
    background-image: linear-gradient(rgba(var(--tools-tint-rgb), .14), rgba(var(--tools-tint-rgb), .14));
    box-shadow: 0 6px 18px rgba(var(--js-color-onyx-rgb), .12);
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    pointer-events: none;
    transition: opacity .2s ease, translate .2s ease, visibility 0s .2s;
  }

  .tools-pin.is-on .tools-pin__bar {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    pointer-events: auto;
    transition: opacity .2s ease, translate .2s ease;
  }

  .tools-pin__bar:focus-visible {
    outline: 3px solid var(--js-color-onyx);
    outline-offset: 2px;
  }

  .tools-pin__chev {
    flex: 0 0 auto;
    transition: rotate .2s ease;
  }

  .tools-pin__bar[aria-expanded="true"] .tools-pin__chev {
    rotate: 180deg;
  }

  /* Category list under the pinned bar: one shared panel, fixed so it
     follows the bar whichever section is pinned */
  .tools-pinmenu {
    position: fixed;
    z-index: 6;
    top: calc(var(--header-height-mobile) + 8px + 48px + 6px);
    inset-inline: 20px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--js-radius-lg);
    background: var(--color-background);
    box-shadow: 0 12px 28px rgba(var(--js-color-onyx-rgb), .16);
  }

  .tools-pinmenu[hidden] {
    display: none;
  }

  .tools-pinmenu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--js-radius-md);
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-main);
  }

  .tools-pinmenu__link.is-active {
    background: var(--js-color-green-tint);
    font-weight: 700;
  }

  .tools-pinmenu__link.is-off {
    opacity: .45;
    pointer-events: none;
  }

  .tools-pin__bar svg {
    flex: 0 0 auto;
    color: rgb(var(--tools-tint-rgb));
  }

  .tools-pin__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-main);
  }

  .tools-pin__count {
    margin-left: auto;
    flex: 0 0 auto;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-main);
    opacity: .85;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .tools-pin__bar,
  .tools-pin__chev {
    transition: none;
  }
}

@media (min-width: 768px) {
  .tools-pinmenu {
    display: none;
  }
}

/* "Most popular" strip: six compact cards (glyph + name) above the first
   category. The cards reuse .tools-card, so they hover and focus like it. */
.tools-popular {
  margin: 0 0 40px;
}

.tools-popular[hidden] {
  display: none;
}

.tools-popular__title {
  margin: 0 0 14px;
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-main);
}

.tools-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tools-popular__card {
  gap: 12px;
  padding: 16px;
}

.tools-popular__card .tools-card__name {
  font-size: 16px;
}

@media (max-width: 575px) {
  .tools-popular {
    margin-bottom: 32px;
  }

  .tools-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Text-only tool cards, two per row; the whole card is the link */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tools-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--js-radius-lg);
  background: var(--js-color-white);
  text-decoration: none;
  color: var(--color-main);
  transition: var(--js-transition);
}

.tools-card[hidden] {
  display: none;
}

@media (min-width: 576px) {
  .tools-card.is-wide {
    grid-column: 1 / -1;
  }
}

.tools-card:hover {
  color: var(--color-main);
  border-color: var(--js-color-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--js-color-onyx-rgb), .10);
}

.tools-card:focus-visible {
  outline: 3px solid var(--js-color-onyx);
  outline-offset: 3px;
}

.tools-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tools-card__glyph {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--js-radius-md);
}

.tools-card__req {
  font-size: 12px;
  color: var(--color-secondary-op7);
}

.tools-card__name {
  margin: 0;
  font-family: var(--font-main);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-main);
}

.tools-card__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-secondary-op7);
}

.tools-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
}

.tools-card__cta svg {
  transition: var(--js-transition);
}

.tools-card:hover .tools-card__cta svg {
  transform: translateX(3px);
}

/* Empty state ------------------------------------------------------------ */

.tools-empty {
  padding: 56px 0;
  text-align: center;
}

.tools-empty[hidden] {
  display: none;
}

.tools-empty__title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-main);
}

.tools-empty__text {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--color-secondary-op7);
}

.tools-empty__button {
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .tools-tile,
  .tools-card,
  .tools-nav,
  .tools-check__box,
  .tools-tile__foot svg,
  .tools-card__cta svg {
    transition: none;
  }

  .tools-tile:hover,
  .tools-card:hover,
  .tools-tile:hover .tools-tile__foot svg,
  .tools-card:hover .tools-card__cta svg {
    transform: none;
  }
}

/* Final CTA: the shared actions row adds 4 units of top padding under the
   lede; here the head's own gap is enough */
.tools-index #start .js-section__actions {
  padding-top: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Stacked hero is centred (design rule 8); the sidebar moves above the
   content as a row of panels and stops sticking */
@media (max-width: 991px) {
  .tools-hero {
    padding: 48px 24px 64px;
  }

  .tools-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .tools-hero__copy {
    align-items: center;
    text-align: center;
  }

  .tools-hero__title,
  .tools-hero__text,
  .tools-hero__note {
    margin-inline: auto;
  }

  .tools-hero__note {
    justify-content: center;
    text-align: left;
  }

  .tools-mosaic {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .tools-directory {
    padding: 32px 24px 64px;
  }

  .tools-directory__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  /* Only the search box stays: the category tiles of the hero already
     navigate, and the sidebar nav and AI filter are desktop-only. The
     filter script keeps working with them hidden. */
  .tools-directory {
    --tools-header: 80px;
  }

  .tools-side {
    display: contents;
  }

  .tools-filters {
    display: none;
  }

  /* No sticky bar here, so the result line scrolls with the page */
  .tools-content__result {
    position: static;
    margin: 0 0 16px;
    padding: 0;
  }

  .tools-group {
    scroll-margin-top: calc(var(--tools-header) + 16px);
  }
}

@media (max-width: 767px) {
  .tools-hero__text {
    font-size: 17px;
  }

  .tools-directory {
    --tools-header: 60px;
  }
}

@media (max-width: 575px) {
  .tools-hero {
    padding: 40px 20px 56px;
  }

  .tools-mosaic {
    gap: 10px;
  }

  .tools-tile {
    padding: 12px;
  }

  .tools-tile__label {
    font-size: 13px;
  }

  /* The arrow moves to the top right corner so the label gets the full
     width of the tile and "Marketing & analytics" does not split in three */
  .tools-tile {
    position: relative;
  }

  .tools-tile__foot svg {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .tools-tile__icon {
    width: 28px;
    height: 28px;
  }

  .tools-directory {
    padding: 24px 20px 56px;
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tools-banner {
    padding: 22px;
  }

  .tools-banner__title {
    max-width: calc(100% - 84px);
  }

  .tools-banner__icon {
    top: 28px;
    right: 8px;
    width: 64px;
    height: 64px;
    translate: none;
  }

  .tools-banner__title {
    font-size: 32px !important;
  }

  .tools-empty__title {
    font-size: 24px;
  }
}
