
/* Official USA.gov Aesthetic Design System */
:root {
  --usa-blue: #1a4480;
  --usa-dark-blue: #002d62;
  --usa-red: #d83933;
  --usa-gold: #f2a900;
  --usa-bg: #f0f0f0;
  --usa-card-bg: #ffffff;
  --usa-text: #1b1b1b;
  --usa-border: #dfe1e2;
  --usa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--usa-font);
  color: var(--usa-text);
  background-color: var(--usa-bg);
  line-height: 1.5;
}

/* TOP OFFICIAL BANNER */
.official-banner {
  background-color: #f0f0f0;
  border-bottom: 1px solid var(--usa-border);
  padding: 0.4rem 2rem;
  font-size: 0.8rem;
  color: #5c5c5c;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HEADER NAV BAR */
header.usa-header {
  background-color: var(--usa-dark-blue);
  color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usa-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.usa-header-left svg {
  width: 42px;
  height: 42px;
}

.usa-site-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.usa-search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  max-width: 450px;
  width: 100%;
}

.usa-search-bar input {
  border: none;
  padding: 0.6rem 0.8rem;
  width: 100%;
  font-size: 1rem;
  outline: none;
}

.usa-search-bar button {
  background: var(--usa-gold);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--usa-dark-blue);
}

.usa-nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.usa-nav-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.usa-nav-right a:hover {
  text-decoration: underline;
}

/* HERO SECTION MATCHING USA.GOV */
.usa-hero-container {
  background: linear-gradient(135deg, #002d62 0%, #1a4480 100%);
  color: white;
  padding: 3.5rem 2rem;
  text-align: center;
  border-bottom: 5px solid var(--usa-gold);
}

.usa-hero-container h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.usa-hero-container p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  color: #e1e7f0;
}

/* CONTENT GRID BELOW HERO */
.usa-grid-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.usa-card-item {
  background: var(--usa-card-bg);
  border: 1px solid var(--usa-border);
  border-top: 4px solid var(--usa-blue);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.usa-card-item .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--usa-red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.usa-card-item h3 a {
  font-size: 1.3rem;
  color: var(--usa-blue);
  text-decoration: underline;
  font-weight: 700;
  line-height: 1.3;
}

.usa-card-item h3 a:hover {
  color: var(--usa-dark-blue);
}

.usa-card-item p {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  color: #333333;
  line-height: 1.5;
  flex-grow: 1;
}

.usa-card-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.5rem;
}

/* POST PAGE SPECIFIC STYLES */
.post-page-container {
  max-width: 820px;
  margin: 2.5rem auto 4rem auto;
  padding: 2rem;
  background: white;
  border: 1px solid var(--usa-border);
  border-radius: 4px;
}

.post-page-container h1 {
  font-size: 2.4rem;
  color: var(--usa-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.post-page-container .meta-info {
  font-size: 0.9rem;
  color: #555;
  border-bottom: 2px solid var(--usa-border);
  padding-bottom: 1rem;
  margin-bottom: 1.8rem;
}

.post-page-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-page-container h2 {
  font-size: 1.5rem;
  color: var(--usa-blue);
  margin: 2rem 0 1rem 0;
}

.post-page-container ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-page-container li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* FOOTER */
footer.usa-footer {
  background-color: var(--usa-dark-blue);
  color: #ffffff;
  padding: 3rem 1.5rem;
  border-top: 5px solid var(--usa-gold);
}

.usa-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.usa-footer-content a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .usa-grid-container { grid-template-columns: 1fr; }
  header.usa-header { flex-direction: column; gap: 1rem; text-align: center; }
  .usa-footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
