#chemistry-study .a351-book {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  width:min(100%,960px);
  margin-inline:auto;
  perspective:1650px;
}
.a351-cover {
  --leather:#25382d;
  position:relative;
  z-index:2;
  isolation:isolate;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:2rem;
  width:min(100%,390px);
  min-height:clamp(340px,43vw,515px);
  margin:0 auto 12px;
  padding:2.3rem;
  color:#e9d8ab;
  border:1px solid #9b8e5c;
  border-radius:8px 15px 15px 8px;
  background:
    linear-gradient(90deg,#0c1812 0,#546149 3%,transparent 7% 94%,#101d15),
    repeating-linear-gradient(119deg,#e6d5a40a 0 1px,transparent 2px 6px),
    radial-gradient(ellipse at 56% 38%,#45513a,var(--leather) 66%,#18251c);
  box-shadow:0 6px #d9caa1,0 11px #3e4030,0 23px 38px #030c0dbf;
}
.a351-cover::before {
  content:'';
  position:absolute;
  inset:1rem 1rem 1rem 1.3rem;
  z-index:-1;
  border:1px solid #c4ae7777;
  border-radius:5px 10px 10px 5px;
  box-shadow:0 0 0 3px #141f19aa,inset 0 0 0 3px #19251c88;
}
.a351-stamp {
  display:grid;
  place-items:center;
  gap:1rem;
  font:700 clamp(1.35rem,4vw,2rem)/1.16 Georgia,serif;
  text-align:center;
  text-shadow:1px 2px #10170e;
}
#chemistry-study .a351-stamp svg { width:48px; height:42px; color:#cfdd8e; stroke:none; }
#chemistry-study .a351-cover button {
  color:#eff1d5;
  background:#19291e;
  border-color:#bbad72;
  padding-inline:1.25rem;
}
#chemistry-study .a351-cover button:hover { background:#314733; color:#fff7d8; }

.a351-book.is-open .a351-cover {
  position:absolute;
  inset:0 auto auto 0;
  margin:0;
  height:100%;
  width:50%;
  max-height:620px;
  min-height:0;
  pointer-events:none;
  transform-origin:left center;
  animation:a351-open .63s cubic-bezier(.3,.14,.3,1) both;
}
#chemistry-study .a351-spread {
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  min-width:0;
  min-height:0;
  padding:0;
  border:5px solid #47503a;
  border-radius:9px 15px 15px 9px;
  background:#e3d8b9;
  color:#263934;
  box-shadow:0 6px 0 #b5a680,0 10px 0 #52533d,0 16px 30px #06110ebb;
  isolation:isolate;
}
.a351-leaf {
  min-width:0;
  min-height:clamp(440px,57vw,570px);
  padding:clamp(1.25rem,3.7vw,3rem);
  background:
    repeating-linear-gradient(114deg,#977d4d06 0 2px,transparent 2px 7px),
    radial-gradient(ellipse at 32% 15%,#fbf3dd,transparent 78%),
    #efe4c9;
}
.a351-leaf-left { box-shadow:inset -21px 0 28px -28px #513918; }
.a351-leaf-right { border-left:1px solid #89754b75; box-shadow:inset 24px 0 32px -30px #503816; }
.a351-leaf-right:has(>p:first-child) { padding-top:clamp(2rem,6vw,4.6rem); }
.a351-bench-note > h3 {
  padding-top:.85rem;
  border-top:2px solid #8a845a;
}
.a351-single-leaf { grid-column:1 / -1; }
#chemistry-study .a351-spread :is(h2,h3,h4) {
  color:#244239;
  text-wrap:balance;
  margin:0 0 .9rem;
}
#chemistry-study .a351-spread h2 { font-size:clamp(1.5rem,3vw,2.1rem); }
#chemistry-study .a351-spread h3 { font-size:clamp(1.15rem,2.2vw,1.43rem); }
#chemistry-study .a351-spread h4 { font-size:1.02rem; }
#chemistry-study .a351-spread p {
  color:#283d34;
  margin:0 0 .95rem;
  font-size:clamp(1rem,1.7vw,1.075rem);
  line-height:1.7;
  overflow-wrap:anywhere;
}
.a351-spread .c318-formula,.a351-worked { padding:.45rem 0 .9rem; margin:0 0 1rem; border-bottom:1px solid #7c795c6b; }
.a351-spread .c318-math { margin:.6rem 0 1rem; padding:.6rem .7rem; }
.a351-spread .c319-table-wrap { margin:0 0 1rem; }
.a351-spread .c319-teaching-table :is(td,th) { min-width:5.75rem; padding:.5rem .6rem; }
.a351-spread .c319-concepts { margin:0; }
.a351-spread .a346-lesson-figure { margin:0 0 1rem; }
.a351-spread .c318-reading-nav {
  grid-column:1 / -1;
  margin:0;
  padding:.8rem clamp(.8rem,3vw,1.65rem);
  background:#dbd0ae;
  border-top:1px solid #8a7e5f6a;
}
.a351-tools {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:.6rem;
  margin:1.3rem 0 .15rem;
}
.a351-tools details { min-width:0; width:min(100%,520px); }
.a351-tools summary {
  padding:.55rem .7rem;
  color:#e7edcf;
  cursor:pointer;
  width:fit-content;
}
#chemistry-study .a351-tools .c318-topics { display:grid; gap:.35rem; margin:.45rem 0 0; }
#chemistry-study .a351-tools .c318-topics button { width:100%; overflow-wrap:anywhere; white-space:normal; }
#chemistry-study .a351-tools [data-close-book] { flex:none; }
.a351-turn {
  position:absolute;
  z-index:1;
  inset:0 0 0 50%;
  pointer-events:none;
  background:linear-gradient(90deg,#887749,#f0e4c8 22%,#e2d2a8 92%,#91805c);
  box-shadow:10px 0 24px #392e1b5c;
  transform-origin:left center;
  animation:a351-turn .46s ease-out both;
}
.a351-turn-back { inset:0 50% 0 0; transform-origin:right center; animation-name:a351-back; }
@keyframes a351-open { 0% { transform:rotateY(0); } 100% { transform:rotateY(-135deg); opacity:0; visibility:hidden; } }
@keyframes a351-turn { from { transform:rotateY(0); } to { transform:rotateY(-150deg); opacity:0; } }
@keyframes a351-back { from { transform:rotateY(0); } to { transform:rotateY(150deg); opacity:0; } }
@media (max-width:720px) {
  #chemistry-study .a351-spread { grid-template-columns:minmax(0,1fr); }
  .a351-leaf { min-height:0; box-shadow:none; padding:1.15rem; }
  .a351-leaf-right,.a351-leaf-right:has(>p:first-child) { padding-top:1.1rem; border-left:0; border-top:1px solid #89754b75; }
  .a351-book.is-open .a351-cover { width:100%; }
  .a351-turn,.a351-turn-back { inset:0; }
}
@media (prefers-reduced-motion:reduce) {
  .a351-book.is-open .a351-cover,.a351-turn { visibility:hidden; animation:none; }
}

.a351-leaf-left { border-radius:4px 0 0 4px; }
.a351-leaf-right { border-radius:0 8px 5px 0; }
#chemistry-study .a351-spread { box-shadow:0 3px 0 #eee3c8,0 6px 0 #b5a680,0 8px 0 #d2c3a1,0 12px 0 #47503a,0 23px 32px #06110ec0; }
@media(max-width:720px) {
  .a351-cover { width:min(100%,340px); min-height:clamp(300px,92vw,435px); }
  .a351-leaf-left,.a351-leaf-right { border-radius:0; }
}
