/* 
 * ClimateDeck External Homepage Styles
 * Based on Figma design - external-homepage
 * 
 * This file is specifically for the public-facing homepage
 * Separate from climatedeck-specific.css (Dash apps) and rhg-components.css (authenticated dashboards)
 */

/* Figma Design Variables */
:root {
    /* Colors from Figma variables */
    --primary: #0078ad;
    --text-primary: #0a0a19;
    --surface-light: #cce4ef;
    --border-default: #c9cbcb;
    --background-default: #ffffff;
    --neutral-grey: #f2f2f2;
    --deep-black: #0a0a19;
    
    /* Typography from Figma */
    --font-family: 'Hanken Grotesk', sans-serif;
    --font-size-hero: 48px;
    --font-size-featured: 40px;
    --font-size-heading: 24px;
    --font-size-subheading: 20px;
    --font-size-body-large: 24px;
    --font-size-body: 16px;
    --font-size-body-small: 14px;
    --font-size-caption: 12px;
    
    /* Font weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
    
    /* Spacing from Figma */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 40px;
    --spacing-page-margin: 80px;
    --spacing-container-padding: 120px;
    
    /* Component dimensions */
    --button-height: 36px;
    --button-padding: 10px 20px;
    --border-radius: 0;
}

/* Reset and base styles for homepage */
.homepage-container {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.homepage-container * {
    box-sizing: border-box;
}

/* Navigation background color override for homepage design */
.rhg-navbar {
    background-color: var(--surface-light) !important;
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}


/* Dropdown navigation styles for rhg-flask-components */
.rhg-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top; /* Align with other nav items */
    z-index: 1001;
}

.rhg-dropdown-toggle.nav-item {
    /* Ensure nav-item styling is properly applied */
    background: none;
    border: none;
    gap: 6px; /* Only add the gap for the arrow icon */
    display: flex !important; /* Force flex layout from nav-item */
    align-items: center !important; /* Force center alignment */
    cursor: pointer; /* Required for iOS touch events */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
    touch-action: manipulation; /* Improve touch responsiveness */
}

.rhg-dropdown-toggle:hover {
    color: var(--primary);
}

.rhg-dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    transform: rotate(90deg); /* Rotate right caret to point down */
    flex-shrink: 0;
}

.rhg-dropdown.open .rhg-dropdown-arrow {
    transform: rotate(270deg); /* Rotate to point up when open */
}

.rhg-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-default);
    border: 1px solid var(--border-default);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.rhg-dropdown.open .rhg-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rhg-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.rhg-dropdown-item:hover {
    background-color: var(--surface-light);
    color: var(--text-primary);
}

/* Header adjustments for homepage */
.home-button {
    font-size: 32px !important;
    font-weight: var(--weight-bold) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

/* Override rhg-components button styling for homepage */
.rhg-btn {
    border-radius: 0 !important;
    font-family: var(--font-family) !important;
    white-space: nowrap !important;
}

.rhg-btn-primary {
    background-color: var(--primary) !important;
    color: var(--background-default) !important;
    border: none !important;
}

.rhg-btn-secondary {
    background-color: var(--surface-light) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

/* Ensure all buttons size to content, not container */
.button,
.rhg-btn {
    max-width: max-content !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

/* Skip header and navigation - start with content */
.homepage-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Welcome Section - Responsive padding only */
.welcome-section {
    padding: 40px var(--spacing-container-padding);
}

/* Hero Section */
.hero-section {
    background-color: var(--background-default);
    padding: var(--spacing-page-margin) var(--spacing-container-padding);
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

/* Add pseudo-element to control width while maintaining full height coverage */
/* CSS grid pattern using 1-inch (96px) grid lines in Rhodium blue */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 120, 173, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 120, 173, 0.15) 1px, transparent 1px);
    background-size: 96px 96px;
    background-position: left top;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-page-margin);
}

.hero-headline {
    font-size: var(--font-size-hero);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family);
    /* Slight text shadow for better readability over grid */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    letter-spacing: -0.02em;
    max-width: 100%;
}

.hero-copy {
    font-size: var(--font-size-body-large);
    font-weight: var(--weight-regular);
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xxl);
    font-family: var(--font-family);
    /* Slight text shadow for better readability over grid */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 100%;
    opacity: 0.9;
}

