:root {
  --navy: #1b2547;
  --gradient: #6a4cff;
  --bg-light: #f4f6fb;
  --border: #e5e8f0;
  --danger: #c0392b;
  --success: #1e7e34;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
}

a { color: var(--gradient); }

.header-ribbon {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav-links a:hover { text-decoration: underline; }

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  min-height: 60vh;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: #667;
  font-size: 0.85rem;
}

.freshness-banner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}
.hero h1 { margin-bottom: 8px; }
.hero p { color: #555; }

.docket-list { display: flex; flex-direction: column; gap: 16px; }

.docket-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.docket-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.docket-meta { font-size: 0.85rem; color: #667; margin-bottom: 8px; }
.docket-meta .close-date { font-weight: 700; color: var(--danger); }
.docket-desc { font-size: 0.92rem; margin-bottom: 10px; }
.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.pagination a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }

form.card-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  max-width: 520px;
}
form.card-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
form.card-form input[type="text"],
form.card-form input[type="email"],
form.card-form input[type="tel"],
form.card-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.topic-grid label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e6f4ea; color: var(--success); border: 1px solid #b7dfc2; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f0c4c0; }

.file-label { display: block; margin: 14px 0; font-size: 0.9rem; }
.note-text { font-size: 0.9rem; }
