/* tools.uncovr.io: one small page style, built on the homepage tokens. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--logo-navy); }
a:hover { color: var(--blue-700); }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.wrap {
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header { display: flex; align-items: center; height: var(--header-h); }
.header__logo { display: flex; align-items: center; min-height: var(--tap); }
.header__logo img { width: auto; height: var(--logo-h); }

.main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-8);
  padding-bottom: var(--space-16);
}
.title {
  color: var(--logo-navy);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-h2);
}
.lead { margin-top: calc(-1 * var(--space-3)); color: var(--gray-600); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }

.block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--card-pad);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.block__title { color: var(--logo-navy); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--weight-bold); }
.block__text { color: var(--gray-600); }

.tools { display: flex; flex-direction: column; align-self: stretch; }
.tools:empty { display: none; }
.tools li + li { border-top: 1px solid var(--gray-200); }
.tools__row { display: flex; align-items: center; gap: var(--space-4); }
.tool {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  min-height: var(--tap);
  padding: var(--space-3) 0;
  text-decoration: none;
}
.download {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-900);
  font-size: var(--fs-label);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background-color 0.15s;
}
.download:hover { background: var(--gray-50); color: var(--gray-900); }
.tool__name { color: var(--logo-navy); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 3px; }
.tool:hover .tool__name { color: var(--blue-700); }
.tool__desc { color: var(--gray-600); font-size: var(--fs-small); line-height: var(--lh-small); }

/* The empty note shows only while its list has no tools. */
.empty { color: var(--gray-600); font-size: var(--fs-small); }
.tools:not(:empty) + .empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0 var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--blue-600);
  color: var(--white);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--blue-700); color: var(--white); }

.back { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--weight-semibold); }
