/* Hisdates.com Century & Years Hub Stylesheet */
:root {
  --his-blue: #005580;
  --his-blue-hover: #0077b3;
  --his-bg: #f5f7f8;
  --his-border: #dcdcdc;
  --his-text: #222222;
  --his-muted: #555555;
  --font-stack: Arial, Helvetica, sans-serif;
}

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

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

a { color: var(--his-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--his-blue-hover); }

.site-width-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.hisdates-topbar {
  background: #ffffff;
  border-bottom: 2px solid var(--his-blue);
  padding: 12px 0;
}
.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.brand-title {
  font-size: 26px;
  font-weight: bold;
  color: #222;
}
.brand-dot { color: var(--his-blue); }
.brand-sub {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 0.5px;
}
.nav-links a {
  margin-left: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.nav-links a.current, .nav-links a:hover {
  color: var(--his-blue);
}

/* Main Layout */
.page-container {
  max-width: 1120px;
  margin: 20px auto 40px auto;
  padding: 0 15px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--his-muted);
  margin-bottom: 14px;
}

.century-banner {
  background: #ffffff;
  border: 1px solid var(--his-border);
  border-left: 5px solid var(--his-blue);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.century-banner h1 {
  font-size: 23px;
  color: #111;
  margin-bottom: 4px;
}
.era-span {
  font-size: 13px;
  color: var(--his-muted);
}

.century-summary-box {
  background: #ffffff;
  border: 1px solid var(--his-border);
  padding: 14px 20px;
  font-size: 14px;
  color: #444;
  margin-bottom: 18px;
}

/* Highlights Section */
.highlights-box {
  background: #ffffff;
  border: 1px solid var(--his-border);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.highlights-box h2 {
  font-size: 17px;
  color: #111;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
.highlights-list {
  list-style: none;
}
.highlights-list li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.hl-year {
  font-weight: bold;
  background: #f0f6fa;
  border: 1px solid #c9dfed;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
}
.hl-date {
  font-weight: bold;
  color: #555;
  font-size: 12px;
}
.hl-desc { color: #333; }

/* Decades & Year Grid */
.decades-container {
  background: #ffffff;
  border: 1px solid var(--his-border);
  padding: 20px;
  margin-bottom: 25px;
}
.decades-container h2 {
  font-size: 17px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
.decade-row {
  margin-bottom: 18px;
}
.decade-heading {
  font-size: 15px;
  color: var(--his-blue);
  margin-bottom: 8px;
  font-weight: bold;
}
.year-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.year-tile {
  background: #fdfdfd;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  padding: 6px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.1s ease-in;
}
.year-tile:hover {
  background: #eef6fa;
  border-color: var(--his-blue);
  text-decoration: none;
}
.tile-yr {
  font-size: 14px;
  font-weight: bold;
  color: var(--his-blue);
}
.tile-cnt {
  font-size: 10px;
  color: #777;
}

/* Master Directory Cards Grid (/years/) */
.century-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.century-card {
  background: #ffffff;
  border: 1px solid var(--his-border);
  border-radius: 3px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.century-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.century-card-top h2 { font-size: 17px; }
.century-years-badge {
  font-size: 11px;
  background: #eee;
  padding: 2px 6px;
  border-radius: 3px;
  color: #555;
}
.century-card-desc {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  flex-grow: 1;
}
.card-sample-years {
  font-size: 12px;
  background: #fafafa;
  padding: 6px 9px;
  border: 1px solid #eee;
  margin-bottom: 12px;
  border-radius: 3px;
}
.century-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}
.century-stats { font-size: 12px; color: #777; }
.century-enter-btn {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--his-blue);
  padding: 5px 12px;
  border-radius: 3px;
}
.century-enter-btn:hover {
  background: var(--his-blue-hover);
  color: #fff;
  text-decoration: none;
}

/* Century Prev/Next Navigation */
.century-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0;
}
.nav-century-btn {
  background: #ffffff;
  border: 1px solid var(--his-border);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 3px;
}
.nav-century-btn:hover { background: #eef6fa; border-color: var(--his-blue); text-decoration: none; }
.hub-btn { font-weight: bold; }

/* Footer */
.hisdates-footer {
  background: #2b3035;
  color: #bbb;
  padding: 22px 0;
  text-align: center;
  font-size: 12px;
  margin-top: 40px;
}
.footer-copy { margin-bottom: 6px; }
.hisdates-footer a { color: #ddd; margin: 0 5px; }

@media (max-width: 768px) {
  .topbar-flex { flex-direction: column; text-align: center; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .century-index-grid { grid-template-columns: 1fr; }
  .year-tiles { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
