/* ==========================================================
   Proctor County Public Library System
   library.proctorcounty.com
   Site design c. 2014 — Southeastern Ohio OPLIN grant
   ========================================================== */

:root {
  --bg: #f7f5f0;
  --bg-alt: #edeae2;
  --burgundy: #722F37;
  --burgundy-light: #8a3a43;
  --ink: #2a2a2a;
  --ink-soft: #555;
  --ink-faint: #888;
  --rule: #c9c3b5;
  --link: #722F37;
  --white: #fff;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--link); }
a:hover { color: var(--burgundy-light); }

img { max-width: 100%; height: auto; }

/* ---- Header / Banner ---- */

.site-header {
  background: var(--burgundy);
  color: var(--white);
  border-bottom: 3px solid #5a2029;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.header-text h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.header-text .tagline {
  margin: 2px 0 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ---- Navigation ---- */

.site-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

.nav-inner li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border-right: 1px solid var(--rule);
}

.nav-inner li:first-child a {
  border-left: 1px solid var(--rule);
}

.nav-inner li a:hover {
  background: var(--bg);
  color: var(--burgundy);
}

.nav-inner li a.active {
  background: var(--bg);
  color: var(--burgundy);
  font-weight: bold;
}

/* ---- Main content ---- */

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 48px 24px;
}

.page-title {
  margin: 0 0 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--burgundy);
  font-weight: normal;
}

.page-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 10px 0 22px 0;
}

/* Two-column layout for landing page */

.landing-columns {
  display: flex;
  gap: 32px;
}

.col-main {
  flex: 1;
  min-width: 0;
}

.col-side {
  width: 240px;
  flex-shrink: 0;
}

/* ---- Section blocks ---- */

.section {
  margin-bottom: 28px;
}

.section h2 {
  margin: 0 0 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--burgundy);
  font-weight: normal;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

.section h3 {
  margin: 16px 0 6px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
}

.section p {
  margin: 0 0 12px 0;
}

.section ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.section li {
  margin-bottom: 4px;
}

/* ---- Hours table ---- */

.hours-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  margin-bottom: 12px;
}

.hours-table th {
  text-align: left;
  background: var(--bg-alt);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

.hours-table td {
  padding: 4px 10px;
  border-bottom: 1px solid #e0ddd5;
  vertical-align: top;
}

.hours-table td:first-child {
  width: 120px;
  color: var(--ink-soft);
}

/* ---- News / What's New ---- */

.news-item {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--rule);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-item p {
  margin: 3px 0 0 0;
  font-size: 13px;
}

/* ---- Sidebar quick links ---- */

.sidebar-box {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.sidebar-box h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--burgundy);
}

.sidebar-box ul {
  list-style: square;
  margin: 0;
  padding-left: 16px;
}

.sidebar-box li {
  font-size: 12px;
  margin-bottom: 4px;
}

.sidebar-box a {
  font-size: 12px;
}

/* ---- Notices (Hobart branch page) ---- */

.notice {
  background: #fefcf5;
  border-left: 3px solid var(--burgundy);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.notice .notice-date {
  font-size: 11px;
  color: var(--ink-faint);
}

.notice p {
  margin: 4px 0 0 0;
}

/* ---- Info table (general) ---- */

.info-table {
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.info-table td {
  padding: 4px 14px 4px 0;
  vertical-align: top;
}

.info-table td:first-child {
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---- Catalog migration box ---- */

.catalog-notice {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  margin: 20px 0;
  text-align: center;
}

.catalog-notice h2 {
  border: none;
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--burgundy);
}

.catalog-notice p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 18px 24px;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.8;
}

.site-footer a {
  color: var(--ink-faint);
}

.site-footer a:hover {
  color: var(--burgundy);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---- Staff picks (future) ---- */

.staff-pick {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.staff-pick .pick-title {
  font-style: normal;
  font-weight: bold;
}

/* ---- Print ---- */

@media print {
  .site-nav, .site-footer { display: none; }
  body { background: #fff; font-size: 12px; }
}
