body {
  min-height: 100vh;
  background: #f6f8fb;
}

.navbar-brand img,
.tool-icon {
  width: 36px;
  height: 36px;
}

.tool-shell {
  max-width: 1120px;
}

.card,
.accordion-item,
.list-group-item,
.btn,
.form-control,
.form-select,
.alert,
.metric-box {
  border-radius: 8px;
}

.tool-card .card {
  animation: tool-card-in 420ms ease both;
  animation-delay: var(--delay, 0ms);
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:focus-visible .card,
.tool-card:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 .9rem 2rem rgba(15, 23, 42, .14) !important;
}

.tool-sections {
  display: grid;
  gap: 2rem;
}

.tool-section {
  scroll-margin-top: 5rem;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: .85rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.35rem;
  margin: 0;
}

.section-heading p {
  color: #667085;
  margin: .1rem 0 0;
}

.section-icon,
.menu-section-icon,
.tool-card-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.section-icon {
  border-radius: 8px;
  font-size: 1.3rem;
  height: 44px;
  width: 44px;
}

.menu-section-icon {
  border-radius: 8px;
  font-size: 1rem;
  height: 28px;
  margin-right: .5rem;
  width: 28px;
}

.tool-card-icon {
  border-radius: 8px;
  color: #fff;
  font-size: 1.35rem;
  height: 52px;
  width: 52px;
}

.tool-card-shell::after {
  content: "";
  height: 76px;
  opacity: .1;
  position: absolute;
  right: -28px;
  top: -28px;
  transform: rotate(18deg);
  width: 76px;
}

.menu-section-teal,
.tool-card-teal .tool-card-icon,
.tool-card-teal::after {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.menu-section-rose,
.tool-card-rose .tool-card-icon,
.tool-card-rose::after {
  background: linear-gradient(135deg, #be123c, #fb7185);
  color: #fff;
}

.menu-section-amber,
.tool-card-amber .tool-card-icon,
.tool-card-amber::after {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff;
}

.tool-card-teal {
  border-color: rgba(20, 184, 166, .26);
}

.tool-card-rose {
  border-color: rgba(244, 63, 94, .24);
}

.tool-card-amber {
  border-color: rgba(245, 158, 11, .28);
}

@keyframes tool-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-box {
  height: 100%;
  border: 1px solid #dbe3ef;
  background: #fff;
  padding: 1rem;
}

.metric-box span {
  display: block;
  color: #667085;
  font-size: .875rem;
}

.metric-box strong {
  display: block;
  margin-top: .25rem;
  color: #111827;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.tool-preview {
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.output-textarea {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
}

.word-preview {
  min-height: 420px;
  background: #fff;
  color: #111827;
  padding: 2rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
}

.word-preview img {
  max-width: 100%;
}

.seo-copy {
  color: #4b5563;
  line-height: 1.7;
}

.datepicker-dropdown,
.datepicker {
  z-index: 2055 !important;
}

.select2-container--bootstrap-5.select2-container--open,
.select2-container--bootstrap-5 .select2-dropdown {
  z-index: 2055;
}

@media print {
  body {
    background: #fff;
  }

  .no-print,
  nav,
  aside,
  footer,
  .tool-sidebar {
    display: none !important;
  }

  main {
    width: 100% !important;
  }

  .word-preview {
    border: 0;
    padding: 0;
  }
}
