/* public/css/simple-page.css — plain, no-hero, no-sidebar content pages
   (For Authors, Editorial Policies, and any future page rendered through
   app/views/public/policy-page-simple.php). Deliberately independent of
   guidelines.css / policy.css, which are built around the hero+sidebar
   layout this template intentionally skips. */

.simple-page {
  padding: var(--sp-10) 0 var(--sp-16);
}

.simple-page__header {
  margin: 0 0 var(--sp-8);
}

.simple-page__breadcrumb {
  list-style: none;
  display: flex;
  gap: .4rem;
  padding: 0;
  margin: 0 0 var(--sp-3);
  font-size: .82rem;
  color: var(--text-muted);
}
.simple-page__breadcrumb a { color: var(--text-muted); text-decoration: none; }
.simple-page__breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.simple-page__breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--text-light); }

.simple-page__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin: 0;
}

.simple-page-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

.simple-page-content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 2.4rem 0 .9rem;
  padding-top: .4rem;
  border-top: 1px solid #e5e7eb;
  scroll-margin-top: 5.5rem;
}
.simple-page-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.simple-page-content h3 {
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin: 1.6rem 0 .6rem;
  scroll-margin-top: 5.5rem;
}

.simple-page-content p { margin: 0 0 1rem; }

.simple-page-content ul,
.simple-page-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}
.simple-page-content li { margin-bottom: .45rem; }
.simple-page-content li:last-child { margin-bottom: 0; }

.simple-page-content a { color: var(--primary-light); text-decoration: underline; text-decoration-color: #c7d5e3; text-underline-offset: 2px; }
.simple-page-content a:hover { color: var(--accent); }

.simple-page-content strong { color: var(--primary-dark); }

/* Intro / lede paragraph directly under the title */
.sp-intro {
  font-size: 1.05rem;
  color: var(--text);
  background: #f7f9fb;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.sp-intro p { margin: 0; }

/* In-page table of contents */
.sp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: 2rem;
}
.sp-toc__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: .25rem;
}
.sp-toc a {
  font-size: .82rem;
  text-decoration: none;
  color: var(--primary-light);
  background: #eef3f8;
  border-radius: 999px;
  padding: .3rem .75rem;
}
.sp-toc a:hover { background: var(--primary-light); color: #fff; }

/* Reference example blocks */
.sp-example {
  font-size: .92rem;
  background: #f7f9fb;
  border-radius: var(--radius-sm);
  padding: .7rem .95rem;
  margin: -.4rem 0 1.1rem;
  color: var(--text-muted);
}

.sp-table-wrap { overflow-x: auto; margin-bottom: 1.2rem; }

.simple-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.simple-page-content th,
.simple-page-content td {
  padding: .55rem .7rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.simple-page-content th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.simple-page-content tbody tr:nth-child(even) { background: #f7f9fb; }

/* Ready-to-submit CTA bar (Submit a Manuscript page) — fixed, login-aware
   chrome rendered by submit.php itself, not part of the editable content
   above/below it. */
.sp-submit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
}
.sp-submit-cta__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .2rem;
}
.sp-submit-cta__sub {
  color: rgba(255,255,255,.82);
  font-size: .87rem;
  margin: 0;
}
.sp-submit-cta__btns {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

/* Closing call-to-action (For Authors page) */
.sp-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--primary);
  border-radius: var(--radius);
}
.sp-cta p {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 .9rem;
}
.sp-cta .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.sp-cta .btn:hover { background: var(--accent-light); }

/* Sub-page index — appears on a Primary Page that has Sub Pages under it
   (Admin > Policy Pages "Page Type"). Two columns on wider screens, one on
   mobile; each item is numbered by the browser via the <ol>. */
.sp-subpages {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.sp-subpages__title {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 1rem;
}
.sp-subpages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem 1.5rem;
  counter-reset: sp-subpage;
}
.sp-subpages__list li {
  counter-increment: sp-subpage;
  margin: 0;
  border-bottom: 1px solid #eef1f4;
}
.sp-subpages__list li:last-child,
.sp-subpages__list li:nth-last-child(2) { border-bottom: 0; }
.sp-subpages__list a {
  display: block;
  padding: .6rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
}
.sp-subpages__list a::before {
  content: counter(sp-subpage) ". ";
  color: var(--primary-light);
  font-weight: 600;
}
.sp-subpages__list a:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 640px) {
  .simple-page { padding: var(--sp-6) 0 var(--sp-10); }
  .sp-toc { padding: .75rem .9rem; }
  .sp-subpages__list { grid-template-columns: 1fr; }
  .sp-subpages__list li { border-bottom: 1px solid #eef1f4; }
  .sp-subpages__list li:last-child { border-bottom: 0; }
}
