/* ---- Main layout ---- */
body.help-page .content-wrapper {
  display: flex;
  align-items: stretch; /* match sidebar height to main */
  justify-content: flex-start;
  background-color: var(--bg-color);
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---- Red-framed help content ---- */
body.help-page main.article-frame {
  background-color: #F9E9C7;      /* parchment-like cream */
  border: 1px solid #A32D2D;      /* dark red frame */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 1.5rem 2rem;

  margin-left: 40px;              /* align under Home nav */
  margin-right: 20px;
  margin-bottom: 2rem;
  width: calc(100% - 380px);      /* 300px sidebar + margins */
  max-width: 1200px;
  box-sizing: border-box;
}

/* ---- Headings and text ---- */
body.help-page main.article-frame h2 {
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  font-size: 1.6em;
  color: #000;                    /* black title text */
  font-weight: bold;
}

body.help-page main.article-frame h3 {
  color: #7D1F1F;                 /* deep red subheadings */
  margin-top: 1.3em;
  margin-bottom: 0.3em;
  font-size: 1.2em;
}

body.help-page main.article-frame p {
  margin-top: 0.4em;
  margin-bottom: 0.8em;
  line-height: 1.5;
}

/* ---- Sidebar (same style as readarticle) ---- */
body.help-page aside.title-bar {
  width: 300px;
  margin-right: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: var(--bg-color);
  padding: 10px 14px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  height: auto !important;
  max-height: none !important;
}

.title-bar-header {
  border-bottom: 2px solid var(--nav-bg);
  margin-bottom: 0.6em;
  padding-bottom: 0.3em;
}

.title-bar-header h3 {
  font-size: 1.2em;
  color: #000;                    /* black title */
  margin: 0;
}

/* ---- Sidebar links ---- */
.title-bar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.title-bar li {
  margin: 10px 0;
  line-height: 1.3;
}

.title-bar a.nav-link {
  text-decoration: none;
  color: var(--link-color);
  font-weight: bold;
}

.title-bar a.nav-link:hover {
  color: var(--nav-bg);
  text-decoration: underline;
}

/* ---- Responsive behavior ---- */
@media (max-width: 900px) {
  body.help-page .content-wrapper {
    flex-direction: column;
  }

  body.help-page main.article-frame,
  body.help-page aside.title-bar {
    width: auto;
    margin: 10px 20px;
  }
}