.hero-cta-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xxl);
    align-items: flex-start;
    width: auto;
}

.hero-cta-text {
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-family);
    /* Slight text shadow for better readability over grid */
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Hero background decorative element - now handled by ::before pseudo-element */

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--button-height);
    padding: var(--button-padding);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-medium);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    white-space: nowrap;
    text-align: center;
    line-height: calc(var(--button-height) - 20px);
    box-sizing: border-box;
}

.button-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.button-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 8px;
    filter: brightness(0) invert(1);
}

.button-filled {
    background-color: var(--primary);
    color: var(--background-default);
}

.button-filled:hover {
    background-color: #006291;

}

.button-filled:hover .button-arrow {
    transform: translateX(2px);
}

.button-tonal {
    background-color: var(--surface-light);
    color: var(--text-primary);
}

.button-tonal:hover {
    background-color: #b8d9e6;

}

.button-tonal:hover .button-arrow {
    transform: translateX(2px);
}

.button-dark {
    background-color: var(--text-primary);
    color: var(--background-default);
}

.button-dark:hover {
    background-color: #1a1a2e;
}

/* About Rhodium Group Section - Homepage Callout */
.about-rhodium-section {
    background-color: var(--primary);
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.about-rhodium-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    display: flex;
    gap: var(--spacing-page-margin);
    align-items: flex-start;
    box-sizing: border-box;
}

.about-rhodium-title {
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.about-rhodium-title h2 {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--background-default);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.about-rhodium-content {
    flex: 1;
    min-width: 0;
    padding-top: var(--spacing-md);
    border-top: 0.5px solid var(--background-default);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.about-rhodium-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    line-height: normal;
    color: var(--background-default);
    margin: 0;
    width: 100%;
}

/* Highlights Section */
.highlights-section {
    background-color: white;
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.highlights-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    box-sizing: border-box;
}

.highlights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.highlights-title {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
}

.highlights-carousel-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.carousel-button {
    width: 32px;
    height: 32px;
    border: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
}

.carousel-button:hover {
    background-color: var(--surface-light);
}

.carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-button:disabled:hover {
    background-color: white;
}

.carousel-button img {
    width: 16px;
    height: 16px;
}

.carousel-dots {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-default);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--primary);
}

.carousel-dot:hover {
    background-color: var(--primary);
    opacity: 0.7;
}

.highlights-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.highlights-slide {
    display: none;
    width: 100%;
}

.highlights-slide.active {
    display: block;
}

.highlights-content {
    display: flex;
    gap: var(--spacing-page-margin);
    align-items: flex-start;
    width: 100%;
}

.highlights-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: flex-start;
}

.highlights-featured-number {
    font-family: var(--font-family);
    font-size: var(--font-size-featured);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-lg) 0;
    width: min-content;
    min-width: 100%;
}

.highlights-featured-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    line-height: normal;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-lg) 0;
    width: min-content;
    min-width: 100%;
}

.highlights-image {
    width: 584px;
    max-width: 100%;
    height: 400px;
    background-color: white;
    margin-bottom: 24px;
    margin-top: -40px;
    flex-shrink: 0;
}



.highlights-secondary {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-container-padding);
    box-sizing: border-box;
}

.highlights-card {
    flex: 1;
    background-color: var(--background-default);
    border: 0.5px solid var(--border-default);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    align-self: stretch;
}

.highlights-card * {
    margin: 0 !important;
    padding: 0 !important;
}

.highlights-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlights-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.highlights-card-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.highlights-card-title {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding: 0;
}

.highlights-card-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding: 0;
}

.highlights-card-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 10.497px;
    margin-top: auto;
}

.highlights-card-arrow-icon {
    width: 16px;
    height: 16px;
    transform: rotate(270deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Homepage Insights Section */
.homepage-insights-section {
    background-color: var(--background-default);
    padding: 0px 0;
    width: 100%;
    box-sizing: border-box;
}

.homepage-insights-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    box-sizing: border-box;
}

.homepage-insights-title {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 var(--spacing-md) 0;
}

.homepage-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    width: 100%;
}

