:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

.home-card-new-badge {
  position: relative;
  top: -0.45em;
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #1a1a1a;
  background: #ffd54a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  vertical-align: baseline;
  white-space: nowrap;
}

body {
    font-family: var(--bs-body-font-family);
    background: #f8f9fa;
}

/* Valkoinen glass-paneeli (listaus intro, artikkelin CTA ym.) */
.yn-glass-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.25rem;
  box-shadow:
    0 14px 40px rgba(14, 28, 110, 0.07),
    0 2px 8px rgba(14, 28, 110, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.35rem 1.5rem;
}
@media (min-width: 768px) {
  .yn-glass-panel {
    padding: 1.65rem 1.85rem;
  }
}
.yn-glass-panel .yn-glass-title {
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.yn-glass-panel .yn-glass-lead {
  margin: 0;
  color: #5c6570;
  line-height: 1.55;
  max-width: 42rem;
}
.yn-glass-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.yn-glass-cta .yn-glass-lead {
  margin-bottom: 0.85rem;
}


h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
}
.btn-primary {
    background: #0c6af4;
    border: none;
}
.btn-primary:hover {
    background: #0a5bd6;
}
.card {
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.hover-lift {
    transition: all 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Badge valkoisella pohjalla, pehmeä varjo */
.badge.bg-light {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Etusivun hero */
.home-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: stretch;
  margin: 0 0.65rem 0.25rem;
  border-radius: 1.75rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 28, 110, 0.94) 0%, rgba(12, 106, 244, 0.88) 100%);
  box-shadow:
    0 24px 56px rgba(14, 28, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, rgba(255, 255, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 45% at 88% 100%, rgba(255, 255, 255, 0.1), transparent 52%);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 35%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
}
.home-hero > .container {
  position: relative;
  z-index: 1;
}
.home-hero-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.4rem;
}
@media (min-width: 992px) {
  .home-hero-inner {
    padding-top: calc(0.75rem + 15px);
    padding-bottom: 0;
  }
  .home-hero-slogan-img-wrap {
    margin-bottom: -15px;
  }
}
.home-hero .mb-4 {
  margin-bottom: 1rem !important;
}
.home-hero-actions {
  margin: 0 auto 0.5rem;
}
.home-hero-slogan-img-wrap {
  max-width: min(1560px, 96vw);
  margin: 0 auto;
  line-height: 0;
}
.home-hero-slogan-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 216px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.18));
  opacity: 0.96;
}
.home-hero-icon {
  height: 105px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
  flex: 0 0 auto;
}
.home-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem 1.35rem;
  text-align: left;
  margin: 0 auto 1.15rem;
}
.home-hero-brand-text {
  min-width: 0;
}
.home-hero-logo {
  font-family: var(--bs-font-sans-serif);
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}
.home-hero-logo .net {
  font-weight: 500;
  font-size: 0.92em;
  opacity: 0.92;
}
.home-hero-tagline {
  font-family: var(--bs-font-sans-serif);
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9dcff;
  margin: 0.5rem 0 0;
  line-height: 1.25;
}
.home-about-section {
  position: relative;
  margin: 0.75rem 0.65rem;
  padding: 2.75rem 0 3rem;
  border-radius: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 12% 18%, rgba(12, 106, 244, 0.13), transparent 55%),
    radial-gradient(ellipse 55% 60% at 90% 75%, rgba(14, 28, 110, 0.09), transparent 50%),
    linear-gradient(165deg, #eef4ff 0%, #f7f9fc 48%, #e9f1fb 100%);
  border: 1px solid rgba(12, 106, 244, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.home-about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(12, 106, 244, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.home-about-section > .container {
  position: relative;
  z-index: 1;
}
.home-about-title {
  color: #0e1c6e;
  letter-spacing: -0.02em;
}
.home-about-lead {
  color: #4a5563;
  max-width: 40rem;
}
.home-about-section .border.rounded-4 {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(12, 106, 244, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
@media (min-width: 992px) {
  .home-about-section {
    padding: 3.25rem 0 3.5rem;
  }
}
@media (max-width: 575.98px) {
  .home-about-section {
    margin: 0.5rem 0.4rem;
    padding: 2rem 0 2.25rem;
    border-radius: 1.25rem;
  }
}
.home-hero-cat .home-card-new-badge {
  margin-left: 0.2rem;
  font-size: 0.48rem;
}
.home-start-new-badge {
  position: relative;
  top: -0.35em;
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  background: #0c6af4;
  box-shadow: 0 2px 6px rgba(12, 106, 244, 0.35);
  vertical-align: baseline;
  white-space: nowrap;
}
.home-hero-cats-wrap {
  max-width: 920px;
  margin: 0 auto 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.home-hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: none;
  margin: 0;
}
.home-hero-cat {
  flex: 1 1 0;
  min-width: 96px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.45rem;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .2s ease, opacity .2s ease;
}
.home-hero-cat:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}
.home-hero-cat i {
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0.95;
}
.home-hero-cat span {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}
.home-hero-cat-divider {
  width: 1px;
  align-self: stretch;
  min-height: 3.2rem;
  margin: 0.35rem 0;
  background: rgba(255, 255, 255, 0.28);
  flex: 0 0 1px;
}
@media (min-width: 992px) {
  .home-hero {
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 2rem;
  }
}
@media (max-width: 575.98px) {
  .home-hero-brand {
    flex-direction: column;
    text-align: center;
  }
  .home-hero-brand-text {
    text-align: center;
  }
  .home-hero-cats {
    gap: 0.35rem 0;
  }
  .home-hero-cat-divider {
    display: none;
  }
  .home-hero-cat {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 88px;
    max-width: none;
  }
  .home-hero-slogan-img {
    max-height: 174px;
  }
}

/* Etusivu: "Kun etsit jotain muuta kuin massaa" */
.home-massaa {
  position: relative;
  margin: 1.5rem 0.65rem 0;
  padding: 2.75rem 0 3rem;
  border-radius: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 8% 20%, rgba(12, 106, 244, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 60% at 92% 70%, rgba(14, 28, 110, 0.1), transparent 50%),
    linear-gradient(165deg, #eef4ff 0%, #f6f8fc 45%, #e8f0fb 100%);
  border: 1px solid rgba(12, 106, 244, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.home-massaa::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(12, 106, 244, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.9;
}
.home-massaa::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 106, 244, 0.16), transparent 68%);
  pointer-events: none;
  animation: home-massaa-glow 9s ease-in-out infinite alternate;
}
.home-massaa > .container {
  position: relative;
  z-index: 1;
}
@keyframes home-massaa-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-1.5rem, 1.25rem) scale(1.08); opacity: 1; }
}
.home-massaa-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c6af4;
  background: rgba(12, 106, 244, 0.1);
  border: 1px solid rgba(12, 106, 244, 0.16);
}
.home-massaa-title {
  color: #0e1c6e;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.15;
}
.home-massaa-lead {
  color: #4a5563;
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 34rem;
}
.home-massaa-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.home-massaa-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 106, 244, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-massaa-points li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 106, 244, 0.2);
  box-shadow: 0 8px 22px rgba(14, 28, 110, 0.08);
}
.home-massaa-point-icon {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #0c6af4 0%, #0e1c6e 100%);
  box-shadow: 0 6px 14px rgba(12, 106, 244, 0.28);
  font-size: 0.85rem;
}
.home-massaa-points li span:last-child {
  padding-top: 0.3rem;
  color: #2b3340;
  font-weight: 500;
  line-height: 1.35;
}

