.lower-nav {
  background: #faf6ed;
  color: #293f32;
  font-feature-settings: "palt";
}
.menu-directory { padding-block: clamp(30px, 4vw, 55px) 31px; }
.menu-mast, .shelf-title { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.menu-mast { margin-bottom: 22px; }
.library-heading {
  margin: 0;
  color: var(--ink);
  font: 650 clamp(1.6rem, 2.65vw, 2.35rem)/1.4 var(--serif);
  letter-spacing: .045em;
}
.menu-mast h2 { display: flex; align-items: center; gap: 10px; }
.menu-mast h2 img { width: clamp(33px, 3.8vw, 52px); height: 39px; object-fit: contain; }
.menu-search {
  display: flex;
  width: min(415px, 45%);
  padding: 3px;
  border: 1px solid #bcbcac;
  background: #fffdf7;
  border-radius: 5px;
}
.menu-search:focus-within { border-color: #41624b; }
.menu-search input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 5px 11px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.menu-search input::placeholder { color: #6b7064; }
.menu-search input:focus-visible { outline: 2px solid #688369; outline-offset: -2px; }
.menu-search button {
  background: #294d38;
  border: 0;
  border-radius: 3px;
  color: #fffdf3;
  padding: 5px 20px;
  min-height: 38px;
  cursor: pointer;
  font-size: .93rem;
  font-weight: 650;
}
.menu-search button:hover { background: #386348; }
.menu-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.entry-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 21px); }
.entry-panel {
  --edge: #b17a28;
  --wash: #f3e5be;
  --deep: #7c5723;
  min-width: 0;
  border: 1px solid #d5c8aa;
  border-radius: 4px;
  background: #fffdf6;
  box-shadow: 0 3px 0 -1px #e9e1d0, 0 5px 0 -2px #d6ccba;
  scroll-margin-top: 12px;
}
.entry-students { --edge: #758855; --wash: #e5ead5; --deep: #405735; }
.entry-adults { --edge: #ab7160; --wash: #f2e0d6; --deep: #7a493a; }
.panel-cover {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 12px;
  padding: 19px 21px; min-height: 88px;
  border-top: 3px solid var(--edge); border-radius: 3px 3px 0 0; border-bottom: 1px solid #c2b492;
  overflow: hidden;
  background: linear-gradient(103deg, var(--wash), color-mix(in srgb,var(--wash) 57%,#fff9e6));
}
.panel-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/paper-grain.webp') repeat; opacity: .36; mix-blend-mode: multiply; pointer-events: none; }
.panel-cover img {
  position: absolute; z-index: -1; right: 16px; bottom: 4px;
  object-fit: contain; width: 26%; height: 88%; transition: transform .2s ease;
  filter: drop-shadow(1px 2px 1px #79533320);
}
.panel-cover > div { max-width: 75%; }
.panel-cover h3 { margin: 0; color: #254333; font: 650 clamp(1.55rem, 2.3vw, 2.1rem)/1.35 var(--serif); letter-spacing: .06em; }
.panel-cover p { margin: .24rem 0 0; color: #4d5848; font-size: .91rem; line-height: 1.5; }
.panel-view {
  flex: none;
  font-size: .78rem; color: var(--deep); background: #fff9e8ed;
  border: 1px solid color-mix(in srgb,var(--edge) 55%,white); border-radius: 2px; padding: 0 6px; line-height: 1.6;
}
.illustrated-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px; list-style: none; padding: 14px; margin: 0;
}
.illustrated-links li { min-width: 0; }
.illustrated-links a { display: block; height: 100%; color: #294130; }
.illustrated-links img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 3px; background: #e9e2cf;
}
.illustrated-links span {
  display: block; margin-top: .35rem; font-size: .95rem; font-weight: 600;
  line-height: 1.5; text-wrap: balance;
}
.guide-strips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 23px; }
.guide-strip {
  min-width: 0; padding: 9px 16px 11px; border: 1px solid #d4d0bd; border-radius: 3px;
  background: #f1f0e5;
}
.guide-strip:first-child { background: #edf0e8; }
.guide-title { display: flex; align-items: center; gap: 9px; min-height: 40px; }
.guide-title img { width: 33px; height: 35px; object-fit: contain; }
.guide-title h3 { font: 650 1.15rem/1.5 var(--serif); margin: 0; }
.guide-index { margin-left: auto; font-size: .82rem; color: #4c614d; text-decoration: underline; text-underline-offset: 3px; }
.guide-strip .illustrated-links { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 0 0; gap: 10px; }
.guide-strip .illustrated-links span { font-size: .89rem; }
.format-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 17px; padding-top: 13px; }
.format-links span { color: #526147; font-weight: 650; font-size: .87rem; }
.format-links a { padding-block: .3rem; font-size: .92rem; text-decoration: underline; text-decoration-color: #b5b7a1; text-underline-offset: .25em; }
.menu-features {
  padding-block: clamp(29px, 3vw, 42px) clamp(32px, 3.7vw, 52px);
  background: #fffdf6; border-block: 1px solid #d8d4c3;
}
.shelf-title { padding-bottom: 13px; margin-bottom: 20px; border-bottom: 2px solid #526d49; }
.shelf-title > a { font-size: .9rem; text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #a1aa90; }
.feature-display { display: grid; grid-template-columns: 1.08fr 1fr; grid-template-rows: auto auto; gap: 16px 26px; }
.story-card { min-width: 0; }
.story-card:first-child { grid-row: span 2; border-right: 1px solid #dcd9c8; padding-right: 25px; }
.story-card a { display: grid; grid-template-columns: minmax(105px, .7fr) 1fr; height: 100%; align-items: center; gap: 16px; }
.story-card:first-child a { display: block; }
.story-image { overflow: hidden; border-radius: 3px; background: #f1e6d7; }
.story-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; transition: transform .3s ease; }
.story-card:first-child .story-image img { aspect-ratio: 3.0; object-fit: cover; }
.story-card:first-child .story-copy { padding-top: 10px; }
.story-card:nth-child(3) { padding-top: 14px; border-top: 1px solid #dcd9c8; }
.story-topic { margin: 0 0 4px; font: 600 .81rem/1.55 var(--sans); color: #626d55; }
.story-topic span { padding-right: .55em; border-right: 1px solid #b9baa4; margin-right: .3em; }
.story-card h3 { text-wrap: balance; margin: 0; font: 650 clamp(1.08rem, 1.6vw, 1.48rem)/1.5 var(--serif); color: var(--ink); }
.story-card:first-child h3 { font-size: clamp(1.25rem, 2.1vw, 1.82rem); }
.story-summary { margin: 4px 0 0; font: 400 .93rem/1.65 var(--sans); color: #556052; }
@media (hover: hover) {
  .panel-cover:hover h3,.guide-title:hover h3,.illustrated-links a:hover span,.story-card a:hover h3, .format-links a:hover { text-decoration: underline; text-underline-offset: .21em; }
  .panel-cover:hover img { transform: translateY(-2px) rotate(-2deg); }
  .story-card a:hover img { transform: scale(1.025); }
}
@media (min-width: 741px) and (max-width: 1000px) {
  .panel-cover { padding: 16px 12px; min-height: 91px; }
  .panel-cover img { right: 5px; width: 24%; height: 77%; }
  .illustrated-links { gap: 12px 8px; padding: 10px; }
  .guide-strip .illustrated-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-strip { padding-inline: 11px; }
  .feature-display { column-gap: 16px; }
  .story-card:first-child { padding-right: 15px; }
  .story-card a { grid-template-columns: minmax(85px, .66fr) 1fr; gap: 11px; }
}
@media (max-width: 740px) {
  .menu-directory { padding-block: 27px 22px; }
  .menu-mast { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .menu-mast h2 img { width: 32px; height: 28px; }
  .menu-search { width: 100%; }
  .menu-search button { min-height: 40px; }
  .entry-panels { grid-template-columns: 1fr; gap: 14px; }
  .panel-cover { min-height: 64px; padding: 10px 16px; }
  .panel-cover > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; max-width: 76%; }
  .panel-cover h3 { font-size: 1.4rem; }
  .panel-cover p { margin: 0; font-size: .81rem; }
  .panel-cover img { right: 45px; bottom: 0; width: 51px; height: 95%; }
  .panel-view { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); }
  .illustrated-links { gap: 12px; padding: 12px; }
  .guide-strip .illustrated-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 8px 4px; }
  .guide-strip .illustrated-links span { font-size: .95rem; }
  .guide-strips { grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
  .guide-strip { padding: 7px 13px 8px; }
  .guide-title { min-height: 38px; }
  .format-links { column-gap: 14px; padding-top: 10px; }
  .format-links a { min-height: 38px; display: inline-flex; align-items: center; }
  .shelf-title { padding-bottom: 9px; margin-bottom: 14px; gap: 8px; }
  .feature-display { display: block; }
  .story-card:first-child { padding: 0 0 16px; border: 0; }
  .story-card:nth-child(n+2) { border-top: 1px solid #dcd9c8; padding: 12px 0; }
  .story-card:last-child { padding-bottom: 0; }
  .story-card a { grid-template-columns: minmax(90px, 35%) 1fr; gap: 12px; }
  .story-card:first-child .story-image img { aspect-ratio: 2.45; }
  .story-card:first-child .story-copy { padding-top: 7px; }
  .story-image img { aspect-ratio: 1.45; }
  .story-summary { font-size: .9rem; line-height: 1.6; }
}
@media (max-width: 395px) {
  .panel-cover > div { display: block; max-width: 72%; }
  .panel-cover img { right: 48px; }
  .panel-cover p { margin-top: 2px; }
  .format-links { column-gap: 10px; }
}

.article-shelf { --tint:#fff7e7; --letter:#965027; padding-block:18px; }
.shelf-students { --tint:#edf6f1; --letter:#24695d; }
.shelf-adults { --tint:#f5f0f8; --letter:#694875; }
.article-shelf header { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.article-shelf h3 { margin:0; font:600 clamp(1.35rem,2.4vw,1.85rem)/1.4 var(--serif); }
.article-shelf header i { height:1px; flex:1; background:#d6cdbb; }
.article-shelf header a { text-decoration:underline; text-underline-offset:3px; }
.article-shelf button { width:42px; height:42px; border-radius:50%; background:#fffdf7; border:1px solid #b9b3a2; color:#334c3b; font:1.5rem/1 Georgia,serif; cursor:pointer; }
.article-track { --card:min(70%,530px); list-style:none; margin:0; padding:0; display:flex; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.article-track::-webkit-scrollbar { display:none; }
.article-track::before,.article-track::after { content:"";flex:0 0 calc((100% - var(--card))/2); }
.article-track li { flex:0 0 var(--card); min-width:0; scroll-snap-align:center; }
.article-track li+li { margin-left:clamp(10px,2vw,24px); }
.article-track a { display:block; padding-bottom:5px; }
.article-track a:focus-visible { outline-offset:-3px; }
/* Pair a full painted vignette with selectable editorial copy. */
.shelf-art {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  aspect-ratio: 2.8;
  padding: 2% 4%;
  gap: 4%;
  box-sizing: border-box;
  background: linear-gradient(115deg, var(--tint), color-mix(in srgb, var(--tint) 62%, white));
  color: var(--letter);
}
.shelf-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.shelf-art span { font: 500 clamp(1rem, 2.3vw, 1.8rem)/1.45 var(--serif); letter-spacing: .045em; text-wrap: balance; }
.shelf-students .shelf-art img, .shelf-teachers .shelf-art img { grid-column: 2; grid-row: 1; }
.shelf-students .shelf-art span, .shelf-teachers .shelf-art span { grid-column: 1; grid-row: 1; }
.article-track strong { display:block; margin:8px 0 3px; font-size:clamp(1.05rem,2vw,1.3rem); }
.article-track p { font-size:1rem; line-height:1.55; margin:0; }
@media(max-width:600px){.article-track {width:100vw;margin-inline:calc((100% - 100vw)/2);} }
.shelf-basics { --tint:#eff5f9; --letter:#315978; }
.shelf-teachers { --tint:#f2f5e9; --letter:#4a633c; }

.lower-nav, .menu-features, .menu-search, .article-shelf button {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.menu-directory { padding-block: clamp(36px, 5vw, 70px); }
.library-heading, .article-shelf h3, .article-track strong, .shelf-art span {
  font-weight: 400;
  letter-spacing: .045em;
}
.article-shelf { padding-block: clamp(20px, 3vw, 35px); }
.article-shelf header { margin-bottom: 16px; }
.article-shelf header i { background: var(--line); }
.article-track strong { margin: 10px 0 4px; }
.article-track p { color: var(--text); line-height: 1.75; }
.shelf-title { border-bottom: 1px solid var(--line); }
.story-card h3 { font-weight: 400; }
.guide-intro-link, .first-guide a { display:inline-block; text-decoration:underline; text-underline-offset:.25em; color:#355b48; padding-block:.35rem; }
.guide-intro-link { margin-top:.5rem; }
.first-guide { display:flex; align-items:center; gap:clamp(1rem,4vw,3rem); padding-block:clamp(2rem,5vw,4rem); border-bottom:1px solid var(--line); }
.first-guide img { width:clamp(5rem,15vw,9rem); height:auto; }
.first-guide h2 { font:400 clamp(1.3rem,2.4vw,2rem)/1.5 var(--serif); margin:0; }
.first-guide p { max-width:42em; margin:.65rem 0; }
@media(max-width:540px){.first-guide {display:block;}.first-guide img {float:right;width:4.2rem;margin:0 0 .25rem .65rem;}}

.world-feature { border-block-end:1px solid var(--line); padding-bottom:1.25rem; margin-bottom:1.5rem; }
.world-feature a { display:flex; align-items:center; gap:clamp(.8rem,3vw,2.5rem); padding:.8rem clamp(.8rem,2vw,1.5rem); background:#f6f8f5; }
.world-feature img { width:clamp(4.5rem,16vw,9rem); height:auto; mix-blend-mode:multiply; }
.world-feature h3 { font:400 clamp(1.25rem,2.4vw,1.9rem)/1.5 var(--serif); margin:0; }
.world-feature p { margin:.4rem 0 0; }
.world-feature a:hover h3 { text-decoration:underline; text-underline-offset:.2em; }

.recent-updates {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 4fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.35rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.recent-updates h2 {
  margin: .4rem 0 0;
  color: var(--ink);
  font: 400 clamp(1.25rem, 2.3vw, 1.9rem)/1.5 var(--serif);
  letter-spacing: .05em;
}
.recent-updates ol { list-style: none; margin: 0; padding: 0; }
.recent-updates li + li { border-top: 1px solid var(--line); }
.recent-updates a {
  display: grid;
  grid-template-columns: 6rem auto minmax(0, 1fr);
  align-items: baseline;
  gap: .25rem clamp(.7rem, 1.5vw, 1.2rem);
  padding-block: .66rem;
}
.recent-updates time { color: #59645d; font-size: .875rem; font-variant-numeric: tabular-nums; }
.update-status { align-self: center; color: #3d5b49; background: #eef3ed; padding: .12rem .5rem; border-radius: .18rem; font-size: .8125rem; line-height: 1.5; }
.update-status.is-new { color: #83432e; background: #faf0e8; }
.update-title { color: var(--ink); font-size: 1.04rem; line-height: 1.55; }
.recent-updates a:is(:hover,:focus-visible) .update-title { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 620px) {
  .recent-updates { display: block; }
  .recent-updates h2 { margin: 0 0 .25rem; }
  .recent-updates a { grid-template-columns: auto 1fr; }
  .update-status { justify-self: start; }
  .update-title { grid-column: 1 / -1; }
}
