/* Base Styles - Lovable design tokens */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mobile: improve touch targets and prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }

  a, button {
    -webkit-tap-highlight-color: rgba(45, 107, 90, 0.1);
  }
}

/* Prevent horizontal scroll - use clip on html only; body overflow can break position:sticky */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

:root {
  /* Lovable design tokens - forest green primary, amber accent, warm cream */
  --background: #fafaf5;
  --foreground: #292524;
  --card: #f5f3f0;
  --card-foreground: #292524;
  --primary: #2d6b5a;
  --primary-hover: #245548;
  --primary-foreground: #fafaf5;
  --secondary: #f5e6c8;
  --secondary-foreground: #292524;
  --muted: #f0ede8;
  --muted-foreground: #78716c;
  --accent: #e88c3a;
  --accent-foreground: #fafaf5;
  --border: #e8e4df;
  --forest-light: #3d7a6a;

  /* Legacy aliases for compatibility */
  --primary-orange: #e88c3a;
  --primary-orange-hover: #d97a2a;
  --light-orange: #f5e6c8;
  --bg-orange: #fff7ed;
  --secondary-green: #2d6b5a;
  --light-green: #e8f0ed;
  --bg-green: #f0fdf4;
  --beige: #f5e6c8;
  --text-dark: #292524;
  --text-gray: #57534e;
  --text-light: #78716c;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 2.75rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Lovable utilities */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--forest-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-warm-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(245, 230, 200, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(145, 180, 160, 0.2) 0%, transparent 50%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Header - Lovable style */
header {
  background: rgba(250, 250, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 101;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary);
}

.logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: rotate(12deg);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
}

