/* links.css - Link text styles for Ambient Pixels
 * Version: 1.1.0
 * Created: 2025-06-19
 * Updated: 2025-06-19 - Maximum specificity to override all other styles
 */

/* Reset all link styles first */
body a.text-link,
body p a.text-link,
body div a.text-link,
body section a.text-link,
body article a.text-link,
body .card-content a.text-link,
body .layout-nav-links a.text-link,
body #main-content a.text-link,
body .grid-container a.text-link,
body .content-section a.text-link {
  all: initial !important; /* Reset all properties */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #5ae4ff !important;
  text-decoration: none !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
  font-weight: 500 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
}

/* Base link styles */
body a.text-link,
body p a.text-link,
body div a.text-link,
body section a.text-link,
body article a.text-link,
body .card-content a.text-link,
body .layout-nav-links a.text-link,
body #main-content a.text-link,
body .grid-container a.text-link,
body .content-section a.text-link {
  color: #5ae4ff !important;
  text-decoration: none !important;
}

/* Remove underline from all text-link variations */
body a.text-link::after,
body p a.text-link::after,
body div a.text-link::after,
body section a.text-link::after,
body article a.text-link::after,
body .card-content a.text-link::after,
body .layout-nav-links a.text-link::after,
body #main-content a.text-link::after,
body .grid-container a.text-link::after,
body .content-section a.text-link::after {
  all: unset !important;
  content: none !important;
  display: none !important;
}