.home-start-panel {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 18px 44px rgba(14, 28, 110, 0.1),
    0 2px 8px rgba(14, 28, 110, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.home-start-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(12, 106, 244, 0.06) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: home-start-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes home-start-sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
.home-start-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.home-start-panel-kicker {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c6af4;
  background: rgba(12, 106, 244, 0.1);
  border: 1px solid rgba(12, 106, 244, 0.14);
}
.home-start-panel-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0e1c6e;
  letter-spacing: -0.02em;
}
.home-start-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
}
.home-start-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 106, 244, 0.12);
  box-shadow: 0 1px 2px rgba(14, 28, 110, 0.04);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}
.home-start-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12, 106, 244, 0.08), rgba(14, 28, 110, 0.04) 55%, transparent 75%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.home-start-link:hover,
.home-start-link:focus-visible {
  transform: translateY(-3px) translateX(2px);
  border-color: rgba(12, 106, 244, 0.35);
  background: #fff;
  box-shadow:
    0 14px 28px rgba(12, 106, 244, 0.16),
    0 0 0 1px rgba(12, 106, 244, 0.08);
  outline: none;
}
.home-start-link:hover::before,
.home-start-link:focus-visible::before {
  opacity: 1;
}
.home-start-link-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(145deg, #3b8bff 0%, #0c6af4 45%, #0e1c6e 100%);
  box-shadow: 0 8px 16px rgba(12, 106, 244, 0.3);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.home-start-link:hover .home-start-link-icon,
.home-start-link:focus-visible .home-start-link-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 10px 20px rgba(12, 106, 244, 0.4);
}
.home-start-link-text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.home-start-link-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0e1c6e;
  line-height: 1.2;
}
.home-start-link-text span {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.25;
}
.home-start-link-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c6af4;
  background: rgba(12, 106, 244, 0.08);
  font-size: 0.75rem;
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}
.home-start-link:hover .home-start-link-arrow,
.home-start-link:focus-visible .home-start-link-arrow {
  transform: translateX(4px);
  background: #0c6af4;
  color: #fff;
}

