
:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --paper2: #FDFDFB;
  --ink: #1f2328;
  --muted: #636b74;
  --line: #ede4da;
  --linedrk: #e6ded4;
  --accent: #6f1d1b;
  --accent-soft: #f4e7e5;
  --shadow: 0 18px 50px rgba(31, 35, 40, 0.08);
  --max: 1120px;
  --header: #faf6f3;
  --header2: #FAFAFA;
  --footer: #fdfdfd;
  --side: #F8F1EE;
  --side2: #F8F1F0;
  --side3: #F7F3EE;
  --sidelight: #fdfdfd;
  --buttonlight: #FCFAF8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Cambria, Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

html {
  overflow-y: scroll;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 245, 242, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 25px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 25px;
  font-weight: bold;
}

.brand-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand-logo-footer {
  width: 45px;
  height: 45px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text p {
  margin-top: 0px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 1px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); }

.hero {
  padding: 86px 0 64px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.pdf-frame {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 4.45rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.20rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.24rem;
}

h4 {
  font-size: clamp(2.45rem, 7vw, 4.36rem);
  letter-spacing: -0.04em;
}

.summary-wrap-image {
  float: right;
  width: 220px;
  max-width: 40%;
  height: auto;
  margin: 0 0 1rem 1.25rem;
  border-radius: 3px;

  /* shadow mainly bottom-right */
  box-shadow: 10px 12px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 700px) {
  .summary-wrap-image {
    float: none;
    display: block;
    max-width: 100%;
    width: 100%;
    margin: 0 0 1.25rem 0;
  }
}

.sidebar.card {
  background-color: #ffffff;
  background-image: url("../images/dark-carton-pattern.png");
  background-repeat: repeat;
  background-size: 500px 500px;
}

.book-glance {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.book-glance h2 {
  margin-top: 0;
}

.book-glance ul {
  margin-top: 0.5rem;
}

.news-banner {
  margin: 1.7rem 2.6rem 0;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 1.7rem;
  padding: 1.3rem 1rem;
  border: 1px solid var(--line);
  border-left: 8px solid #1F2328;
  background: #FFF4E5;
  color: #1F2328;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  background-image: url("../images/paper-pattern.png");
  background-repeat: repeat;
  background-size: 350px 350px;
}

.news-label {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  background: #1F2328;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.news-text {
  display: block;
}

@media (max-width: 650px) {
  .news-banner {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 1.2rem auto 0;
    padding: 0.85rem 0.9rem;
    gap: 0.65rem;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.4;
    border-left-width: 4px;
  }

  .news-label {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  .news-text {
    width: 100%;
  }
}

.bright-highlight {
  background-color: #ffff00;
  color: #000;
  padding: 0 0.15em;
}

.bright-highlight1 {
  background-color: #FFB5E6;
  color: #000;
  padding: 0 0.15em;
}

.lede {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  max-width: 830px;
  color: #30343a;
}

.book-subtitle {
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: clamp(2.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.20;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--header);
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 650;
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button2:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(31, 35, 40, 0.18);
}

.button2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--header2);
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 650;
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(31, 35, 40, 0.18);
}

.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 9px 22px rgba(111, 29, 27, 0.22);
}

.button.primary:hover {
  box-shadow: 0 13px 30px rgba(111, 29, 27, 0.28);
}

.button.ghost {
  border-color: var(--linedrk);
  color: var(--ink);
  background: var(--header);
  box-shadow: 0 6px 16px rgba(31, 35, 40, 0.09);
}

.button.ghost2 {
  border-color: var(--linedrk);
  color: var(--ink);
  background: var(--header2);
  box-shadow: 0 6px 16px rgba(31, 35, 40, 0.09);
}

