/* ------ DATA POINT CARD -----*/
@media (min-width: 1280px) {
   [data-react-component="DataPointCard"] {
	max-width: 20rem;
   }
}

/* ------UTILITY TAG -----*/
/* utility tag (pill/lozenge) */
.focus\:ring-neutral-950.dark\:border-neutral-800.dark\:focus\:ring-neutral-300.items-center.rounded-full.border.transition-colors.focus\:ring-offset-2.hover\:bg-neutral-gray-90\/80.dark\:bg-neutral-gray-50.dark\:text-neutral-gray-90.dark\:hover\:bg-neutral-gray-10\/80.box-content.block.h-\[12px\].bg-transparent.p-2.text-xs.font-bold.uppercase.leading-\[14px\].focus\:outline-dashed.focus\:outline-offset-4.focus\:ring-0.hover\:no-underline.border-brand-red-50.text-neutral-dark-primary.focus\:outline-neutral-dark-primary.hover\:text-neutral-light-primary {
	padding-inline: 0.6875rem;
	border-color: #306BD7; 
}


/* ------STORY HERO -----*/
/* Or target the bottom of the hero content */
[data-react-component="StoryHero"] {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/*headline line height */
[data-react-component="StoryHero"] {
	line-height: 1.28;
 }
[data-react-component="StoryHero"] h2.heading-2x-lg.font-serif {
	line-height: 1.28;
 }

/*moves share buttons below headline*/
[data-react-component="StoryHero"] div div[data-testid=texture] > div {
	  flex-direction: column;
}

/*Desktop share buttons*/
[data-react-component="StoryHero"] .flex.gap-4.md\:gap-3.lg\:gap-4.lg\:flex-col.lg\:absolute.lg\:left-12.lg\:mt-0.lg\:top-\[4\.8rem\] {
	width: 100%;
	position: static;
	flex-direction: row;
	margin: auto;
	justify-content: center;
}

/*Gap fix between share-buttons and headline*/
[data-react-component="StoryHero"] .mt-4.utility-metadata:empty {
	margin-top: 0;
}

/* Target the StoryHero wrapper - adjust selector based on actual rendered HTML */
[data-react-component="StoryHero"] + .share-buttons-wrapper {
	margin-top: -20px; /* Negative margin to pull it up */
}

/* Or target the bottom of the hero content */
[data-react-component="StoryHero"] {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Temporarily make red borders blue */
.border-brand-red-50 {
	border-color: #306bd7 !important;
}

@media (min-width: 1280px) {

	 [data-react-component="StoryHero"] div div[data-testid=texture] > div {
		 gap: 2.5rem;
		 max-width: 83.34%;
		 margin: 0 auto;
		 padding-left: 0;
		 padding-right: 0;
	}
	 
	 /*headline width */
	 [data-react-component="StoryHero"] div div[data-testid=texture] > div > div {
		max-width: unset;
	}

	[data-react-component="StoryHero"] .lg\:pb-\[5\.5rem\] {
		padding-bottom: 4.875rem;
	}
}

/* ----------*/

/*-----RELATED TOPICS----*/

/* Override background color and padding for Related Topics links */
[data-react-component="RelatedTopics"] a,
[data-react-component="RelatedTopics"] [href] {
	background-color: #f1f1f1 !important;
	padding-left: 11px !important;
	padding-right: 11px !important;
}

/* Preserve hover state */
[data-react-component="RelatedTopics"] a:hover,
[data-react-component="RelatedTopics"] [href]:hover {
	background-color: #e0e0e0 !important;
}

/* ----------*/

/*-----GENERAL VERTICAL SPACING----*/

/* Separates the rich text blocks and media embeds

.cc-layout-grid > .cc-column > [data-react-component="RichTextBlock"], .cc-layout-grid > .cc-column > [data-react-component="MediaEmbedImage"] {
	margin-bottom: 2rem;
}
.cc-layout-grid > .cc-column > [data-react-component="RichTextBlock"]:last-child, .cc-layout-grid > .cc-column > [data-react-component="MediaEmbedImage"]:last-child {
	margin-bottom: 0;
}

   ----------*/


/* Add letter-spacing to all uppercase text */
[style*="text-transform: uppercase"],
[style*="text-transform:uppercase"],
*[class*="uppercase"],
h1, h2, h3, h4, h5, h6 {
	letter-spacing: 0.02em !important;
}

/* Specific targeting for known uppercase elements */
.rte-location,
.kgi_heading,
[data-react-component] button,
[data-react-component] [role="button"] {
	text-transform: uppercase;
	letter-spacing: 0.02em !important;
}

/* Global rule for any element with uppercase text-transform */
* {
	text-transform: inherit;
}

*[style*="text-transform: uppercase"],
*[style*="text-transform:uppercase"] {
	letter-spacing: 0.02em !important;
}

/*-----PULL QUOTE----*/

/* Hide the existing SVG quote */
[data-react-component="PullQuote"] svg {
	display: none !important;
}

/* Add larger quote mark positioned like in Figma */
[data-react-component="PullQuote"] > div:first-child {
	position: relative;
}

[data-react-component="PullQuote"] > div:first-child::before {
	content: "\201C";
	font-family: 'Tobias', Georgia, serif;
	font-size: 9rem;
	color: #6E55DC;
	display: block;
	position: absolute;
	top: 1.5rem;
	left: -2px;
	line-height: 0.5;
	font-weight: 300;
}

/* Adjust the quote text positioning to account for the quote mark */
[data-react-component="PullQuote"] blockquote,
[data-react-component="PullQuote"] > div > div {
	padding-top: 3rem; /* Add space for the quote mark */
	position: relative;
}

@media (min-width: 1280px) {
	[data-react-component="PullQuote"] > div {
		max-width: 83.34%;
		margin-inline: auto;
		margin-bottom: 2rem;
		display: flex;
				margin: 0;
	}

		/* quote icon */
	  [data-react-component="PullQuote"] > div:first-child::before {
		top: 3.5rem;
	  }
}

/* ----------*/

/* Related Stories Block Styling with Shadow and Tighter Spacing */
.related-stories-block {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb; /* Light border */
  border-radius: 8px; /* Subtle rounded corners */
  padding: 1rem 1rem 1.25rem 1rem; /* Tighter padding */
  box-shadow: 
	0 1px 3px 0 rgba(0, 0, 0, 0.1), /* Small shadow */
	0 1px 2px 0 rgba(0, 0, 0, 0.06); /* Subtle depth */
  transition: box-shadow 0.2s ease;
}

/* Optional: Add a hover effect for the entire block */
.related-stories-block:hover {
  box-shadow: 
	0 4px 6px -1px rgba(0, 0, 0, 0.1),
	0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.related-stories-title {
  font-size: 18px !important; /* Reduced from default */
  font-weight: 400;
  margin-bottom: -1.25rem !important; /* Tighter spacing */
  padding: 0; /* Reset any default padding */
  line-height: 1.2 !important;
}

/* Story Cards Container */
.story-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Reduced from 1.5rem */
}

/* Story Card Overrides for Related Stories */
.related-stories-block [data-react-component="StoryCard"] {
  border-top: 1px solid #e5e5e5;
  padding-top: 1.75rem !important; /* Reduced from calc(8px + 1rem) */
  margin-top: 0;
  margin-bottom: 0;
}

/* Mobile/Tablet: Side-by-side layout below 1280px */
@media (max-width: 1279px) {
  /* Break the Related Stories column out of grid constraints */
  .cc-layout-grid:has(.related-stories-block) {
	position: relative;
  }
  
  /* Make the column containing Related Stories span full width */
  .cc-column:has(.related-stories-block) {
	grid-column: 1 / -1 !important; /* Span all columns */
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
  }
  
  /* Make the related stories block full viewport width with 2rem margins */
  .related-stories-block {
	width: calc(100% - 4rem); /* Account for 2rem margins on each side */
	max-width: none !important;
	margin-left: 2rem;
	margin-right: 2rem;
	border-radius: 8px; /* Keep rounded corners since we have margins */
  }
  
  /* Alternative approach if the above doesn't work - use negative margins to break out */
  .cc-layout-grid .cc-column .related-stories-block {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100vw - 4rem);
	max-width: calc(100vw - 4rem);
  }
  
  /* Change to horizontal layout */
  .story-cards-wrapper {
	flex-direction: row;
	gap: 0; /* Remove gap to use divider instead */
	align-items: stretch; /* Ensure equal height */
  }
  
  /* Adjust story card layout for side-by-side */
  .related-stories-block [data-react-component="StoryCard"] {
	flex: 1; /* Equal width for both cards */
	border-top: none; /* Remove horizontal border */
	padding-top: 0 !important;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	position: relative;
  }
  
  /* First card styling */
  .related-stories-block [data-react-component="StoryCard"]:first-of-type {
	padding-left: 0;
  }
  
  /* Last card styling */
  .related-stories-block [data-react-component="StoryCard"]:last-of-type {
	padding-right: 0;
  }
  
  /* Add vertical divider between cards */
  .related-stories-block [data-react-component="StoryCard"]:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: #e5e5e5;
  }
  
  /* Remove inline margin styling on second card */
  .related-stories-block [data-react-component="StoryCard"][style*="margin-top"] {
	margin-top: 0 !important;
  }
  
  /* Adjust image sizing for side-by-side layout */
  .related-stories-block [data-react-component="StoryCard"] img,
  .related-stories-block [data-react-component="StoryCard"] picture {
	width: 100% !important; /* Full width of card column */
  }
  
  /* Adjust headline for better readability in narrower columns */
  .related-stories-block [data-react-component="StoryCard"] h3,
  .related-stories-block [data-react-component="StoryCard"] .headline {
	font-size: 16px !important; /* Slightly smaller for narrower columns */
  }
}

