/* Global Base Styles */
body {
  font-family: var(--base-font);            /* Use brand font for all text :contentReference[oaicite:2]{index=2} */
  background: var(--bg-color);              /* Light page background */
  color: var(--text-color);                /* Dark text for main content */
  line-height: 1.6;                        /* Comfortable reading line-height */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--base-font);
  color: #111111;               /* Slightly darker for emphasis */
  font-weight: 700;             /* Make headers bold for clear hierarchy */
  margin-top: 1em;
  margin-bottom: 0.5em;
}
h3, h4, h5, h6 {
  font-weight: 600;             /* Use semi-bold for smaller headings */
}

/* Links */
a {
  color: var(--brand-color);              /* Accent color links */
  text-decoration: none;                  /* Remove default underline for a clean look */
  border-bottom: 1px solid transparent;   /* Add subtle hover underline effect */
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brand-color);             /* (Color remains accent on hover) */
  border-bottom-color: var(--brand-color);
}

/* Search Bar Styles */
#searchBar .search-query {
  background: #FFFFFF;                  /* White input field for contrast */
  color: #555555;                       /* Gray text (including placeholder) */
  border: 1px solid var(--border-color);/* Soft gray border for input */
  border-top-left-radius: 4px;          /* Rounded left corners */
  border-bottom-left-radius: 4px;
  padding: 0.5em 0.75em;
  box-shadow: none;
}
#searchBar .search-query:focus {
  outline: none;
  border-color: var(--brand-color);     /* Highlight input border in brand blue on focus */
  box-shadow: 0 0 0 2px rgba(0,63,164, 0.2);
}
#searchBar button {
  background: var(--brand-color);       /* Brand-colored search button :contentReference[oaicite:3]{index=3} */
  color: #FFFFFF;
  border: 1px solid var(--brand-color);
  border-top-right-radius: 4px;         /* Rounded right corners to match input */
  border-bottom-right-radius: 4px;
  padding: 0.5em 1em;
  cursor: pointer;
}
#searchBar button:hover {
  background: #0048BD;                  /* Slightly lighter blue on hover */
}
#searchBar button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,63,164, 0.3);
}

/* Article List Tiles (Categories/Collections) */
.category-list .category,
.twoCol .collection, .threeCol .collection {
  background: #FFFFFF;                   /* White card background for each article/category tile */
  border: 1px solid var(--border-color); /* Light gray border outlining the tile :contentReference[oaicite:4]{index=4}:contentReference[oaicite:5]{index=5} */
  border-radius: 6px;                    /* Smooth corners on tiles */
  padding: 1em 1.2em;
  margin: 0 0 1.5em 0;                   /* Space between tiles */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);/* Subtle shadow for depth */
}
.category-list .category:hover,
.twoCol .collection:hover, .threeCol .collection:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* Elevate on hover for interactivity */
}

/* Buttons (general) */
button, input[type=button], input[type=submit] {
  background: var(--brand-color);     /* Brand blue buttons */
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
button:hover, input[type=button]:hover, input[type=submit]:hover {
  background: #0048BD;               /* Lighten button on hover (matches search button hover) */
}
button:focus, input[type=button]:focus, input[type=submit]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,63,164, 0.3);
}

/* Article Content (within articles) */
.articleBody p {
  color: var(--text-color);          /* Ensure article text uses primary text color */
  font-size: 1rem;
}
.articleBody a {
  color: var(--brand-color);         /* Links in articles in accent color */
  text-decoration: underline;
}
.articleBody a:hover {
  text-decoration: none;
}

/* (Optional) Article footer/metadata */
.articleFoot time.lu {
  color: #999999;
  font-size: 0.9em;
}
