﻿/*<meta />*/

/* pelco.css (EN) */

/* import the vsa-template stylesheet */
@import url('vsa-template.css');

:root {
    /* NEW COLOR VARIABLES */
    --pelco-dark: #0d2045; /* Primary/Text Color */
    --pelco-medium: #255AC2; /* Secondary/Highlight Color */
    --pelco-light: #CFF500; /* Accent Color (e.g., preliminary-info) */
}

/* Content Scrollbar Handle on hover */

*::-webkit-scrollbar-thumb:hover
{
    background: var(--pelco-dark);
}

/* Top nav bar and search bar */
/* --- COLORS & HEADERS --- */
.header-main-color {
    color: var(--pelco-dark);
}
.section-header-border {
    /* Uses --pelco-medium for structural border */
    border-bottom: 4px solid var(--pelco-medium);
}

nav.title-bar
{
    /* REVERTED: Gradient now goes from dark to black (0% to 100%) for the original look, 
       but uses the new --pelco-dark color. */
    background: linear-gradient(90deg, var(--pelco-medium), black);
    box-shadow: 0px 1px 2px 0px #97A7B7;
}

nav.title-bar .search-bar
{
    background: #ffffff;
    box-shadow: 0px 1px 3px 0px #97A7B7;
    border-radius: 6px;
}

nav.title-bar .search-bar .search-field::placeholder
{
    color: #97A7B7;
}

/* Side Nav styles */

.sidenav-container
{
    /* Uses new --pelco-dark color */
    background: linear-gradient(45deg, var(--pelco-medium));
}

/* --- TILE CONTAINER STYLES --- */
.tile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 72rem;
}

/* --- CORE TILE STYLES --- */
.tile-link {
    /* FIXED SIZE SPECIFIED HERE: height and width rules */
    display: block;
    height: 9rem;
    width: 100%; /* Default: Full width on mobile */

    /* Responsive Widths using media queries for exact sizing */
    /* Small screens (sm: >= 640px) - 2 columns with 1.5rem gap */
    @media (min-width: 640px) {
        width: calc(50% - 0.75rem); /* 50% minus half the gap */
    }
    /* Large screens (lg: >= 1024px) - 4 columns with 1.5rem gap */
    @media (min-width: 1024px) {
        width: calc(25% - 1.125rem); /* 25% minus 3/4 of the gap */
    }

    /* Box Model and Appearance */
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    text-decoration: none;
    
    /* Flex Alignment for internal content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    
    /* Transition for smooth hover effect */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect (Now consolidated) */
.tile-link:hover {
    background-color: #E7EDF7; /* Custom light blue tint */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(1.03); /* Exact requested expansion */
}
    
/* --- TEXT STYLES --- */
.tile-title-main {
    font-size: 1.25rem;
    font-weight: 800;
    /* Uses new --pelco-dark color */
    color: var(--pelco-dark);
    margin-bottom: 0.25rem;
    text-transform: none;
}

.tile-subtitle-spec {
    font-size: 0.875rem;
    font-weight: 500;
    /* Uses new --pelco-medium color */
    color: var(--pelco-medium);
    text-transform: none;
}

.tile-meta-data {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-transform: none;
}

/* --- STICKY FOOTER HELPER --- */
/* This element must wrap ALL content EXCEPT the footer */
.content-wrapper {
    flex-grow: 1; /* This consumes all available vertical space, pushing the footer down */
}

/* tag selectors */

body {
    display: flex; /* ADDED for Flexbox layout */
    flex-direction: column; /* ADDED to stack header/content/footer vertically */
    min-height: 100vh; /* ADDED to ensure body takes up full viewport height */
    
    /* Existing Styles: */
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6
{
    /* Uses new --pelco-dark color */
    color: var(--pelco-dark);
    font-family: 'Spline Sans', sans-serif;
}

h1, h3
{
    color: #000;
}

p {
    font-family: 'Inter', sans-serif;
}

/* Link styles */

a:link
{
    color: var(--pelco-medium);
}

a:visited
{
    color: var(--pelco-medium);
}

a.MCXref
{
    color: var(--pelco-medium);
}

/* Title and Subtitle styles used in place of headings */

p.Title
{
    /* Uses new --pelco-dark color */
    color: var(--pelco-dark);
    font-family: 'Spline Sans', sans-serif;
}

/* TOCHeading used for the TOC heading para in place of actual heading */

p.TOCHeading
{
    /* Uses new --pelco-dark color */
    color: var(--pelco-dark);
}

p.FrontAndBackmatterHeadings
{
    /* Uses new --pelco-dark color */
    color: var(--pelco-dark);
    font-family: 'Spline Sans', sans-serif;
}

/* Menu, TOC and MiniTOC entries */

p.TOC1 {
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
}

p.MiniTOC1
{
	color: var(--pelco-medium);
}

p.MiniTOC2
{
	color: var(--pelco-medium);
}

p.MiniTOC3
{
	color: var(--pelco-medium);
}

p.MiniTOC4
{
	color: var(--pelco-medium);
}