/* Hover state */
body a.text-link:hover,
body p a.text-link:hover,
body div a.text-link:hover,
body section a.text-link:hover,
body article a.text-link:hover,
body .card-content a.text-link:hover,
body .layout-nav-links a.text-link:hover,
body #main-content a.text-link:hover,
body .grid-container a.text-link:hover,
body .content-section a.text-link:hover {
  color: #9bf0ff !important;
  text-shadow: 0 0 6px rgba(90, 228, 255, 0.4) !important;
  text-decoration: none !important;
  background: none !important;
  transform: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Focus state */
body a.text-link:focus,
body p a.text-link:focus,
body div a.text-link:focus,
body section a.text-link:focus,
body article a.text-link:focus,
body .card-content a.text-link:focus,
body .layout-nav-links a.text-link:focus,
body #main-content a.text-link:focus,
body .grid-container a.text-link:focus,
body .content-section a.text-link:focus {
  outline: 2px solid rgba(90, 228, 255, 0.5) !important;
  outline-offset: 2px !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Active state */
body a.text-link:active,
body p a.text-link:active,
body div a.text-link:active,
body section a.text-link:active,
body article a.text-link:active,
body .card-content a.text-link:active,
body .layout-nav-links a.text-link:active,
body #main-content a.text-link:active,
body .grid-container a.text-link:active,
body .content-section a.text-link:active {
  color: #00bcd4 !important;
  transform: translateY(1px) !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Visited state */
body a.text-link:visited,
body p a.text-link:visited,
body div a.text-link:visited,
body section a.text-link:visited,
body article a.text-link:visited,
body .card-content a.text-link:visited,
body .layout-nav-links a.text-link:visited,
body #main-content a.text-link:visited,
body .grid-container a.text-link:visited,
body .content-section a.text-link:visited {
  color: #b388ff !important;
  text-decoration: none !important;
  border: none !important;
}

/* External link indicator */
body a.text-link.external,
body p a.text-link.external,
body div a.text-link.external,
body section a.text-link.external,
body article a.text-link.external,
body .card-content a.text-link.external,
body .layout-nav-links a.text-link.external,
body #main-content a.text-link.external,
body .grid-container a.text-link.external,
body .content-section a.text-link.external {
  position: relative !important;
  padding-right: 1em !important;
}

body a.text-link.external::after,
body p a.text-link.external::after,
body div a.text-link.external::after,
body section a.text-link.external::after,
body article a.text-link.external::after,
body .card-content a.text-link.external::after,
body .layout-nav-links a.text-link.external::after,
body #main-content a.text-link.external::after,
body .grid-container a.text-link.external::after,
body .content-section a.text-link.external::after {
  content: '↗' !important;
  display: inline-block !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-left: 0.25em !important;
  font-size: 0.85em !important;
  line-height: 1 !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}

/* Document link style */
body a.text-link.doc,
body p a.text-link.doc,
body div a.text-link.doc,
body section a.text-link.doc,
body article a.text-link.doc,
body .card-content a.text-link.doc,
body .layout-nav-links a.text-link.doc,
body #main-content a.text-link.doc,
body .grid-container a.text-link.doc,
body .content-section a.text-link.doc {
  color: #64ffda !important;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
  font-size: 0.95em !important;
}

/* Navigation link style */
body a.text-link.nav,
body p a.text-link.nav,
body div a.text-link.nav,
body section a.text-link.nav,
body article a.text-link.nav,
body .card-content a.text-link.nav,
body .layout-nav-links a.text-link.nav,
body #main-content a.text-link.nav,
body .grid-container a.text-link.nav,
body .content-section a.text-link.nav {
  color: #c8f0ff !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  font-size: 0.85em !important;
  opacity: 0.9 !important;
  transition: opacity 0.2s ease !important;
}

/* Button link style */
body a.text-link.button,
body p a.text-link.button,
body div a.text-link.button,
body section a.text-link.button,
body article a.text-link.button,
body .card-content a.text-link.button,
body .layout-nav-links a.text-link.button,
body #main-content a.text-link.button,
body .grid-container a.text-link.button,
body .content-section a.text-link.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6rem 1.2rem !important;
  background: rgba(90, 228, 255, 0.1) !important;
  border: 1px solid rgba(90, 228, 255, 0.3) !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  user-select: none !important;
  cursor: pointer !important;
  margin: 0.25rem 0 !important;
}

body a.text-link.button:hover,
body p a.text-link.button:hover,
body div a.text-link.button:hover,
body section a.text-link.button:hover,
body article a.text-link.button:hover,
body .card-content a.text-link.button:hover,
body .layout-nav-links a.text-link.button:hover,
body #main-content a.text-link.button:hover,
body .grid-container a.text-link.button:hover,
body .content-section a.text-link.button:hover {
  background: rgba(90, 228, 255, 0.2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
  border-color: rgba(90, 228, 255, 0.5) !important;
}

/* Muted link style */
body a.text-link.muted,
body p a.text-link.muted,
body div a.text-link.muted,
body section a.text-link.muted,
body article a.text-link.muted,
body .card-content a.text-link.muted,
body .layout-nav-links a.text-link.muted,
body #main-content a.text-link.muted,
body .grid-container a.text-link.muted,
body .content-section a.text-link.muted {
  color: #8a9ba8 !important;
  font-weight: 400 !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}

body a.text-link.muted:hover,
body p a.text-link.muted:hover,
body div a.text-link.muted:hover,
body section a.text-link.muted:hover,
body article a.text-link.muted:hover,
body .card-content a.text-link.muted:hover,
body .layout-nav-links a.text-link.muted:hover,
body #main-content a.text-link.muted:hover,
body .grid-container a.text-link.muted:hover,
body .content-section a.text-link.muted:hover {
  color: #c8f0ff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* ==========================================================================
   ADDITIONAL LINK VARIANTS
   ========================================================================== */

/* Warning Link - For important/cautionary actions */
body a.text-link.warning,
body p a.text-link.warning,
body div a.text-link.warning,
body section a.text-link.warning,
body article a.text-link.warning,
body .card-content a.text-link.warning,
body .layout-nav-links a.text-link.warning,
body #main-content a.text-link.warning,
body .grid-container a.text-link.warning,
body .content-section a.text-link.warning {
  color: #ff6b6b !important; /* Soft red */
  font-weight: 600 !important;
}

body a.text-link.warning:hover,
body p a.text-link.warning:hover,
body div a.text-link.warning:hover,
body section a.text-link.warning:hover,
body article a.text-link.warning:hover,
body .card-content a.text-link.warning:hover,
body .layout-nav-links a.text-link.warning:hover,
body #main-content a.text-link.warning:hover,
body .grid-container a.text-link.warning:hover,
body .content-section a.text-link.warning:hover {
  color: #ff8e8e !important;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.4) !important;
}

/* Success Link - For positive/confirmation actions */
body a.text-link.success,
body p a.text-link.success,
body div a.text-link.success,
body section a.text-link.success,
body article a.text-link.success,
body .card-content a.text-link.success,
body .layout-nav-links a.text-link.success,
body #main-content a.text-link.success,
body .grid-container a.text-link.success,
body .content-section a.text-link.success {
  color: #51cf66 !important; /* Soft green */
  font-weight: 500 !important;
}

body a.text-link.success:hover,
body p a.text-link.success:hover,
body div a.text-link.success:hover,
body section a.text-link.success:hover,
body article a.text-link.success:hover,
body .card-content a.text-link.success:hover,
body .layout-nav-links a.text-link.success:hover,
body #main-content a.text-link.success:hover,
body .grid-container a.text-link.success:hover,
body .content-section a.text-link.success:hover {
  color: #69db7c !important;
  text-shadow: 0 0 8px rgba(81, 207, 102, 0.3) !important;
}

/* Code Link - For links in code/documentation */
body a.text-link.code,
body p a.text-link.code,
body div a.text-link.code,
body section a.text-link.code,
body article a.text-link.code,
body .card-content a.text-link.code,
body .layout-nav-links a.text-link.code,
body #main-content a.text-link.code,
body .grid-container a.text-link.code,
body .content-section a.text-link.code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  color: #a5d8ff !important;
  background-color: rgba(90, 156, 255, 0.1) !important;
  padding: 0.15em 0.4em !important;
  border-radius: 3px !important;
  font-size: 0.9em !important;
  border: 1px solid rgba(90, 156, 255, 0.2) !important;
}

body a.text-link.code:hover,
body p a.text-link.code:hover,
body div a.text-link.code:hover,
body section a.text-link.code:hover,
body article a.text-link.code:hover,
body .card-content a.text-link.code:hover,
body .layout-nav-links a.text-link.code:hover,
body #main-content a.text-link.code:hover,
body .grid-container a.text-link.code:hover,
body .content-section a.text-link.code:hover {
  background-color: rgba(90, 156, 255, 0.15) !important;
  border-color: rgba(90, 156, 255, 0.4) !important;
}

/* Icon Link - For links with icons */
body a.text-link.icon,
body p a.text-link.icon,
body div a.text-link.icon,
body section a.text-link.icon,
body article a.text-link.icon,
body .card-content a.text-link.icon,
body .layout-nav-links a.text-link.icon,
body #main-content a.text-link.icon,
body .grid-container a.text-link.icon,
body .content-section a.text-link.icon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4em !important;
}

body a.text-link.icon i,
body p a.text-link.icon i,
body div a.text-link.icon i,
body section a.text-link.icon i,
body article a.text-link.icon i,
body .card-content a.text-link.icon i,
body .layout-nav-links a.text-link.icon i,
body #main-content a.text-link.icon i,
body .grid-container a.text-link.icon i,
body .content-section a.text-link.icon i {
  transition: transform 0.2s ease !important;
}

body a.text-link.icon:hover i,
body p a.text-link.icon:hover i,
body div a.text-link.icon:hover i,
body section a.text-link.icon:hover i,
body article a.text-link.icon:hover i,
body .card-content a.text-link.icon:hover i,
body .layout-nav-links a.text-link.icon:hover i,
body #main-content a.text-link.icon:hover i,
body .grid-container a.text-link.icon:hover i,
body .content-section a.text-link.icon:hover i {
  transform: translateX(2px) !important;
}

/* Large Link - For prominent call-to-action links */
body a.text-link.large,
body p a.text-link.large,
body div a.text-link.large,
body section a.text-link.large,
body article a.text-link.large,
body .card-content a.text-link.large,
body .layout-nav-links a.text-link.large,
body #main-content a.text-link.large,
body .grid-container a.text-link.large,
body .content-section a.text-link.large {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 0.5em 0 !important;
  display: inline-block !important;
}

body a.text-link.large:hover,
body p a.text-link.large:hover,
body div a.text-link.large:hover,
body section a.text-link.large:hover,
body article a.text-link.large:hover,
body .card-content a.text-link.large:hover,
body .layout-nav-links a.text-link.large:hover,
body #main-content a.text-link.large:hover,
body .grid-container a.text-link.large:hover,
body .content-section a.text-link.large:hover {
  text-shadow: 0 0 10px rgba(90, 228, 255, 0.6) !important;
}

/* ==========================================================================
   ANIMATED LINK VARIANTS
   ========================================================================== */

/* Underline Slide - Subtle underline that slides in from left */
body a.text-link.underline-slide,
body p a.text-link.underline-slide,
body div a.text-link.underline-slide,
body section a.text-link.underline-slide,
body article a.text-link.underline-slide,
body .card-content a.text-link.underline-slide,
body .layout-nav-links a.text-link.underline-slide,
body #main-content a.text-link.underline-slide,
body .grid-container a.text-link.underline-slide,
body .content-section a.text-link.underline-slide {
  position: relative !important;
  display: inline-block !important;
  overflow: hidden !important;
  padding-bottom: 2px !important;
}

body a.text-link.underline-slide::after,
body p a.text-link.underline-slide::after,
body div a.text-link.underline-slide::after,
body section a.text-link.underline-slide::after,
body article a.text-link.underline-slide::after,
body .card-content a.text-link.underline-slide::after,
body .layout-nav-links a.text-link.underline-slide::after,
body #main-content a.text-link.underline-slide::after,
body .grid-container a.text-link.underline-slide::after,
body .content-section a.text-link.underline-slide::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: currentColor !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body a.text-link.underline-slide:hover::after,
body p a.text-link.underline-slide:hover::after,
body div a.text-link.underline-slide:hover::after,
body section a.text-link.underline-slide:hover::after,
body article a.text-link.underline-slide:hover::after,
body .card-content a.text-link.underline-slide:hover::after,
body .layout-nav-links a.text-link.underline-slide:hover::after,
body #main-content a.text-link.underline-slide:hover::after,
body .grid-container a.text-link.underline-slide:hover::after,
body .content-section a.text-link.underline-slide:hover::after {
  transform: scaleX(1) !important;
}

/* Glow Hover - Subtle glow effect on hover */
body a.text-link.glow,
body p a.text-link.glow,
body div a.text-link.glow,
body section a.text-link.glow,
body article a.text-link.glow,
body .card-content a.text-link.glow,
body .layout-nav-links a.text-link.glow,
body #main-content a.text-link.glow,
body .grid-container a.text-link.glow,
body .content-section a.text-link.glow {
  transition: text-shadow 0.3s ease, transform 0.2s ease !important;
  display: inline-block !important;
}

body a.text-link.glow:hover,
body p a.text-link.glow:hover,
body div a.text-link.glow:hover,
body section a.text-link.glow:hover,
body article a.text-link.glow:hover,
body .card-content a.text-link.glow:hover,
body .layout-nav-links a.text-link.glow:hover,
body #main-content a.text-link.glow:hover,
body .grid-container a.text-link.glow:hover,
body .content-section a.text-link.glow:hover {
  text-shadow: 0 0 15px currentColor !important;
  transform: translateY(-1px) !important;
}

/* Bounce - Subtle bounce animation on hover */
body a.text-link.bounce,
body p a.text-link.bounce,
body div a.text-link.bounce,
body section a.text-link.bounce,
body article a.text-link.bounce,
body .card-content a.text-link.bounce,
body .layout-nav-links a.text-link.bounce,
body #main-content a.text-link.bounce,
body .grid-container a.text-link.bounce,
body .content-section a.text-link.bounce {
  display: inline-block !important;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}

body a.text-link.bounce:hover,
body p a.text-link.bounce:hover,
body div a.text-link.bounce:hover,
body section a.text-link.bounce:hover,
body article a.text-link.bounce:hover,
body .card-content a.text-link.bounce:hover,
body .layout-nav-links a.text-link.bounce:hover,
body #main-content a.text-link.bounce:hover,
body .grid-container a.text-link.bounce:hover,
body .content-section a.text-link.bounce:hover {
  transform: scale(1.05) !important;
}

/* Color Shift - Smooth color transition on hover */
body a.text-link.color-shift,
body p a.text-link.color-shift,
body div a.text-link.color-shift,
body section a.text-link.color-shift,
body article a.text-link.color-shift,
body .card-content a.text-link.color-shift,
body .layout-nav-links a.text-link.color-shift,
body #main-content a.text-link.color-shift,
body .grid-container a.text-link.color-shift,
body .content-section a.text-link.color-shift {
  background: linear-gradient(90deg, currentColor 0%, currentColor 100%) !important;
  background-size: 0% 1px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
  transition: background-size 0.3s ease, color 0.3s ease !important;
  padding-bottom: 2px !important;
}

body a.text-link.color-shift:hover,
body p a.text-link.color-shift:hover,
body div a.text-link.color-shift:hover,
body section a.text-link.color-shift:hover,
body article a.text-link.color-shift:hover,
body .card-content a.text-link.color-shift:hover,
body .layout-nav-links a.text-link.color-shift:hover,
body #main-content a.text-link.color-shift:hover,
body .grid-container a.text-link.color-shift:hover,
body .content-section a.text-link.color-shift:hover {
  background-size: 100% 1px !important;
  color: #7fd1ff !important; /* Slightly lighter blue for hover */
}

/* Underline Fill - Animated underline that fills from center */
body a.text-link.underline-fill,
body p a.text-link.underline-fill,
body div a.text-link.underline-fill,
body section a.text-link.underline-fill,
body article a.text-link.underline-fill,
body .card-content a.text-link.underline-fill,
body .layout-nav-links a.text-link.underline-fill,
body #main-content a.text-link.underline-fill,
body .grid-container a.text-link.underline-fill,
body .content-section a.text-link.underline-fill {
  position: relative !important;
  display: inline-block !important;
  overflow: hidden !important;
  padding-bottom: 2px !important;
}

body a.text-link.underline-fill::after,
body p a.text-link.underline-fill::after,
body div a.text-link.underline-fill::after,
body section a.text-link.underline-fill::after,
body article a.text-link.underline-fill::after,
body .card-content a.text-link.underline-fill::after,
body .layout-nav-links a.text-link.underline-fill::after,
body #main-content a.text-link.underline-fill::after,
body .grid-container a.text-link.underline-fill::after,
body .content-section a.text-link.underline-fill::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: currentColor !important;
  transition: all 0.3s ease !important;
  transform: translateX(-50%) !important;
}

body a.text-link.underline-fill:hover::after,
body p a.text-link.underline-fill:hover::after,
body div a.text-link.underline-fill:hover::after,
body section a.text-link.underline-fill:hover::after,
body article a.text-link.underline-fill:hover::after,
body .card-content a.text-link.underline-fill:hover::after,
body .layout-nav-links a.text-link.underline-fill:hover::after,
body #main-content a.text-link.underline-fill:hover::after,
body .grid-container a.text-link.underline-fill:hover::after,
body .content-section a.text-link.underline-fill:hover::after {
  width: 100% !important;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
  /* Base link adjustments */
  body a.text-link,
  body p a.text-link,
  body div a.text-link,
  body section a.text-link,
  body article a.text-link,
  body .card-content a.text-link,
  body .layout-nav-links a.text-link,
  body #main-content a.text-link,
  body .grid-container a.text-link,
  body .content-section a.text-link {
    font-size: 0.95em !important;
  }
  
  /* Button adjustments */
  body a.text-link.button,
  body p a.text-link.button,
  body div a.text-link.button,
  body section a.text-link.button,
  body article a.text-link.button,
  body .card-content a.text-link.button,
  body .layout-nav-links a.text-link.button,
  body #main-content a.text-link.button,
  body .grid-container a.text-link.button,
  body .content-section a.text-link.button {
    padding: 0.5rem 1rem !important;
    font-size: 0.95em !important;
  }
  
  /* Navigation links */
  body a.text-link.nav,
  body p a.text-link.nav,
  body div a.text-link.nav,
  body section a.text-link.nav,
  body article a.text-link.nav,
  body .card-content a.text-link.nav,
  body .layout-nav-links a.text-link.nav,
  body #main-content a.text-link.nav,
  body .grid-container a.text-link.nav,
  body .content-section a.text-link.nav {
    font-size: 0.82em !important;
  }
  
  /* Documentation links */
  body a.text-link.doc,
  body p a.text-link.doc,
  body div a.text-link.doc,
  body section a.text-link.doc,
  body article a.text-link.doc,
  body .card-content a.text-link.doc,
  body .layout-nav-links a.text-link.doc,
  body #main-content a.text-link.doc,
  body .grid-container a.text-link.doc,
  body .content-section a.text-link.doc {
    font-size: 0.92em !important;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  /* Base link adjustments */
  body a.text-link,
  body p a.text-link,
  body div a.text-link,
  body section a.text-link,
  body article a.text-link,
  body .card-content a.text-link,
  body .layout-nav-links a.text-link,
  body #main-content a.text-link,
  body .grid-container a.text-link,
  body .content-section a.text-link {
    font-size: 0.93em !important;
  }
  
  /* Button adjustments */
  body a.text-link.button,
  body p a.text-link.button,
  body div a.text-link.button,
  body section a.text-link.button,
  body article a.text-link.button,
  body .card-content a.text-link.button,
  body .layout-nav-links a.text-link.button,
  body #main-content a.text-link.button,
  body .grid-container a.text-link.button,
  body .content-section a.text-link.button {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.93em !important;
  }
  
  /* Navigation links */
  body a.text-link.nav,
  body p a.text-link.nav,
  body div a.text-link.nav,
  body section a.text-link.nav,
  body article a.text-link.nav,
  body .card-content a.text-link.nav,
  body .layout-nav-links a.text-link.nav,
  body #main-content a.text-link.nav,
  body .grid-container a.text-link.nav,
  body .content-section a.text-link.nav {
    font-size: 0.8em !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Base link adjustments */
  body a.text-link,
  body p a.text-link,
  body div a.text-link,
  body section a.text-link,
  body article a.text-link,
  body .card-content a.text-link,
  body .layout-nav-links a.text-link,
  body #main-content a.text-link,
  body .grid-container a.text-link,
  body .content-section a.text-link {
    font-size: 0.9em !important;
  }
  
  /* Button adjustments */
  body a.text-link.button,
  body p a.text-link.button,
  body div a.text-link.button,
  body section a.text-link.button,
  body article a.text-link.button,
  body .card-content a.text-link.button,
  body .layout-nav-links a.text-link.button,
  body #main-content a.text-link.button,
  body .grid-container a.text-link.button,
  body .content-section a.text-link.button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    margin: 0.5rem 0 !important;
    font-size: 0.95em !important;
  }
  
  /* Navigation links */
  body a.text-link.nav,
  body p a.text-link.nav,
  body div a.text-link.nav,
  body section a.text-link.nav,
  body article a.text-link.nav,
  body .card-content a.text-link.nav,
  body .layout-nav-links a.text-link.nav,
  body #main-content a.text-link.nav,
  body .grid-container a.text-link.nav,
  body .content-section a.text-link.nav {
    font-size: 0.78em !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  /* External link indicators */
  body a.text-link.external::after,
  body p a.text-link.external::after,
  body div a.text-link.external::after,
  body section a.text-link.external::after,
  body article a.text-link.external::after,
  body .card-content a.text-link.external::after,
  body .layout-nav-links a.text-link.external::after,
  body #main-content a.text-link.external::after,
  body .grid-container a.text-link.external::after,
  body .content-section a.text-link.external::after {
    font-size: 0.75em !important;
    margin-left: 0.15em !important;
  }
}
