/* --- Directory Specific Styles --- */

/* OVERRIDE: Allow scrolling and text selection on the directory */
body {
    overflow-y: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-md);
}

/* Feature Headings for 'What the Tool Offers' */
.feature-title {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    
    /* Flexbox for Icon Alignment */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-title:first-of-type {
    margin-top: 0;
}

/* Icon Styling */
.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--c-blue);
    flex-shrink: 0;
}

.legal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: var(--border-width) solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem; 
    font-weight: 700;
    font-family: var(--font-english);
    opacity: 0.8;
}
.legal-footer p { margin: 0; }

/* Link Styling - Modern & Clean */
.legal-footer a {
    color: var(--c-blue);
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.2s;
}
.legal-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Background Texture: Blueprint Dot Grid --- */
body.view-landing {
    position: relative;
    /* Ensure the base color remains solid */
    background-color: var(--bg-body);
    /* Allow the pseudo-element to sit behind content */
    z-index: 0; 
}

body.view-landing::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0;
    /* Height controls how far down the page the texture goes */
    height: 80vh; 
    
    /* Place it behind the .main-wrapper */
    z-index: -1;
    pointer-events: none;

    /* The Dot Pattern */
    /* Uses a variable from styles.css for consistent color */
    background-image: radial-gradient(var(--c-grey-400) 1.5px, transparent 1.5px);
    background-size: 24px 24px; /* Grid spacing */

    /* The Fade Out */
    /* Starts visible at top, fades to invisible at bottom */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    
    /* Overall subtlety */
    opacity: 0.6;
}