@media (min-width: 992px) {
  .home-massaa {
    margin-top: 1.85rem;
    padding: 3.25rem 0 3.5rem;
  }
  .home-start-panel {
    padding: 1.55rem 1.45rem 1.4rem;
  }
}
@media (max-width: 575.98px) {
  .home-massaa {
    margin: 1.15rem 0.4rem 0;
    padding: 2rem 0 2.25rem;
    border-radius: 1.25rem;
  }
  .home-massaa-title {
    font-size: 1.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-massaa::after,
  .home-start-panel::before {
    animation: none;
  }
  .home-massaa-points li,
  .home-start-link,
  .home-start-link-icon,
  .home-start-link-arrow {
    transition: none;
  }
}

/* Varmistaa, että kaikki tekstit ovat valkoisia gradient-hero-osiossa */
section[style*="linear-gradient"] {
    color: white !important;
}
section[style*="linear-gradient"] h1,
section[style*="linear-gradient"] p,
section[style*="linear-gradient"] a:not(.btn) {
    color: white !important;
}
section[style*="linear-gradient"] .home-hero-tagline {
    color: #b9dcff !important;
}
section[style*="linear-gradient"] .home-hero-cat {
    color: #fff !important;
}

/* Painikkeen hover-efekti */
.hover-lift {
    transition: all 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

  .shop-card {
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    border: 2px solid rgba(12, 106, 244, 0.22);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow:
      0 1px 2px rgba(14, 28, 110, 0.04),
      0 0.45rem 1.1rem rgba(14, 28, 110, 0.06);
  }

  .shop-card.shop-card--type-store {
    border-color: rgba(13, 110, 253, 0.55);
  }
  .shop-card.shop-card--type-webshop {
    border-color: rgba(25, 135, 84, 0.55);
  }
  .shop-card.shop-card--type-expert {
    border-color: rgba(111, 66, 193, 0.55);
  }
  .shop-card.shop-card--type-service {
    border-color: rgba(255, 193, 7, 0.7);
  }

  .shop-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 2px 4px rgba(14, 28, 110, 0.05),
      0 0.85rem 1.6rem rgba(14, 28, 110, 0.1) !important;
  }
  .shop-card.shop-card--type-store:hover { border-color: rgba(13, 110, 253, 0.85); }
  .shop-card.shop-card--type-webshop:hover { border-color: rgba(25, 135, 84, 0.85); }
  .shop-card.shop-card--type-expert:hover { border-color: rgba(111, 66, 193, 0.85); }
  .shop-card.shop-card--type-service:hover { border-color: rgba(255, 193, 7, 0.95); }

.ratio-3x2 {
    position: relative;
    width: 100%;
    padding-top: 66.6667%;
  }

  .ratio-3x2>img {
    position: absolute;
    inset: 0;
  }

/* Kuva + nimi kuvan alareunassa */
.shop-card .shop-card-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.shop-card .shop-card-visual img {
  display: block;
}

.shop-card-name-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem 0.55rem;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 55%);
  transition: padding .28s ease, background .28s ease;
}

