@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #222019;
  --muted: #746f64;
  --paper: #fbfaf7;
  --line: #ded7c8;
  --rule: #b98443;
  --blue: #24566f;
  --green: #3f6f55;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(34, 32, 25, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(185, 132, 67, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 86, 111, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px) 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(12px);
}

.eyebrow,
.reader-kicker {
  margin: 0 0 6px;
  color: var(--rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
}

h2 {
  font-size: clamp(22px, 2.6vw, 34px);
}

.search {
  width: min(360px, 100%);
}

.search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 48px) 36px;
}

.toc {
  position: sticky;
  top: 18px;
  height: calc(100vh - 42px);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.book-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.tab:last-child {
  border-right: 0;
}

.tab.is-active {
  color: #fff;
  background: var(--blue);
}

.proposition-list {
  height: calc(100% - 43px);
  overflow: auto;
  padding: 12px;
}

.book-heading {
  margin: 16px 8px 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.prop-link {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.prop-link:hover,
.prop-link.is-active {
  border-color: var(--line);
  background: #fff;
}

.prop-id {
  display: block;
  margin-bottom: 3px;
  color: var(--rule);
  font-weight: 800;
}

.prop-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reader {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.reader-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.open-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

iframe {
  display: block;
  width: 100%;
  height: min(900px, calc(100vh - 178px));
  min-height: 640px;
  border: 0;
  background: #fff;
}

.article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
  color: #25221c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.article-header {
  border-bottom: 2px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.article h1 {
  font-size: clamp(28px, 5vw, 44px);
}

.article h2 {
  margin-top: 34px;
  border-left: 5px solid var(--rule);
  padding-left: 12px;
  font-size: 24px;
}

.article p,
.article li {
  font-size: 18px;
  line-height: 1.9;
}

.article figure {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.clickable-image {
  cursor: zoom-in;
}

.article figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.note {
  margin: 24px 0;
  border-left: 5px solid var(--blue);
  padding: 14px 18px;
  background: #f3f8fa;
}

.proof-steps {
  padding-left: 1.4em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .proposition-list {
    max-height: 420px;
  }

  .reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-actions {
    width: 100%;
  }

  .reader-actions .search {
    flex: 1 1 240px;
  }

  .open-link {
    flex: 0 0 auto;
    text-align: center;
  }

  iframe {
    height: 760px;
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .reader-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-actions .search,
  .open-link {
    width: 100%;
  }
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--rule);
  font-size: 13px;
  font-weight: 700;
}

.top-nav a {
  color: var(--blue);
  text-decoration: none;
}

.top-nav a:hover {
  text-decoration: underline;
}

.page-layout {
  padding: 24px clamp(18px, 4vw, 48px) 42px;
}

.page-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article .page-panel.article {
  margin: 22px 0;
  padding: 18px clamp(18px, 3vw, 32px);
}

.article .page-panel.article h2 {
  margin-top: 0;
}

.reference-list {
  padding-left: 1.2em;
}

.reference-list li {
  margin-bottom: 16px;
}

.reference-title {
  color: var(--blue);
  font-weight: 800;
}
.profile-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.profile-list dt {
  color: var(--rule);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
}

.activity-list {
  display: grid;
  gap: 18px;
}

.activity-list h3 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 20px;
}

@media (max-width: 640px) {
  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.brand-greek {
  font-family: Symbol, "Times New Roman", serif;
  font-weight: 400;
}
.article-toc {
  margin: 22px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fbfaf7;
}

.article-toc-title {
  margin: 0 0 10px;
  color: var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--blue);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.article-toc a:hover {
  border-color: var(--rule);
}

@media (max-width: 640px) {
  .article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.greek {
  font-family: "Segoe UI", "Times New Roman", "Noto Sans", "Noto Serif", serif;
}

.share-footer {
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(251, 250, 247, .94);
}

.share-footer-inner {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 24px;
}

.share-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.share-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.share-button:hover {
  border-color: var(--rule);
}

.share-button-x {
  color: #fff;
  border-color: #111;
  background: #111;
}

.share-status {
  min-width: 9em;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.share-copy-source {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 520px) {
  .share-button {
    width: 100%;
  }

  .share-status {
    width: 100%;
    min-width: 0;
  }
}

.promotion {
  width: 100%;
  border-top: 1px solid var(--line);
  background: #fff;
}

.promotion-inner {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 26px;
}

.promotion-label {
  margin: 0 0 8px;
  color: var(--rule);
  font-size: 13px;
  font-weight: 800;
}

.promotion-text {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.promotion-link {
  color: var(--blue);
  font-size: 14px;
  overflow-wrap: anywhere;
}

mjx-container[jax="CHTML"][display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2em 0;
}
