/* State Laws hub — extends learn-about-the-law.css */

/* Hero breadcrumb (FindLaw uppercase trail) */
.sl-hero-crumb {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-hero-crumb a,
.sl-hero-crumb .current {
  color: rgba(255, 255, 255, 0.9);
}

.sl-hero-crumb .crumb-sep svg {
  stroke: rgba(255, 255, 255, 0.55);
}

.sl-state-hero .hero-img.sl-hero-portrait {
  border-radius: 8px;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
}

.sl-section-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.3;
}

.sl-section-sub {
  font-size: 15px;
  color: var(--gray-600);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.sl-icon-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 12px;
  color: var(--brand);
  font-size: 22px;
}

/* Map section */
.sl-map-section {
  padding: 56px 0 64px;
  background: #fff;
}

.sl-map-inner {
  text-align: center;
}

.sl-map-intro {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
}

.sl-map-intro .sl-show-states-btn {
  margin-left: 4px;
}

.sl-show-states-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.sl-show-states-btn:hover,
.sl-show-states-btn:focus {
  color: var(--brand-hover);
  box-shadow: none;
  outline: none;
}

.sl-show-states-btn.is-open .fa-angle-down {
  transform: rotate(180deg);
}

.sl-show-states-btn .fa-angle-down {
  transition: transform .2s ease;
}

/* Map — cyan states (FindLaw style) */
.sl-map-visual.lal-interactive-map .map-module-svg-state-graphic {
  fill: #00b4d8;
}

.sl-map-visual.lal-interactive-map .map-module-svg-state-link:hover .map-module-svg-state-graphic,
.sl-map-visual.lal-interactive-map .map-module-svg-state-link:focus .map-module-svg-state-graphic {
  fill: #0096c7;
}

.sl-map-visual {
  padding-top: 28px;
}

.sl-state-list {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 900px;
  text-align: left;
  columns: 2;
  column-gap: 24px;
}

.sl-state-list[hidden] {
  display: none !important;
}

.sl-state-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sl-state-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sl-state-list a:hover {
  text-decoration: underline;
}

.sl-state-list .fa-angle-right {
  font-size: 11px;
  color: var(--gray-500);
}

/* Browse by topic */
.sl-topics-section {
  padding: 56px 0 72px;
  background: var(--gray-50);
}

.sl-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.sl-topic-tile {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}

.sl-topic-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}

.sl-topic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sl-topic-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .25) 55%, rgba(15, 23, 42, .15) 100%);
  pointer-events: none;
}

.sl-topic-label {
  position: absolute;
  left: 16px;
  right: 40px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.sl-topic-chevron {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  opacity: .9;
}

/* Dual CTA overrides */
.sl-dual-wrap .lal-diy-links a {
  color: var(--brand);
  font-weight: 600;
}

.sl-help-links {
  margin-top: 8px;
}

.sl-next-form .field-label {
  color: var(--gray-700);
}

.sl-next-form input {
  width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
}

.sl-dual-wrap .lal-diy-links a:hover {
  color: var(--brand-hover);
}

@media (min-width: 768px) {
  .sl-state-list {
    columns: 3;
  }
}

@media (min-width: 992px) {
  .sl-state-list {
    columns: 4;
  }
}

@media (max-width: 900px) {
  .sl-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sl-topic-grid {
    grid-template-columns: 1fr;
  }

  .sl-show-states-btn {
    min-width: 100%;
  }
}