.homepage-insight-card {
    background-color: var(--background-default);
    border: none;
    border-top: 0.5px solid var(--border-default);
    padding: 16px 0px 16px 0px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.homepage-insight-card-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.homepage-insight-card-title {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 3px 0;
}

.homepage-insight-card-description {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
}

.homepage-insight-card-arrow {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-top: auto;
}

.homepage-insight-card-arrow .button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.homepage-insight-card:hover .button-arrow {
    transform: translateX(2px);
}

.homepage-insight-card:hover .homepage-insight-card-title {
    color: var(--primary);
}

/* Data Collections Section */
.data-collections-section {
    background-color: var(--background-default);
    padding: 40px var(--spacing-container-padding);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.data-collections-title {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 var(--spacing-lg) 0;
    width: min-content;
    min-width: 100%;
    position: relative;
    z-index: 4;
}

.data-collections-tabs-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 54px;
    width: 100%;
    position: relative;
    z-index: 3;
    border-bottom: 0.5px solid var(--border-default);
}

.data-collections-tabs {
    display: flex;
    gap: var(--spacing-md);
    height: 100%;
    align-items: flex-end;
}

.data-collections-tab {
    background: none;
    border: none;
    padding: var(--spacing-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    line-height: normal;
    transition: all 0.2s ease;
    border-radius: 0;
    border-bottom: 4px solid transparent;
}

.data-collections-tab:hover {
    color: var(--primary);
}

.data-collections-tab.active {
    font-weight: var(--weight-bold);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.data-collections-content {
    display: flex;
    gap: var(--spacing-page-margin);
    align-items: flex-start;
    width: 100%;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.data-collections-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: stretch;
}

.data-collections-subtitle {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 var(--spacing-md) 0;
    width: min-content;
    min-width: 100%;
}

.data-collections-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 var(--spacing-lg) 0;
    width: min-content;
    min-width: 100%;
}

.data-collections-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.data-collections-list-title {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    width: 100%;
}

.data-collections-list-item {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 0.5px solid var(--text-primary);
    width: 100%;
}

.data-collections-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-collections-buttons {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.data-collections-buttons .button {
    flex-shrink: 0;
    width: auto;
}

.data-collections-image {
    width: 584px;
    max-width: 100%;
    height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
}

.chart-header {
    width: 100%;
    margin-bottom: 4px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

.chart-title {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    text-align: left;
}

.chart-subtitle {
    font-family: var(--font-family);
    font-size: var(--font-size-body-small);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    text-align: left;
}



/* Help Section - How can ClimateDeck help you? */
.help-section {
    padding: var(--spacing-page-margin) 0 0;
    width: 100%;
    box-sizing: border-box;
}

.help-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    box-sizing: border-box;
}

.help-title {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0 0 var(--spacing-md) 0;
    white-space: nowrap;
}

.help-grid {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-top: var(--spacing-md);
}

.help-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--spacing-md) 0;
    border-radius: 0;
    box-sizing: border-box;
    min-height: 1px;
    min-width: 1px;
}

.help-card-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 0px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: brightness(0);
}

.help-card-spacing {
    height: var(--spacing-md);
    flex-shrink: 0;
}

.help-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.help-card-title {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding: 0;
    width: min-content;
    min-width: 100%;
}

.help-card-title-spacing {
    height: var(--spacing-md);
    flex-shrink: 0;
}

.help-card-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding: 0;
    width: min-content;
    min-width: 100%;
}

/* Contact Section - Homepage Callout Style */
.contact-section {
    background-color: var(--primary);
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    display: flex;
    gap: var(--spacing-page-margin);
    align-items: flex-start;
    box-sizing: border-box;
}

