/* tools/index.php styles.
   A plain directory: a title, the tools grouped by what they are for, and one
   closing note. Kept flat to match the tool pages it links to. */

body {
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The site header is styled for a dark hero (white logo and links). This page
   starts on white, so use the dark treatment the header already applies once
   it turns sticky. */
body.tools-hub header .header-inner .logo {
  content: url(../resources/images/argo-logo/argo-logo-black.png);
}

body.tools-hub header .header-inner .menu-container ul li a:not(.dropdown-item) {
  color: var(--gray-900) !important;
}

body.tools-hub header .header-inner .menu-container ul li a:after {
  background: var(--gray-900) !important;
}

body.tools-hub header .menu-btn:not(:checked) ~ .menu-icon .nav-icon,
body.tools-hub header .menu-icon .nav-icon:before,
body.tools-hub header .menu-icon .nav-icon:after {
  background: var(--gray-900);
}

/* ========================================
   Page title (same look as the tool pages' .site-hero)
   ======================================== */
.tools-hero {
  padding: 112px 0 12px;
  text-align: center;
}

.tools-hero h1 {
  margin: 0 0 8px;
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}

.tools-hero p {
  margin: 0 auto;
  max-width: 580px;
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ========================================
   Grouped tool list
   ======================================== */
.tools-section {
  padding: 32px 0 72px;
}

.tool-group + .tool-group {
  margin-top: 44px;
}

.tool-group h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.tool-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 -12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.tool-row:hover {
  background: var(--gray-50);
}

.tool-row:hover .tool-name {
  color: var(--primary-blue);
}

.tool-row:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.tool-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--primary-blue);
}

.tool-icon svg {
  width: 20px;
  height: 20px;
}

.tool-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
}

.tool-desc {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--gray-600);
}

/* ========================================
   Closing note
   ======================================== */
.tools-note {
  padding: 0 0 80px;
}

.tools-note-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.tools-note h2 {
  margin: 0 0 4px;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.tools-note p {
  margin: 0;
  max-width: 560px;
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* button.css loads after this file and sets .btn to width:180px / padding:10px 0,
   which squeezes this label onto two lines. The compound selector wins. */
.tools-note .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--blue-700);
}

/* ========================================
   Footer
   ======================================== */
.dark-section-wrapper {
  background: var(--hero-gradient-start);
}

.dark-section-wrapper .footer {
  background: transparent;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 760px) {
  .tool-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .tools-hero {
    padding-top: 96px;
  }

  .tools-hero h1 {
    font-size: var(--text-2xl);
  }

  .tools-section {
    padding-bottom: 56px;
  }
}
