/* Public tools directory and homepage teaser only; shared navigation is untouched. */
.ae-tools-page,
.ae-tools-teaser {
  background: var(--ae-paper, #f7f6f3);
  color: var(--ae-text, #111820);
  font: 400 1rem/1.85 var(--ae-body, Arial, Tahoma, sans-serif);
}
.ae-tools-page {
  min-height: 60vh;
  padding-block: clamp(48px, 6vw, 88px);
}
.ae-tools-shell {
  width: min(calc(100% - 64px), 1280px);
  margin-inline: auto;
  min-width: 0;
}
.ae-tools-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.ae-tools-eyebrow {
  margin: 0 0 16px;
  color: #a64008;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.8;
}
.ae-tools-heading h1,
.ae-tools-copy h2,
.ae-tools-teaser h2 {
  font-family: var(
    --ae-head,
    HailElastic,
    LyonArabic,
    Arial,
    Tahoma,
    sans-serif
  );
  font-weight: 400;
  letter-spacing: -0.018em;
  word-spacing: -0.075em;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}
.ae-tools-heading h1 {
  margin: 0 0 22px;
  font-size: clamp(3.5rem, 6.5vw, 6rem);
}
.ae-tools-lead {
  max-width: 640px;
  margin: 0;
  color: #39424b;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.95;
}
.ae-tools-list {
  display: grid;
  gap: clamp(24px, 3.4vw, 44px);
}

/* RTL auto-placement puts content at right and the illustration at left. */
.ae-tools-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfdcd6;
  border-radius: 28px;
  background: #fffefa;
  box-shadow: 0 8px 32px rgba(40, 38, 34, 0.045);
}
.ae-tools-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 560px;
  padding: clamp(28px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px);
}
.ae-tools-copy,
.ae-tools-outcomes,
.ae-tools-teaser-row > div {
  min-width: 0;
}
.ae-tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 6px 12px;
  border-radius: 100px;
  color: #993905;
  background: #f7e9df;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
}
.ae-tools-icon {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  color: currentColor;
}
.ae-tools-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  color: #282622;
}
.ae-tools-description {
  max-width: 620px;
  margin: 0;
  color: #514b44;
  font-size: 1rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.ae-tools-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.ae-tools-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #c14a08;
  border-radius: 11px;
  background: #c14a08;
  padding: 13px 22px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(193, 74, 8, 0.12);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.ae-tools-action:hover {
  border-color: #a33d06;
  background: #a33d06;
}
.ae-tools-link,
.ae-tools-inline-link {
  color: #282622;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.ae-tools-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
}
.ae-tools-link:hover,
.ae-tools-inline-link:hover {
  color: #a33d06;
}
.ae-tools-action:focus-visible,
.ae-tools-link:focus-visible,
.ae-tools-inline-link:focus-visible {
  outline: 3px solid #c14a08;
  outline-offset: 5px;
}
.ae-tools-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  color: #625b54;
  font-size: 0.8125rem;
  line-height: 1.9;
}
.ae-tools-note svg {
  flex: none;
  margin-top: 5px;
}
.ae-tools-note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ae-tools-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin: 40px 0 0;
  border-top: 1px solid #e7e2dc;
  padding: 28px 0 0;
  list-style: none;
}
.ae-tools-outcomes li {
  min-width: 0;
}
.ae-tools-step {
  display: block;
  margin-bottom: 12px;
  color: #a64008;
  font-size: 0.875rem;
  font-weight: 700;
}
.ae-tools-outcomes h3 {
  margin: 0 0 8px;
  color: #282622;
  font: 700 0.9375rem/1.8 var(--ae-body, Arial, Tahoma, sans-serif);
}
.ae-tools-outcomes p {
  margin: 0;
  color: #625b54;
  font-size: 0.875rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.ae-tools-visual {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: #ecd7c1;
  isolation: isolate;
}
.ae-tools-visual > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ae-tools-visual-caption {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 13px;
  color: #282622;
  background: #fff9f0;
  box-shadow: 0 6px 18px rgba(57, 26, 10, 0.08);
}
.ae-tools-visual-caption svg {
  flex: none;
  color: #a64008;
}
.ae-tools-visual-caption > div {
  min-width: 0;
}
.ae-tools-visual-caption strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ae-tools-visual-caption p {
  margin: 4px 0 0;
  color: #625b54;
  font-size: 0.75rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
/* Keep admin artwork complete and unobscured; decorative art may fill its panel. */
.ae-tools-visual.is-upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 18px;
  background: #f7f0e8;
}
.ae-tools-visual.is-upload > img {
  position: static;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}
.ae-tools-visual.is-upload .ae-tools-visual-caption {
  position: static;
  box-shadow: none;
}

.ae-tools-future,
.ae-tools-empty {
  margin: 32px 0 0;
  color: #47515a;
  font-size: 1rem;
  line-height: 1.9;
}
.ae-tools-empty {
  margin: 0;
  border-block: 1px solid var(--ae-line, rgba(2, 9, 15, 0.14));
  padding-block: 32px;
}
/* Preserve the existing homepage teaser. */
.ae-tools-teaser .ae-tools-eyebrow {
  color: var(--ae-orange, #c14a08);
}
.ae-tools-teaser .ae-tools-link,
.ae-tools-teaser .ae-tools-inline-link {
  color: var(--ae-ink, #02090f);
  font-size: 1rem;
}
.ae-tools-teaser .ae-tools-link:hover,
.ae-tools-teaser .ae-tools-inline-link:hover {
  color: var(--ae-orange, #c14a08);
}

.ae-tools-teaser {
  border-block: 1px solid var(--ae-line, rgba(2, 9, 15, 0.14));
  padding-block: clamp(40px, 5vw, 72px);
}
.ae-tools-teaser-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px 48px;
}
.ae-tools-teaser h2 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
}
.ae-tools-teaser p:not(.ae-tools-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #39424b;
  font-size: 1rem;
  line-height: 1.9;
}

@media (max-width: 980px) and (min-width: 761px) {
  .ae-tools-content {
    padding: 28px 20px;
  }
  .ae-tools-copy h2 {
    font-size: 2.5rem;
  }
  .ae-tools-outcomes {
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .ae-tools-shell {
    width: min(calc(100% - 34px), 640px);
  }
  .ae-tools-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    border-radius: 22px;
    padding: 10px;
  }
  .ae-tools-content {
    min-height: 0;
    padding: 22px 16px 0;
  }
  .ae-tools-copy h2 {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    margin-bottom: 18px;
  }
  .ae-tools-badge {
    margin-bottom: 20px;
  }
  .ae-tools-outcomes {
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
  }
  .ae-tools-visual {
    min-height: 0;
    height: 230px;
  }
  .ae-tools-visual > img {
    object-position: center 58%;
  }
  .ae-tools-visual-caption {
    inset-inline: 14px;
    bottom: 14px;
    padding: 13px 15px;
  }
  .ae-tools-visual.is-upload {
    height: auto;
  }
  .ae-tools-visual.is-upload > img {
    max-height: 320px;
  }
  .ae-tools-teaser-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ae-tools-actions {
    gap: 16px 22px;
  }
}
@media (max-width: 520px) {
  .ae-tools-outcomes {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 4px;
  }
  .ae-tools-outcomes li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }
  .ae-tools-step {
    grid-row: span 2;
    margin: 0;
    padding-top: 2px;
  }
  .ae-tools-outcomes h3 {
    margin-bottom: 4px;
  }
  .ae-tools-outcomes p {
    grid-column: 2;
  }
  .ae-tools-description {
    font-size: 0.9375rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ae-tools-action {
    transition: none;
  }
}
