/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus, button:focus, input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #1e3a5f;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 300;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0.5rem; }
img { max-width: 100%; height: auto; }

/* === Header === */
.site-header {
  background: #1e3a5f;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.site-branding a { color: #fff; text-decoration: none; }
.site-title { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.site-subtitle { font-size: 0.85rem; opacity: 0.8; margin: 0; }

/* === Navigation === */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { background: rgba(255,255,255,0.15); text-decoration: none; }
.sub-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  min-width: 200px;
  z-index: 200;
}
.has-children:hover .sub-menu,
.has-children:focus-within .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  font-size: 0.85rem;
}
.sub-menu li a:hover { background: #f0f4ff; text-decoration: none; }

/* === Layout === */
.site-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

/* === Content === */
.content h1 {
  font-size: 2rem;
  color: #1e3a5f;
  margin-bottom: 0.25rem;
}
.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: #1e3a5f;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn:hover { background: #2563eb; text-decoration: none; }

/* === Post List === */
.post-summary {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.post-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  text-align: center;
  color: #1e3a5f;
}
.post-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.post-date .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.post-date .year { font-size: 0.75rem; color: #888; }
.post-content h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.post-content h2 a { color: #1e3a5f; }
.post-content h2 a:hover { color: #2563eb; }
.post-content p { color: #555; font-size: 0.9rem; margin-bottom: 0.4rem; }
.post-meta { font-size: 0.8rem; color: #888; }
.post-meta a { color: #2563eb; }
.categories a {
  background: #e8eef6;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* === Single Post === */
.single-post { max-width: 800px; }
.post-header { margin-bottom: 1.5rem; }
.post-header h1 { font-size: 1.8rem; line-height: 1.3; }
.post-header .post-meta {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.category {
  background: #e8eef6;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
}
.post-body { font-size: 1rem; line-height: 1.7; }
.post-body h2 { margin: 1.5rem 0 0.75rem; color: #1e3a5f; }
.post-body h3 { margin: 1.25rem 0 0.5rem; color: #1e3a5f; }
.post-body p { margin-bottom: 1rem; }
.post-body ul, .post-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.post-body blockquote {
  border-left: 3px solid #1e3a5f;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f0f4ff;
  color: #555;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.post-body th, .post-body td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.post-body th { background: #f0f4ff; font-weight: 600; }

/* === Sidebar === */
.sidebar { font-size: 0.85rem; }
.widget {
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.widget h3 {
  font-size: 1rem;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #e8eef6;
  padding-bottom: 0.4rem;
}
.widget ul { list-style: none; }
.widget ul ul { margin-left: 1rem; margin-top: 0.25rem; }
.widget li { margin-bottom: 0.3rem; }
.emergency-numbers li { margin-bottom: 0.6rem; }

/* === Newsletter Signup === */
.newsletter-signup label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.newsletter-signup input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.newsletter-signup button {
  width: 100%;
  background: #1e3a5f;
  color: #fff;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.newsletter-signup button:hover { background: #2563eb; }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  list-style: none;
}
.page-item a, .page-item span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
}
.page-item.active span { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.page-item a:hover { background: #f0f4ff; text-decoration: none; }

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: #888;
  font-size: 0.8rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

/* === Pages (About, Local News) === */
.page-content { max-width: 800px; }
.page-content h1 { margin-bottom: 1rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul { margin: 0.75rem 0 1rem 1.5rem; }
.page-content blockquote {
  border-left: 3px solid #1e3a5f;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f0f4ff;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.active { display: block; }
  .header-inner { flex-wrap: wrap; }
  .nav-menu { flex-direction: column; width: 100%; margin-top: 0.5rem; }
  .nav-menu > li > a { padding: 0.6rem 0; }
  .sub-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.1); }
  .sub-menu li a { color: #ccc; padding-left: 1.5rem; }
  .site-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
  .action-buttons { flex-direction: column; }
  .post-summary { flex-direction: column; gap: 0.5rem; }
  .post-date { flex-direction: row; gap: 0.5rem; }
}

/* === Print === */
@media print {
  .site-header, .sidebar, .skip-link, .action-buttons,
  .newsletter-signup, .pagination, .site-footer { display: none; }
  .site-wrapper { display: block; max-width: 100%; padding: 0; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  nav a[href]::after { content: none; }
}
