@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root {
  --ink: #172f36;
  --green: #164c43;
  --mint: #cce7a4;
  --paper: #f6f5ef;
  --line: #dedfd8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    0.875rem 'Be Vietnam Pro',
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 257px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 36px 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px;
}
.brand b {
  font-size: 2.1875rem;
  letter-spacing: -2px;
  color: var(--green);
}
.brand b span {
  font-size: 1.6875rem;
  color: #9fbe6b;
}
.brand small {
  font-size: 0.5rem;
  line-height: 1.6;
  letter-spacing: 1px;
  border-left: 1px solid #ddd;
  padding-left: 10px;
}
.edition {
  font-size: 0.5625rem;
  letter-spacing: 1.8px;
  margin: 38px 10px 18px;
  color: #7b8784;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  font-size: 0.6875rem;
  line-height: 1.6;
  padding: 11px 12px;
  border-radius: 5px;
  display: flex;
  gap: 13px;
  align-items: center;
}
nav a span {
  font-size: 0.9375rem;
  min-width: 19px;
  color: #6b8380;
}
nav a:hover {
  background: #f1f4ee;
}
nav a.active {
  color: #fff;
  background: var(--green);
}
nav a.active span {
  color: var(--mint);
}
.about {
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 22px 10px;
}
.about span {
  float: right;
}
.sidefoot {
  font-size: 0.8125rem;
  line-height: 1.9;
  margin: auto 10px 0;
  color: #84918c;
}
.sidefoot strong {
  color: #34574d;
  font-weight: 500;
}
.shell {
  margin-left: 257px;
}
header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  gap: 20px;
}
.headtitle {
  font-size: 0.625rem;
  letter-spacing: 1.7px;
}
.headtitle b {
  color: #6e8b5a;
  margin-left: 8px;
}
.actions {
  display: flex;
  gap: 23px;
  align-items: center;
  font-size: 0.6875rem;
}
.actions select {
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: 130px;
}
.textbtn {
  background: none;
  color: var(--ink);
}
.darkbtn {
  background: var(--green);
  color: white;
  padding: 13px 18px;
  border-radius: 4px;
}
main {
  padding: 32px 44px 60px;
  max-width: 1600px;
  margin: auto;
}
.crumb {
  font-size: 0.625rem;
  color: #7e8c87;
  margin-bottom: 24px;
}
.hero {
  background: #173e3b;
  color: #fff;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border-radius: 7px;
  position: relative;
}
.herocopy {
  padding: 47px 0 45px 39px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 0.5625rem;
  letter-spacing: 2px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--mint);
}
h1 {
  font-size: clamp(1.9375rem, 3.1vw, 3.25rem);
  line-height: 1.24;
  letter-spacing: -1.8px;
  font-weight: 500;
  margin: 28px 0 20px;
}
h1 em {
  color: var(--mint);
  font-style: normal;
}
.herocopy p {
  font-size: 0.75rem;
  line-height: 1.9;
  color: #baccc3;
  max-width: 325px;
}
.lightbtn {
  display: inline-block;
  background: var(--mint);
  color: #183c32;
  padding: 14px 19px;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 20px;
}
.heroart {
  position: relative;
  min-height: 350px;
  background: radial-gradient(ellipse at 80% 35%, #59816e 0, transparent 68%);
}
.heroart svg {
  position: absolute;
  width: 120%;
  height: 100%;
  right: -15%;
  bottom: 0;
}
.artcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 0.5rem;
  letter-spacing: 2px;
  color: #c0d5c2;
}
.orbit {
  border: 1px solid #73968155;
  border-radius: 50%;
  width: 330px;
  height: 330px;
  position: absolute;
  top: 60px;
  left: 0;
}
.orbit:after {
  content: '✳';
  position: absolute;
  top: -15px;
  left: 130px;
  font-size: 2.5rem;
  color: var(--mint);
}
.introstrip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  gap: 20px;
}
.introstrip > div {
  padding: 0 25px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.introstrip > div:first-child {
  padding-left: 0;
}
.introstrip > div:last-child {
  border: 0;
}
.introstrip b {
  font-size: 1.75rem;
  font-weight: 500;
}
.introstrip span {
  font-size: 0.625rem;
  line-height: 1.8;
  color: #75847d;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 43px 0 23px;
  gap: 20px;
}
.kicker {
  font-size: 0.5625rem;
  letter-spacing: 1.8px;
  color: #6a8173;
  margin: 0 0 11px;
}
h2 {
  font-size: 1.5625rem;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 0;
}
.sectionhead > p {
  font-size: 0.6875rem;
  color: #7b8982;
  max-width: 230px;
  line-height: 1.8;
}
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.sector {
  border: 1px solid var(--line);
  background: #fff;
  padding: 23px;
  min-height: 169px;
  border-radius: 5px;
  transition: 0.2s;
}
.sector:hover {
  transform: translateY(-3px);
  border-color: #648b67;
  box-shadow: 0 6px 18px #1233290a;
}
.sector .top {
  display: flex;
  justify-content: space-between;
  color: #809875;
}
.sector .symbol {
  font-size: 1.5625rem;
}
.sector .num {
  font-size: 0.5625rem;
  color: #a4ada4;
}
.sector h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 24px 0 12px;
}
.sector p {
  font-size: 0.5625rem;
  color: #8c978e;
  display: flex;
  justify-content: space-between;
}
.askbar {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #e8eddf;
  border: 1px solid #dbe3d1;
  padding: 23px 27px;
  border-radius: 5px;
  margin-top: 30px;
}
.askbar .star {
  font-size: 2.125rem;
  color: #446d4b;
}
.askbar h3 {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 7px;
}
.askbar p {
  font-size: 0.625rem;
  color: #798675;
  margin: 0;
}
.askbar button {
  margin-left: auto;
  background: #fff;
  padding: 13px 18px;
  border: 1px solid #d5dccf;
  border-radius: 4px;
  font-size: 0.6875rem;
  white-space: nowrap;
}
footer {
  padding: 25px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  color: #879187;
  gap: 15px;
}
.chatfloat {
  position: fixed;
  bottom: 23px;
  right: 27px;
  background: var(--green);
  color: white;
  padding: 17px 21px;
  border-radius: 40px;
  box-shadow: 0 4px 20px #0002;
  z-index: 6;
  font-size: 0.75rem;
}
.chatfloat span {
  margin: 0 15px;
}
dialog {
  position: fixed;
  inset: auto 25px 85px auto;
  width: 410px;
  max-width: calc(100vw - 30px);
  border: 1px solid #cdd7c8;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 20px 100px #001c2333;
  color: var(--ink);
}
dialog::backdrop {
  background: #001c231c;
}
.chathead {
  padding: 22px;
  background: var(--green);
  color: white;
  display: flex;
  justify-content: space-between;
}
.chathead small {
  display: block;
  font-size: 0.625rem;
  opacity: 0.7;
  margin-top: 7px;
}
.chathead button {
  font-size: 1.5625rem;
  background: none;
  color: white;
}
.notice {
  background: #edf1e6;
  font-size: 0.5625rem;
  letter-spacing: 1px;
  padding: 11px 20px;
  color: #6c7e5d;
}
#messages {
  padding: 20px;
  max-height: 270px;
  overflow: auto;
  min-height: 160px;
}
.message {
  font-size: 0.75rem;
  line-height: 1.9;
  padding: 12px;
  background: #f0f3ec;
  border-radius: 5px;
  margin-bottom: 10px;
}
.message.user {
  background: #164c43;
  color: white;
  margin-left: 35px;
}
.suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 20px 15px;
}
.suggestions button {
  background: white;
  border: 1px solid #d7dfd0;
  border-radius: 20px;
  padding: 7px 10px;
  font-size: 0.5625rem;
}
form {
  display: flex;
  margin: 0 20px;
  border: 1px solid #d8dfd3;
  border-radius: 5px;
  padding: 7px;
}
form input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 0.6875rem;
  padding: 5px;
}
form button {
  background: var(--green);
  color: white;
  border-radius: 3px;
  padding: 7px 13px;
}
.chatnote {
  display: block;
  font-size: 0.5rem;
  color: #8a9586;
  text-align: center;
  padding: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 35px;
  line-height: 1.9;
  margin-top: 25px;
}
.panel p {
  font-size: 0.8125rem;
  color: #718177;
}
.back {
  font-size: 0.6875rem;
  color: #687f67;
}
.detailtitle {
  color: var(--ink);
  font-size: 2.5rem;
  margin: 25px 0;
}
.empty {
  border: 1px dashed #cdd7c3;
  background: #f7f9f3;
  text-align: center;
  padding: 35px;
  margin-top: 25px;
  border-radius: 5px;
}
.empty b {
  font-size: 0.875rem;
  font-weight: 500;
}
.empty p {
  font-size: 0.6875rem;
}
.reader {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
}
.toc {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 0.625rem;
}
.toc a {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.book {
  min-height: 450px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  box-shadow: 6px 6px 0 #e6e8df;
}
.book h2 {
  font-size: 1.875rem;
  line-height: 1.5;
  color: #264c3c;
}
.book p {
  font-size: 0.6875rem;
  color: #8b9686;
}
.book small {
  font-size: 0.5625rem;
  color: #7b8b70;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e36;
  color: white;
  padding: 15px 22px;
  border-radius: 5px;
  z-index: 20;
  font-size: 0.75rem;
  max-width: 85vw;
  display: none;
}
#mobile {
  display: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #96b75e;
  outline-offset: 4px;
}
@media (min-width: 1450px) {
  .hero {
    min-height: 520px;
  }
  .herocopy {
    padding-top: 60px;
  }
}
@media (max-height: 850px) {
  .sidefoot {
    display: none;
  }
  aside {
    padding-top: 25px;
  }
  .edition {
    margin-top: 25px;
  }
  nav a {
    padding: 9px 12px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 220px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .shell {
    margin-left: 220px;
  }
  header {
    padding: 0 25px;
  }
  .headtitle {
    display: none;
  }
  main {
    padding: 28px 25px;
  }
  .hero {
    grid-template-columns: 1.3fr 1fr;
  }
  .herocopy {
    padding-left: 28px;
  }
  .actions {
    width: 100%;
    justify-content: end;
  }
  .sectors {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  aside {
    transform: translateX(-100%);
    transition: 0.2s;
    width: 260px;
    box-shadow: 20px 0 100px #0002;
  }
  aside.open {
    transform: translateX(0);
  }
  .shell {
    margin: 0;
  }
  #mobile {
    display: block;
    background: none;
    font-size: 1.375rem;
  }
  header {
    height: 75px;
    padding: 0 18px;
  }
  .actions {
    gap: 12px;
    font-size: 0.625rem;
  }
  .actions select {
    max-width: 94px;
  }
  .darkbtn {
    padding: 11px;
  }
  .textbtn span {
    display: none;
  }
  main {
    padding: 23px 18px 45px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 610px;
  }
  .herocopy {
    padding: 32px 28px 0;
  }
  h1 {
    font-size: 2.5rem;
  }
  .heroart {
    min-height: 220px;
    margin-top: -5px;
  }
  .heroart svg {
    height: 270px;
    width: 85%;
    right: 0;
  }
  .orbit {
    width: 220px;
    height: 220px;
    top: 0;
    left: auto;
    right: 30px;
  }
  .orbit:after {
    left: 85px;
  }
  .introstrip {
    gap: 5px;
  }
  .introstrip > div {
    padding: 0 10px;
    gap: 7px;
  }
  .introstrip b {
    font-size: 1.375rem;
  }
  .introstrip span {
    font-size: 0.5rem;
  }
  .sectionhead {
    align-items: start;
  }
  .sectionhead > p {
    display: none;
  }
  h2 {
    font-size: 1.4375rem;
  }
  .sectors {
    gap: 9px;
  }
  .sector {
    padding: 17px;
    min-height: 165px;
  }
  .sector h3 {
    font-size: 0.6875rem;
  }
  .askbar {
    padding: 20px;
    flex-wrap: wrap;
    gap: 13px;
  }
  .askbar p {
    line-height: 1.8;
  }
  .askbar button {
    margin-left: 45px;
  }
  footer {
    padding: 22px 18px;
    flex-wrap: wrap;
    font-size: 0.5rem;
  }
  .chatfloat {
    right: 18px;
    bottom: 16px;
  }
  dialog {
    right: 15px;
    bottom: 77px;
  }
  .reader {
    grid-template-columns: 1fr;
  }
  .toc {
    grid-template-columns: 1fr 1fr;
  }
  .detailtitle {
    font-size: 1.875rem;
  }
  .panel {
    padding: 23px;
  }
}
.pdfcontrols {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8eddf;
  padding: 12px 18px;
  border-radius: 4px;
}
.pdfcontrols input {
  width: 55px;
  padding: 6px;
  border: 1px solid #cdd7c3;
  border-radius: 3px;
}
.pdfhint {
  font-size: 0.5625rem;
  color: #87917f;
  line-height: 1.7;
}
#pdfstatus {
  font-size: 0.75rem;
  padding: 20px 0;
}
