/* Ehtohakemisto (partials/ehdot-kooste.php). Hero ja pohjatyylit tulevat google-ads-ehdot.css:stä. */

.ehdot-main {
  padding-top: 8px;
  padding-bottom: 96px;
  max-width: 880px;
}

.ehdot-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.ehdot-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--sh-sm, 0 1px 2px rgba(35, 46, 102, 0.04));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ehdot-card:hover,
.ehdot-card:focus-visible {
  border-color: var(--navy);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.ehdot-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.ehdot-card-ico {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy);
}

.ehdot-card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.ehdot-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-dark);
}
.ehdot-card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ehdot-card-arr {
  flex: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  transition: transform 0.2s ease;
}
.ehdot-card:hover .ehdot-card-arr { transform: translateX(4px); }

.ehdot-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-muted);
}
.ehdot-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ehdot-note a:hover { text-decoration-color: var(--pink); }

@media (max-width: 560px) {
  .ehdot-card { padding: 18px 16px; gap: 14px; }
  .ehdot-card-ico { width: 40px; height: 40px; border-radius: 10px; }
  .ehdot-card-title { font-size: 16px; }
  .ehdot-card-arr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ehdot-card, .ehdot-card-arr { transition: none; }
  .ehdot-card:hover, .ehdot-card:focus-visible { transform: none; }
}
