@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');
html, body, button, input, textarea, nav, footer, header {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
}
/* Global base styling */
body {
  background-color: #EEEEEE !important;
  color: #000000 !important;
  font-family: 'DM Sans', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif !important;
  color: #000000;
  font-weight: 300;
}

/* Links */
a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

/* Ensure sections don't override background */
header, footer, main, section {
  background-color: transparent !important;
}
/* --- SITE TITLE --- */
.site-title a {
  color: #000000 !important;
  text-decoration: none;
}

.site-title a:hover {
  color: #444444 !important;
}

/* --- DESKTOP NAV LINKS --- */
.nav-menu .nav-link {
  color: #000000 !important;
}

.nav-menu .nav-link:hover {
  color: #444444 !important;
}

/* --- MOBILE MENU BUTTON --- */
.menu-toggle {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: none;
}

/* Text inside the Menu button */
.menu-toggle .menu-toggle-text {
  color: #FFFFFF !important;
}

/* Hamburger lines */
.menu-toggle .hamburger span {
  background-color: #FFFFFF !important;
}

/* --- DROPDOWN MENU PANEL --- */
.primary-menu {
  background-color: #000000 !important;
}

/* Dropdown links (About, Archive) */
.primary-menu .nav-link {
  color: #FFFFFF !important;
}

.primary-menu .nav-link:hover {
  color: #CCCCCC !important;
}
/* Force real uppercase site title */
.site-title .p-name {
  text-transform: uppercase !important;
  font-variant: normal !important;
  letter-spacing: 0.08em; /* optional, improves CAPS readability */
}
/* ============================= */
/* Simplified TechGov Footer    */
/* ============================= */

.tgd-footer {
  max-width: 960px;       /* align with posts/header */
  margin: 0 auto;
  padding: 80px 20px 40px 20px;
  font-family: 'DM Sans', sans-serif;
  color: #000000;
  text-align: left !important;
}

.tgd-footer-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.tgd-footer-rule {
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
  margin: 8px 0 20px 0;
}

.tgd-footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: #000000 !important;
  text-decoration: none;
  margin-bottom: 10px;
}

.tgd-footer-link:hover {
  color: #444444 !important;
}

.tgd-arrow {
  transform: translateY(-1px);
}
/* === TG — D mark in header (no avatar) === */

/* Hide avatar/logo */
.site-title .title-avatar {
  display: none !important;
}

/* Keep the link clean */
.site-title a {
  text-decoration: none !important;
}

/* Replace the title text with a custom mark */
.site-title .p-name {
  /* hide whatever the site title text is */
  color: transparent !important;

  /* layout box for TG — D */
  position: relative;
  display: inline-block;
  width: 260px;            /* adjust for line length */
  height: 24px;
  line-height: 24px;

  /* line between TG and D */
  background-image: linear-gradient(#000000, #000000);
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 80px) 1px; /* controls gap around TG/D */
}

/* Left label */
.site-title .p-name::before {
  content: "TG";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* Right label */
.site-title .p-name::after {
  content: "D";
  position: absolute;
  right: 0;
  top: 0;
  color: #000000;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
/* Align footer with header + posts */
.tgd-footer {
  max-width: 960px;   /* adjust if needed */
  margin: 0 auto;     /* center container */
  padding: 80px 20px 40px 20px; /* horizontal breathing space */
}
/* Remove the word "Menu" but keep hamburger */
.menu-toggle-text {
  display: none !important;
}
.menu-toggle {
  padding: 8px 12px !important;
}
/* =============================== */
/* Header refinements (Mythos)     */
/* =============================== */

/* 1) More whitespace around header */
.site-header {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* If the theme uses an inner container with padding, keep it aligned */
.header-container {
  align-items: center !important;
}

/* 2) Hide the word "Menu" */
.menu-toggle-text {
  display: none !important;
}

/* 3) Make the hamburger thinner + tighter */
.menu-toggle .hamburger span,
.js-menu-toggle .hamburger span {
  height: 1px !important;        /* thinner lines */
  border-radius: 0 !important;
}

/* Reduce the vertical spacing between lines (theme varies; this helps) */
.menu-toggle .hamburger span + span,
.js-menu-toggle .hamburger span + span {
  margin-top: 5px !important;
}

/* Optionally make the hamburger a bit smaller */
.menu-toggle .hamburger,
.js-menu-toggle .hamburger {
  transform: scale(0.9);
  transform-origin: center;
}
/* Stack links vertically */
.tgd-footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tgd-footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: normal; /* prevents forcing single-line layout */
}

.tgd-arrow {
  display: inline-block;
  transform: translateY(-1px);
}
/* Post titles (homepage + single posts) */
.post-title,
.post-title a,
h1.post-title,
h2.post-title {
  color: #000000 !important;
}

/* Ensure linked titles are also black */
.post-title a:hover {
  color: #444444 !important; /* optional subtle hover */
}
/* Desktop: make header scroll away (disable sticky/fixed) */
@media (min-width: 721px) {
  .site-header {
    position: static !important;
    top: auto !important;
  }
}
@media (min-width: 721px) {
  .header-container,
  .site-header .header-container {
    position: static !important;
    top: auto !important;
  }
}
/* ===== Archive Page Titles ===== */

.archive .post-title,
.archive .post-title a,
.archive h2 a,
.archive article h2 a,
.post-list h2 a,
.h-entry h2 a {
  color: #000000 !important;
}

/* Optional subtle hover */
.archive h2 a:hover,
.post-list h2 a:hover {
  color: #444444 !important;
}
/* Force archive titles to pure black */
.archive h2 a,
.archive article h2 a {
  color: #000000 !important;
  opacity: 1 !important;
}