/* ==========================================================================
   Rep Plus — section stylesheet
   Hand-written replacement for the mix of legacy RapidWeaver themes
   (kiki / delta / medieval / sharp) previously used across this section.
   ========================================================================== */

:root {
  --header-bg: #c56a3f;
  --nav-bg: #2e313d;
  --nav-current-bg: #000;
  --heading: #008000;
  --link: #65676f;
  --link-hover: #2e313d;
  --text: #1c1c1c;
  --border: #ddd;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

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

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

/* ---- Header & nav ---- */

header.site-header {
  background: var(--header-bg);
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: center;
}

header.site-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav.site-nav {
  background: var(--nav-bg);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

nav.site-nav a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

nav.site-nav a:hover { background: rgba(255, 255, 255, 0.1); }

nav.site-nav a#current {
  background: var(--nav-current-bg);
}

/* ---- Hero ---- */

.cover {
  background-size: cover;
  background-position: center calc(50% - 6px);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 365px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ---- Main layout ---- */

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 2rem;
}

article.main-article {
  flex: 1 1 60%;
  min-width: 0;
}

.page-wrap.no-sidebar article.main-article {
  flex: 1 1 100%;
}

aside.sidebar {
  flex: 0 1 260px;
}

aside.sidebar img {
  border: 1px solid var(--border);
}

aside.sidebar h5 {
  text-align: center;
  color: var(--heading);
  margin-top: 0;
}

article.main-article h2 {
  color: var(--heading);
  font-size: 1.4rem;
  margin: 1.6rem 0 0.5rem;
}

article.main-article h2:first-child { margin-top: 0; }

article.main-article h3 {
  color: var(--heading);
  font-size: 1.15rem;
  margin: 1.3rem 0 0.4rem;
}

article.main-article blockquote {
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}

article.main-article pre {
  background: #f4f4f4;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* ---- News / blog ---- */

.blog-entry { margin-bottom: 2.5rem; }
.blog-entry + .blog-entry { padding-top: 2rem; border-top: 1px solid var(--border); }

.blog-entry-title { font-size: 1.3rem; margin: 0 0 0.2rem; }
.blog-entry-title a { color: var(--text); text-decoration: none; }
.blog-entry-title a:hover { text-decoration: underline; }

.blog-entry-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.blog-archive-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  columns: 2;
}

.blog-archive-list a { font-size: 0.95rem; }

.blog-archive-nav {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- Documents page link lists ---- */

article.main-article ul { padding-left: 1.3rem; }
article.main-article li { margin-bottom: 0.35rem; }

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

footer.site-footer {
  background: var(--nav-bg);
  color: #fff;
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}

footer.site-footer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .cover h1 { font-size: 1.7rem; }
  .page-wrap { flex-direction: column; }
  aside.sidebar { flex-basis: auto; }
}
