/* Flow pagesheet for generated /pages/ articles rendered through
   r-template_article.php. Adobe Muse per-page pagesheets were never captured
   by Wayback; this is the same minimal single-column flow reset used on the
   restored inner pages, so article content stacks readably. */

.html { background-color: #C1DABC; }

#page {
  width: 960px;
  max-width: 96%;
  min-height: 500px;
  margin: 20px auto 40px;
  padding: 24px 32px 40px;
  box-sizing: border-box;
  background-color: #FFFFFF;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.5);
}

/* Unfloat the Muse grid -> normal top-to-bottom document flow */
#page .grpelem,
#page .colelem,
#page .position_content,
#page .clip_frame,
#page .excludeFromNormalFlow {
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  position: static !important;
}

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

/* Decorative empty Muse frames -> collapse so they leave no blank gaps */
#page .clip_frame:empty,
#page [id$="_clip"]:empty { display: none !important; }

/* Text readability */
#page p { margin: 0 0 0.6em; line-height: 1.5; }
#page a { color: #4a7a3a; }

.verticalspacer { clear: both; height: 20px; }

/* —— Article layout —— */
#romli-article-body {
  padding: 20px 0;
}

.romli-article-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

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

.romli-article-title {
  color: #4a7a3a;
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

.romli-article-aside {
  flex: 0 0 240px;
  max-width: 240px;
  width: 240px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.romli-article-aside-inner {
  background: #f5f5f5;
  padding: 18px 16px;
  border-left: 3px solid #4a7a3a;
}

.romli-article-aside-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #4a7a3a;
  margin: 0 0 14px;
  font-weight: 700;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
}

.romli-article-aside-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.romli-article-aside-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.romli-article-aside-item a {
  color: #3a3a3a;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  display: block;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
}

.romli-article-aside-item a:hover {
  color: #4a7a3a;
}

/* Wide tables: scroll instead of blowing page width */
.romli-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.739rem 0;
}

.romli-table-scroll > table {
  margin: 0;
  width: max-content;
  min-width: 100%;
}

/* Article body typography */
.x9tar7 p { margin: 0 0 0.761rem; }
.x9tar7 h1, .x9tar7 h2, .x9tar7 h3, .x9tar7 h4, .x9tar7 h5, .x9tar7 h6 {
  position: static;
  margin: 0.867rem 0 0.568rem;
  right: auto; top: auto; width: auto; left: auto; bottom: auto;
  line-height: 1.25;
}
.x9tar7 h1 { font-size: 1.857rem; }
.x9tar7 h2 { font-size: 1.493rem; }
.x9tar7 h3 { font-size: 1.118rem; }
.x9tar7 h4 { font-size: 1.089rem; }
.x9tar7 span { line-height: inherit; }
.x9tar7 ul, .x9tar7 ol {
  margin: 0.548rem 0 0.838rem;
  padding: 0 0 0 1.5rem;
}
.x9tar7 ul { list-style: disc outside; }
.x9tar7 ol { list-style: decimal outside; }
.x9tar7 li {
  list-style: inherit;
  margin-bottom: 0.233rem;
  display: list-item;
}
.x9tar7 ul ul { list-style: circle outside; }
.x9tar7 ul ul ul { list-style: square outside; }
.x9tar7 ol ol { list-style: lower-alpha outside; }
.x9tar7 img { max-width: 100%; height: auto; }
.x9tar7 table { width: 100%; margin: 0.739rem 0; border-collapse: collapse; font-size: 0.9em; }
.x9tar7 th, .x9tar7 td { vertical-align: top; padding: 0.324rem 0.543rem; text-align: left; border: 1px solid #ddd; }
.x9tar7 th { background: #f8f8f8; font-weight: 600; }
.x9tar7 code { background: #f8f8f8; font-size: 0.9em; padding: 0.132rem 0.283rem; border-radius: 3px; }
.x9tar7 pre { padding: 0.57rem; background: #f8f8f8; margin: 0.668rem 0; overflow: auto; }
.x9tar7 blockquote { color: #565656; padding-left: 0.661rem; border-left: 3px solid #4a7a3a; margin: 0.793rem 0; }
.x9tar7 hr { border: none; border-top: 1px solid #ddd; margin: 1.133rem 0; }

/* Mobile: article on top, sidebar full-width below */
@media (max-width: 768px) {
  #page {
    padding: 16px 16px 28px;
    margin: 10px auto 24px;
  }

  .romli-article-layout {
    flex-direction: column;
    gap: 28px;
  }

  .romli-article-main {
    flex: none;
    width: 100%;
  }

  .romli-article-title {
    font-size: 1.45rem;
  }

  .romli-article-aside {
    flex: none;
    width: 100%;
    max-width: none;
    position: static;
  }

  .romli-article-aside-inner {
    border-left: none;
    border-top: 3px solid #4a7a3a;
  }
}
