/**
 * techtecnos.com — site-wide color + typography lock
 * Matches the homepage computed palette/fonts so posts/legal/rebuilt pages
 * cannot drift via missing body classes, theme defaults (Muli/Roboto),
 * or prefers-color-scheme: dark.
 *
 * Homepage reference (live computed):
 *   body bg #f9f9f9 / text #3D4452
 *   font: "Titillium Web", serif — body 16px/24px, nav 15px/22.5px
 *   .top-header-part bg #ffffff
 *   .bottom-header-part bg #151618
 *   #colophon bg #1a202b
 *
 * Requires: /wp-content/fonts/327e5ef7808138a5599ec5624c5f6c63.css (@font-face)
 */
html {
  --clr-foreground: #202124;
  --clr-background: #f1f1f1;
  --light-bg-color: #ffffff;
  --text-color-normal: #3d4452;
  --clr-sub-background: #ffffff;
  --clr-sub-border: #f1f1f1;
  --primary-color: #d82926;
  --header-text-color: #d82926;
  /* Override legal-news / apex-news theme defaults (Muli, Roboto) */
  --font-heading: "Titillium Web", serif;
  --font-main: "Titillium Web", serif;
  --font-site-title: "Titillium Web", serif;
  --font-site-description: "Titillium Web", serif;
}

/* Neutralize legal-news prefers-color-scheme: dark :root overrides */
@media (prefers-color-scheme: dark) {
  html {
    --clr-foreground: #202124;
    --clr-background: #f1f1f1;
    --light-bg-color: #ffffff;
    --text-color-normal: #3d4452;
    --clr-sub-background: #ffffff;
    --clr-sub-border: #f1f1f1;
    --font-heading: "Titillium Web", serif;
    --font-main: "Titillium Web", serif;
  }
}

/* Typography — homepage Titillium Web stack site-wide */
body,
body.custom-background,
body.home,
body.single,
body.page,
body.archive,
body.search,
body.error404,
button,
input,
select,
optgroup,
textarea,
.site-title,
.site-title a,
.site-description,
.main-navigation,
.main-navigation a,
.menu-item a,
.entry-title,
.mag-post-title,
.mag-post-title a,
.section-title,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
h1,
h2,
h3,
h4,
h5,
h6,
.site-main,
.ascendoor-site-wrapper,
.wrapper,
.widget,
.widget a,
#colophon,
.site-footer {
  font-family: "Titillium Web", serif !important;
}

body {
  font-size: 16px;
  line-height: 1.5; /* 24px */
}

.main-navigation a,
.bottom-header-part .menu-item a {
  font-size: 15px;
  line-height: 1.5; /* 22.5px */
}

body,
body.custom-background,
body.home,
body.single,
body.page,
body.archive,
body.search,
body.error404 {
  background: #f9f9f9 !important;
  background-color: #f9f9f9 !important;
  color: #3d4452 !important;
}

/* Header regions — exact homepage values */
#masthead.site-header,
header.site-header {
  background-color: transparent;
  color: #3d4452;
}

.top-header-part {
  background-color: #ffffff !important;
  color: #202124 !important;
}

.top-header-part a,
.top-header-part .date-wrap {
  color: #202124 !important;
}

.middle-header-part {
  background-color: transparent;
  color: #3d4452;
}

.middle-header-part .site-title a,
.middle-header-part .site-description {
  color: #3d4452 !important;
}

.bottom-header-part {
  background-color: #151618 !important;
  color: #eaeaea;
}

.bottom-header-part a,
.bottom-header-part .menu-item a,
.bottom-header-part .main-navigation a {
  color: #eaeaea;
}

/* Footer — homepage computed #1a202b */
#colophon.site-footer,
footer.site-footer {
  background-color: #1a202b !important;
  color: #eaeaea !important;
}

#colophon a,
.site-footer a,
.footer-menu a {
  color: #eaeaea !important;
}

/* Sidebar / widgets — inherit page text, no alternate dark panel */
#secondary,
aside.widget-area,
.widget-area {
  background-color: transparent !important;
  color: #3d4452 !important;
}

#secondary a,
.widget-area a {
  color: inherit;
}

.site-main,
.entry-content,
.ascendoor-site-wrapper,
.wrapper {
  color: #3d4452;
}

/* Homepage numbered pagination */
.navigation.pagination,
.navigation.posts-navigation {
  clear: both;
  margin: 2rem 0 1rem;
  text-align: center;
}

.navigation.pagination .nav-links,
.navigation.posts-navigation .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.navigation.pagination .page-numbers,
.navigation.posts-navigation .page-numbers {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e2e4e8;
  background: #fff;
  color: #3d4452 !important;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
}

.navigation.pagination .page-numbers.current,
.navigation.posts-navigation .page-numbers.current {
  background: #151618;
  border-color: #151618;
  color: #fff !important;
}

.navigation.pagination a.page-numbers:hover,
.navigation.posts-navigation a.page-numbers:hover {
  border-color: #d82926;
  color: #d82926 !important;
}