.shop-card-name-badge {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  max-width: 94%;
  margin: 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 0.45rem;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #141414;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform .28s ease, box-shadow .28s ease;
}

/* Esittely: piilossa → hoverilla nousee kuvan päälle nimen kanssa */
.shop-card-intro-reveal {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-width: 94%;
  margin: 0 auto;
  padding: 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 450;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height .32s ease, opacity .28s ease, transform .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .shop-card--has-intro:hover .shop-card-name-overlay,
  .shop-card--has-intro:focus-within .shop-card-name-overlay {
    padding-top: 2.4rem;
    padding-bottom: 0.7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0) 100%);
  }
  .shop-card--has-intro:hover .shop-card-intro-reveal,
  .shop-card--has-intro:focus-within .shop-card-intro-reveal {
    max-height: 4.2em;
    opacity: 1;
    transform: translateY(0);
  }
  .shop-card--has-intro:hover .shop-card-name-badge,
  .shop-card--has-intro:focus-within .shop-card-name-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
}

@media (hover: none), (pointer: coarse) {
  /* Kosketus: lyhyt esittely aina kevyesti näkyvissä jos olemassa */
  .shop-card--has-intro .shop-card-intro-reveal {
    max-height: 2.8em;
    opacity: 0.95;
    transform: none;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .shop-card--has-intro .shop-card-name-overlay {
    padding-top: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card-intro-reveal,
  .shop-card-name-badge,
  .shop-card-name-overlay {
    transition: none;
  }
}

/* Legacy (jos joku vielä käyttää body-introa) */
.shop-card-intro-body {
  border-top: 1px solid rgba(12, 106, 244, 0.08);
  background: linear-gradient(180deg, rgba(12, 106, 244, 0.025) 0%, #fff 100%);
}
.shop-card-intro {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(33, 37, 41, 0.72);
}

/* City: vasen yläkulma */
.badge-city{
  position:absolute;
  left:.75rem;
  top:.75rem;
  z-index: 2;
  border-radius:999px;
  padding:.40rem .60rem;
  font-weight:700;
  font-size:.78rem;
  background: rgba(0,0,0,.55);
  color:#fff;
  backdrop-filter: blur(4px);
}

/* Type: oikea yläkulma */
.badge-type{
  position:absolute;
  right:.75rem;
  top:.75rem;
  left:auto;                /* tärkeä: ei saa olla left määriteltynä */
  z-index: 2;

  display:inline-flex;      /* EI block */
  align-items:center;
  gap:.35rem;

  width:auto;
  max-width: calc(100% - 1.5rem);
  white-space:nowrap;

  padding:.40rem .60rem;
  border-radius:999px;
  font-weight:800;
  font-size:.78rem;
  letter-spacing:.01em;

  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 .25rem .75rem rgba(0,0,0,.10);

  background-color:#fff !important;  /* default jos tyyppi-luokka puuttuu */
  color:#111 !important;
}

.badge-type.badge-type-secondary{
  top:2.9rem;
}

/* Kevyt tint per tyyppi (pakotetaan näkyviin) */
.badge-type.type-store{
  background-color: rgba(13,110,253,.85) !important;
  border-color: rgba(13,110,253,.25) !important;
  color: #ffffff !important;
}

.badge-type.type-webshop{
  background-color: rgba(25,135,84,.85) !important;
  border-color: rgba(25,135,84,.25) !important;
  color: #ffffff !important;
}

.badge-type.type-expert{
  background-color: rgba(111,66,193,.85) !important;
  border-color: rgba(111,66,193,.25) !important;
  color: #ffffff !important;
}

.badge-type.type-service{
  background-color: rgba(255,193,7,.85) !important;
  border-color: rgba(255,193,7,.30) !important;
  color: #ffffff !important;
}

/* Esittelyn sivupalkki: paikkakunta pill (listauksen badge-henki, vaalea korttipohja) */
.esittely-sidebar-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #1e2124;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.esittely-sidebar-city-pill .fa-location-dot {
  color: #0c6af4;
  font-size: 0.88em;
}