.mobile-menu-btn span {
  width: 2rem;
  height: 0.25rem;
  background: var(--primary-orange);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation - Lovable style */
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Main - full width for section backgrounds (Lovable style) */
main {
  width: 100%;
}

/* Hero Section - Lovable style (full-width background) */
.hero {
  padding: 4rem 1rem 5rem;
  background: var(--background);
  background-image: radial-gradient(circle at 20% 50%, rgba(245, 230, 200, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(145, 180, 160, 0.2) 0%, transparent 50%);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 2rem 6rem;
  }
  .hero-inner {
    gap: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.trust-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--forest-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  padding: 0.08em 0.15em 0.08em 0.08em;
  display: inline-block;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(45, 107, 90, 0.1);
  object-fit: cover;
  max-height: 520px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 6rem;
  height: 6rem;
  background: var(--secondary);
  border-radius: 1rem;
  z-index: -1;
  animation: float 4s ease-in-out infinite;
}

.providers-hero {
  min-height: 70vh;
}

/* Shared hero image sizing for Providers, UK ID Laws, Learn pages - consistent dimensions */
.providers-hero .hero-image img,
.uk-law-hero .hero-image img,
.learn-hero .hero-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  max-height: none;
}

@media (min-width: 640px) {
  .providers-hero .hero-image img,
  .uk-law-hero .hero-image img,
  .learn-hero .hero-image img {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .providers-hero .hero-image img,
  .uk-law-hero .hero-image img,
  .learn-hero .hero-image img {
    height: 520px;
  }
}

/* Homepage hero - Lovable's hero image sizing (extends above/below text block) */
.hero-home {
  min-height: 75vh;
  gap: 5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-home {
    min-height: 80vh;
    gap: 7rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.hero-home .hero-content {
  justify-self: start;
}

.hero-home .hero-image {
  justify-self: end;
}

.hero-home .hero-image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

/* Soft overlay to blend image background with page background (#fafaf5) */
.hero-home .hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--background);
  opacity: 0.15;
  pointer-events: none;
  border-radius: 1.5rem;
}

.hero-home .hero-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  max-height: none;
}

@media (min-width: 640px) {
  .hero-home .hero-image img {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .hero-home .hero-image img {
    height: 520px;
  }
}

@media (max-width: 968px) {
  .hero {
    text-align: center;
    min-height: auto;
    padding: 4rem 1rem 3rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-home {
    min-height: 75vh;
  }
  
  .hero-home .hero-content,
  .hero-home .hero-image {
    justify-self: center;
  }
  
  .providers-hero {
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image-wrapper::before {
    display: none;
  }
}

/* ID Tags Guide hero – background image with text overlay (constrained width to avoid over-cropping) */
.id-tags-hero .hero-inner {
  grid-template-columns: 1fr;
}
.id-tags-hero {
  text-align: center;
  min-height: 420px;
  background-image: url("../images/hero%20background%20-%20Copy.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  border-radius: 1.5rem;
}

.id-tags-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  z-index: 1;
}

.id-tags-hero .hero-content {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.id-tags-hero .id-tags-hero-badge {
  display: inline-block;
  background: var(--light-green);
  color: var(--secondary-green);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.id-tags-hero h1 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.id-tags-hero p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons - Lovable style, touch-friendly min 44px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(45, 107, 90, 0.2);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(45, 107, 90, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  border-color: var(--border);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero .btn-secondary {
  margin-left: 0;
}

/* Filter Section - Lovable style */
.filter-section {
  background: transparent;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.filter-section h2 {
  margin-bottom: 1rem;
  color: var(--foreground);
  font-family: 'Playfair Display', Georgia, serif;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: rgba(45, 107, 90, 0.4);
}

.filter-group-checkbox {
  display: flex;
  align-items: flex-end;
}

.filter-group-checkbox .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
}

.filter-group-checkbox .checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Info note - Lovable style */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 230, 200, 0.7);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  max-width: 48rem;
}

.info-note svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-note p {
  font-size: 0.875rem;
  color: var(--secondary-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Provider Cards - Lovable style */
.providers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1536px) {
  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.provider-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 0;
  transition: all 0.5s;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.provider-card:hover {
  box-shadow: 0 20px 25px -5px rgba(45, 107, 90, 0.05);
  transform: translateY(-4px);
}

.provider-card-inner {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.provider-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.provider-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.provider-tag.mobile {
  background: rgba(45, 107, 90, 0.1);
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Opening hours on provider cards */
.contact-item--hours {
  align-items: flex-start;
}

.provider-hours {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hours-row {
  display: flex;
  gap: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #666;
}

.hours-day {
  font-weight: 600;
  min-width: 3.25rem;
  color: #555;
}

.hours-time {
  color: #777;
}

.provider-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.provider-attr-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  background: #2d6b5a;
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.4;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.provider-rating .stars {
  color: var(--accent);
}

.provider-rating .rating-num {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.provider-rating .review-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.provider-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: rgba(45, 107, 90, 0.5);
  flex-shrink: 0;
}

.price-badge {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 0 1.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-item svg {
  width: 1rem;
  height: 1rem;
  color: rgba(45, 107, 90, 0.5);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--primary);
}

.provider-links {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.link-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.link-website {
  background: var(--accent);
  color: var(--accent-foreground);
}

.link-website:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.2);
}

.link-pawthority {
  background: var(--muted);
  color: var(--primary);
  border: 1px solid var(--border);
}

.link-pawthority:hover {
  background: var(--border);
}

.provider-card a[href*="google.com"]:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

/* Section styles - How it works, Beyond Microchipping */
.section-block {
  padding: 3.5rem 1rem;
}

@media (min-width: 1024px) {
  .section-block {
    padding: 4rem 2rem;
  }
}

.section-block.bg-muted {
  background: rgba(240, 237, 232, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-block h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .section-block h2 {
    font-size: 2.25rem;
  }
}

.section-block .section-desc {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* How it works cards */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.5s;
}

.step-card:hover {
  box-shadow: 0 20px 25px -5px rgba(45, 107, 90, 0.05);
}

.step-card .step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--border);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.step-card .step-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(45, 107, 90, 0.1);
  color: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.step-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Beyond Microchipping cards */
.resource-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.5s;
  display: block;
}

.resource-card:hover {
  box-shadow: 0 25px 50px -12px rgba(45, 107, 90, 0.1);
}

.resource-card-image {
  height: 10rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .resource-card-image {
    height: 11rem;
  }
}

.resource-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.resource-card:hover .resource-card-image img {
  transform: scale(1.05);
}

.resource-card-body {
  padding: 1.25rem;
}

.resource-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resource-card-body h3 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.resource-card-body p {
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.resource-card-cta {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s;
}

.resource-card:hover .resource-card-cta {
  gap: 0.5rem;
}

/* Partnership CTA - Lovable full-width green section */
.partnership-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4.5rem 1rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .partnership-cta {
    padding: 5.5rem 2rem;
  }
}

.partnership-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(61, 122, 106, 0.2);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(-50%, -50%);
}

.partnership-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(232, 140, 58, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(33%, 33%);
}

.partnership-cta-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.partnership-cta .heart-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
  animation: float 4s ease-in-out infinite;
}

.partnership-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: inherit;
}

@media (min-width: 640px) {
  .partnership-cta h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .partnership-cta h2 {
    font-size: 3rem;
  }
}

.partnership-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-foreground);
  color: var(--primary);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.3s, box-shadow 0.3s;
}

.partnership-cta .btn-cta:hover {
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pawthority callout (index) – Lovable alternative: use partnership-cta for full CTA */
.pawthority-callout {
  width: 100%;
  margin-bottom: 0;
}

.pawthority-callout-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0;
  width: 100%;
  height: 260px;
  max-height: 280px;
  background: var(--light-green);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pawthority-callout-card:hover {
  transform: scale(1.01);
  opacity: 0.98;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pawthority-callout-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pawthority-callout-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-green);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pawthority-callout-heading {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.pawthority-callout-text {
  font-size: 0.8125rem;
  color: var(--text-gray);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  max-width: 100%;
}

.pawthority-callout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: background 0.2s;
}

.pawthority-callout-card:hover .pawthority-callout-btn {
  background: var(--primary-hover);
}

.pawthority-callout-image {
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.pawthority-callout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .pawthority-callout-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 200px;
  }

  .pawthority-callout-content {
    padding: 0.875rem 1rem;
    order: 1;
  }

  .pawthority-callout-heading {
    font-size: 1rem;
  }

  .pawthority-callout-text {
    font-size: 0.75rem;
  }

  .pawthority-callout-image {
    order: 0;
    height: 240px;
    min-height: 240px;
  }

  .pawthority-callout-image img {
    height: 100%;
  }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* Footer - Lovable style */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 4rem 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2rem;
  }
}

/* ========================================
   MOBILE RESPONSIVE (320px - 768px)
   iPhone SE (375px), iPhone 12/13/14 (390px),
   Galaxy (360px), iPad (768px)
   ======================================== */

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
  }

  /* Section blocks - tighter mobile padding */
  .section-block {
    padding: 2.5rem 1rem !important;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Partnership CTA - mobile */
  .partnership-cta {
    padding: 2.5rem 1rem !important;
  }

  .partnership-cta h2 {
    font-size: 1.5rem !important;
  }

  .partnership-cta .btn-cta {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }

  /* Resource cards - single column */
  .resource-grid {
    gap: 1rem;
  }

  .resource-card-body {
    padding: 1rem;
  }

  /* Steps grid - single column */
  .steps-grid {
    gap: 1rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  /* Mobile Menu - Touch target 44px */
  .mobile-menu-btn {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 11px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .mobile-menu-overlay {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
  }
  
  nav a {
    width: 100%;
    padding: 1rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1.0625rem;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
  }
  
  nav a:last-child {
    border-bottom: none;
  }
  
  nav a.active::after {
    display: none;
  }

  /* Main content - reduced padding */
  /* Override inline section/article padding on mobile */
  main > section,
  main > article {
    padding: 2rem 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1rem !important;
    margin-bottom: 2rem !important;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .trust-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }

  .hero .btn,
  .hero-content .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
    min-height: 48px;
  }

  .hero .btn-secondary,
  .hero-content .btn-secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  /* Info note - providers page */
  .info-note {
    padding: 1rem !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-image img {
    max-height: 280px;
    border-radius: 12px;
  }

  /* Hero images - consistent mobile height for page heroes */
  .providers-hero .hero-image img,
  .uk-law-hero .hero-image img,
  .learn-hero .hero-image img {
    height: 280px !important;
    max-height: 280px;
  }

  /* UK law / ID tags / Learn content - mobile padding */
  .uk-law-content {
    padding: 0 1rem 3rem !important;
  }

  .uk-law-section {
    margin-bottom: 3rem;
  }

  .uk-law-section-header h2 {
    font-size: 1.375rem !important;
  }

  /* ID tags hero - mobile spacing */
  .id-tags-hero {
    margin-top: 1.5rem;
    min-height: 320px;
    padding: 2.5rem 1rem 3rem !important;
  }

  .id-tags-hero h1 {
    font-size: 1.5rem !important;
  }

  /* Providers page content wrapper */
  .providers-content {
    padding: 0 1rem 3rem !important;
  }

  /* Filter section */
  .filter-section {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .filters {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-group select,
  .filter-group input {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Info/alert boxes in filter section - wrap on narrow screens */
  .filter-section > div[style*="display: flex"] {
    flex-wrap: wrap;
  }

  /* Provider cards */
  .providers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .provider-card {
    padding: 1.25rem;
  }

  .provider-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .link-btn {
    flex: none;
    min-height: 44px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Providers coverage section - mobile */
  .coverage-section {
    padding: 2rem 1rem !important;
    margin-top: 2rem !important;
  }

  .coverage-section > div:first-child {
    margin-bottom: 2rem !important;
  }

  .coverage-section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .coverage-section [style*="padding: 1.5rem"] {
    padding: 1.25rem !important;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-container {
    padding: 1.5rem 1rem 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4 {
    margin-bottom: 0.75rem;
  }

  .footer-links li {
    margin-bottom: 0.25rem;
  }

  .footer-bottom {
    padding-top: 1rem;
  }

  .footer-bottom p {
    margin: 0.125rem 0;
  }
}

/* Tablet / Small desktop (480px - 768px) */
@media (max-width: 600px) {
  main > section,
  main > article {
    padding: 1.75rem 1rem !important;
  }

  .hero h1 {
    font-size: 1.625rem;
  }
}

/* Small phones (360px - 480px) - Galaxy, etc. */
@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
  }

  main > section,
  main > article {
    padding: 1.5rem 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero {
    padding: 2rem 0.75rem !important;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .filter-section {
    padding: 1.25rem 0.75rem;
  }

  .provider-card {
    padding: 1rem;
  }

  .section-block {
    padding: 2rem 0.75rem !important;
  }

  .partnership-cta {
    padding: 2rem 0.75rem !important;
  }

  .partnership-cta h2 {
    font-size: 1.375rem !important;
  }

  .uk-law-content {
    padding: 0 0.75rem 2.5rem !important;
  }

  .id-tags-hero {
    margin-top: 1.25rem;
    padding: 2rem 0.75rem 2.5rem !important;
  }

  .coverage-section {
    padding: 1.5rem 0.75rem !important;
    margin-top: 1.5rem !important;
  }

  /* Page-specific hero sections (providers, learn, etc.) */
  main section h1 {
    font-size: 1.75rem !important;
  }

  /* Footer mobile */
  .footer-content {
    padding: 1.25rem 0.75rem 1.25rem;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .footer-container {
    padding: 1.25rem 0.75rem 1.25rem;
  }
}

/* Extra small (320px) - iPhone SE portrait */
@media (max-width: 375px) {
  .header-container {
    padding: 0 0.625rem;
  }

  .logo {
    font-size: 1.125rem;
  }

  main > section,
  main > article {
    padding: 1.25rem 0.625rem !important;
  }

  .hero {
    padding: 1.5rem 0.625rem !important;
  }

  .hero h1 {
    font-size: 1.375rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .section-block {
    padding: 1.75rem 0.625rem !important;
  }

  .partnership-cta {
    padding: 1.75rem 0.625rem !important;
  }

  .partnership-cta h2 {
    font-size: 1.25rem !important;
  }

  .uk-law-content {
    padding: 0 0.625rem 2rem !important;
  }

  .id-tags-hero {
    margin-top: 1rem;
    min-height: 280px;
    padding: 1.5rem 0.625rem 2rem !important;
  }

  .id-tags-hero h1 {
    font-size: 1.375rem !important;
  }

  main section h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .filter-section h2 {
    font-size: 1.25rem;
  }

  .providers-content {
    padding: 0 0.625rem 2.5rem !important;
  }

  .coverage-section {
    padding: 1.25rem 0.625rem !important;
  }

  nav {
    width: 85%;
    padding: 5rem 1rem 2rem;
  }

  /* Footer small screens */
  .footer-content {
    padding: 1rem 0.625rem 1rem;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .footer-container {
    padding: 1rem 0.625rem 1rem;
  }

  .footer-section h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p,
  .footer-links a {
    font-size: 0.8125rem;
  }
}

/* Minimum width - ensure readability */
@media (max-width: 320px) {
  body {
    font-size: 15px;
  }

  /* Footer - smallest screens */
  .footer-content {
    padding: 0.75rem 0.5rem 0.75rem;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .footer-container {
    padding: 0.75rem 0.5rem 0.75rem;
  }

  footer {
    margin-top: 2rem;
    padding: 1rem 0;
  }

  main > section,
  main > article {
    padding: 1rem 0.5rem !important;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
}

/* Fix grids with minmax that cause overflow on narrow screens */
@media (max-width: 768px) {
  /* Index.html "How it works" - minmax(280px) */
  main section div[style*="minmax(280px)"] {
    grid-template-columns: 1fr !important;
  }

  /* Index.html "Beyond Microchipping" - minmax(300px) */
  main section div[style*="minmax(300px)"] {
    grid-template-columns: 1fr !important;
  }

  /* Providers coverage grid - minmax(250px) */
  main section div[style*="minmax(250px)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Tables - horizontal scroll with proper styling */
@media (max-width: 768px) {
  table {
    font-size: 0.8125rem !important;
  }

  th, td {
    padding: 0.5rem 0.5rem !important;
  }

}

/* uk-pet-id-law icon-section - wrap on small screens */
@media (max-width: 480px) {
  .icon-section {
    flex-wrap: wrap;
  }

  .icon-section h2 {
    flex: 1 1 100%;
  }

  .new-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ID tags & Learn - mobile component optimizations */
@media (max-width: 768px) {
  .pros-cons-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .id-tags-solution-grid {
    gap: 1rem;
  }

  .id-tags-solution-card {
    padding: 1rem;
  }

  .id-tags-service-card {
    padding: 1rem;
  }

  .id-tags-rec-card {
    padding: 1.25rem;
  }

  .learn-section {
    margin-bottom: 3rem;
  }

  .learn-section-header h2 {
    font-size: 1.25rem !important;
  }

  .uk-law-summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .uk-law-summary-card {
    padding: 1.25rem;
  }

  .uk-law-cta {
    padding: 2rem 1rem;
  }

  .uk-law-cta h2 {
    font-size: 1.25rem !important;
  }
}

/* Footer links - touch friendly */
@media (max-width: 768px) {
  .footer-links a {
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 44px;
    line-height: 1.4;
  }

  .footer-section h4 {
    font-size: 1rem;
  }
}

/* Prevent text overflow */
@media (max-width: 768px) {
  main p,
  main li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  main a {
    word-wrap: break-word;
  }
}

/* Enhanced Footer Styles */
footer {
  width: 100%;
  overflow-x: hidden;
}

footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr; /* Mobile first - single column */
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-logo:hover {
  color: var(--primary);
}

.footer-logo .footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.footer-section {
  min-width: 0; /* Prevents grid overflow on mobile */
  word-wrap: normal;
  overflow-wrap: normal;
}

.footer-section h4 {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: normal;
  word-break: normal;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: var(--text-gray);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Table of Contents (shared across guide pages) */
.toc {
  background: var(--bg-orange);
  padding: 1.5rem 1.75rem;
  border-radius: 0.75rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.25rem;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

.toc-list a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--primary);
  background: rgba(45, 107, 90, 0.08);
}

.toc-list a .toc-chevron {
  width: 16px;
  height: 16px;
  color: var(--primary);
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.toc-list a:hover .toc-chevron {
  opacity: 1;
  transform: translateX(2px);
}

@media (min-width: 769px) {
  .toc {
    position: sticky;
    top: 5rem;
  }
}

.toc-toggle {
  display: none;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
}

.toc-toggle:hover {
  background: rgba(45, 107, 90, 0.05);
}

.toc-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.toc.collapsed .toc-toggle svg {
  transform: rotate(-90deg);
}

.toc.collapsed .toc-list {
  display: none;
}

@media (max-width: 768px) {
  .toc-toggle {
    display: flex;
  }

  .toc .toc-title {
    display: none;
  }

  .toc .toc-list {
    padding-top: 0.5rem;
  }

  .toc {
    position: static;
    padding: 1rem 1.25rem;
  }

  .toc.collapsed {
    padding-bottom: 1rem;
  }
}

.toc-section {
  scroll-margin-top: 5rem;
}

/* ========================================
   UK ID Laws page - Lovable design
   ======================================== */
.uk-law-hero {
  min-height: auto;
  padding: 4rem 1rem 5rem;
}

@media (min-width: 1024px) {
  .uk-law-hero {
    padding: 5rem 2rem 6rem;
  }
}

/* Learn page hero - Lovable's tighter design */
.learn-hero {
  min-height: auto;
  padding: 2.5rem 1rem 3rem;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .learn-hero {
    padding: 3rem 2rem 3.5rem;
    gap: 2.5rem;
  }
}

.learn-hero .trust-badge {
  margin-bottom: 0.5rem;
}

.learn-hero h1 {
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.learn-hero .hero-content p {
  margin-bottom: 0;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .learn-hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .learn-hero h1 {
    font-size: 2.75rem;
  }
}

.uk-law-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

@media (min-width: 1024px) {
  .uk-law-content {
    padding: 0 2rem 7rem;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.uk-law-toc {
  display: none;
}

@media (min-width: 1024px) {
  .uk-law-toc {
    display: block;
    width: 14rem;
    flex-shrink: 0;
    align-self: stretch; /* full height so sticky TOC can stick within scroll */
  }
}

.uk-law-toc-inner {
  position: -webkit-sticky;
  position: sticky;
  top: 6rem;
  z-index: 10;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.uk-law-toc-inner h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.uk-law-toc-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uk-law-toc-inner li {
  margin-bottom: 0.625rem;
}

.uk-law-toc-inner a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.uk-law-toc-inner a:hover {
  color: var(--primary);
}

.uk-law-main {
  flex: 1;
  min-width: 0;
}

.uk-law-section {
  scroll-margin-top: 6rem;
  margin-bottom: 4rem;
}

.uk-law-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.uk-law-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(45, 107, 90, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.uk-law-section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 640px) {
  .uk-law-section-header h2 {
    font-size: 1.875rem;
  }
}

.uk-law-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.uk-law-summary-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .uk-law-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .uk-law-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.uk-law-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: box-shadow 0.3s;
}

.uk-law-summary-card:hover {
  box-shadow: 0 10px 25px -5px rgba(45, 107, 90, 0.05);
}

.uk-law-summary-card .emoji {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.uk-law-summary-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.uk-law-summary-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

.uk-law-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .uk-law-card {
    padding: 2rem;
  }
}

.uk-law-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.uk-law-card p,
.uk-law-card ul {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0;
}

.uk-law-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uk-law-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.uk-law-check-list li:last-child {
  margin-bottom: 0;
}

.uk-law-check-list .check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Pros/Cons grid - horizontal side-by-side layout (Lovable style) */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .pros-cons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.pros-cons-grid .uk-law-card {
  padding: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .pros-cons-grid .uk-law-card {
    padding: 1.5rem;
  }
}

.pros-cons-grid .uk-law-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.pros-cons-grid .uk-law-check-list li {
  margin-bottom: 0.5rem;
}

.pros-cons-grid .uk-law-check-list li:last-child {
  margin-bottom: 0;
}

/* Lovable-style pros/cons: solid circular icons */
.pros-card .uk-law-check-list .check-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.cons-card .uk-law-check-list .check-icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.uk-law-check-list span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.uk-law-callout {
  border-radius: 1rem;
  border: 1px solid;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.uk-law-callout.info {
  background: rgba(45, 107, 90, 0.05);
  border-color: rgba(45, 107, 90, 0.2);
}

.uk-law-callout.warning {
  background: rgba(232, 140, 58, 0.1);
  border-color: rgba(232, 140, 58, 0.3);
}

.uk-law-callout.success {
  background: rgba(45, 107, 90, 0.05);
  border-color: rgba(45, 107, 90, 0.2);
}

.uk-law-callout p:first-child {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.uk-law-callout p:last-child,
.uk-law-callout > div {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

.uk-law-callout.info .callout-icon { color: var(--primary); }
.uk-law-callout.warning .callout-icon { color: var(--accent); }
.uk-law-callout.success .callout-icon { color: var(--primary); }

.uk-law-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .uk-law-cta {
    padding: 3rem;
  }
}

.uk-law-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: inherit;
}

@media (min-width: 640px) {
  .uk-law-cta h2 {
    font-size: 1.875rem;
  }
}

.uk-law-cta p {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.uk-law-cta .uk-law-compare p {
  margin-bottom: 1rem;
}

.uk-law-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.uk-law-cta .btn-cta:hover {
  opacity: 0.9;
}

.uk-law-cta .btn-cta-secondary {
  background: var(--primary-foreground);
  color: var(--primary);
}

.uk-law-cta .btn-cta-secondary:hover {
  opacity: 0.9;
}

.uk-law-cta .sub-link {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 1.5rem;
}

.uk-law-cta .sub-link a {
  color: inherit;
  text-decoration: underline;
}

.uk-law-cta .sub-link a:hover {
  opacity: 1;
}

.uk-law-disclaimer {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.uk-law-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}

.uk-law-disclaimer a:hover {
  color: var(--primary-hover);
}

/* UK Law - comparison grid for collar tags */
.uk-law-compare {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .uk-law-compare {
    grid-template-columns: repeat(2, 1fr);
  }
}

.uk-law-db-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .uk-law-db-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.id-tags-service-grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .id-tags-service-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .id-tags-service-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.uk-law-db-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.uk-law-db-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.uk-law-db-item p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Mobile TOC for UK Laws */
.uk-law-toc-mobile {
  display: block;
  margin-bottom: 2rem;
  background: var(--card);
}

@media (min-width: 1024px) {
  .uk-law-toc-mobile {
    display: none;
  }
}

/* Back to top - UK Laws */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(45, 107, 90, 0.3);
  z-index: 50;
  text-decoration: none;
  transition: all 0.2s;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   ID Tags Guide page - Lovable design
   (reuses uk-law-* layout; id-tags-* for page-specific)
   ======================================== */
.id-tags-hero {
  min-height: auto;
  padding: 4rem 1rem 5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.id-tags-hero .hero-content {
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .id-tags-hero {
    padding: 5rem 2rem 6rem;
    margin-bottom: 4rem;
  }
}

/* ID tags solution cards - required vs optional */
.id-tags-solution-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.id-tags-solution-card.required {
  border-color: rgba(45, 107, 90, 0.3);
}

.id-tags-solution-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.id-tags-solution-header .badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.id-tags-solution-card.required .badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.id-tags-solution-card:not(.required) .badge {
  background: var(--muted);
  color: var(--muted-foreground);
}

.id-tags-solution-header h4 {
  margin: 0;
  font-size: 0.875rem;
}

.id-tags-solution-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .id-tags-solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .id-tags-solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ID tags service cards (QR/GPS providers) */
.id-tags-service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: box-shadow 0.3s;
}

.id-tags-service-card:hover {
  box-shadow: 0 10px 25px -5px rgba(45, 107, 90, 0.05);
}

.id-tags-service-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.id-tags-service-card h4 .badge-accent {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.id-tags-service-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.id-tags-service-card a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.id-tags-service-card a:hover {
  color: var(--accent);
}

.id-tags-service-card .badge-accent {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* ID tags recommendation cards */
.id-tags-rec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.id-tags-rec-card.recommended {
  border-width: 2px;
  border-color: rgba(45, 107, 90, 0.3);
  position: relative;
}

.id-tags-rec-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .id-tags-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .id-tags-rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.id-tags-rec-card .rec-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.id-tags-rec-card .rec-icon.primary {
  background: rgba(45, 107, 90, 0.1);
}

.id-tags-rec-card .rec-icon.accent {
  background: rgba(232, 140, 58, 0.15);
}

.id-tags-rec-card .rec-icon.muted {
  background: var(--muted);
}

.id-tags-rec-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.id-tags-rec-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

.id-tags-rec-card .rec-badge {
  position: absolute;
  top: -0.625rem;
  right: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* Amazon link button style */
.id-tags-amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s, box-shadow 0.3s;
}

.id-tags-amazon-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.2);
}

/* ID tags comparison table */
.id-tags-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.id-tags-table thead tr {
  background: rgba(240, 237, 232, 0.5);
  border-bottom: 1px solid var(--border);
}

.id-tags-table th {
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  color: var(--foreground);
}

.id-tags-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.id-tags-table td:first-child {
  font-weight: 500;
  color: var(--foreground);
}

/* ========================================
   Learn page - Lovable design
   ======================================== */
.learn-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

@media (min-width: 1024px) {
  .learn-content {
    padding: 0 2rem 7rem;
    display: flex;
    gap: 2.5rem;
  }
}

.learn-toc {
  display: none;
}

@media (min-width: 1024px) {
  .learn-toc {
    display: block;
    width: 14rem;
    flex-shrink: 0;
  }
}

.learn-toc-inner {
  position: -webkit-sticky;
  position: sticky;
  top: 6rem;
  z-index: 10;
}

.learn-toc-inner p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.learn-toc-inner nav a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.375rem 0 0.375rem 1rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.learn-toc-inner nav a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.learn-main {
  flex: 1;
  min-width: 0;
  max-width: 48rem;
}

.learn-section {
  scroll-margin-top: 6rem;
  margin-bottom: 4rem;
}

.learn-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.learn-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(45, 107, 90, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.learn-section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 640px) {
  .learn-section-header h2 {
    font-size: 1.875rem;
  }
}

.learn-section-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.learn-section p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.learn-section p:last-of-type {
  margin-bottom: 1.5rem;
}

.learn-cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.learn-cta-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.learn-cta-card p {
  margin-bottom: 1rem;
}

/* Learn page FAQ accordion */
.learn-accordion {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.learn-accordion-item {
  border-bottom: 1px solid var(--border);
}

.learn-accordion-item:last-child {
  border-bottom: none;
}

.learn-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.learn-accordion-trigger:hover {
  color: var(--primary);
}

.learn-accordion-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.learn-accordion-item.open .learn-accordion-trigger svg {
  transform: rotate(180deg);
}

.learn-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.learn-accordion-item.open .learn-accordion-content {
  max-height: 800px;
}

.learn-accordion-content-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.learn-accordion-content-inner a {
  color: var(--primary);
  text-decoration: underline;
}

.learn-accordion-content-inner a:hover {
  color: var(--primary-hover);
}

.learn-toc-mobile {
  display: block;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .learn-toc-mobile {
    display: none;
  }
}