.contact-title {
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-title h2 {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--background-default);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.contact-content {
    flex: 1;
    min-width: 0;
    padding-top: var(--spacing-md);
    border-top: 0.5px solid var(--background-default);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    line-height: normal;
    color: var(--background-default);
    margin: 0;
    width: 100%;
}

/* Licensing Section */
.licensing-section {
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.licensing-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    box-sizing: border-box;
}

.licensing-title {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.licensing-spacing {
    height: var(--spacing-md);
    flex-shrink: 0;
}

.licensing-content {
    display: flex;
    gap: var(--spacing-page-margin);
    align-items: flex-start;
    width: 100%;
}

.licensing-intro {
    width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.licensing-intro-text {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    width: min-content;
    min-width: 100%;
}

.licensing-details {
    flex: 1;
    background-color: var(--background-default);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.licensing-subtitle {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.licensing-section-title {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.licensing-item {
    display: flex;
    gap: var(--spacing-xs);
    align-items: flex-start;
    width: 100%;
}

.licensing-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.licensing-item-title {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    white-space: nowrap;
}

.licensing-item-description {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    flex: 1;
}

.licensing-divider {
    height: 0.5px;
    background-color: var(--border-default);
    width: 100%;
    position: relative;
}

.licensing-attribution {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    flex: 1;
}

.licensing-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    cursor: pointer;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.faq-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-container-padding);
    display: flex;
    gap: var(--spacing-page-margin);
    box-sizing: border-box;
}

.faq-intro {
    width: 320px;
    flex-shrink: 0;
}

.faq-intro-title {
    font-size: var(--font-size-body-large);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: normal;
}

.faq-intro-text {
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin-bottom: var(--spacing-md);
}

.faq-contact {
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--primary);
    text-decoration: underline;
}

.faq-content {
    flex: 1;
}

.faq-item {
    margin-bottom: var(--spacing-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: var(--spacing-md);
}

.faq-question-text {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-answer {
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin-bottom: var(--spacing-md);
}

.faq-divider {
    height: 0.5px;
    background-color: var(--text-primary);
    margin: var(--spacing-md) 0;
}

/* Spacing utilities */
.spacing-xs { margin-bottom: var(--spacing-xs); }
.spacing-sm { margin-bottom: var(--spacing-sm); }
.spacing-md { margin-bottom: var(--spacing-md); }
.spacing-lg { margin-bottom: var(--spacing-lg); }
.spacing-xl { margin-bottom: var(--spacing-xl); }
.spacing-xxl { margin-bottom: var(--spacing-xxl); }
.spacing-page-margin { margin-bottom: var(--spacing-page-margin); }

/* Responsive design */
@media (max-width: 1200px) {
    /* Consistent padding for all sections at medium screens - 60px */
    .hero-section,
    .data-collections-section {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .welcome-section {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .about-rhodium-container,
    .highlights-container,
    .homepage-insights-container,
    .help-container,
    .contact-container,
    .licensing-container,
    .faq-container {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .highlights-secondary {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .about-rhodium-container {
        gap: var(--spacing-xl);
    }
    
    .about-rhodium-title,
    .contact-title {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

/* Medium screens - start making charts responsive earlier */
@media (max-width: 1200px) {
    .highlights-image,
    .data-collections-image {
        width: 500px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .highlights-image,
    .data-collections-image {
        width: 450px;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .highlights-image,
    .data-collections-image {
        width: 400px;
        max-width: 100%;
    }
    
    .highlights-image {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    /* Home button size on mobile */
    .home-button {
        font-size: 28px !important;
    }
    
    /* Button sizing on mobile */
    .button,
    .rhg-btn {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    /* Consistent margins for all sections on smaller screens - spacing-xl */
    .hero-section,
    .data-collections-section {
        padding: var(--spacing-xl) var(--spacing-xl);
    }
    
    .hero-section::before {
        width: 60%;
    }
    
    .welcome-section {
        padding: 40px var(--spacing-xl);
    }
    
    .about-rhodium-container,
    .highlights-container,
    .homepage-insights-container,
    .help-container,
    .contact-container,
    .licensing-container,
    .faq-container {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
    
    .highlights-secondary {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
    
    .hero-content {
        padding-top: var(--spacing-xl);
    }
    
    .hero-headline {
        font-size: 36px;
        line-height: 1.15;
        letter-spacing: -0.01em;
    }
    
    .hero-copy {
        font-size: 20px;
        line-height: 1.5;
    }
    
    
    .highlights-content,
    .data-collections-content,
    .about-rhodium-container,
    .contact-container,
    .licensing-content,
    .faq-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .licensing-intro {
        width: auto;
        max-width: none;
    }
    
    .about-rhodium-title,
    .contact-title {
        flex: none;
        max-width: none;
    }
    
    .about-rhodium-content,
    .contact-content {
        border-top: none;
        padding-top: 0;
    }
    
    .help-grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .help-card {
        flex: none;
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .help-card-icon {
        flex-shrink: 0;
    }
    
    .help-card-spacing {
        display: none;
    }
    
    .help-card-text {
        flex: 1;
        min-width: 0;
    }
    
    .help-card-title,
    .help-card-description {
        width: 100%;
        min-width: 0;
    }
    
    .highlights-image,
    .data-collections-image {
        width: 100%;
        max-width: 584px;
    }
    
    .highlights-image {
        margin-top: 0;
    }
    
    .highlights-featured-number {
        font-size: 32px;
    }
    
    .highlights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .homepage-insights-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .data-collections-tabs {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .data-collections-tab {
        font-size: var(--font-size-body-small);
    }
}

@media (max-width: 480px) {
    /* Consistent margins for very small screens */
    .hero-section,
    .data-collections-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-section::before {
        width: 70%;
    }
    
    .welcome-section {
        padding: 40px var(--spacing-md);
    }
    
    .about-rhodium-container,
    .highlights-container,
    .homepage-insights-container,
    .help-container,
    .contact-container,
    .licensing-container,
    .faq-container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .highlights-secondary {
        flex-direction: column;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        gap: var(--spacing-lg);
    }
    
    .hero-headline {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-copy {
        font-size: 18px;
        line-height: 1.6;
    }
    
    .highlights-featured-number {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .help-grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .help-card {
        flex: none;
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .help-card-text {
        flex: 1;
        min-width: 0;
    }
    
    .help-card-title,
    .help-card-description {
        width: 100%;
        min-width: 0;
    }
    
    .highlights-card {
        align-self: auto;
    }
    
    .data-collections-buttons {
        flex-direction: column;
    }
    
    .data-collections-subtitle {
        font-size: 28px;
    }
    
    .data-collections-tabs-container {
        min-height: 44px;
    }
}

/* Terms of Service Page Styles */
.tos-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 320px;
    box-sizing: border-box;
    font-family: var(--font-family);
    color: var(--text-primary);
}

.tos-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header Section */
.tos-header {
    width: 100%;
}

.tos-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 0.5px solid var(--border-default);
    padding-bottom: var(--spacing-sm);
}

.tos-title-section {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.tos-main-title {
    font-family: var(--font-family);
    font-size: var(--font-size-heading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding-top: 40px;
}

.tos-utility-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.tos-divider-line {
    width: 40px;
    height: 0.5px;
    background-color: var(--border-default);
    transform: rotate(270deg);
}

.tos-spacing-sm {
    height: 16px;
    width: 100%;
}

.tos-spacing-md {
    height: 16px;
    width: 100%;
}

.tos-spacing-lg {
    height: 40px;
    width: 100%;
}

.tos-data-overview {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    overflow: hidden;
}

.tos-data-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.tos-data-label {
    font-family: var(--font-family);
    font-size: var(--font-size-body-small);
    font-weight: var(--weight-regular);
    color: #797c7d;
    line-height: normal;
    margin: 0;
}

.tos-data-value {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
}

/* Section Styles */
.tos-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tos-section-heading {
    width: 100%;
}

.tos-section-heading h2 {
    font-family: var(--font-family);
    font-size: var(--font-size-subheading);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
}

.tos-section-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.tos-section-content p {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    max-width: 800px;
    width: 100%;
}

.tos-section-content strong {
    font-weight: var(--weight-bold);
}

.tos-section-content a {
    color: var(--text-primary);
    font-weight: var(--weight-bold);
    text-decoration: underline;
    text-underline-position: from-font;
}

.tos-section-content a:hover {
    color: var(--primary);
}

.tos-section-content ol {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding-left: 24px;
    max-width: 800px;
    width: 100%;
}

.tos-section-content ul {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    line-height: normal;
    margin: 0;
    padding-left: 24px;
    max-width: 800px;
    width: 100%;
}

.tos-section-content li {
    margin-bottom: 0;
    margin-left: 24px;
}

.tos-section-content li:last-child {
    margin-bottom: 0;
}

/* Responsive Design for ToS */
@media (max-width: 1200px) {
    .tos-container {
        padding: 0 120px;
    }
}

@media (max-width: 768px) {
    .tos-container {
        padding: 0 var(--spacing-lg);
    }
    
    .tos-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tos-utility-links {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tos-main-title {
        font-size: 20px;
    }
    
    .tos-section-heading h2 {
        font-size: 18px;
    }
    
    .tos-section-content p,
    .tos-section-content ol,
    .tos-section-content ul {
        font-size: 14px;
    }
}