.section {
  padding: 30px 0;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--footer);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cardcl {
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cardcl2 {
  background: var(--side2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cardcl3 {
  background: var(--side3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.home-card-grid .feature-card {
  height: 100%;
}

@media (max-width: 800px) {
  .home-card-grid {
    grid-template-columns: 1fr;
  }
}

.two-column-text {
  column-count: 2;
  column-gap: 2.5rem;
}

.two-column-text p {
  break-inside: avoid;
  margin-top: 0;
}

@media (max-width: 800px) {
  .two-column-text {
    column-count: 1;
  }
}

.card p:last-child { margin-bottom: 0; }

.book-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--muted);
  font-size: 0.91rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td { border-bottom: 0; }

.page-head {
  padding: 58px 0 28px;
}

.book-hero_or {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
  background: var(--footer);
}

.book-hero {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255,255,255,0.30), rgba(255,255,255,0.30)),
  url("../images/light-carton-pattern.png");
  background-repeat: repeat;
  background-size: 2100px;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 34px;
  align-items: start;
}

.site-footer {
  position: relative;
  border-top: 1px dashed var(--line);
  box-shadow: 0 -12px 32px rgba(31, 35, 40, 0.055);
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar.card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.sidebar.card h2,
.sidebar.card h3 {
  margin-bottom: 0.85rem;
}

.sidebar.card hr {
  margin: 1rem 0;
}

.corpus-card-wrap {
  max-width: 384px;
  margin: 2rem auto 0;
}

.corpus-card {
  width: 100%;
}

.corpus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 2rem;
  align-items: start;
}

.corpus-table {
  min-width: 0;
  background-color: #ffffff;
  background-image:url("../images/paper-pattern.png");
  background-repeat: repeat;
  background-size: 600px 600px;
}

.corpus-table table {
  min-width: 620px;
  font-size: 0.92rem;
  background-color: transparent;
}

.corpus-table th,
.corpus-table td {
  padding: 0.55rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.55);
}

.corpus-archive-card {
  width: 384px;
  position: sticky;
  top: 6rem;
  background-color: #ffffff;
  background-image: url("../images/dark-carton-pattern.png");
  background-repeat: repeat;
  background-size: 500px 500px;
}

.corpus-archive-card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.corpus-archive-card h2,
.corpus-archive-card h3 {
  margin-bottom: 0.75rem;
}

.corpus-archive-card hr {
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .corpus-layout {
    grid-template-columns: 1fr;
  }

  .corpus-archive-card {
    width: 100%;
    position: static;
  }
}

.corpus-table th:nth-child(1),
.corpus-table td:nth-child(1) {
  width: 110px;
  padding-left: 1.8rem;
}

.corpus-table th:nth-child(2),
.corpus-table td:nth-child(2) {
  width: 220px;
  white-space: normal;
}

.corpus-table th:nth-child(3),
.corpus-table td:nth-child(3) {
 width: 220px;
}

.corpus-table th:nth-child(4),
.corpus-table td:nth-child(4) {
  white-space: nowrap;
  text-align: center;
}

.notice {
  border-left: 14px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 40px;
  border-radius: 12px;
  max-width: 750px;
  margin-left: 50px;
  margin-right: auto;
}

.site-footer {
  margin-top: 56px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
  background: rgba(253, 253, 253, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-grid p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav { justify-content: flex-start; }

  .grid.two,
  .grid.three,
  .book-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }

  .hero { padding-top: 54px; }

  h1 { font-size: clamp(2.2rem, 12vw, 4rem); }
}

.book-content-section {
  position: relative;
  background: var(--bg);
  box-shadow: 0 -12px 32px rgba(31, 35, 40, 0.055);
  z-index: 1;
}

body.book-page .book-nav-minimal {
  background: var(--bg);
}

body.book-page .site-footer {
  margin-top: 0;
}

.book-nav-minimal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1360px;
  margin: 0px auto 0;
  padding: 5px 120px 0;
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
}

.book-nav-slot {
  min-width: 0;
}

.book-nav-minimal a {
  text-decoration: none;
}

.book-nav-label {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.book-nav-minimal strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
}

.book-nav-prev {
  display: block;
  text-align: left;
}

.book-nav-corpus1 {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  padding: 0 8px;
}

.book-nav-corpus {
  display: block;
  text-align: center;
}

.book-nav-next {
  display: block;
  text-align: right;
}

.book-nav-minimal a:hover .book-nav-label,
.book-nav-corpus:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .book-nav-minimal {
    display: block;
    max-width: none;
    margin: 44px 20px 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
  }

  .book-nav-slot {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .book-nav-slot-center {
    border-bottom: 0;
    padding-top: 18px;
  }

  .book-nav-next {
    text-align: left;
  }

  .book-nav-corpus {
    display: inline-block;
    padding: 0;
    color: var(--accent);
  }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
  body { background: white; }
  .card, .table-wrap { box-shadow: none; }
}
