:root {
  --navy: #00305c;
  --navy-dark: #001f3d;
  --accent: #bf5f00;
  --accent-light: #ff7f00;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #dde3e8;
  --maroon: #7f0000;
  --max-width: 960px;
}

* { box-sizing: border-box; }

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

a { color: #0b4c8c; }
a:hover { color: var(--accent); }

.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
}

.site-header .logo-link {
  display: inline-block;
  text-decoration: none;
  border: none;
}

.site-header .site-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.site-header p.tagline {
  margin: 0;
  color: #cfe0f0;
  font-size: 1rem;
}

nav.main-nav {
  background: var(--accent);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}

nav.main-nav a:last-child { border-right: none; }

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--accent-light);
}

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, serif;
}

.notice {
  background: #fff8e5;
  border: 1px solid #f0d98c;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.notice strong { color: var(--maroon); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  nav.main-nav { flex-direction: column; }
  nav.main-nav a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); text-align: center; }
}

.button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.2rem 0.35rem 0.2rem 0;
}

.button:hover, .btn:hover { background: var(--accent-light); }

.button.secondary {
  background: #eee;
  color: var(--text) !important;
  border: 1px solid #ccc;
}
.button.secondary:hover { background: #ddd; }

.resource-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.resource-item:last-child { border-bottom: none; }
.resource-item img {
  width: 120px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.resource-item h3 { margin: 0 0 0.3rem; color: var(--navy); }
.resource-item p { margin: 0 0 0.5rem; color: var(--muted); }

.year-group {
  margin-bottom: 1.75rem;
}
.year-group h2 {
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
  font-family: Georgia, serif;
}
.issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.issue-list a,
.issue-list span.disabled-link {
  display: inline-block;
  background: #eef3f8;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
}
.issue-list a:hover { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }

.article-item {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: #fafcfe;
}
.article-item h3 { margin: 0 0 0.4rem; color: var(--navy); }
.article-item .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }

.contact-address {
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.8;
}

footer.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.unavailable {
  display: inline-block;
  background: #e9e9e9 !important;
  color: #8a8a8a !important;
  text-decoration: none !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.75;
  border-color: #d3d3d3 !important;
}
.unavailable small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #9a9a9a;
}
.issue-list .unavailable { border: 1px dashed #c9c9c9; }

.disabled-link {
  cursor: not-allowed;
  pointer-events: none;
}
.disabled-link small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
}

.hero-photo {
  width: 100%;
  max-width: 726px;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
}