/* For very narrow screens (mobile phones), optionally stack again */
@media (max-width: 640px) {
  .story-cards-wrapper {
	flex-direction: column; /* Stack vertically on very small screens */
  }
  
  .related-stories-block [data-react-component="StoryCard"] {
	padding-left: 0;
	padding-right: 0;
	padding-top: 1.5rem !important;
	border-top: 1px solid #e5e5e5;
  }
  
  .related-stories-block [data-react-component="StoryCard"]:first-of-type {
	border-top: none;
	padding-top: 0 !important;
	padding-bottom: 1.75rem !important; /* Add padding to match the spacing */
  }
  
  /* Remove vertical divider on mobile */
  .related-stories-block [data-react-component="StoryCard"]:not(:last-child)::after {
	display: none;
  }
  
  /* Restore original image sizing */
  .related-stories-block [data-react-component="StoryCard"] img,
  .related-stories-block [data-react-component="StoryCard"] picture {
	width: 83.33% !important;
  }
}

/* Thumbnail aspect ratio and sizing */
.related-stories-block [data-react-component="StoryCard"] img,
.related-stories-block [data-react-component="StoryCard"] picture {
  aspect-ratio: 16/9 !important;
  width: 83.33% !important; /* 5/6 of column width */
  height: auto !important;
  object-fit: cover;
  border-radius: 4px; /* Slight rounding on images */
}

