.jw-tools {
  --jw-ink: #12202e;
  --jw-muted: #5b6b7a;
  --jw-line: #d5dde4;
  --jw-bg: #f4f7fa;
  --jw-card: #fff;
  --jw-accent: #1e4d7b;
  --jw-accent-2: #c45c26;
  --jw-radius: 12px;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  padding: 0 0 2rem;
  color: var(--jw-ink);
  font-size: 17px;
  line-height: 1.65;
}
.jw-tools *,
.jw-tools *::before,
.jw-tools *::after {
  box-sizing: border-box;
}
.jw-tools-hero {
  --jw-hero-img: none;
  background-color: #0f2740;
  background-image: linear-gradient(
      105deg,
      rgba(10, 24, 40, 0.82) 0%,
      rgba(18, 48, 78, 0.58) 48%,
      rgba(10, 24, 40, 0.4) 100%
    ),
    var(--jw-hero-img);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  color: #f7fbff;
  border-radius: var(--jw-radius);
  padding: clamp(1.35rem, 4.5vw, 2.6rem);
  margin: 1rem 0 1.75rem;
  min-height: 220px;
}
.jw-tools-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jw-tools-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.jw-tools-lede {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
}
.jw-tools-mod {
  background: var(--jw-card);
  border: 1px solid var(--jw-line);
  border-radius: var(--jw-radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin: 0 0 1rem;
}
.jw-tools-mod h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--jw-accent);
}
.jw-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.jw-tools-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--jw-line);
  border-radius: 10px;
  background: var(--jw-bg);
  color: inherit;
  text-decoration: none;
}
.jw-tools-card:hover {
  border-color: var(--jw-accent);
}
.jw-tools-card-k {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jw-accent);
}
.jw-tools-card strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.jw-tools-card p {
  margin: 0;
  color: var(--jw-muted);
  font-size: 0.95rem;
}
.jw-tools-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}
.jw-tools-panel input,
.jw-tools-panel select,
.jw-tools-panel textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--jw-line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-width: 100%;
}
.jw-tools-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.jw-tools-hint,
.jw-tools-back {
  color: var(--jw-muted);
  font-size: 0.92rem;
}
.jw-tools-out {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--jw-bg);
  border-radius: 8px;
  min-height: 3rem;
}
.jw-tools-out p {
  margin: 0 0 0.5rem;
}
.jw-tools-out p:last-child {
  margin-bottom: 0;
}
.jw-tools-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jw-tools-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.jw-tools-table th,
.jw-tools-table td {
  border-bottom: 1px solid var(--jw-line);
  padding: 0.7rem 0.75rem;
  text-align: left;
}
.jw-tools-table thead th {
  background: #1e4d7b;
  color: #fff;
  white-space: nowrap;
}
.jw-tools-ref h2 {
  margin-top: 1.35rem;
}
.jw-tools-ref h2:first-child {
  margin-top: 0;
}
.jw-tools-glossary {
  margin: 0 0 1.25rem;
}
.jw-tools-glossary dt {
  margin: 0.95rem 0 0.3rem;
  font-weight: 650;
  color: var(--jw-accent);
}
.jw-tools-glossary dt:first-child {
  margin-top: 0;
}
.jw-tools-glossary dd {
  margin: 0;
}
.jw-tools-checks {
  border: 1px solid var(--jw-line);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.25rem;
  margin: 0 0 0.85rem;
}
.jw-tools-checks legend {
  font-weight: 650;
  padding: 0 0.35rem;
}
.jw-tools-checks label {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
}
.jw-tools-checks input {
  width: auto;
  margin-top: 0.25rem;
}
.jw-tools-btn {
  display: inline-block;
  background: var(--jw-accent-2);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.jw-tools-panel .jw-tools-btn {
  margin: 0.25rem 0 0.75rem;
}
.jw-tools-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.jw-tools-cta p {
  margin: 0;
  flex: 1 1 16rem;
}
.jw-tools-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jw-tools-links a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--jw-line);
  border-radius: 10px;
  background: var(--jw-card);
  text-decoration: none;
  color: var(--jw-accent);
  font-weight: 600;
}
.jw-tools-links a:hover {
  border-color: var(--jw-accent);
}
@media (max-width: 800px) {
  .jw-tools {
    /*width: calc(100% - 1.25rem);*/
            margin: 15px!important;
    font-size: 16px;
  }
  .jw-tools-grid,
  .jw-tools-row {
    grid-template-columns: 1fr;
  }
  .jw-tools-panel .jw-tools-btn,
  .jw-tools-cta .jw-tools-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}
