/* ===========================================
   FANTASY CHALK TALK - MAIN STYLES
   =========================================== */

/* ===========================================
   RESPONSIVE BREAKPOINT STANDARDS
   =========================================== */
/* 
STANDARDIZED BREAKPOINTS (Tailwind Compatible):
- sm: 640px and up (small tablets, large phones in landscape)
- md: 768px and up (medium tablets, small laptops)  
- lg: 1024px and up (large tablets, laptops)
- xl: 1280px and up (desktops)
- 2xl: 1536px and up (large desktops)

MOBILE-FIRST APPROACH:
- Base styles: Mobile (up to 639px)
- @media (max-width: 480px): Very small phones
- @media (max-width: 639px): Mobile only
- @media (max-width: 767px): Mobile + small tablets
- @media (min-width: 640px): Small tablets and up
- @media (min-width: 768px): Medium tablets and up
- @media (min-width: 1024px): Laptops and up
- @media (min-width: 1280px): Desktops and up

TOUCH-SPECIFIC:
- @media (hover: none) and (pointer: coarse): Touch devices
- @media (hover: hover) and (pointer: fine): Mouse/trackpad devices

ACCESSIBILITY:
- @media (prefers-reduced-motion: reduce): Reduced motion preference
- @media (prefers-contrast: high): High contrast preference
- @supports (-webkit-touch-callout: none): iOS Safari specific

PRINT:
- @media print: Print-specific styles
*/

/* Base styles
 * NOTE: Legacy variables below alias to brand-tokens.css values.
 * New code should use --brand-* or --ffn-ed-* tokens directly.
 */
