/* Modern presentation for ordinary WordPress pages rendered by page.php. */
body.psy-modern-view #main.psy-simple-page {
  --psy-page-surface: #fff;
  --psy-page-surface-soft: #f5f6f7;
  --psy-page-text: #24282e;
  --psy-page-muted: #737982;
  --psy-page-border: rgba(24, 31, 44, .12);
  --psy-page-shadow: 0 14px 38px rgba(20, 28, 38, .09);
  color: var(--psy-page-text);
}

body.psy-modern-view.psy-theme-dark #main.psy-simple-page {
  --psy-page-surface: #232323;
  --psy-page-surface-soft: #2b2b2b;
  --psy-page-text: #f1f1f1;
  --psy-page-muted: #aaa;
  --psy-page-border: rgba(255, 255, 255, .1);
  --psy-page-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

body.psy-modern-view #main.psy-simple-page > .container {
  width: min(1320px, calc(100% - 34px));
  max-width: none;
  margin-inline: auto;
}

body.psy-modern-view #main.psy-simple-page .pad { height: 24px; }

body.psy-modern-view #main.psy-simple-page .main-content.main-detail {
  width: 100%;
  padding: 0 0 42px;
  background: transparent;
}

body.psy-modern-view #main.psy-simple-page .infopage {
  width: 100%;
  margin: 0 0 22px;
  border: 1px solid var(--psy-page-border);
  border-radius: 14px;
  background: var(--psy-page-surface);
  box-shadow: var(--psy-page-shadow);
  color: var(--psy-page-text);
}

body.psy-modern-view #main.psy-simple-page .infopage-head {
  position: relative;
  min-height: 62px;
  padding: 18px 22px 18px 31px;
  border-bottom: 1px solid var(--psy-page-border);
  border-radius: 14px 14px 0 0;
  background: var(--psy-page-surface-soft);
  color: var(--psy-page-text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 650;
  line-height: 1.25;
}

body.psy-modern-view #main.psy-simple-page .infopage-head::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 4px;
  border-radius: 999px;
  background: var(--psy-accent);
  content: "";
}

body.psy-modern-view #main.psy-simple-page .infopage > .content {
  float: none;
  width: 100%;
  min-height: 0;
  padding: 22px;
  background: transparent;
  color: var(--psy-page-text);
  font-size: 15px;
  line-height: 1.7;
}

body.psy-modern-view #main.psy-simple-page .infopage > .content::after {
  display: table;
  clear: both;
  content: "";
}

body.psy-modern-view #main.psy-simple-page .infopage > .content > :first-child { margin-top: 0; }
body.psy-modern-view #main.psy-simple-page .infopage > .content > :last-child { margin-bottom: 0; }

body.psy-modern-view #main.psy-simple-page .content p,
body.psy-modern-view #main.psy-simple-page .content ul,
body.psy-modern-view #main.psy-simple-page .content ol { margin-bottom: 14px; }

body.psy-modern-view #main.psy-simple-page .content h1,
body.psy-modern-view #main.psy-simple-page .content h2,
body.psy-modern-view #main.psy-simple-page .content h3,
body.psy-modern-view #main.psy-simple-page .content h4 {
  margin: 24px 0 12px;
  color: var(--psy-page-text);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 650;
  line-height: 1.3;
}

body.psy-modern-view #main.psy-simple-page .content a:not(.series-progress-link) {
  color: var(--psy-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.psy-modern-view #main.psy-simple-page .content blockquote {
  margin: 18px 0;
  padding: 14px 17px;
  border: 0;
  border-left: 4px solid var(--psy-accent);
  border-radius: 0 9px 9px 0;
  background: var(--psy-page-surface-soft);
  color: var(--psy-page-text);
}

body.psy-modern-view #main.psy-simple-page .content hr {
  border: 0;
  border-top: 1px solid var(--psy-page-border);
}

body.psy-modern-view #main.psy-simple-page .content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.psy-modern-view #main.psy-simple-page .content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--psy-page-border);
  border-radius: 10px;
  overflow: hidden;
}

body.psy-modern-view #main.psy-simple-page .content th,
body.psy-modern-view #main.psy-simple-page .content td {
  padding: 10px 12px;
  border-right: 1px solid var(--psy-page-border);
  border-bottom: 1px solid var(--psy-page-border);
  color: var(--psy-page-text);
  text-align: left;
}

body.psy-modern-view #main.psy-simple-page .content th { background: var(--psy-page-surface-soft); }
body.psy-modern-view #main.psy-simple-page .content tr:last-child > * { border-bottom: 0; }
body.psy-modern-view #main.psy-simple-page .content tr > *:last-child { border-right: 0; }

body.psy-modern-view #main.psy-simple-page .content-kuss {
  margin: 0 0 20px;
  border: 1px solid var(--psy-page-border);
  border-radius: 12px;
  background: var(--psy-page-surface);
  box-shadow: none;
}

body.psy-modern-view #main.psy-simple-page .infopage.comment > .content { padding: 22px; }

@media (max-width: 720px) {
  body.psy-modern-view #main.psy-simple-page > .container { width: min(100% - 20px, 1320px); }
  body.psy-modern-view #main.psy-simple-page .pad { height: 14px; }
  body.psy-modern-view #main.psy-simple-page .infopage { border-radius: 11px; }
  body.psy-modern-view #main.psy-simple-page .infopage-head {
    min-height: 54px;
    padding: 15px 16px 15px 27px;
    border-radius: 11px 11px 0 0;
  }
  body.psy-modern-view #main.psy-simple-page .infopage-head::before { top: 15px; bottom: 15px; left: 14px; }
  body.psy-modern-view #main.psy-simple-page .infopage > .content { padding: 16px; font-size: 14px; }
  body.psy-modern-view #main.psy-simple-page .content table { display: block; overflow-x: auto; }
}
