/*
Theme Name: Gov Criminal Modern
Theme URI: https://govcriminalrecords.org/
Author: Gov Criminal Records
Description: Modern responsive theme for homepage search and content pages.
Version: 1.0.0
Text Domain: govcriminal-modern
*/

:root {
  --bg: #f6f8fb;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --primary: #0f3f84;
  --primary-dark: #0a2e61;
  --border: #dbe3ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.site-title-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.site-brand-link:hover {
  text-decoration: none;
}

.site-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.site-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-dark);
  margin: 4px 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.menu a {
  font-weight: 600;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-main {
  padding: 1.2rem 0 2rem;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #205bb5 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
}

.hero p {
  margin: 0.5rem 0 1.1rem;
  color: #e8eefb;
  text-align: center;
}

.hero-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.hero-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.hero-form input,
.hero-form select,
.hero-form button {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #b8caf0;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}

.hero-form button {
  border: 0;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.hero-form button:hover {
  background: #f2f5ff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.compact-list li {
  margin-bottom: 0.35rem;
  color: #334155;
}

.name-cloud {
  font-size: 0.95rem;
  color: #334155;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.35rem 0 2rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 0.65rem;
}

.footer-copy,
.footer-disclaimer {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.post-notice {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-branding {
    flex: 1;
    min-width: 0;
  }

  .site-tagline {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.75rem;
  }

  .menu a {
    display: block;
    padding: 0.45rem 0;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }
}