/* Headline sizing and spacing */
.related-stories-block [data-react-component="StoryCard"] h3,
.related-stories-block [data-react-component="StoryCard"] .headline {
  font-size: 18px !important; /* Reduced font size */
  line-height: 1.4 !important; /* Tighter line height */
  margin-top: 0.5rem !important; /* Reduced from 1rem */
  margin-bottom: 0 !important;
}

/* Hide utility tags and metadata */
.related-stories-block [data-react-component="StoryCard"] .utility-tag,
.related-stories-block [data-react-component="StoryCard"] .metadata,
.related-stories-block [data-react-component="StoryCard"] time,
.related-stories-block [data-react-component="StoryCard"] [class*="published"] {
  display: none !important;
}

/* Spacing adjustments */
.related-stories-block [data-react-component="StoryCard"] > div {
  padding: 0 !important;
}

/* First card doesn't need border */
.related-stories-block [data-react-component="StoryCard"]:first-of-type {
  border-top: none;
  padding-top: 0 !important;
}

/* Remove any default margins on story card links */
.related-stories-block [data-react-component="StoryCard"] a {
  margin: 0 !important;
  display: block;
}

/* Related Stories Bottom Section - Dark Theme */
[data-react-component="FiveUpGrid"] {
  background-color: #161616 !important; /* Using your black */
  color: #ffffff !important;
  padding: 3rem 0 !important;
  margin-top: 3rem !important;
}

/* Container wrapper for full-width background */
.cc-layout-grid:has([data-react-component="FiveUpGrid"]) {
  background-color: #161616 !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: calc(50vw - 50%) !important;
  padding-right: calc(50vw - 50%) !important;
}

/* Related Stories heading */
[data-react-component="FiveUpGrid"] h2,
[data-react-component="FiveUpGrid"] .header-text,
[data-react-component="FiveUpGrid"] [class*="heading"] {
  color: #ffffff !important;
  margin-bottom: 2rem !important;
}

