/* Business Tools hub. Navy and gold stay with the ocean theme.
   Cards and the disclosure sit on top of css/ocean.css. */

body.biz-hub .nav-links a[aria-current="page"],
body.biz-section .nav-links a[href="/business-tools/"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold);
}

body.biz-hub .hero {
  min-height: 0;
  height: auto;
}

body.biz-hub .hero h1 {
  max-width: 12em;
}

.biz-hub .hero .disclosure {
  max-width: 40rem;
  margin: 0;
  padding: 14px 16px;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 16px 16px;
  background: rgba(4, 22, 32, 0.72);
  color: #f4f8f7;
  font-size: 14.5px;
  line-height: 1.5;
}

.biz-hub .disclosure a {
  color: #fff;
  font-weight: 700;
}

.tool-grid,
.fit-grid {
  display: grid;
  gap: 16px;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  padding: 22px 20px 18px;
  color: #f6f4ec;
  text-decoration: none;
  border: 1px solid rgba(168, 220, 214, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--gold) 0 3px, rgba(8, 32, 42, 0.96) 3px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(142, 232, 223, 0.5);
  color: #fff;
}

.tool-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tool-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 197, 106, 0.4);
  border-radius: 14px;
  background: rgba(240, 197, 106, 0.1);
  color: var(--gold);
}

.tool-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tool-kicker {
  display: block;
  margin: 14px 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font: 700 26px/1.2 var(--serif);
  letter-spacing: -0.03em;
}

.tool-card p {
  flex: 1;
  margin: 0 0 16px;
  color: #d5e4e8;
  font-size: 15px;
  line-height: 1.5;
}

.tool-go {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.biz-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(168, 220, 214, 0.22);
  border-left: 4px solid var(--teal);
  border-radius: 16px;
  background: rgba(142, 232, 223, 0.06);
  color: #d5e4e8;
}

.biz-note strong {
  color: #fff;
}

body.biz-section .breadcrumbs a[href="/business-tools/"] {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

body.biz-section .breadcrumbs a[href="/business-tools/"]:hover {
  color: #ffe3a6;
}

body.biz-section .article-body h2,
body.biz-section .article-body h3 {
  scroll-margin-top: 88px;
}

.article-body .fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.2em;
}

.article-body .fit-grid > div {
  padding: 14px 16px 6px;
  border: 1px solid rgba(168, 220, 214, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.article-body .fit-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.article-body .fit-grid ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.article-body .source-list {
  padding-left: 1.2em;
}

.article-body .source-list li {
  margin: 0.35em 0;
}

@media (max-width: 820px) {
  .tool-grid,
  .article-body .fit-grid {
    grid-template-columns: 1fr;
  }

  body.biz-section .article-body td {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
  }

  body.biz-section .article-body td::before {
    max-width: 100%;
  }

  .tool-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: none;
  }

  .tool-card:hover {
    transform: none;
  }
}
