/* The tools landing page shares LEMY's chrome while keeping its styles local. */
body.tools-directory-page {
  --td-ink: #f8f2f7;
  --td-muted: #b8adbe;
  --td-rose: #ffafd2;
  --td-line: rgba(225, 179, 207, .14);
  background: radial-gradient(ellipse 65% 35% at 75% 0, #a8286710, transparent 80%), #0b0b12;
  color: var(--td-ink);
  -webkit-font-smoothing: antialiased;
}
.tools-directory-page *, .tools-directory-page *::before, .tools-directory-page *::after { box-sizing: border-box; }
.tools-directory-page .seo-shell { width: min(1140px, calc(100% - 48px)); margin: 28px auto 72px; }
.tools-directory-page .seo-breadcrumb { gap: 10px; color: #a99aad; font-size: 12px; line-height: 1.7; }
.tools-directory-page .seo-breadcrumb a { color: #c6b7ca; text-decoration: none; }
.tools-directory-page .seo-breadcrumb a:hover { color: var(--td-rose); }
.tools-directory-page .seo-breadcrumb [aria-hidden] { color: #675b70; }
.tools-directory-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 35px 0 32px; }
.tools-directory-heading { min-width: 0; }
.tools-directory-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #dca7c1; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.tools-directory-eyebrow > span { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #ec6da6; box-shadow: 0 0 12px #ec6da64d; }
.tools-directory-page .tools-directory-hero h1 { margin: 0; color: var(--td-ink); font: 600 clamp(38px, 4.2vw, 54px)/1.12 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.tools-directory-hero h1 span { color: #f5a9ca; }
.tools-directory-page .tools-directory-hero .seo-lead { max-width: 660px; margin: 15px 0 0; color: var(--td-muted); font-size: 14px; line-height: 1.85; text-wrap: pretty; }
.tools-directory-count { display: flex; flex: none; align-items: center; gap: 15px; padding-left: 28px; border-left: 1px solid var(--td-line); }
.tools-directory-count strong { color: #e6b4d0; font: 500 58px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.04em; }
.tools-directory-count > span { color: #bba9be; font-size: 12px; line-height: 1.7; }
.tools-directory-page .tools-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.tools-directory-page .tools-directory-grid > .seo-card { position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--td-line); border-radius: 22px; background: linear-gradient(145deg, #1b1522, #131119 80%); box-shadow: 0 6px 22px #00000014; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tools-directory-page .tools-directory-grid h2 { margin: 18px 10px 8px; color: #f6edf4; font-size: 16px; font-weight: 750; line-height: 1.5; }
.tools-directory-page .tools-directory-grid h2 a { color: inherit; text-decoration: none; overflow-wrap: normal; }
.tools-directory-grid h2 a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 22px; }
.tools-directory-grid h2 a:focus-visible { outline: none; }
.tools-directory-grid h2 a:focus-visible::after { outline: 2px solid #ffafd2; outline-offset: -3px; }
.tools-directory-visual { position: relative; order: -1; display: grid; place-items: center; min-height: 164px; overflow: hidden; isolation: isolate; border: 1px solid #ffffff06; border-radius: 13px; background: radial-gradient(ellipse at 50% 80%, var(--td-glow, #ea8ab229), transparent 70%), var(--td-panel, #251b2b); }
.tools-directory-visual--peach { --td-glow: #e8916e30; --td-panel: #292024; }
.tools-directory-visual--pink { --td-glow: #e479ae30; --td-panel: #2a1b29; }
.tools-directory-visual--lilac { --td-glow: #c7a6ed30; --td-panel: #231d31; }
.tools-directory-visual--blue { --td-glow: #8cb3db30; --td-panel: #1c2431; }
.tools-directory-visual--violet { --td-glow: #a09ae630; --td-panel: #211d33; }
.tools-directory-visual--gold { --td-glow: #e2b57030; --td-panel: #2b241e; }
.tools-directory-visual::before, .tools-directory-visual::after { content: ""; position: absolute; width: 208px; height: 208px; border: 1px solid #ffffff09; border-radius: 50%; z-index: -1; }
.tools-directory-visual::after { width: 260px; height: 260px; }
.tools-directory-page .tools-directory-visual img { display: block; width: 116px; height: 116px; aspect-ratio: 1; object-fit: contain; border-radius: 26px; box-shadow: 0 12px 20px #00000026; transform: rotate(-6deg); transition: transform .25s ease; }
.tools-directory-grid .seo-card:nth-child(even) img { transform: rotate(6deg); }
.tools-directory-category { position: absolute; top: 12px; left: 13px; color: #e0cddb; font-size: 11px; font-weight: 600; line-height: 1.4; }
.tools-directory-number { position: absolute; right: 14px; bottom: 9px; color: #ffffff26; font: 500 32px/1 "Cormorant Garamond", Georgia, serif; }
.tools-directory-page .tools-directory-description { flex: 1; margin: 0 10px 19px; color: var(--td-muted); font-size: 14px; line-height: 1.8; }
.tools-directory-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 10px 2px; padding-top: 13px; border-top: 1px solid var(--td-line); }
.tools-directory-action { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: var(--td-rose); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tools-directory-action svg { width: 16px; height: 16px; transition: transform .2s ease; }
.tools-directory-detail { color: #a497ad; font-size: 11px; text-align: right; }
@media (hover: hover) {
  .tools-directory-page .tools-directory-grid > .seo-card:hover { border-color: #e887b85c; box-shadow: 0 12px 30px #00000030; transform: translateY(-3px); }
  .tools-directory-grid .seo-card:hover .tools-directory-visual img { transform: rotate(0); }
  .tools-directory-grid .seo-card:hover h2 { color: #ffbfdc; }
  .tools-directory-grid .seo-card:hover .tools-directory-action svg { transform: translateX(3px); }
}
@media (max-width: 1000px) {
  .tools-directory-page .tools-directory-grid { gap: 16px; }
  .tools-directory-page .tools-directory-grid h2 { font-size: 15px; }
  .tools-directory-detail { display: none; }
  .tools-directory-count { padding-left: 20px; gap: 12px; }
}
@media (max-width: 800px) {
  .tools-directory-page .tools-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-directory-hero { padding: 28px 0; gap: 24px; }
  .tools-directory-count { display: none; }
  .tools-directory-page .tools-directory-hero h1 { font-size: 44px; }
  .tools-directory-page .tools-directory-grid h2 { font-size: 16px; }
}
@media (max-width: 520px) {
  .tools-directory-page .seo-shell { width: calc(100% - 32px); margin-top: 19px; margin-bottom: 44px; }
  .tools-directory-page .seo-breadcrumb { font-size: 11px; gap: 7px; }
  .tools-directory-page .seo-breadcrumb [aria-current] { max-width: 210px; }
  .tools-directory-hero { padding: 28px 0 24px; }
  .tools-directory-eyebrow { margin-bottom: 11px; font-size: 9px; letter-spacing: .12em; }
  .tools-directory-page .tools-directory-hero h1 { font-size: 40px; line-height: 1.08; }
  .tools-directory-hero h1 span { display: block; }
  .tools-directory-page .tools-directory-hero .seo-lead { margin-top: 13px; font-size: 13px; line-height: 1.8; }
  .tools-directory-page .tools-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .tools-directory-page .tools-directory-grid > .seo-card { padding: 11px; border-radius: 20px; }
  .tools-directory-visual { min-height: 142px; }
  .tools-directory-page .tools-directory-visual img { width: 103px; height: 103px; border-radius: 23px; }
  .tools-directory-page .tools-directory-grid h2 { margin-top: 16px; font-size: 17px; }
  .tools-directory-page .tools-directory-description { margin-bottom: 15px; font-size: 13px; }
  .tools-directory-detail { display: block; font-size: 10px; }
  .tools-directory-action { min-height: 32px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-directory-page .tools-directory-grid > .seo-card, .tools-directory-page .tools-directory-visual img, .tools-directory-action svg { transition: none; }
  .tools-directory-page .tools-directory-grid > .seo-card:hover, .tools-directory-page .tools-directory-visual img { transform: none; }
}