/* Story cards within the grid */
[data-react-component="FiveUpGrid"] [data-react-component="StoryCard"],
[data-react-component="FiveUpGrid"] .story-card {
  background-color: transparent !important;
  border-color: #333333 !important;
}

/* Card headlines */
[data-react-component="FiveUpGrid"] h3,
[data-react-component="FiveUpGrid"] .headline,
[data-react-component="FiveUpGrid"] a {
  color: #ffffff !important;
}

/* Card text/descriptions */
[data-react-component="FiveUpGrid"] p,
[data-react-component="FiveUpGrid"] .description {
  color: #cccccc !important;
}

/* Utility tags (NETWORK, etc.) */
[data-react-component="FiveUpGrid"] .utility-tag,
[data-react-component="FiveUpGrid"] [class*="utility"] {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
  display: inline-block !important;
}

/* Published dates */
[data-react-component="FiveUpGrid"] time,
[data-react-component="FiveUpGrid"] .published-date,
[data-react-component="FiveUpGrid"] [class*="date"] {
  color: #ffffff !important;
}

/* Hover states for links */
[data-react-component="FiveUpGrid"] a:hover {
  color: #e0e0e0 !important;
  text-decoration: none !important;
}

/* Card hover effects */
[data-react-component="FiveUpGrid"] [data-react-component="StoryCard"]:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  transition: background-color 0.2s ease !important;
}

/* Author avatars (if present) */
[data-react-component="FiveUpGrid"] .avatar,
[data-react-component="FiveUpGrid"] img[class*="avatar"] {
  border: 2px solid #ffffff !important;
}

/* Load more button (if present) */
[data-react-component="FiveUpGrid"] button,
[data-react-component="FiveUpGrid"] [role="button"] {
  background-color: #ffffff !important;
  color: #161616 !important; /* Using your black */
  border: 1px solid #ffffff !important;
}

[data-react-component="FiveUpGrid"] button:hover,
[data-react-component="FiveUpGrid"] [role="button"]:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

@media (min-width: 1280px) {
	
	.mtd-margin {
		margin-left: 2.5rem;
		margin-right: 2.5rem;
	}
	
	/* Constrain the width of the PullQuote component and center it */
	[data-react-component="PullQuote"] {
		max-width: 83.34%; /* Adjust this value to match Figma */
		margin: 0 auto;
		padding: 0 0 3rem;
	}

	/* Make sure the inner container respects the width */
	[data-react-component="PullQuote"] > div {
		max-width: 100%;
	}

	/* Constrain the quote text (headline) width */
	[data-react-component="PullQuote"] blockquote,
	[data-react-component="PullQuote"] .quote-text,
	[data-react-component="PullQuote"] h2,
	[data-react-component="PullQuote"] p:first-of-type {
		max-width: 100%;
	}

	/* Ensure the container is positioned relatively for the quote mark */
	[data-react-component="PullQuote"] > div:first-child {
		position: relative;
		padding-top: 2rem;
	}

	.utility-metadata {
		font-size: 16px !important;
	}
	
	/* Extend padding for utility tag in StoryHero */
	[data-react-component="StoryHero"] .utility-tag,
	[data-react-component="StoryHero"] [class*="utility"] a {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
	
	.text-xs {
		font-size: 16px !important;
	}
	.heading-2x-lg.font-serif {
		font-size: 48px;
	}
	
	/* Target body copy text within the RichTextBlock component */
	[data-react-component="RichTextBlock"].v4beta-bodycopy,
	[data-react-component="RichTextBlock"] .v4beta-bodycopy,
	.v4beta-bodycopy {
		font-size: 28px !important;
		line-height: 148% !important;
	}
	/* Also target paragraphs within the overview text */
	.v4beta-bodycopy p {
		font-size: 18px !important;
		line-height: 148% !important;
	}

	[data-react-component="StoryHero"] .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}
		
	/* Or if it's a sibling/nearby element */
	[data-react-component="StoryHero"] + * .lg\:pb-\[5\.5rem\],
	[data-react-component="StoryHero"] ~ .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}
}