:root {
    --primary-color: var(--brand-blue);
    --secondary-color: #ff6347;
    --background-color: var(--brand-bg);
    --text-color: var(--brand-text);
    --header-color: var(--brand-navy);
    --footer-color: var(--brand-navy);
    --white: var(--brand-white);
    --gray-100: #f8f9fa;
    --gray-200: #f0f0f0;
    --gray-300: #e9ecef;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #555;
    --gray-800: #343a40;
    --gray-900: #212529;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Dropdown menu styling override */
#weekly-analysis-menu a,
#tools-menu a,
.week-section a {
    color: #212529 !important;
}

#weekly-analysis-menu a:hover,
#tools-menu a:hover,
.week-section a:hover {
    color: #212529 !important;
    background-color: #f8f9fa;
}

/* Additional specificity for dynamically created elements */
div[id="weekly-analysis-menu"] a,
div[id="tools-menu"] a {
    color: #212529 !important;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

/* Player rankings styling */
.player-team {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Legacy header/nav removed -- editorial-shell.js handles header/footer now */

.logo img {
    max-width: 200px;
    height: auto;
}

/* Main content */
.main-content {
    margin-top: 80px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy hero-section removed -- editorial-pilot.css handles heroes now */

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Section styles */
.featured-section,
.latest-section,
.analysis-section,
.depth-chart-section,
.about-section {
    margin-bottom: 4rem;
}

/* Weekly analysis menu */
#weekly-analysis-menu {
    background-color: var(--header-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Legacy footer removed -- editorial-shell.js handles footer now */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Index Page Specific Styles */
.site-title {
    text-align: center;
    padding: 80px 0 60px;
    font-size: 72px;
    font-weight: 900;
    color: var(--header-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    font-family: var(--font-heading);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 1023px) {
    .site-title {
        font-size: 48px;
        padding: 60px 0 40px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 36px;
        padding: 40px 0 30px;
        letter-spacing: 1px;
    }
}

.site-title:after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ===========================================
   ARTICLE CLUSTER STYLES
   All article-cluster styles consolidated in components.css
   =========================================== */

.archive-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.archive-actions--bottom {
    margin-top: 3.25rem;
    margin-bottom: 1rem;
}

.rankings-section {
    margin-top: 60px;
}

.rankings-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--header-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.rankings-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rankings-title a:hover {
    color: var(--primary-color);
}

.rankings-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.ppr-toggle {
    display: flex;
    margin-bottom: 16px;
    background-color: #eef2f7;
    border-radius: 10px;
    padding: 3px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.position-toggle {
    display: flex;
    margin: 0 auto 20px;
    background-color: #eef2f7;
    border-radius: 10px;
    padding: 3px;
    max-width: 360px;
}

.rankings {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.ranking-column {
    width: 100%;
    max-width: 600px;
    background: var(--ffn-ed-surface);
    border-radius: var(--brand-radius-xl, 1.25rem);
    padding: 0;
    box-shadow: var(--brand-shadow-md, 0 10px 30px -5px rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(7, 16, 31, 0.06);
    overflow: hidden;
}

.expert-name {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--header-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.expert-name:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.player-list {
    list-style: none;
    font-variant-numeric: tabular-nums;
}

.player-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(7, 16, 31, 0.06);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.player-list li:nth-child(even) {
    background-color: var(--ffn-ed-surface);
}

.player-list li:hover {
    background-color: rgba(0, 87, 255, 0.055);
    box-shadow: inset 3px 0 0 var(--ffn-ed-accent, #0057ff);
}

.player-list li:last-child {
    border-bottom: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.player-rank {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--ffn-ed-text, #07101f);
    min-width: 1.8rem;
    text-align: right;
    letter-spacing: -0.02em;
}

.player-rank--elite {
    color: #b45309;
}

.player-list li:hover .player-name {
    color: var(--ffn-ed-accent, #0057ff);
}

.player-list li.has-team-tint:hover .player-name {
    color: var(--ffn-row-team-color);
}

.hp-pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.4rem;
    border-radius: 0.3rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.hp-pos-badge--qb   { background: var(--brand-pos-qb-bg, #fef3c7); color: var(--brand-pos-qb-text, #92400e); }
.hp-pos-badge--rb   { background: var(--brand-pos-rb-bg, #dcfce7); color: var(--brand-pos-rb-text, #166534); }
.hp-pos-badge--wr   { background: var(--brand-pos-wr-bg, #dbeafe); color: var(--brand-pos-wr-text, #1e40af); }
.hp-pos-badge--te   { background: var(--brand-pos-te-bg, #fce7f3); color: var(--brand-pos-te-text, #9d174d); }
.hp-pos-badge--k    { background: var(--brand-pos-k-bg, #f3e8ff);  color: var(--brand-pos-k-text, #6b21a8); }
.hp-pos-badge--dst,
.hp-pos-badge--def  { background: #eef2ff; color: #4338ca; }

.hp-team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.18rem 0.45rem;
    border-radius: 0.35rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--ffn-row-team-color, #6B7280);
    color: var(--ffn-row-team-contrast, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.see-full-list {
    text-align: center;
    padding: 0.85rem 1rem;
    color: var(--ffn-ed-accent, #0057ff);
    cursor: pointer;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.18s ease, color 0.18s ease;
    border-top: 1px solid rgba(7, 16, 31, 0.06);
}

.see-full-list:hover {
    background-color: rgba(0, 87, 255, 0.055);
    color: var(--ffn-ed-text, #07101f);
}


.more-articles-header {
    text-align: center;
    margin: 40px 0 30px 0;
}

.more-articles-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--header-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 0;
}

.more-articles-header h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.bottom-articles {
    margin-bottom: 40px;
}

.bottom-article {
    background-color: white;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
}

.bottom-article:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
}

.bottom-article h3 {
    margin-bottom: 15px;
    color: var(--header-color);
    font-size: 20px;
}

.bottom-article p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 1023px) {
    .header-content {
        flex-direction: column;
    }

    .nav-menu {
        margin-top: 1rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    /* Article cluster mobile styles in components.css */

    .rankings {
        flex-direction: column;
    }

    .ranking-column {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Mobile typography improvements */
    body {
        line-height: 1.7;
    }

    /* Article excerpt mobile styles in components.css */

    /* Better mobile spacing */
    .container {
        padding: 0 16px;
    }

    .rankings-section {
        padding: 0 8px;
    }

    .homepage-tools-section {
        margin: 3rem 0 3.5rem;
    }

    .homepage-tools-grid {
        gap: 0.8rem;
        justify-content: flex-start;
    }

    .archive-actions--bottom {
        margin-top: 2.5rem;
    }
}

/* Mobile Table Typography Enhancements */
@media (max-width: 1023px) {
    /* Ensure all tables have good mobile typography */
    table {
        font-size: 14px;
        line-height: 1.4;
    }
    
    table th {
        font-size: 12px;
        font-weight: 600;
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    table td {
        padding: 10px 8px;
        line-height: 1.3;
    }
    
    /* Player names and important content */
    .player-name,
    .team-cell {
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Rankings and numbers */
    .font-bold {
        font-weight: 700;
    }
    
    /* Improve readability of small text */
    .text-sm {
        font-size: 13px;
    }
    
    .text-xs {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 12px;
    }
    
    table th {
        font-size: 11px;
        padding: 10px 6px;
    }
    
    table td {
        padding: 8px 6px;
    }
    
    .player-name,
    .team-cell {
        font-size: 13px;
    }
    
    .text-sm {
        font-size: 12px;
    }
    
    .text-xs {
        font-size: 11px;
    }

    .hero-support-copy {
        margin-top: 1rem;
        line-height: 1.7;
    }

    .home-about-box {
        margin: 1.25rem auto 2.5rem auto;
    }

    .home-about-copy {
        font-size: 14px;
        line-height: 1.7;
    }

    .homepage-tools-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem 1rem;
        align-items: start;
    }

    .homepage-tool-link {
        width: auto;
        padding: 0.15rem 0 0.3rem;
        font-size: 0.88rem;
        justify-self: center;
        text-align: center;
    }
}

/* Sticky Header Mobile Enhancements */
@media (max-width: 1023px) {
    /* Ensure proper z-index stacking on mobile */
    .site-header,
    header[class*="fixed"] {
        z-index: 1000;
    }
    
    /* Table sticky headers should be below site header */
    .rankings-table th[style*="sticky"],
    .defense-rankings-table th,
    table th[class*="sticky"] {
        z-index: 10;
    }
    
    /* Mobile sticky table improvements */
    .table-container {
        position: relative;
        max-height: calc(100vh - 200px);
    }
    
    /* Ensure dropdown menus work properly on mobile */
    .dropdown__menu,
    #weekly-analysis-menu,
    #tools-menu {
        z-index: 999;
    }
    
    /* Mobile menu overlay */
    #mobile-menu {
        z-index: 1001;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .table-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix sticky header positioning in iOS Safari */
    .rankings-table th,
    .defense-rankings-table th {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Touch Target Audit & Fixes */
/* Ensure ALL interactive elements meet 44px minimum touch target */
@media (max-width: 1023px) {
    /* Buttons and form controls */
    /* :where() keeps these tap-target defaults below component styles */
    :where(button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .ffn-toggle,
    .ffn-pilot-button,
    .view-btn) {
        min-width: 44px;
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Links in navigation and dropdowns */
    :where(nav a,
    .nav-link,
    .dropdown__item,
    .mobile-menu a,
    #weekly-analysis-menu a,
    #tools-menu a) {
        min-height: 44px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
    }
    
    /* Table headers that are sortable/clickable */
    table th.sortable,
    .rankings-table th.sortable,
    .defense-rankings-table th.sortable {
        min-width: 44px;
        min-height: 44px;
        padding: 12px 8px;
    }
    
    /* Logo/brand links */
    .logo a,
    header a[href="/"] {
        min-height: 44px;
        padding: 8px 0;
    }
    
    /* Archive and read more buttons */
    .read-more,
    .see-full-list {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Form inputs */
    /* :where() keeps these mobile defaults below component input styles */
    :where(input[type="text"],
    input[type="email"],
    input[type="search"],
    select,
    textarea) {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Player cards when clickable */
    .player-card[role="button"],
    .player-card.clickable {
        min-height: 44px;
    }
    
    /* Dropdown triggers */
    .dropdown__trigger,
    button[aria-haspopup="true"] {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 12px;
    }
}

/* Component Stacking & Spacing Improvements */
@media (max-width: 1023px) {
    /* Filter container improvements */
    .filter-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .filter-group {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: center !important;
    }
    
    /* Button group spacing - single row segmented controls */
    .ppr-toggle,
    .position-toggle {
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 3px !important;
    }
    
    /* Card grid improvements */
    .defense-detailed-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Article cluster mobile styles in components.css */

    /* Better spacing for sections */
    .featured-section,
    .latest-section,
    .analysis-section {
        margin-bottom: 32px !important;
        padding: 0 16px !important;
    }
    
    /* Rankings layout improvements (skip pilot pages -- editorial-pilot.css handles those) */
    :not(.ffn-pilot-home) > .rankings,
    .rankings:not(.ffn-pilot-home .rankings) {
        flex-direction: column;
        gap: 20px;
    }

    :not(.ffn-pilot-home) > .ranking-column,
    .ranking-column:not(.ffn-pilot-home .ranking-column) {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Footer improvements */
    .footer-content {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .footer-section {
        margin-right: 0 !important;
        margin-bottom: 24px !important;
    }

    /* Hero section adjustments */
    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    /* Improved spacing for content sections (skip pilot pages) */
    main.header-spacing:not(.ffn-pilot-page) {
        padding-top: 140px !important;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    /* Even tighter spacing on very small screens */
    .filter-container,
    .ppr-toggle,
    .position-toggle {
        gap: 8px !important;
        padding: 8px !important;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }
}

/* Mobile Navigation - styles managed by header-footer.js */
@media (max-width: 1023px) {
    /* Dropdown performance */
    .dropdown__menu,
    #weekly-analysis-menu,
    #tools-menu {
        will-change: opacity, transform;
        transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    }
}

/* Mobile Image Optimization */
@media (max-width: 1023px) {
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Logo optimization */
    .logo img,
    header img[alt*="Logo"] {
        max-height: 28px;
        width: auto;
        object-fit: contain;
    }
    
    /* Team cell images if any */
    .team-cell img {
        max-width: 20px;
        max-height: 20px;
        object-fit: contain;
    }
    
    /* Optimize background images */
    .hero-section,
    .article-overlay {
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Better performance on mobile */
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 24px;
    }
}



/* Advanced Mobile Optimizations */

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .article-box:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-box {
        border: 2px solid var(--text-color);
    }

}

/* Improved mobile layout for smaller screens */
@media (max-width: 480px) {
    .ppr-toggle,
    .position-toggle {
        flex-wrap: nowrap;
        gap: 0;
        padding: 3px;
        max-width: 100%;
        border-radius: 10px;
    }

    .rankings {
        gap: 12px;
    }

    /* Article overlay mobile styles in components.css */
}

/* ===========================================
   FCT INFO BOX (Above Rankings)
   =========================================== */

.ffn-info-box {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 40px 48px;
    margin: 48px auto 32px auto;
    max-width: 900px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-heading {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.info-heading:not(:first-child) {
    margin-top: 36px;
}

.info-list {
    list-style: disc;
    margin: 0 0 0 24px;
    padding: 0;
}

.info-list li {
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 12px;
    font-weight: 400;
}

.info-list li::marker {
    color: #94a3b8;
}

.info-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.home-about-box {
    margin: 1.75rem auto 3.5rem auto;
}

.home-about-copy {
    text-align: center;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.home-about-details {
    margin-top: 1rem;
}

.home-about-summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    padding: 0.5rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-about-summary-icon {
    font-size: 12px;
    color: #94a3b8;
}

.home-about-list {
    margin-top: 0.75rem;
}

.homepage-tools-section {
    margin: 4rem 0 4.5rem;
    text-align: center;
}

.homepage-tools-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.homepage-tools-grid {
    display: flex;
    gap: 1rem 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.homepage-tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 0 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.homepage-tool-link:hover {
    color: #0e2240;
    border-color: #0e2240;
    transform: translateY(-2px);
}

.hero-support-copy {
    font-size: 1rem;
    color: #64748b;
    max-width: 660px;
    margin: 1.35rem auto 0;
    line-height: 1.8;
    font-weight: 400;
}

/* Responsive Design for Info Box */
@media (max-width: 1023px) {
    .ffn-info-box {
        padding: 32px 28px;
        margin: 32px auto 24px auto;
    }

    .info-heading {
        font-size: 18px;
    }

    .info-list li {
        font-size: 14px;
        line-height: 1.7;
    }

    .info-list {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .ffn-info-box {
        padding: 24px 20px;
        margin: 24px auto 20px auto;
    }

    .info-heading {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .info-heading:not(:first-child) {
        margin-top: 28px;
    }

    .info-list {
        margin-left: 18px;
    }

    .info-list li {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 10px;
    }
}
