/* Linguaholic exit-intent popup (blog). Scoped under dialog.lhx; matches the tools site. */
dialog.lhx {
  --lhx-ink: #243746;
  --lhx-body: #4a5568;
  --lhx-muted: #6b7688;
  --lhx-line: #e2e8f0;
  --lhx-paper: #fafaf8;
  --lhx-pale: #b8e4e6;
  --lhx-dark: #275f62;
  --lhx-deep: #1e4d50;
  box-sizing: border-box;
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--lhx-line);
  border-radius: 16px;
  background: var(--lhx-paper);
  color: var(--lhx-body);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}
dialog.lhx.lhx-b_two {
  width: min(800px, calc(100vw - 2rem));
}
dialog.lhx.lhx-c_one {
  width: min(620px, calc(100vw - 2rem));
}
dialog.lhx::backdrop {
  background: rgba(36, 55, 70, 0.55);
  backdrop-filter: blur(2px);
}
dialog.lhx *,
dialog.lhx *::before,
dialog.lhx *::after {
  box-sizing: border-box;
}
dialog.lhx p {
  margin: 0;
  padding: 0;
}
dialog.lhx .lhx-inner {
  position: relative;
  padding: 40px;
}
dialog.lhx .lhx-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lhx-muted);
  cursor: pointer;
}
dialog.lhx .lhx-close:hover {
  background: rgba(226, 232, 240, 0.6);
  color: var(--lhx-ink);
}
dialog.lhx .lhx-heading {
  padding-right: 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lhx-ink);
}
dialog.lhx .lhx-lead {
  margin-top: 8px;
  font-size: 18px;
  color: var(--lhx-muted);
}
dialog.lhx .lhx-eyebrow {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lhx-dark);
}

dialog.lhx .lhx-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
dialog.lhx .lhx-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
dialog.lhx .lhx-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

dialog.lhx a.lhx-card,
dialog.lhx a.lhx-row {
  display: block;
  overflow: hidden;
  border: 1px solid var(--lhx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--lhx-ink);
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
dialog.lhx a.lhx-card:hover,
dialog.lhx a.lhx-row:hover {
  border-color: var(--lhx-pale);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
dialog.lhx a.lhx-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
dialog.lhx .lhx-card-title {
  display: block;
  padding: 12px 14px 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--lhx-ink);
}
dialog.lhx a.lhx-card:hover .lhx-card-title,
dialog.lhx a.lhx-row:hover .lhx-card-title {
  color: var(--lhx-dark);
}

dialog.lhx a.lhx-card-large {
  margin-top: 22px;
}
dialog.lhx a.lhx-card-large .lhx-card-title {
  padding: 18px 22px 0;
  font-size: 22px;
}
dialog.lhx .lhx-btn {
  display: inline-block;
  margin: 12px 20px 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lhx-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
dialog.lhx a.lhx-card-large:hover .lhx-btn {
  background: var(--lhx-deep);
}

dialog.lhx a.lhx-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-right: 16px;
}
dialog.lhx a.lhx-row img {
  display: block;
  width: 224px;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
}
dialog.lhx a.lhx-row .lhx-card-title {
  padding: 0;
}
dialog.lhx .lhx-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--lhx-dark);
}