@media (min-width: 1600px) {

	.mtd-margin {
		margin-left: 3rem;
		margin-right: 3rem;
	}
	
	.utility-metadata {
		font-size: 18px !important;
	}
	.text-xs {
		font-size: 18px !important;
	}
	.heading-2x-lg.font-serif {
		font-size: 52px;
	}
	
	/* Target overview text within the RichTextBlock component */
	[data-react-component="RichTextBlock"].v4beta-overview-text,
	[data-react-component="RichTextBlock"] .v4beta-overview-text,
	.v4beta-overview-text {
		font-size: 22px !important;
		font-weight: 500 !important;
		line-height: 140% !important;
		margin-bottom: 1.4rem;
	}
	/* Also target paragraphs within the overview text */
	.v4beta-overview-text p {
		font-size: 22px !important;
		font-weight: 500 !important;
		line-height: 140% !important;
	}
	/* Target body copy text within the RichTextBlock component */
	[data-react-component="RichTextBlock"].v4beta-bodycopy,
	[data-react-component="RichTextBlock"] .v4beta-bodycopy,
	.v4beta-bodycopy {
		font-size: 20px !important;
		line-height: 148% !important;
	}
	/* Also target paragraphs within the overview text */
	.v4beta-bodycopy p {
		font-size: 20px !important;
		line-height: 148% !important;
	}

	[data-react-component="StoryHero"] .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}
		
	/* Or if it's a sibling/nearby element */
	[data-react-component="StoryHero"] + * .lg\:pb-\[5\.5rem\],
	[data-react-component="StoryHero"] ~ .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}

	#v4beta-recirculation {
		padding-left: 5rem !important;
		padding-right: 5rem !important;
	}
	
	#v4beta-presskit {
		padding-left: 5rem;
		padding-right: 5rem;
	}
}

@media (min-width: 1800px) {

	.mtd-margin {
		margin-left: 3.5rem;
		margin-right: 3.5rem;
	}
	
	.utility-metadata {
		font-size: 20px !important;
	}
	.text-xs {
		font-size: 20px !important;
	}
	.heading-2x-lg.font-serif {
		font-size: 56px;
	}

	/* Target overview text within the RichTextBlock component */
	[data-react-component="RichTextBlock"].v4beta-overview-text,
	[data-react-component="RichTextBlock"] .v4beta-overview-text,
	.v4beta-overview-text {
		font-size: 24px !important;
		font-weight: 500 !important;
		line-height: 140% !important;
		margin-bottom: 1.4rem;
	}
	/* Also target paragraphs within the overview text */
	.v4beta-overview-text p {
		font-size: 24px !important;
		font-weight: 500 !important;
		line-height: 140% !important;
	}
	
	/* Target body copy text within the RichTextBlock component */
	[data-react-component="RichTextBlock"].v4beta-bodycopy,
	[data-react-component="RichTextBlock"] .v4beta-bodycopy,
	.v4beta-bodycopy {
		font-size: 22px !important;
		line-height: 148% !important;
	}
	/* Also target paragraphs within the overview text */
	.v4beta-bodycopy p {
		font-size: 22px !important;
		line-height: 148% !important;
	}

	[data-react-component="StoryHero"] .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}
		
	/* Or if it's a sibling/nearby element */
	[data-react-component="StoryHero"] + * .lg\:pb-\[5\.5rem\],
	[data-react-component="StoryHero"] ~ .lg\:pb-\[5\.5rem\] {
		padding-bottom: 1.5rem !important;
	}

	#v4beta-recirculation {
		padding-left: 10rem !important;
		padding-right: 10rem !important;
	}
	
	#v4beta-presskit {
		padding-left: 10rem;
		padding-right: 10rem;
	}
}

/* ------ TEMP SHARE BUTTONS -----*/

/* Remove any divider lines that AddToAny might add */
.a2a_divider,
.custom-share-container::before,
.custom-share-container::after,
.a2a_kit::before,
.a2a_kit::after {
	display: none !important;
	content: none !important;
}

/* Container for centering the share buttons */
.share-buttons-wrapper {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 0 auto !important;
	width: 100% !important;
	border: none !important;
	padding-top: 0 !important;
	padding-bottom: 3rem !important;
}

/* Also target the AddToAny container */
.a2a_kit.custom-share-container {
	margin-top: 0 !important;
}

