.td-home { font: 400 1rem/1.6 var(--td-text); }
.td-home h1, .td-home h2, .td-home p { margin: 0; color: inherit; }
.td-home h2 { font: 700 clamp(2.25rem, 4.8vw, 4rem)/1 var(--td-display); letter-spacing: -.027em; }

.td-home .td-library {
  padding-top: clamp(2.1rem, 3.8vw, 3.7rem);
  background: radial-gradient(ellipse at 72% 5%, #fffdf161, transparent 72%);
}
.td-home .td-library-heading { text-align: center; }
.td-home .td-library-heading h1 {
  font: 680 clamp(2.35rem, 5.45vw, 5.35rem)/1 var(--td-text);
  letter-spacing: -.055em; word-spacing: .05em;
}

.td-home .td-shelf-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.55rem, 7vw, 6.1rem); row-gap: clamp(1.7rem, 3.2vw, 2.8rem);
  max-width: 71rem; margin: clamp(1.9rem, 3.1vw, 2.85rem) auto 0;
}
.td-home .td-shelf { min-width: 0; scroll-margin-top: 1.15rem; }

.td-home .td-shelf-scene {
  position: relative; isolation: isolate; padding-top: clamp(1.25rem, 2.3vw, 1.85rem);
  padding-bottom: clamp(2.05rem, 3.2vw, 2.85rem);
}
.td-home .td-shelf-scene::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: auto 0 .24rem -3.7%; height: clamp(2.4rem, 5.5vw, 4.4rem);
  background: linear-gradient(174deg, #51382942 13%, #7e5d4140 70%, #8b6a4e23);
  clip-path: polygon(8% 0, 100% 0, 90% 100%, 0 100%, 0 95%);
}
.td-home .td-shelf-depth {
  --shelf-end: min(24%, 8.4rem);
  display: grid; grid-template-columns: .38rem minmax(0, 1fr) var(--shelf-end);
  position: relative; z-index: 2; isolation: isolate;
}
.td-home :is(#sinif-6, #sinif-7) .td-shelf-depth { grid-template-columns: var(--shelf-end) minmax(0, 1fr) .38rem; }
.td-home #sinif-6 .td-shelf-depth { --shelf-end: min(29%, 9.8rem); }
.td-home :is(.td-shelf-volumes, .td-shelf-shade) {
  grid-area: 1 / 2; display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(.12rem, .29vw, .24rem); margin: 0; padding: 0 .14rem; list-style: none;
  min-height: clamp(9.8rem, 15.5vw, 12.65rem);
}
.td-home .td-shelf-decor {
  --decor-gap: .42rem;
  --decor-edge: .5rem;
  align-self: end; position: relative; isolation: isolate;
  width: min(var(--decor-width), calc(100% - var(--decor-gap) - var(--decor-edge)));
  pointer-events: none;
}
.td-home .td-shelf-decor--start {
  grid-area: 1 / 1; justify-self: end; margin-inline: var(--decor-edge) var(--decor-gap);
}
.td-home .td-shelf-decor--end {
  grid-area: 1 / 3; justify-self: start; margin-inline: var(--decor-gap) var(--decor-edge);
}
.td-home .td-shelf-decor::before {
  content: ''; position: absolute; z-index: -1;
  inset: auto 3% -.04rem; height: .38rem; transform: translateX(-6%);
  background: radial-gradient(ellipse, #412a1c99 0, #6f4a352f 58%, transparent 74%);
  filter: blur(.8px);
}
.td-home .td-shelf-decor img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(-.12rem .12rem .13rem #61402346);
}
.td-home .td-shelf-decor--plant { --decor-width: 6.1rem; }
.td-home .td-shelf-decor--fern { --decor-width: 8.8rem; }
.td-home .td-shelf-decor--globe { --decor-width: 6.8rem; }
.td-home .td-shelf-decor--succulent { --decor-width: 4rem; }
.td-home .td-shelf-volumes { position: relative; z-index: 1; }
.td-home :is(.td-shelf-feature, .td-shelf-shade-volume) {
  --volume-height: 12.35rem; --volume-scale: 1; --weight: 1;
  flex: var(--weight) 1 0; max-width: 2.65rem; min-width: 1.5rem;
  block-size: calc(var(--volume-height) * var(--volume-scale)); position: relative;
}
.td-home :is(.td-shelf-feature, .td-shelf-shade-volume):nth-child(2) {
  --volume-height: 11.65rem; --weight: .92; max-width: 2.44rem;
}
.td-home :is(.td-shelf-feature, .td-shelf-shade-volume):nth-child(3) { --volume-height: 10.95rem; --weight: .85; max-width: 2.24rem; }
.td-home :is(.td-shelf-feature, .td-shelf-shade-volume):nth-child(4) { --volume-height: 11.85rem; --weight: .96; max-width: 2.52rem; }
.td-home :is(.td-shelf-feature, .td-shelf-shade-volume):nth-child(5) { --volume-height: 10.55rem; --weight: .8; max-width: 2.12rem; }
.td-home .td-shelf-shade {
  pointer-events: none; opacity: .23;
  transform: translate(-.83rem, .75rem) skewX(3deg); transform-origin: bottom left;
  clip-path: inset(-.3rem -1rem .75rem -1rem);
  filter: blur(1.3px);
}
.td-home .td-shelf-shade-volume {
  background: #674e37; border-radius: .12rem;
}
.td-home .td-shelf-volumes .td-shelf-feature:is(:hover, :focus-within) { z-index: 3; }

.td-home .td-shelf-book {
  display: block; position: relative; height: 100%; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.td-home .td-book-object {
  display: block; height: 100%; position: relative;
  pointer-events: none;
}
.td-home .td-shelf-book:is(:hover, :focus-visible, :active) .td-book-object {
  transform: translateY(-.125rem);
}
.td-home .td-book-spine {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; height: 100%; width: 100%; min-width: 0;
  border-radius: .24rem .24rem .12rem .12rem;
  background:
    linear-gradient(90deg, #0003, transparent 23%, #ffffff06 47%, transparent 66%, #24130835),
    linear-gradient(0deg, #0002 6%, #ffffff28 6.6% 8.4%, transparent 9% 91%, #fff3 92% 93%, #25100f20 94%),
    var(--spine-paint, var(--volume-color));
  box-shadow: inset .08rem 0 #fff2, inset -.12rem -.16rem #24150835;
  color: var(--volume-ink, #fffaf0); padding: .35rem .08rem;
  writing-mode: vertical-rl; font: 680 clamp(.69rem, 1.2vw, .9rem)/1.1 var(--td-text);
  text-align: center;
}
.td-home [data-striped] .td-spine-title {
  padding: .34rem .16rem; border-radius: .16rem;
  background: var(--volume-stripe); color: #fff;
}
.td-home .td-book-object::before {
  content: ''; position: absolute; z-index: 2; inset: -.26rem .055rem auto; height: .4rem;
  border-radius: .21rem .21rem .07rem .07rem;
  background:
    linear-gradient(90deg, var(--volume-color) 0 9%, #0002 10%, transparent 16% 85%, #0002 91%, var(--volume-color) 92%),
    repeating-linear-gradient(90deg, #c5b9a5 0 .5px, #f4ecdd .5px 1.7px);
  clip-path: polygon(10% 0, 91% 0, 100% 65%, 100% 100%, 0 100%, 0 65%);
}
.td-home .td-shelf-feature::after {
  content: ''; position: absolute; z-index: 0; inset: auto -.15rem -.097rem; height: .23rem;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, #311b16a3 0, #4d312942 49%, transparent 75%);
}
.td-home .td-book-label {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem;
  position: absolute; z-index: 4; inset: auto auto calc(100% + .42rem) 48%;
  width: max-content; max-width: min(12rem, 39vw);
  padding: .38rem .53rem; border-radius: .35rem;
  background: #fffaf0; color: #392b21; box-shadow: 0 .14rem .36rem #392b2140;
  font: 640 clamp(.72rem, 1.05vw, .83rem)/1.12 var(--td-text);
  transform: translateX(-50%); pointer-events: none; visibility: hidden;
}
.td-home .td-book-label::after {
  content: ''; position: absolute; top: 100%; left: calc(50% - .063rem);
  width: .13rem; height: .56rem; background: #fffaf0;
  box-shadow: 0 .13rem .15rem #2f201540;
}
.td-home .td-shelf-volumes:not(:hover, :focus-within) li:first-child .td-book-label,
.td-home .td-shelf-book:is(:hover, :focus-visible) .td-book-label { visibility: visible; }
.td-home .td-shelf-feature:first-child .td-book-label { left: 0; transform: none; }
.td-home .td-shelf-feature:first-child .td-book-label::after { left: 1.25rem; }
.td-home .td-shelf-feature:nth-last-child(-n+2) .td-book-label { left: auto; right: 0; transform: none; }
.td-home .td-shelf-feature:nth-last-child(-n+2) .td-book-label::after { left: auto; right: 1.25rem; }
.td-home .td-shelf-book:focus-visible { outline: 2px solid #332519; outline-offset: 2px; border-radius: .1rem; }

.td-home .td-shelf-plank {
  position: relative; z-index: 1; border-radius: .34rem .34rem .38rem .38rem;
  background:
    repeating-linear-gradient(1.5deg, transparent 0 3px, #653b251a 4px, transparent 5px 9px),
    repeating-linear-gradient(178deg, transparent 0 5px, #efc59722 6px, transparent 8px 14px),
    linear-gradient(180deg, #c7986c, #bc8a60 19%, #ae784e 77%, #9f683f 97%);
  box-shadow: 0 .17rem .33rem #4225114a, inset 0 .15rem .24rem #f9cca985, inset 0 -.13rem .17rem #4a2e1f57;
}
.td-home .td-shelf-plank::before {
  content: ''; position: absolute; inset: -.55rem 0 calc(100% - .24rem);
  background: linear-gradient(180deg, #d6ae82, #dfb88d 61%, #c89568);
  border-radius: .75rem .75rem .34rem .34rem;
  transform: skewX(-9deg); transform-origin: bottom center;
  pointer-events: none;
}
.td-home .td-shelf-plank::after {
  content: ''; position: absolute; inset: calc(100% - .10rem) .35rem auto; height: .22rem;
  border-radius: 0 0 .55rem .55rem;
  background: linear-gradient(#875b3d, #764b30);
  pointer-events: none;
}
.td-home .td-shelf-plank h2 { font: 735 1.25rem/1 var(--td-text); letter-spacing: .035em; }
.td-home .td-shelf-catalog {
  display: grid; place-items: center; min-height: 2.75rem; padding: .3rem .45rem .35rem;
  border-radius: inherit; text-decoration: none;
}
.td-home .td-shelf-engraving {
  color: #492518; text-shadow: 0 -.06em 0 #512c1c66, 0 .07em 0 #f1c598a8;
}
.td-home .td-shelf-catalog:is(:hover, :focus-visible) .td-shelf-engraving,
.td-home .td-shelf:target .td-shelf-engraving { color: #26150e; text-shadow: 0 -.06em #492b21, 0 .075em #f4d2ad; }
.td-home .td-shelf-catalog:focus-visible { outline: 2px solid #2d1a11; outline-offset: -4px; }

.td-book-preview {
  width: min(45rem, calc(100% - .5rem)); max-width: none; max-height: calc(100vh - .5rem);
  width: min(45rem, calc(100% - .5rem), calc((100dvh - 5.55rem) * 1.28 + 1.1rem));
  max-height: calc(100dvh - .5rem);
  margin: auto; padding: 3.75rem clamp(.38rem, 1.3vw, 1.1rem) 1.4rem; border: 0;
  background: transparent; color: var(--td-ink);
  scrollbar-width: none;
  --preview-binding: var(--td-teal);
}
.td-book-preview:not([open]) { display: none; }
.td-book-preview::-webkit-scrollbar { display: none; }
.td-book-preview::backdrop { background: #281e17a1; }
.td-book-preview .td-preview-close {
  position: absolute; z-index: 0; inset-block-start: -2.92rem; inset-inline-end: clamp(.95rem, 3vw, 1.8rem);
  display: grid; place-items: center; width: 3.35rem; height: 3.4rem; padding: 0 0 .42rem;
  border: 0; border-radius: .34rem .5rem .1rem .1rem; color: #fff;
  background: linear-gradient(162deg, #bf293ce8 4%, #ac192cea 69%, #801121f0);
  box-shadow: .11rem .18rem .42rem #60142560, inset 0 -.38rem .31rem #710c1e63;
  cursor: pointer; font: 620 1.9rem/1 var(--td-text);
  transform: rotate(-6deg) translateZ(-.12rem); transform-origin: bottom center;
}
.td-book-preview .td-preview-close::after {
  content: ''; position: absolute; top: 0; right: 0; width: .58rem; height: .58rem;
  border-radius: 0 .48rem 0 .26rem;
  background: linear-gradient(40deg, #ffffff3c, #ffffff0c);
}
.td-book-preview .td-preview-close:hover { background: linear-gradient(162deg, #ca3047ef, #990e25f3); }
.td-book-preview .td-preview-close:focus-visible { outline: 2px solid #fff5ef; outline-offset: 3px; }
.td-preview-book {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative;
  aspect-ratio: 1.28; perspective: 72rem;
}
.td-preview-book::before {
  content: ''; position: absolute; z-index: -1; inset: auto 1% -1rem; height: 3.1rem;
  background: radial-gradient(ellipse, #1c120b9c, #1c120b64 36%, transparent 73%);
  pointer-events: none;
}
.td-preview-leaf {
  position: relative; display: grid; min-width: 0;
  min-height: min(clamp(14.75rem, 74vw, 21rem), calc(100dvh - 5.55rem));
  transform-style: preserve-3d; background: var(--preview-binding);
}
.td-preview-leaf--left {
  border-radius: .45rem 0 0 .45rem;
  transform: rotateY(9deg); transform-origin: center right;
  box-shadow: -.36rem .4rem 0 var(--preview-binding);
}
.td-preview-leaf--right {
  border-radius: 0 .45rem .45rem 0;
  transform: rotateY(-9deg); transform-origin: center left;
  box-shadow: .36rem .4rem 0 var(--preview-binding);
}
.td-preview-paper {
  grid-area: 1 / 1; min-width: 0; position: relative; z-index: 1;
  transform: translateZ(.04rem);
  border-radius: inherit; backface-visibility: hidden;
}
.td-preview-book .td-preview-cover {
  display: grid; place-items: center start; isolation: isolate;
  padding: clamp(.65rem, 4vw, 2rem) clamp(.65rem, 2.8vw, 1.55rem);
  background: linear-gradient(90deg, #e9eaeb 0, #fff 11% 78%, #eff0f1 94%, #bcc0c5 100%);
  box-shadow: inset .1rem .25rem #ffffffd8, inset .12rem -.33rem #bcc0c4;
}
.td-preview-cover img {
  display: block; width: 100%; max-height: min(65vh, 26rem);
  height: auto; object-fit: contain;
  border: 1px solid #6b6b722d; border-radius: .12rem;
  box-shadow: 0 .3rem .65rem #37343b2b;
}
.td-preview-outer {
  grid-area: 1 / 1; display: grid; place-items: center; padding: 1rem;
  border-radius: inherit; backface-visibility: hidden; transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, #0000 0 2px, #ffffff13 3px, #0000 5px),
    linear-gradient(90deg, #0005, #fff2 15%, #fff1 91%, #0003),
    var(--preview-binding);
}
.td-preview-imprint {
  color: #fff5d8; text-align: center; overflow-wrap: anywhere;
  font: 700 clamp(.9rem, 3vw, 2rem)/1.08 var(--td-display);
  text-shadow: 0 1px 2px #211509;
}
.td-preview-book .td-preview-detail {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(.65rem, 2vw, 1.25rem); padding: clamp(.75rem, 3.5vw, 2.15rem) clamp(.66rem, 2.8vw, 1.8rem);
  background: linear-gradient(90deg, #bfc2c6 0, #ebedef 7%, #fff 20% 92%, #e8eaec 100%);
  box-shadow: inset -.1rem .25rem #ffffffbb, inset -.12rem -.33rem #b9bdc1;
}
.td-preview-detail::before {
  content: ''; position: absolute; inset: 0 .22rem auto .04rem; height: .19rem;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, #d7d9da, #ffffffde);
}
.td-preview-paper::after {
  content: ''; position: absolute; inset: auto .25rem -.23rem; height: .35rem;
  border-radius: 0 0 .18rem .18rem;
  background: repeating-linear-gradient(0deg, #a6a9ae 0 1px, #e9eaec 1px 2px);
  pointer-events: none;
}
.td-book-preview .td-preview-grade {
  font-size: clamp(.72rem, 1.5vw, .91rem); font-weight: 710;
  color: #604433;
}
.td-book-preview .td-preview-title {
  font: 720 clamp(1rem, 3.1vw, 2.55rem)/1.08 var(--td-display); letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.td-home .td-book-preview .td-preview-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.75rem;
  max-width: 100%; padding: .55rem clamp(.42rem, 1.3vw, .95rem); border-radius: .25rem;
  background: #365b48; color: #fff8ea;
  font-size: clamp(.72rem, 1.55vw, .93rem); font-weight: 700; line-height: 1.15; text-decoration: none;
}
.td-home .td-book-preview .td-preview-link:hover { background: #263f33; }

.td-home .td-library-resources {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 71rem; margin: clamp(1.6rem, 3.5vw, 2.9rem) auto 0;
  border-block: 1px solid #79584159;
}
.td-home .td-library-resources a {
  display: flex; align-items: center; justify-content: space-between; gap: .25rem;
  min-height: 3.35rem; padding: .48rem clamp(.48rem, 2vw, 1.3rem);
  font: 680 clamp(.8rem, 1.6vw, 1.3rem)/1.13 var(--td-text); text-decoration: none;
}
.td-home .td-library-resources a + a { border-inline-start: 1px solid #79584159; }
.td-home .td-library-resources a:hover { background: #e6d3b1; }
.td-home .td-library-resources a:focus-visible { outline-offset: -4px; }
.td-home .td-library-resources a span { font-size: .84em; }

.td-home .td-about { padding-block: clamp(3.15rem, 7vw, 6.4rem); }
.td-home .td-text-link { display: inline-flex; align-items: center; gap: .65rem; text-underline-offset: .25em; font-weight: 700; }
.td-home .td-about-grid { display: grid; grid-template-columns: 1fr .92fr; align-items: start; gap: clamp(1.25rem, 6vw, 6rem); }
.td-home .td-about p { margin-top: 1rem; max-width: 53ch; }
.td-home .td-about ul { margin: .6rem 0 1.3rem; list-style: none; padding: 0; border-top: 1px solid var(--td-line); }
.td-home .td-about li { padding: .55rem 0; border-bottom: 1px solid var(--td-line); font-size: .95rem; }
.td-home .td-about .td-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; border-top: 1px solid var(--td-ink); margin: 2.4rem 0 0; }
.td-home .td-stats > div { padding-top: .75rem; }
.td-home .td-stats dt { color: var(--td-muted); font-size: .79rem; }
.td-home .td-stats dd { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.85rem)/1 var(--td-display); }
.td-home-publishers { border-top: 1px solid #b48d644d; background: #e9d9bd; padding-block: clamp(2rem, 5vw, 4.5rem); }
.td-home-publishers .td-publishers-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.td-home-publishers h2 { font-size: clamp(1.85rem, 3.9vw, 3.25rem); }
.td-home-publishers .td-publisher-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.td-home-publishers .td-action { min-height: 2.75rem; }

@media (691px <= width <= 900px) {
  .td-home :is(.td-shelf-feature, .td-shelf-shade-volume) { --volume-scale: .86; }
}
@media (max-width: 690px), (max-width: 900px) and (pointer: coarse) {
  .td-home .td-library-heading h1 { letter-spacing: -.045em; }
  .td-home .td-shelf-grid { grid-template-columns: minmax(0, 1fr); max-width: 31rem; }
  .td-home :is(.td-shelf-volumes, .td-shelf-shade) { min-height: clamp(9.7rem, 33vw, 11.45rem); }
  .td-home :is(.td-shelf-feature, .td-shelf-shade-volume) { --volume-scale: .76; }
  .td-home .td-shelf-scene { padding-top: 2rem; }
  .td-home .td-shelf-scene::before { left: -2.7%; }
  .td-home .td-book-label { max-width: min(11rem, 54vw); font-size: .7rem; }
  .td-home .td-about-grid { grid-template-columns: 1fr; }
  .td-home-publishers .td-publishers-inner { align-items: flex-start; flex-direction: column; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .td-home .td-book-object { transition: transform .18s ease-out; }
}
@media (max-width: 540px) {
  .td-home .td-shelf-depth {
    --shelf-end: clamp(4.1rem, 23vw, 5.3rem);
    grid-template-columns: .38rem minmax(0, 1fr) var(--shelf-end);
  }
  .td-home :is(#sinif-6, #sinif-7) .td-shelf-depth {
    --shelf-end: clamp(4.1rem, 23vw, 5.3rem);
    grid-template-columns: var(--shelf-end) minmax(0, 1fr) .38rem;
  }
  .td-home .td-shelf-decor { --decor-edge: .25rem; }
  .td-home .td-shelf-decor--plant { --decor-width: 4.45rem; }
  .td-home .td-shelf-decor--globe { --decor-width: 3.65rem; }
  .td-home .td-shelf-decor--succulent { --decor-width: 3rem; }
}
@media (max-width: 360px) {
  .td-book-preview .td-preview-title { font-size: .9rem; }
}
@media (max-height: 480px) {
  .td-book-preview .td-preview-title { font-size: clamp(.85rem, 4.25dvh, 1.2rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .td-book-preview[open] .td-preview-leaf--left { animation: td-open-book .52s cubic-bezier(.23,.8,.25,1) both; }
  @keyframes td-open-book {
    from { transform: rotateY(168deg); }
    to { transform: rotateY(9deg); }
  }
}


/* The lower part of the home page continues the bookcase and study-room scene. */
.td-home #sinif-7 .td-shelf-depth { --shelf-end: min(31%, 10rem); }
.td-home #sinif-7 :is(.td-shelf-volumes, .td-shelf-shade) { justify-content: flex-start; }
.td-home .td-shelf-decor--globe { --decor-width: 8.8rem; }

.td-home .td-library-resources {
  gap: clamp(.6rem, 1.6vw, 1.3rem); align-items: end; border: 0;
  margin-top: clamp(2rem, 4vw, 3.8rem); padding: 0 0 .8rem;
  background: linear-gradient(transparent calc(100% - .7rem), #b27e55 calc(100% - .7rem), #805334 100%);
  border-radius: 0 0 .2rem .2rem;
  box-shadow: 0 .25rem .3rem #51342135;
}
.td-home .td-library-resources a {
  position: relative; min-height: clamp(5.8rem, 10vw, 8rem); padding: 1.2rem clamp(.8rem, 2vw, 1.5rem);
  align-items: flex-end; color: #fffaf0; border: 0; border-radius: .4rem .4rem .12rem .12rem;
  background: linear-gradient(112deg, #ffffff22, transparent 35%), #446d60;
  box-shadow: inset 0 2px 2px #ffffff4a, inset -.35rem 0 #00000015, -.18rem .25rem .3rem #543c2e30;
  transition: transform .18s ease, filter .18s ease;
}
.td-home .td-library-resources a:nth-child(2) { background-color: #9e4f37; }
.td-home .td-library-resources a:nth-child(3) { background-color: #4e6381; }
.td-home .td-library-resources a + a { border: 0; }
.td-home .td-library-resources a:hover { transform: translateY(-.3rem); filter: brightness(1.07); }
.td-home .td-library-resources a span {
  display: grid; place-items: center; flex: 0 0 2rem; height: 2rem;
  border: 1px solid #fff8; border-radius: 50%;
}
.td-home .td-library-resources a:focus-visible { outline: 3px solid #56371e; outline-offset: 3px; }

.td-home .td-about {
  position: relative; margin-block: clamp(3rem, 6vw, 6rem); padding: clamp(2rem, 4vw, 4.1rem);
  background: #dbe4d5; border-radius: .55rem; box-shadow: 0 .55rem 0 #9baa92, 0 .85rem 1.4rem #3c39251f;
}
.td-home .td-about::before {
  content: ''; position: absolute; inset: 0 0 auto; height: .45rem;
  border-radius: .55rem .55rem 0 0;
  background: linear-gradient(#d9b48a, #a46d47);
}
.td-home .td-about-grid { gap: clamp(1.5rem, 4vw, 4.25rem); align-items: center; }
.td-home .td-about-intro { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.td-home .td-about h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
.td-home .td-study-illustration { display: block; width: min(100%, 30rem); height: auto; margin: auto 0 -1rem; }
.td-home .td-about-grid > div:last-child {
  padding: clamp(1.2rem, 2.7vw, 2.4rem); border-radius: .2rem .35rem .4rem .2rem;
  background: repeating-linear-gradient(180deg, #fffdf7 0 2.65rem, #d8e0dd 2.7rem, #fffdf7 2.75rem);
  box-shadow: .25rem .35rem 0 #c9c4ad, .3rem .55rem .9rem #38452b27;
}
.td-home .td-about ul { margin-top: 0; border: 0; }
.td-home .td-about li { border: 0; padding: .7rem 0; line-height: 1.55; }
.td-home .td-about .td-stats { border-top-color: #81937e; gap: .8rem; }
.td-home .td-stats > div { border-top: .2rem solid #768d74; padding: .8rem .3rem 0; }
.td-home .td-stats dd { color: #355444; }
.td-home .td-stats dt { color: #475e4b; }

.td-home-publishers { background: #ece0ca; border-top: 0; }
.td-home-publishers .td-publishers-inner { align-items: center; }
.td-home-publishers .td-publisher-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 39rem); gap: 1rem; }
.td-home-publishers .td-action {
  position: relative; min-height: 6rem; justify-content: space-between; padding: 1rem 1.25rem;
  color: #fffaf0; background: #aa6045; border: 0; border-radius: .25rem .6rem .6rem .25rem;
  box-shadow: inset .35rem 0 #fff3, inset -.2rem 0 #0002, -.2rem .3rem .35rem #5e3b293d;
}
.td-home-publishers .td-action:nth-child(2) { background: #4b6873; }
body.td-editorial[data-td-page="home"] .td-home-publishers .td-publisher-actions .td-action { color: #fffaf0 !important; }
.td-home-publishers .td-action:hover { filter: brightness(1.1); }
body.td-editorial[data-td-page="home"] .td-site-footer {
  color: #f8eddb; background: #293d35; border-color: #9c6d47; box-shadow: inset 0 .2rem #b98e65;
}
body.td-editorial[data-td-page="home"] .td-site-footer .td-footer-grid h2 { border-color: #e8d2ac77; }
body.td-editorial[data-td-page="home"] .td-site-footer .td-legal-links { border-color: #e8d2ac77; }
body.td-editorial[data-td-page="home"] .td-site-footer .td-brand { display: inline-block; background: #f9f4e8; border-radius: .3rem; padding: .3rem .5rem; }

@media (max-width: 690px) {
  .td-home .td-library-resources { gap: .45rem; }
  .td-home .td-library-resources a { min-height: 6.2rem; padding: .7rem .5rem; flex-direction: column-reverse; align-items: flex-start; justify-content: space-between; font-size: .82rem; }
  .td-home .td-library-resources a span { flex-basis: auto; width: 1.7rem; height: 1.7rem; }
  .td-home .td-about { padding: 1.5rem; }
  .td-home .td-study-illustration { margin: 1rem auto -.2rem; }
  .td-home .td-about .td-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-home-publishers .td-publisher-actions { grid-template-columns: 1fr; }
  .td-home-publishers .td-action { min-height: 4.8rem; }
}
@media (max-width: 540px) {
  .td-home #sinif-7 .td-shelf-depth { --shelf-end: clamp(4.75rem, 27vw, 6rem); }
  .td-home .td-shelf-decor--globe { --decor-width: 5.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .td-home .td-library-resources a { transition: none; }
}


/* Keep each book-and-globe composition centred and align shelf planks. */
.td-home .td-shelf { display: flex; flex-direction: column; justify-content: flex-end; }
.td-home .td-shelf-scene { width: 100%; }
.td-home #sinif-7 .td-shelf-depth {
  grid-template-columns: minmax(0,1fr) minmax(0,8.7rem) minmax(0,10.4rem) minmax(0,1fr);
}
.td-home #sinif-7 .td-shelf-decor--start { grid-area: 1 / 2; }
.td-home #sinif-7 :is(.td-shelf-volumes, .td-shelf-shade) { grid-area: 1 / 3; justify-content: center; }
.td-home #sinif-7 .td-shelf-decor--globe { --decor-width: 8rem; }

.td-home-publishers .td-publishers-inner { display: block; }
.td-home-publishers .td-publisher-actions { width: 100%; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.td-home-publishers .td-publisher-showcase { min-width: 0; }
.td-home-publishers .td-publisher-banner {
  display: block; overflow: hidden; border-radius: .45rem; background: #d9c7af;
  box-shadow: 0 .35rem .85rem #533c292e; aspect-ratio: 2.2;
}
.td-home-publishers .td-publisher-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.td-home-publishers .td-publisher-banner:focus-visible,
.td-home-publishers .td-publisher-strip a:focus-visible { outline: 3px solid #234d43; outline-offset: 3px; }
.td-home-publishers .td-publisher-strip { overflow-x: auto; overflow-y: hidden; margin-top: 1rem; scrollbar-width: thin; }
.td-home-publishers .td-publisher-strip-track { display: flex; width: max-content; }
.td-home-publishers .td-publisher-strip-group { display: flex; gap: .9rem; padding: .35rem .9rem .75rem .1rem; }
.td-home-publishers .td-publisher-strip-group a {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  width: clamp(5rem, 8vw, 7rem); height: clamp(7rem, 11vw, 9.5rem);
  padding: .2rem; overflow: hidden; border-radius: .25rem; background: #f9f5eb; box-shadow: 0 .15rem .35rem #4f3b2933;
}
.td-home-publishers .td-publisher-strip-group img {
  display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%; object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .td-home-publishers .td-publisher-strip-track { animation: td-publisher-scroll 70s linear infinite; }
  .td-home-publishers .td-publisher-strip:is(:hover, :focus-within) .td-publisher-strip-track { animation-play-state: paused; }
  @keyframes td-publisher-scroll { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .td-home-publishers .td-publisher-strip-group[aria-hidden="true"] { display: none; }
}
@media (max-width: 690px) {
  .td-home-publishers .td-publisher-actions { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .td-home #sinif-7 .td-shelf-depth { grid-template-columns: minmax(0,1fr) minmax(0,5.3rem) minmax(0,8.6rem) minmax(0,1fr); }
  .td-home #sinif-7 .td-shelf-decor--globe { --decor-width: 5.2rem; }
}


/* Publisher identity and each site's moving catalogue form a single panel. */
.td-home-publishers .td-publisher-showcase {
  overflow: hidden; border-radius: .55rem; background: #e2d8ed;
  box-shadow: 0 .35rem .85rem #533c292e;
}
.td-home-publishers .td-publisher-showcase:nth-child(2) { background: #d6e2ef; }
.td-home-publishers .td-publisher-banner { position: relative; border-radius: 0; box-shadow: none; isolation: isolate; }
.td-home-publishers .td-publisher-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #1726378a 0, #17263770 31%, #172637ad 50%, #17263745 78%, transparent 100%);
}
.td-home-publishers .td-publisher-banner .td-publisher-banner-art { width: 100%; height: 100%; object-fit: cover; }
.td-home-publishers .td-publisher-banner-logo {
  position: absolute; z-index: 1; left: clamp(.65rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: clamp(3.6rem, 8vw, 6.25rem); height: clamp(3.6rem, 8vw, 6.25rem);
  border-radius: .55rem; padding: .45rem; background: #fffdf4ec; box-shadow: 0 .15rem .4rem #18213755;
}
.td-home-publishers .td-publisher-showcase:nth-child(2) .td-publisher-banner-logo { background: #143b80e8; }
.td-home-publishers .td-publisher-banner .td-publisher-banner-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.td-home-publishers .td-publisher-banner-title {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: block; width: 49%; color: #fffdf9; text-align: center;
  font: 760 clamp(1.05rem, 2.2vw, 1.85rem)/1.12 var(--td-text); letter-spacing: -.025em;
  text-shadow: 0 .1rem .3rem #101c2be6;
}
.td-home-publishers .td-publisher-strip { margin: 0; padding: .7rem 0 .1rem; overflow: hidden; scrollbar-width: none; }
.td-home-publishers .td-publisher-strip::-webkit-scrollbar { display: none; }
.td-home-publishers .td-publisher-strip-group { padding-bottom: .65rem; }
@media (prefers-reduced-motion: reduce) {
  .td-home-publishers .td-publisher-strip { overflow-x: auto; }
}
@media (max-width: 690px) {
  .td-home-publishers .td-publisher-banner-logo { width: clamp(3.5rem, 15vw, 5rem); height: clamp(3.5rem, 15vw, 5rem); }
  .td-home-publishers .td-publisher-banner-title { width: 49%; font-size: clamp(1rem, 4vw, 1.4rem); }
}
