/*
 * Page info sidebar (right side).
 * Hidden on page load; opened with the "Info" tab button.
 * Content comes from /js/page-sidebar-content.js
 */
.ps-toggle {
  position: fixed;
  top: 50%;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: #213c27;
  color: #ffffff;
  box-shadow: -2px 3px 12px rgba(0, 0, 0, 0.25);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  transition: background 0.2s ease, padding 0.2s ease;
}

.ps-toggle:hover {
  background: #2f5537;
  padding-left: 14px;
}

.ps-toggle[hidden] {
  display: none;
}

.ps-toggle-icon {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

.ps-overlay {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s ease;
}

.ps-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ps-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9992;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.18);
  font-family: Arial, sans-serif;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.ps-sidebar.active {
  transform: translateX(0);
  visibility: visible;
}

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #eeeeee;
}

.ps-header-title {
  margin: 0;
  color: #213c27;
  font-size: 18px;
  font-weight: 700;
}

.ps-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ps-close:hover {
  background: #e4e4e4;
}

.ps-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 32px;
  color: #444444;
  font-size: 15px;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

/* Content typography: plain headings / paragraphs / images / lists */
.ps-body h1,
.ps-body h2,
.ps-body h3,
.ps-body h4 {
  margin: 24px 0 10px;
  color: #213c27;
  line-height: 1.3;
}

.ps-body h1 { font-size: 24px; }
.ps-body h2 { font-size: 22px; }
.ps-body h3 { font-size: 18px; }
.ps-body h4 { font-size: 16px; }

.ps-body > :first-child {
  margin-top: 0;
}

.ps-body p {
  margin: 0 0 14px;
}

.ps-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 16px;
  border-radius: 10px;
}

.ps-body figure {
  margin: 6px 0 18px;
}

.ps-body figure img {
  margin: 0;
}

.ps-body figcaption {
  margin-top: 6px;
  color: #777777;
  font-size: 13px;
  text-align: center;
}

.ps-body ul,
.ps-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.ps-body li {
  margin-bottom: 6px;
}

.ps-body a {
  color: #2f7a3f;
}

.ps-body table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 14px;
}

.ps-body th,
.ps-body td {
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.ps-body th {
  background: #f4f7f4;
  color: #213c27;
}

.ps-body h3 a {
  color: inherit;
  text-decoration: none;
}

.ps-body h3 a:hover {
  color: #2f7a3f;
  text-decoration: underline;
}

/* Wide tables scroll sideways instead of squeezing the columns. */
.ps-table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}

.ps-table-wrap table {
  min-width: 360px;
}

.ps-summary {
  margin: 0 0 24px;
  padding: 16px 18px 4px;
  border-left: 4px solid #213c27;
  border-radius: 8px;
  background: #f4f7f4;
}

.ps-summary h2 {
  margin-top: 0;
  font-size: 17px;
}

.ps-note {
  color: #777777;
  font-size: 13px;
}

.ps-faq h3 {
  font-size: 16px;
}

.ps-body .ps-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 24px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.ps-body .ps-cta:hover {
  background: #1ebe5a;
}

@media (max-width: 768px) {
  .ps-toggle {
    padding: 12px 8px;
    font-size: 13px;
  }

  .ps-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .ps-body {
    padding: 16px 16px 28px;
  }
}