/* Or target the bottom of the hero content */
[data-react-component="StoryHero"] {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Custom styles for AddToAny buttons container */
.custom-share-container {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px !important;
	border: none !important;
	padding: 4px !important; /* Add small padding to prevent scale cutoff */
	margin: 0 !important;
	background: transparent !important;
	float: none !important;
	width: auto !important;
}

/* Hide the default AddToAny dropdown button */
.custom-share-container .a2a_dd {
	display: none !important;
}

/* Reset default AddToAny styles */
.custom-share-container.a2a_kit {
	line-height: 1 !important;
	float: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	background: transparent !important;
}

.custom-share-container.a2a_kit a {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	float: none !important;
	background-image: none !important;
}

/* Style individual share buttons as circles */
.custom-share-container a[class*="a2a_button_"] {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	border-radius: 50% !important;
	background-color: #ffffff !important;
	background-image: none !important;
	border: 1px solid #161616 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: transform 0.2s ease !important;
	box-shadow: none !important;
	position: relative !important;
	overflow: hidden !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

/* Hover effect - scale up without affecting layout */
.custom-share-container a[class*="a2a_button_"]:hover {
	transform: scale(1.083) !important; /* 52/48 = 1.083 */
	border-color: #161616 !important;
	background-color: #ffffff !important;
	background-image: none !important;
}

/* Ensure focus state also has white background */
.custom-share-container a[class*="a2a_button_"]:focus {
	background-color: #ffffff !important;
	background-image: none !important;
	outline: 2px solid #161616 !important;
	outline-offset: 2px !important;
}

/* Fix for icon display */
.custom-share-container a[class*="a2a_button_"] img,
.custom-share-container a[class*="a2a_button_"] svg {
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	position: relative !important;
	display: block !important;
	margin: 0 auto !important;
}

/* Ensure SVG icons are visible and centered */
.custom-share-container .a2a_svg,
.custom-share-container .a2a_svg svg {
	width: 22px !important;
	height: 22px !important;
	position: relative !important;
	display: block !important;
	vertical-align: middle !important;
}

/* Custom colors for each platform icon - all black to match Figma */
.custom-share-container .a2a_button_facebook svg,
.custom-share-container .a2a_button_facebook .a2a_svg,
.custom-share-container .a2a_button_linkedin svg,
.custom-share-container .a2a_button_linkedin .a2a_svg,
.custom-share-container .a2a_button_x svg,
.custom-share-container .a2a_button_x .a2a_svg,
.custom-share-container .a2a_button_copy_link svg,
.custom-share-container .a2a_button_copy_link .a2a_svg,
.custom-share-container .a2a_button_printfriendly svg,
.custom-share-container .a2a_button_printfriendly .a2a_svg,
.custom-share-container .a2a_button_print svg,
.custom-share-container .a2a_button_print .a2a_svg {
	fill: #161616 !important;
}

/* Ensure all paths and child elements are also black */
.custom-share-container a[class*="a2a_button_"] svg *,
.custom-share-container a[class*="a2a_button_"] .a2a_svg * {
	fill: #161616 !important;
}

/* Remove any background colors or images from button states */
.custom-share-container a[class*="a2a_button_"]:before,
.custom-share-container a[class*="a2a_button_"]:after {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Override any default positioning */
.custom-share-container a[class*="a2a_button_"] * {
	position: relative !important;
	top: auto !important;
	left: auto !important;
}

/* Remove any borders or lines from parent containers */
.a2a_kit.a2a_default_style {
	border-top: none !important;
	border-bottom: none !important;
}

/* Ensure proper display on all screen sizes */
@media (max-width: 768px) {
	.custom-share-container {
		gap: 12px !important;
	}
	
	.custom-share-container a[class*="a2a_button_"] {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
	}
	
	.custom-share-container a[class*="a2a_button_"]:hover {
		transform: scale(1.09) !important; /* 48/44 = 1.09 */
	}
}

/* Hide Facebook button only in StoryHero component */
[data-react-component="StoryHero"] [aria-label*="Facebook" i],
[data-react-component="StoryHero"] button[class*="share"][class*="facebook" i] {
	display: none !important;
}

/* StoryHero height override */
[data-react-component="StoryHero"] .lg\:min-h-\[28\.5rem\] {
	min-height: auto !important;
}

/* Grid margins for tablet/mobile with exclusions */
@media (max-width: 1279px) {
	/* Default: Apply padding to all layout grids */
	.cc-layout-grid {
		padding-left: 2rem !important;
		padding-right: 2rem !important;
	}
	
	/* Exclusions: Remove padding from specific components */
	[data-react-component="StoryHero"] .cc-layout-grid,
	[data-react-component="DownloadMaterials"] .cc-layout-grid,
	#v4beta-presskit .cc-layout-grid,
	.cc-layout-grid:has([data-react-component="StoryHero"]),
	.cc-layout-grid:has([data-react-component="DownloadMaterials"]) {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}