/* V10.8 local visual candidate. Original V10.7 and its artwork remain intact. */
:root {
  --green: #198a68;
  --navy: #064d84;
  --blue: #0873ad;
  --orange: #ef7624;
  --muted: #627385;
  --line: #e4e9ec;
}

html { scroll-behavior: smooth; }
.wrap { max-width: 1260px; padding-inline: 28px; }
.promo { background: #198c68; }
.promo-inner { min-height: 31px; }
.site-head { border-bottom: 1px solid #e8edf0; }
.head-inner { height: 82px; grid-template-columns: 230px minmax(250px, 1fr) auto; gap: 26px; }
.brand { font-size: 28px; color: #0870ab; }
.brand img { width: 50px; height: 50px; margin-right: 8px; }
.top-search { max-width: 610px; height: 43px; }
.top-search button { width: 50px; font-size: 26px; }
.head-tools { gap: 18px; }
.head-tools a { min-width: 62px; color: #174d76; font-size: 11px; }
.tool-icon { color: #ed7a28; }
.tool-icon-image { display: block; width: 32px; height: 32px; object-fit: contain; }
.nav-band { background: #f1f6f9; color: #0f4e7b; box-shadow: none; border-bottom: 1px solid #e5edf2; }
.main-nav { min-height: 43px; }
.main-nav a { color: #174e77; min-height: 43px; padding-inline: 12px; font-size: 12px; }
.main-nav a:hover { background: #e4f0f6; }
.main-nav .all-categories { color: #fff; background: #0c72ac; border-radius: 5px; margin: 4px 14px 4px 0; min-height: 35px; padding-inline: 18px; }

/* H01 is the approved, finished banner artwork, including its typography and CTA.
   Render it as one composition on desktop; keep equivalent semantic copy in the DOM. */
.hero-section { padding: 0; background: #fff; }
.hero-shell { max-width: none; }
.hero {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  max-width: 1920px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  background: linear-gradient(100deg, #fff3e3 0%, #fff8ec 36%, #e7f4fb 62%, #fff0dc 100%);
}
.hero-picture {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background: none;
}
.hero-picture img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-copy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-kicker { color: #d86c22; font-size: 11px; letter-spacing: .13em; margin-bottom: 11px; }
.hero h1 { color: #064e83; font-size: clamp(34px, 3vw, 49px); line-height: 1.06; max-width: 520px; margin-bottom: 12px; }
.hero-copy > p:not(.hero-kicker) { color: #284e6c; font-size: 15px; line-height: 1.35; max-width: 440px; margin-bottom: 0; }
.hero-cta { display: none; }
.hero-side {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0;
  pointer-events: none;
}
.hero-side p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-side-cta { position: absolute; left: 70.35%; top: 54.83%; width: 18.83%; height: 13.4%; display: block; padding: 0; border-radius: 999px; background: transparent; color: transparent; font-size: 0; pointer-events: auto; }
.hero-side-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; background: #07578f22; }
.hero-controls { display: none !important; }

.school-band { margin-top: 12px; padding: 14px 0; background: #eef6fa; border-block-color: #e2edf2; }
.school-content { max-width: 940px; grid-template-columns: auto minmax(300px, 1fr); gap: 24px; }
.school-heading .school-icon-image { display: block; width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.school-content h2 { font-size: 18px; }
.school-form { gap: 8px; }
.school-form input { min-height: 42px; }
.school-form button { min-height: 42px; background: #158e68; }

.showcase { max-width: 1260px; padding-top: 32px; padding-bottom: 30px; }
.section-title { align-items: center; }
.section-title h2 { font-size: 25px; letter-spacing: 0; }
.section-kicker { margin-bottom: 4px; font-size: 10px; }
.showcase-lead { margin: 8px 0 16px; font-size: 13px; }
.recommendations { gap: 12px; }
.reco-card { padding: 9px 9px 12px; border-color: #e5e9eb; border-radius: 7px; box-shadow: 0 2px 8px #183b5108; }
.reco-cover { height: auto; aspect-ratio: 1 / 1; background: #fff9ee; border-radius: 4px; }
.reco-cover img { width: 100%; height: 100%; object-fit: contain; }
.reco-card .fav { top: 12px; right: 12px; width: 28px; height: 28px; box-shadow: 0 1px 4px #243b4a24; }
.reco-tag { margin: 9px 0 2px; font-size: 10px; }
.reco-card h3 { margin: 0; color: #154c73; font-size: 13px; line-height: 1.24; }
.v107-collection-note { color: #596f7c; font-size: 11px; line-height: 1.4; }
.showcase .v107-collection-note { margin-top: 8px; }
.browse-more { margin-top: 14px; }
.browse-more a { padding: 8px 17px; border-color: #33805f; color: #286f52; }

.categories-section { padding: 30px 0 32px; background: #fff; border-block: 1px solid #edf0f2; }
.categories-section .wrap { max-width: 1260px; }
.categories-list { gap: 10px; margin-top: 20px; }
.categories-list a { gap: 7px; font-size: 12px; line-height: 1.2; }
.category-circle { width: 104px; height: 104px; min-width: 0; min-height: 0; border: 0; box-shadow: none; background: transparent; }
.category-circle img { display: block; width: 100%; height: 100%; object-fit: contain; }

.v107-level { padding: 18px max(16px, calc((100% - 1260px) / 2)); }
.v107-level-inner { max-width: 1260px; grid-template-columns: minmax(220px, 25%) minmax(0, 75%); gap: 12px; }
.v107-level-intro { min-height: 0; padding: 18px; border-radius: 9px; display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: center; gap: 6px; }
.v107-level-intro h2 { margin-bottom: 8px; font-size: clamp(25px, 2.1vw, 34px); }
.v107-level-intro p { font-size: 13px; line-height: 1.42; margin-bottom: 12px; }
.v107-level-intro picture { width: 82px; height: 82px; max-height: none; margin: 0; overflow: visible; }
.v107-level-intro img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.v107-level-intro a, .v107-mini-intro a { min-height: 36px; padding: 6px 13px; font-size: 12px; }
.v107-books { align-self: start; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.v107-book { align-self: start; min-height: 102px; padding: 12px 10px; justify-content: center; border-radius: 7px; box-shadow: 0 2px 8px #1648780a; }
.v107-book::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 11px; border-radius: 3px; background: linear-gradient(90deg, #ef7624, #f4ad43); }
.v107-book picture { display: none; }
.v107-book h3 { min-height: 0; margin: 0; color: #164d76; font-size: 13px; line-height: 1.25; }
.v107-collection-note { max-width: 1260px; margin: 7px auto 0; }
.v107-topic-grid { max-width: 1260px; gap: 12px; margin: 14px auto 20px; padding: 0 16px; }
.v107-mini { grid-template-columns: minmax(100px, 34%) minmax(0, 1fr); gap: 8px; padding: 11px; border-radius: 9px; }
.v107-mini-intro h2 { display: flex; align-items: center; gap: 5px; font-size: clamp(15px, 1.25vw, 19px); }
.v107-mini-intro h2 img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.v107-mini-intro p { font-size: 11px; margin-bottom: 10px; }
.v107-mini-intro a { min-height: 32px; padding-inline: 9px; font-size: 10px; }
.v107-mini-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.v107-mini .v107-book { min-height: 94px; padding: 9px; }
.v107-mini .v107-book::before { width: 24px; margin-bottom: 8px; }
.v107-mini .v107-book h3 { min-height: 0; font-size: 11px; line-height: 1.2; }
.v107-mini .v107-collection-note { font-size: 10px; margin: 6px 0 0; }

/* R03 is still missing: use a clean, explicitly provisional text band. */
.v107-footer-cta { max-width: none; min-height: 230px; aspect-ratio: auto; background: linear-gradient(105deg, #fff4e4, #e8f4ec 57%, #e8f1f8); }
.v107-footer-cta > picture { display: none !important; }
.v107-footer-cta .wrap { max-width: 1260px; }
.v107-footer-copy { max-width: 560px; padding: 34px 0; }
.v107-footer-copy p { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #247a68; }
.v107-footer-copy h2 { max-width: 520px; margin-bottom: 14px; font-size: clamp(30px, 3vw, 46px); }
.v107-footer-copy a { background: #075c93; border-radius: 24px; }
.footer { background: #fff !important; color: #164d76 !important; padding: 30px 0 16px !important; }
.footer .footer-grid { max-width: 1260px; grid-template-columns: 1.55fr repeat(4, 1fr); gap: 24px; }
.footer .footer-grid h3 { margin-top: 4px; }
.footer .footer-grid a { min-height: 26px; display: flex; align-items: center; }
.footer .footer-bottom { max-width: 1260px; margin-top: 18px; }
.contact-widget { display: none !important; }

@media (max-width: 1100px) {
  .wrap { padding-inline: 22px; }
  .head-inner { grid-template-columns: 205px minmax(220px, 1fr) auto; gap: 14px; }
  .head-tools { gap: 8px; }
  .head-tools a { min-width: 55px; }
  .main-nav a { padding-inline: 8px; font-size: 11px; }
  .main-nav .all-categories { padding-inline: 12px; margin-right: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr); }
  .hero-copy { padding-left: 28px; }
  .hero h1 { font-size: clamp(31px, 3.1vw, 42px); }
  .hero-side p { font-size: 21px; }
  .v107-level-inner { grid-template-columns: minmax(190px, 24%) minmax(0, 76%); }
  .v107-level-intro { grid-template-columns: minmax(0, 1fr) 66px; padding: 14px; }
  .v107-level-intro picture { width: 66px; height: 66px; }
  .v107-book { padding: 10px 8px; }
  .v107-book h3 { font-size: 12px; }
}

@media (max-width: 800px) {
  .head-inner { height: auto; padding-block: 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 11px 14px; }
  .brand { grid-column: 1; grid-row: 1; font-size: 24px; }
  .brand img { width: 44px; height: 44px; }
  .brand small { margin-top: 4px; font-size: 9px; }
  .head-tools { grid-column: 2; grid-row: 1; gap: 8px; }
  .head-tools a { min-width: 45px; gap: 2px; font-size: 9px; }
  .tool-icon-image { width: 27px; height: 27px; }
  .tool-icon { font-size: 20px; }
  .top-search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 42px; }
  .nav-shell { display: flex; flex-direction: column; align-items: stretch; }
  .mobile-menu { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: transparent; color: #15527b; font-size: 13px; font-weight: 700; }
  .main-nav { display: none; min-height: 0; padding: 5px 0 10px; white-space: normal; flex-wrap: wrap; justify-content: center; }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 38px; border-radius: 5px; }
  .main-nav .all-categories { display: none; }
  .hero { display: grid; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .hero-copy { position: relative !important; inset: auto !important; transform: none !important; grid-column: 1; grid-row: 1; width: auto !important; height: auto !important; max-width: 620px; padding: 24px 24px 12px !important; overflow: visible !important; clip-path: none; white-space: normal; z-index: 2; }
  .hero-kicker { margin-bottom: 7px; }
  .hero h1 { max-width: 570px; font-size: clamp(30px, 6vw, 42px); }
  .hero-copy > p:not(.hero-kicker) { max-width: 520px; font-size: 14px; }
  .hero-cta { display: inline-flex; min-height: 44px; margin-top: 15px; padding: 10px 18px; }
  .hero-picture { position: relative !important; inset: auto !important; grid-column: 1; grid-row: 2; width: 100%; height: min(82vw, 400px); min-height: 275px; z-index: 1; background-image: url("/shop/assets/v20-optimized/hero-libros-manana-panorama.webp"); background-repeat: no-repeat; background-position: calc(50% - 68px) center; background-size: auto 142%; }
  .hero-picture img { display: none !important; }
  .hero-side { display: none; }
  .school-content { grid-template-columns: 1fr; gap: 10px; }
  .school-heading { justify-content: center; }
  .school-content h2 { font-size: 16px; }
  .showcase { padding-top: 25px; padding-bottom: 22px; }
  .recommendations { display: flex; width: max-content; gap: 10px; }
  .reco-card { flex: 0 0 min(72vw, 260px); width: min(72vw, 260px); }
  .reco-cover { height: auto; aspect-ratio: 1 / 1; }
  .reco-card h3 { font-size: 13px; }
  .categories-section { padding-block: 24px; }
  .categories-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 8px; margin-top: 16px; }
  .category-circle { width: min(18vw, 104px); height: min(18vw, 104px); }
  .v107-level { padding: 14px 14px; }
  .v107-level-inner { grid-template-columns: 1fr; gap: 9px; }
  .v107-level-intro { grid-template-columns: minmax(0, 1fr) 82px; min-height: 0; padding: 14px 16px; }
  .v107-level-intro picture { width: 82px; height: 82px; }
  .v107-books { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: 1px 1px 7px; }
  .v107-book { flex: 0 0 158px; min-height: 98px; scroll-snap-align: start; }
  .v107-book h3 { font-size: 12px; }
  .v107-topic-grid { grid-template-columns: 1fr; gap: 10px; margin-block: 12px 16px; padding-inline: 14px; }
  .v107-mini { grid-template-columns: minmax(105px, 30%) minmax(0, 1fr); }
  .v107-mini .v107-books { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .v107-mini .v107-book { min-width: 0; min-height: 90px; }
  .v107-footer-cta { min-height: 0; }
  .v107-footer-copy { padding: 28px 0; }
  .footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .promo-inner { justify-content: center; min-height: 29px; font-size: 10px; }
  .promo-extra { display: none; }
  .brand { font-size: 22px; }
  .brand img { width: 40px; height: 40px; margin-right: 6px; }
  .head-tools { gap: 5px; }
  .head-tools a { min-width: 41px; font-size: 8px; }
  .tool-icon-image { width: 25px; height: 25px; }
  .cart-badge { width: 14px; height: 14px; font-size: 9px; }
  .hero-copy { padding: 21px 18px 10px; }
  .hero h1 { font-size: clamp(29px, 8vw, 35px); }
  .hero-copy > p:not(.hero-kicker) { font-size: 13px; }
  .hero-picture { height: min(95vw, 370px); min-height: 275px; }
  .school-band { margin-top: 8px; padding: 12px 0 15px; }
  .school-heading { justify-content: flex-start; }
  .school-form { gap: 6px; }
  .school-form button { min-width: 48px; padding-inline: 10px; }
  .section-title h2 { font-size: 21px; }
  .section-nav button { width: 34px; height: 34px; }
  .showcase-lead { font-size: 12px; margin-bottom: 12px; }
  .recommendations { gap: 9px; }
  .reco-card { flex-basis: min(75vw, 260px); width: min(75vw, 260px); }
  .reco-cover { height: auto; aspect-ratio: 1 / 1; }
  .categories-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .category-circle { width: 92px; height: 92px; }
  .categories-list a { font-size: 11px; }
  .v107-level-intro { grid-template-columns: minmax(0, 1fr) 68px; }
  .v107-level-intro picture { width: 68px; height: 68px; }
  .v107-level-intro h2 { font-size: 26px; }
  .v107-level-intro p { font-size: 12px; }
  .v107-book { flex-basis: 145px; min-height: 88px; }
  .v107-mini { grid-template-columns: minmax(0, 1fr); }
  .v107-mini-intro h2 { font-size: 18px; }
  .v107-mini-intro p { margin-bottom: 8px; }
  .v107-mini .v107-book { min-height: 82px; }
  .v107-footer-copy { padding: 24px 0; }
  .v107-footer-copy h2 { font-size: 30px; }
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer .footer-grid h3 { font-size: 13px; }
  .footer .footer-grid a, .footer .footer-grid p { font-size: 11px; }
}

@media (max-width: 350px) {
  .head-inner { column-gap: 6px; }
  .head-tools a { min-width: 37px; }
  .brand small { max-width: 120px; white-space: normal; line-height: 1.1; }
  .hero h1 { font-size: 28px; }
  .category-circle { width: 82px; height: 82px; }
  .v107-mini .v107-book h3 { font-size: 10px; }
  .school-heading { white-space: normal; }
  .school-heading .school-icon-image { width: 30px; height: 30px; }
  .school-content h2 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V10.9 local commerce navigation: SBS interaction patterns, ABTutor palette and content. */
.mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--green, #198a68);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 2px 5px #11563c20;
}
.mobile-menu:hover { background: #137455; }
.mobile-menu[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }
.menu-glyph { font-size: 17px; line-height: 1; }
.menu-chevron { margin-left: 4px; transition: transform .18s ease; }
.nav-shell { display: flex; align-items: center; gap: 14px; }
.main-nav { flex: 1 1 auto; min-width: 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: 0 0 auto; }
.main-nav a[aria-current="true"] { color: #147a5d; font-weight: 800; }

.head-account { position: relative; display: flex; align-items: center; }
.head-account-toggle { display: flex; min-width: 62px; flex-direction: column; align-items: center; gap: 4px; padding: 0; color: #174d76; background: transparent; font-size: 11px; font-weight: 690; white-space: nowrap; }
.head-account-toggle:hover { color: #127856; }
.account-menu { position: absolute; z-index: 75; top: calc(100% + 13px); right: -36px; width: 304px; padding: 21px; border: 1px solid #e2e9e7; border-radius: 10px; background: #fff; color: #25445a; box-shadow: 0 16px 38px #163c5030; }
.account-menu[hidden] { display: none !important; }
.account-menu::before { position: absolute; top: -7px; right: 53px; width: 12px; height: 12px; border-top: 1px solid #e2e9e7; border-left: 1px solid #e2e9e7; background: #fff; content: ""; transform: rotate(45deg); }
.account-menu-eyebrow { margin: 0 0 5px; color: #198a68; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.account-menu-status { margin: 0 0 15px; color: #637586; font-size: 13px; }
.account-menu button, .account-menu a { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; margin-top: 8px; padding: 9px 12px; border: 1px solid #dce7e3; border-radius: 6px; background: #fff; color: #17634e; font-size: 13px; font-weight: 730; text-align: center; text-decoration: none; }
.account-menu button:hover, .account-menu a:hover { background: #f1f8f4; }
.account-menu .account-menu-primary { border-color: #198a68; background: #198a68; color: #fff; }
.account-menu .account-menu-primary:hover { background: #137455; }
.account-menu-note { margin: 13px 0 0; color: #77858f; font-size: 11px; line-height: 1.4; }

.category-backdrop { position: fixed; z-index: 58; inset: var(--category-menu-top, 157px) 0 0; background: rgb(18 37 48 / 48%); animation: category-fade-in .16s ease-out; }
.category-backdrop[hidden] { display: none !important; }
.category-drawer { position: fixed; z-index: 59; top: var(--category-menu-top, 157px); bottom: 0; left: max(0px, calc((100vw - 1260px) / 2)); display: flex; width: min(380px, 100vw); flex-direction: column; overflow: auto; padding: 23px 24px 25px; border-right: 1px solid #e3e9e6; background: #fff; box-shadow: 12px 14px 30px #122a3a20; animation: category-slide-in .19s ease-out; }
.category-drawer[hidden] { display: none !important; }
.category-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #e9eeec; }
.category-drawer-head .section-kicker { margin-bottom: 4px; }
.category-drawer-head h2 { margin: 0; color: #174d76; font-size: 23px; letter-spacing: -.025em; }
.category-drawer-head > button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #dbe5e0; border-radius: 50%; background: #fff; color: #24536b; font-size: 26px; line-height: 1; }
.category-drawer-nav { display: grid; gap: 19px; padding: 17px 0; }
.category-drawer-nav section { display: grid; }
.category-drawer-nav h3 { margin: 0 0 4px; color: #74838d; font-size: 11px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.category-drawer-nav a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 15px; padding: 5px 10px; border-bottom: 1px solid #eff2f0; border-radius: 4px; color: #29485d; font-size: 14px; font-weight: 650; text-decoration: none; }
.category-drawer-nav a:hover, .category-drawer-nav a:focus-visible { background: #f0f7f3; color: #147757; }
.category-drawer-nav a > span:last-child { color: #198a68; font-size: 22px; font-weight: 500; }
.category-drawer-nav small { display: block; margin-top: 1px; color: #819099; font-size: 10px; font-weight: 500; }
.category-drawer-note { display: grid; gap: 4px; margin-top: auto; padding: 15px 16px; border-radius: 7px; background: #f1f7f3; color: #28584a; font-size: 12px; line-height: 1.45; }
.category-drawer-note strong { color: #17694f; font-size: 13px; }
body.category-menu-open { overflow: hidden; }
@keyframes category-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes category-slide-in { from { opacity: .7; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

.category-browser { padding: 21px 0 54px; background: #fff; border-top: 1px solid #edf1ef; scroll-margin-top: 12px; }
.category-browser[hidden] { display: none !important; }
.browser-breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #74828a; font-size: 12px; }
.browser-breadcrumbs a { color: #198a68; text-decoration: none; }
.browser-heading { margin-bottom: 22px; }
.browser-heading .section-kicker { margin-bottom: 5px; }
.browser-heading h2 { margin: 0; color: #174d76; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; }
.browser-heading > p:last-child { max-width: 760px; margin: 9px 0 0; color: #677987; font-size: 14px; }
.browser-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 25px; align-items: start; }
.browser-facets { position: sticky; top: 16px; padding: 17px 16px; border-radius: 8px; background: #f5f7f6; }
.browser-facets > h3 { margin: 0; padding-bottom: 11px; border-bottom: 1px solid #dbe4df; color: #315768; font-size: 16px; }
.browser-facet { padding-top: 12px; }
.browser-facet h4 { margin: 0 0 6px; color: #627680; font-size: 12px; font-weight: 760; }
.browser-facet nav { display: grid; gap: 2px; }
.browser-facet a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 7px; border-radius: 5px; color: #526c78; font-size: 12px; text-decoration: none; }
.browser-facet a:hover, .browser-facet a[aria-current="true"] { background: #e4f1ea; color: #176d52; font-weight: 750; }
.browser-facet-count { color: #849198; font-size: 11px; font-weight: 500; }
.browser-facet-note { margin: 16px 0 0; padding: 11px; border-left: 3px solid #ef7624; background: #fff; color: #687a80; font-size: 11px; line-height: 1.45; }
.browser-main { min-width: 0; }
.browser-toolbar { display: flex; min-height: 50px; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 17px; padding: 0 0 13px; border-bottom: 1px solid #e8edeb; }
.browser-toolbar > p { margin: 0 auto 0 0; color: #6b7d86; font-size: 12px; }
.browser-toolbar label { display: flex; align-items: center; gap: 7px; color: #647780; font-size: 11px; white-space: nowrap; }
.browser-toolbar select { min-height: 39px; padding: 7px 28px 7px 10px; border-color: #cdd8d3; border-radius: 5px; color: #31515f; font-size: 12px; }
.browser-view { display: flex; gap: 0; }
.browser-view button { width: 38px; height: 39px; border: 1px solid #198a68; background: #fff; color: #198a68; font-size: 22px; line-height: 1; }
.browser-view button:first-child { border-radius: 4px 0 0 4px; }
.browser-view button:last-child { border-left: 0; border-radius: 0 4px 4px 0; }
.browser-view button[aria-pressed="true"] { background: #198a68; color: #fff; }
.browser-search { width: min(100%, 420px); margin: 15px 0 4px; }
.browser-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 15px; }
.browse-card { position: relative; min-width: 0; padding: 10px 10px 13px; border: 1px solid #e4eae7; border-radius: 7px; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.browse-card:hover { transform: translateY(-2px); border-color: #c6d9ce; box-shadow: 0 6px 18px #24473512; }
.browse-card-cover { display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border-radius: 4px; background: #f1f5f3; }
.browse-card-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.browse-card-pending { color: #4b6470; font-size: 12px; font-weight: 650; text-align: center; }
.browse-card-pending span { display: block; margin-top: 5px; color: #849198; font-size: 10px; font-weight: 500; }
.browse-card .fav { top: 16px; right: 16px; }
.browse-card-tag { margin: 11px 0 4px; color: #198a68; font-size: 10px; font-weight: 800; }
.browse-card h3 { min-height: 39px; margin: 0; color: #315066; font-size: 13px; line-height: 1.36; }
.browse-card-state { margin: 8px 0 0; color: #75838a; font-size: 10px; }
.browser-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 45px 18px; border: 1px solid #e6ece9; border-radius: 8px; background: #fbfcfb; text-align: center; }
.browser-empty img { width: 74px; height: 74px; object-fit: contain; margin-bottom: 12px; }
.browser-empty h3 { margin: 0; color: #31576a; font-size: 18px; }
.browser-empty p { max-width: 420px; margin: 7px 0 0; color: #708087; font-size: 13px; }
.browser-results[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.browser-results[data-view="list"] .browse-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; padding: 10px; }
.browser-results[data-view="list"] .browse-card-cover { grid-row: 1 / 4; width: 112px; aspect-ratio: 1 / 1; }
.browser-results[data-view="list"] .browse-card-tag { margin-top: 3px; }
.browser-results[data-view="list"] .browse-card h3 { min-height: 0; font-size: 14px; }
.browser-results[data-view="list"] .browse-card-state { margin-top: 7px; }
.browser-results[data-view="list"] .browse-card .fav { top: 11px; right: 11px; }
.browser-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; padding-top: 23px; color: #5f727d; font-size: 12px; }
.browser-pagination[hidden] { display: none !important; }
.browser-pagination button { min-height: 38px; padding: 7px 14px; border: 1px solid #d1ddd7; border-radius: 5px; background: #fff; color: #27684f; font-weight: 700; }
.browser-pagination button:disabled { opacity: .45; cursor: default; }
.browser-results:empty::before { content: ""; }

@media (max-width: 1180px) {
  .nav-shell { gap: 9px; }
  .mobile-menu { padding-inline: 13px; }
  .main-nav a { padding-inline: 7px; font-size: 10px; }
  .browser-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 17px; }
  .browser-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browser-toolbar { gap: 9px; }
}
@media (max-width: 800px) {
  .nav-shell { display: flex; flex-direction: row; align-items: center; gap: 9px; padding-inline: 15px; }
  .mobile-menu { width: auto; min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .main-nav { display: flex; min-height: 42px; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0; white-space: nowrap; }
  .main-nav a { flex: 0 0 auto; min-height: 38px; padding-inline: 8px; border-radius: 4px; font-size: 10px; }
  .category-drawer { left: 0; width: min(380px, 92vw); padding: 20px 20px 22px; }
  .browser-layout { grid-template-columns: 1fr; gap: 13px; }
  .browser-facets { position: static; padding: 12px; }
  .browser-facets > h3 { padding-bottom: 8px; }
  .browser-facet { padding-top: 9px; }
  .browser-facet nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .browser-facet a { justify-content: center; min-height: 37px; padding: 6px; text-align: center; }
  .browser-facet-count { display: none; }
  .browser-facet-note { display: none; }
  .browser-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 520px) {
  .nav-shell { gap: 6px; padding-inline: 12px; }
  .mobile-menu { min-height: 38px; gap: 6px; padding-inline: 9px; font-size: 11px; }
  .menu-glyph { font-size: 15px; }
  .menu-chevron { margin-left: 0; }
  .main-nav { min-height: 38px; }
  .main-nav a { min-height: 35px; padding-inline: 7px; font-size: 9px; }
  .head-account-toggle { min-width: 41px; font-size: 8px; }
  .account-menu { right: -45px; width: min(300px, calc(100vw - 20px)); }
  .account-menu::before { right: 59px; }
  .category-drawer { width: 100vw; padding: 18px 17px 20px; }
  .browser-breadcrumbs { margin-bottom: 15px; }
  .browser-heading { margin-bottom: 16px; }
  .browser-heading > p:last-child { font-size: 12px; }
  .browser-facets { display: none; }
  .browser-toolbar { justify-content: flex-start; gap: 8px; }
  .browser-toolbar > p { width: 100%; }
  .browser-toolbar label { font-size: 10px; }
  .browser-toolbar select { min-height: 36px; padding-inline: 7px 22px; font-size: 11px; }
  .browser-view { margin-left: auto; }
  .browser-view button { width: 34px; height: 36px; }
  .browser-search { margin-top: 11px; }
  .browser-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .browse-card { padding: 7px; }
  .browse-card .fav { top: 11px; right: 11px; }
  .browse-card h3 { min-height: 0; font-size: 11px; }
  .browse-card-tag { font-size: 9px; }
  .browser-results[data-view="list"] .browse-card { grid-template-columns: 82px minmax(0, 1fr); column-gap: 11px; padding: 8px; }
  .browser-results[data-view="list"] .browse-card-cover { width: 82px; }
  .browser-results[data-view="list"] .browse-card h3 { padding-right: 27px; font-size: 12px; }
  .browser-pagination { gap: 8px; }
}
@media (max-width: 360px) {
  .mobile-menu { gap: 5px; padding-inline: 7px; font-size: 10px; }
  .menu-chevron { display: none; }
  .main-nav a { padding-inline: 6px; font-size: 8px; }
  .head-tools { gap: 3px; }
  .browser-toolbar { gap: 6px; }
  .browser-toolbar label { gap: 4px; }
  .browser-view button { width: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .category-backdrop, .category-drawer, .browse-card { animation: none; transition: none; }
}
/* SBS-style sign-in split adapted to ABTutor's demonstration account. */
#cuenta.account-panel { grid-column: 1 / -1; grid-row: 1; padding: 0; overflow: visible; border: 0; background: transparent; }
.purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.purchase-grid > .cart-panel { grid-column: 1; grid-row: 2; }
.purchase-grid > .checkout-panel { grid-column: 2; grid-row: 2; }
.account-intro { margin: 0 0 17px; }
.account-intro .section-kicker { margin-bottom: 4px; }
.account-intro h2 { margin: 0; color: #174d76; font-size: 28px; }
.account-intro .subtle { max-width: 760px; margin: 6px 0 0; color: #687987; font-size: 13px; }
.account-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-login-card, .account-create-card { min-width: 0; padding: 24px; border: 1px solid #e1e9e5; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px #21463809; }
.account-login-card h3, .account-create-card h3 { margin: 0 0 7px; color: #315768; font-size: 21px; font-weight: 560; }
.account-login-card > p, .account-create-card > p { margin: 0 0 15px; color: #667781; font-size: 13px; }
#before-account label { display: block; margin: 9px 0 5px; color: #4d6570; font-size: 12px; font-weight: 700; }
#before-account input { width: 100%; margin-bottom: 5px; }
#before-account .account-submit, .account-create-card .account-submit { min-height: 44px; padding: 10px 18px; border: 1px solid #198a68; border-radius: 6px; background: #198a68; color: #fff; font-weight: 760; }
#before-account .account-submit:hover, .account-create-card .account-submit:hover { background: #137455; }
.account-create-card ul { display: grid; gap: 8px; margin: 0 0 17px; padding-left: 20px; color: #536d76; font-size: 13px; }
.account-create-card li::marker { color: #198a68; }
#after-account { display: grid; gap: 10px; }
#after-account[hidden] { display: none !important; }
#after-account > p { margin: 0; color: #526c76; font-size: 13px; }
#after-account > a { color: #198a68; font-size: 13px; font-weight: 750; text-decoration: none; }
#after-account > button { justify-self: start; }
#access-code { overflow-wrap: anywhere; }
#account-feedback { margin-bottom: 0; }
.category-drawer { width: min(420px, max(340px, 32vw)); }
@media (max-width: 1180px) {
  .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-grid > .checkout-panel { grid-column: 2; grid-row: 2; }
  .account-split { gap: 13px; }
  .account-login-card, .account-create-card { padding: 19px; }
}
@media (max-width: 800px) {
  .purchase-grid { grid-template-columns: minmax(0, 1fr); }
  .purchase-grid > #cuenta.account-panel, .purchase-grid > .cart-panel, .purchase-grid > .checkout-panel { grid-column: 1; grid-row: auto; }
  .account-split { grid-template-columns: minmax(0, 1fr); }
  .account-login-card, .account-create-card { padding: 19px; }
}
/* Keep the global storefront header present on category and account views. */
:root { --sticky-head-height: 82px; }
.site-head { position: sticky; top: 0; z-index: 55; }
.nav-band { position: sticky; top: var(--sticky-head-height); z-index: 54; }
.category-browser { scroll-margin-top: calc(var(--sticky-head-height) + 46px); }
@media (min-width: 801px) {
  #cuenta.account-panel { min-height: min(760px, calc(100vh - 175px)); }
}
@media (max-width: 800px) {
  :root { --sticky-head-height: 110px; }
}

/* V10.10 local review: account, nested menus, responsive pagination. */
.account-menu {
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 19px;
  border-radius: 12px;
}
.account-menu button,
.account-menu .account-menu-group summary { min-height: 44px; }
.account-menu .account-menu-group {
  margin-top: 8px;
  border: 1px solid #e5ece8;
  border-radius: 7px;
  overflow: hidden;
}
.account-menu .account-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  color: #274b5f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.account-menu .account-menu-group summary::-webkit-details-marker,
.category-group > summary::-webkit-details-marker { display: none; }
.account-menu .account-menu-group summary::after,
.category-group > summary::after {
  content: "+";
  color: #198a68;
  font-size: 19px;
  font-weight: 500;
}
.account-menu .account-menu-group[open] > summary::after,
.category-group[open] > summary::after { content: "−"; }
.account-menu .account-menu-group-links { display: grid; gap: 5px; padding: 0 8px 8px; }
.account-menu .account-menu-group-links a {
  justify-content: flex-start;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
}
.account-menu .account-menu-group > p {
  margin: 0;
  padding: 0 11px 11px;
  color: #677b84;
  font-size: 12px;
  line-height: 1.45;
}

.category-drawer-nav { display: grid; gap: 0; padding-block: 12px; }
.category-drawer-nav .category-group { border-bottom: 1px solid #e9eeec; }
.category-group > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 5px;
  color: #74838d;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.category-group[open] > summary { color: #17694f; }
.category-group-links { display: grid; padding: 0 0 8px; }
.category-drawer-nav .category-group-links a {
  min-height: 44px;
  padding-inline: 10px;
  border-bottom: 0;
}
.category-drawer-nav .category-group-links a:hover { background: #f0f7f3; }
.category-group > summary:focus-visible,
.account-menu .account-menu-group summary:focus-visible {
  outline: 3px solid #e46c0b;
  outline-offset: -2px;
  border-radius: 5px;
}

.account-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: clamp(20px, 3vw, 36px);
  overflow: auto;
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  background: #f7faf8;
  color: #18334a;
  box-shadow: 0 24px 80px #102d3d45;
}
.account-dialog::backdrop { background: rgb(13 34 46 / 58%); backdrop-filter: blur(2px); }
.account-dialog[open] { animation: account-dialog-enter .16s ease-out; }
@keyframes account-dialog-enter {
  from { opacity: .55; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.account-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.account-dialog .account-intro { margin: 0; }
.account-dialog .account-intro .section-kicker { margin: 0 0 5px; color: #198a68; }
.account-dialog .account-intro h2 {
  margin: 0;
  color: #174d76;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.12;
}
.account-dialog .account-intro .subtle { margin: 7px 0 0; color: #667781; font-size: 13px; }
.account-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #dce7e2;
  border-radius: 50%;
  background: #fff;
  color: #24536b;
  font-size: 27px;
  line-height: 1;
}
.account-dialog-close:hover { background: #eef7f2; }
.account-dialog .account-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-dialog .account-login-card,
.account-dialog .account-create-card {
  min-height: 0;
  padding: clamp(16px, 2.3vw, 24px);
  border-color: #e1e9e5;
  border-radius: 10px;
}
.account-dialog .account-login-card h3,
.account-dialog .account-create-card h3 { color: #315768; font-size: 20px; }
.account-dialog .account-login-card > p,
.account-dialog .account-create-card > p { margin-bottom: 13px; }
.account-dialog #before-account { display: grid; gap: 8px; }
.account-dialog #before-account label {
  margin: 2px 0 0;
  color: #4d6570;
  font-size: 12px;
  font-weight: 750;
}
.account-dialog #login-code { width: 100%; min-width: 0; margin: 0; }
.account-dialog #before-account .account-submit,
.account-dialog .account-create-card .account-submit {
  min-height: 46px;
  justify-self: start;
  margin-top: 2px;
  padding: 10px 18px;
  border: 1px solid #198a68;
  border-radius: 6px;
  background: #198a68;
  color: #fff;
  font-weight: 760;
}
.account-dialog #before-account .account-submit:hover,
.account-dialog .account-create-card .account-submit:hover { background: #137455; }
.account-dialog .account-create-card ul { gap: 7px; margin-bottom: 15px; }
.account-dialog #after-account:not([hidden]) { display: grid; gap: 11px; }
.account-dialog #after-account > p,
.account-dialog #after-account > a { margin: 0; }
.account-dialog #after-account > a { color: #198a68; font-weight: 750; }
.account-dialog #after-account > button { justify-self: start; }
.account-dialog .account-local-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 15px 0 0;
  color: #667781;
  font-size: 12px;
  line-height: 1.45;
}
.account-dialog .account-local-note strong { color: #17694f; }
.account-dialog #access-code,
.account-dialog #account-feedback {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #526c76;
  font-size: 12px;
  line-height: 1.45;
}
.account-dialog #account-feedback:empty { display: none; }

/* The account view lives in a dialog, so the lab has no phantom first row. */
#laboratorio .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#laboratorio .purchase-grid > .cart-panel,
#laboratorio .purchase-grid > .checkout-panel { grid-column: auto; grid-row: auto; }
#laboratorio[hidden] { display: none !important; }

.recommendation-dots {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 0 0;
}
.recommendation-dots[hidden] { display: none !important; }
.recommendation-dots button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.recommendation-dots button::before {
  width: 8px;
  height: 8px;
  border: 1px solid #198a68;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .16s ease, background-color .16s ease;
}
.recommendation-dots button[aria-current="true"]::before {
  transform: scale(1.35);
  background: #198a68;
}
.recommendation-dots button:hover::before { background: #f1872c; border-color: #f1872c; }
.recommendation-dots button:focus-visible { outline: 3px solid #e46c0b; outline-offset: -2px; }

@media (max-width: 800px) {
  #laboratorio .purchase-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .category-drawer { width: min(420px, 92vw); }
  .head-account .account-menu {
    position: fixed;
    top: var(--account-menu-top, 82px);
    right: 10px;
    left: auto;
    width: min(340px, calc(100vw - 20px));
    max-height: 68dvh;
  }
  .head-account .account-menu::before { right: 65px; }
  .account-dialog {
    width: calc(100vw - 24px);
    max-height: 92dvh;
    padding: 18px 16px;
    border-radius: 12px;
  }
  .account-dialog-head { gap: 12px; margin-bottom: 14px; }
  .account-dialog .account-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-dialog .account-login-card,
  .account-dialog .account-create-card { padding: 16px; }
  .account-dialog #before-account .account-submit,
  .account-dialog .account-create-card .account-submit { width: 100%; justify-self: stretch; }
  .account-dialog .account-local-note { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-dialog[open] { animation: none; }
  .recommendation-dots button::before { transition: none; }
}

/* V11 polish: keep mobile navigation readable and separate footer links. */
.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
}
@media (max-width: 520px) {
  .nav-shell { justify-content: flex-start; }
  .nav-shell > .mobile-menu { min-width: 142px; justify-content: space-between; }
  .nav-shell > .main-nav { display: none !important; }
  .footer .footer-bottom { justify-content: flex-start; gap: 8px 18px; }
  .footer .footer-bottom > * { flex: 0 0 auto; }
}

/* New user-supplied L01–L10 covers: square source artwork remains undistorted. */
.v107-books{align-items:stretch;gap:10px}
.v107-book{display:flex;min-height:0;align-self:stretch;flex-direction:column;justify-content:flex-start;gap:0;padding:7px;border-radius:9px;background:#fff;border:1px solid #e4eaf0;box-shadow:0 3px 10px #174e760e}
.v107-book::before{display:none;content:none}
.v107-book picture.v107-book-art{position:relative;display:block;width:100%;height:auto;max-height:none;aspect-ratio:1/1;margin:0;overflow:hidden;border-radius:6px;background:#fff9ed;text-align:center}
.v107-book picture.v107-book-art img{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.v107-book picture.v107-book-art-pending{display:grid;place-items:center;background:linear-gradient(145deg,#fff8e8,#eaf6f3 62%,#eaf3fc)}
.v107-book picture.v107-book-art-pending img{width:67%;height:67%;object-fit:contain;opacity:.96}
.v107-book .cover-pending-badge{position:absolute;right:5px;bottom:5px;left:5px;padding:4px 5px;border:1px solid #dae6e9;border-radius:5px;background:#ffffffed;color:#587184;font-size:9px;font-weight:700;line-height:1.2;text-align:center}
.v107-book h3{min-height:2.35em;margin:8px 2px 2px;color:#164d76;font-size:12px;line-height:1.22;font-weight:750}
.v107-level .v107-collection-note,.v107-mini .v107-collection-note{display:none}
@media(max-width:800px){.v107-books{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:2px 1px 8px}.v107-book{flex:0 0 215px;scroll-snap-align:start}.v107-book h3{font-size:13px}.v107-mini .v107-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.v107-mini .v107-book{min-width:0;flex-basis:auto}.v107-mini .v107-book h3{font-size:11px}}
@media(max-width:520px){.v107-level{padding:14px 14px}.v107-books{gap:9px}.v107-book{flex-basis:160px;padding:6px}.v107-book h3{font-size:12px}.v107-mini .v107-book{padding:6px}.v107-mini .v107-book h3{font-size:10px}.v107-book .cover-pending-badge{font-size:8px}}

/* Tablet keeps the approved H01 artwork as one undistorted banner; the stacked copy is reserved for phones. */
@media(min-width:601px) and (max-width:800px){
  .hero{aspect-ratio:3/1;grid-template-columns:minmax(0,1fr) 320px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .hero-copy{position:absolute!important;inset:auto!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
  .hero-picture{position:absolute!important;inset:0!important;grid-column:1/-1;grid-row:1;width:100%;height:100%!important;min-height:0!important;max-height:none!important;z-index:1;background:none!important}
  .hero-picture img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain;object-position:center}
  .hero-side{display:block;position:absolute!important;inset:0!important;z-index:2;width:100%;pointer-events:none}
  .hero-side p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .hero-side-cta{position:absolute;left:70.35%;top:54.83%;width:18.83%;height:13.4%;display:block;padding:0;border-radius:999px;background:transparent;color:transparent;font-size:0;pointer-events:auto}
  .hero-controls{display:none!important}
}

/* R02 category rows: full-height panoramic art, real copy and buttons, covers overlaid on the open right side. */
.v107-level{
  position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;
  height:284px;min-height:284px;padding:14px 0 12px;overflow:hidden;background:#e5f5fb;
  scroll-margin-top:calc(var(--sticky-head-height, 0px) + 16px)
}
.v107-level-secondary{background:#fff1df}
.v107-level-banner{position:absolute;z-index:0;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.v107-level-banner-art{position:absolute;inset:0;width:100%;height:100%}
.v107-level-banner-art>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 60%}
.v107-level-plane{position:absolute;z-index:1;top:8px;right:.5%;display:block;width:clamp(76px,5.4vw,102px);height:auto;overflow:visible}
@media(min-width:1400px){.v107-level-banner-art>img{width:106.4%;max-width:none;transform:translateX(-3.2%)}}
.v107-level-inner{
  position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,25.8%) minmax(0,68.2%);
  flex:1;min-height:0;align-items:center;gap:0;width:100%;max-width:none;margin:0
}
.v107-level-copy{min-width:0;max-width:clamp(200px,11.85vw,226px);margin:0 0 0 clamp(136px,11.85vw,226px);color:#07528f}
.v107-level-copy h2{margin:0 0 6px;color:#07528f;font-size:clamp(29px,2vw,36px);font-weight:800;line-height:1.03;letter-spacing:-.025em}
.v107-level-secondary .v107-level-copy h2{font-size:clamp(25px,1.85vw,33px)}
.v107-level-copy p{max-width:100%;margin:0 0 12px;color:#07528f;font-size:clamp(12px,.82vw,15px);line-height:1.25}
.v107-level-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:116px;min-height:38px;padding:0 14px;
  border:1px solid #0b68ae;border-radius:999px;background:#fff;color:#07528f;text-decoration:none;
  font-size:13px;font-weight:750;line-height:1;box-shadow:0 1px 2px #0b51801a
}
.v107-level-cta span{font-size:20px;line-height:.7}
.v107-level-cta:hover{background:#eff8ff}
.v107-level-cta:focus-visible{outline:3px solid #ef8a27;outline-offset:3px}
.v107-level .v107-books{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-self:center;gap:8px;min-width:0}
.v107-level .v107-book{
  display:flex;flex-direction:column;align-self:stretch;justify-content:flex-start;min-width:0;min-height:0;
  padding:8px;background:#ffffffed;border:1px solid #e5edf1;border-radius:8px;box-shadow:0 3px 10px #16487812
}
.v107-level .v107-book::before{display:none}
.v107-level .v107-book picture{
  display:block;width:100%;height:clamp(184px,11.9vw,198px);max-height:none;margin:0;overflow:hidden;border-radius:4px;
  background:#fbfcfd;text-align:center
}
.v107-level .v107-book img{display:block;width:100%;height:100%;object-fit:contain}
.v107-level .v107-book h3{min-height:2.4em;margin:8px 0 0;color:#114875;font-size:12px;line-height:1.2;font-weight:750}
.v107-level .v107-collection-note{
  display:block;position:absolute;z-index:1;right:5%;bottom:3px;left:25.8%;margin:0;color:#536d7e;
  font-size:10px;line-height:1.35;text-align:right
}

@media(min-width:768px) and (max-width:1399px){
  .v107-level{height:252px;min-height:252px;padding:12px 0 10px}
  .v107-level-inner{grid-template-columns:minmax(0,34%) minmax(0,64%)}
  .v107-level-copy{max-width:none;margin-left:clamp(112px,14vw,190px)}
  .v107-level-copy h2{font-size:clamp(23px,2.4vw,30px)}
  .v107-level-secondary .v107-level-copy h2{font-size:clamp(22px,2.25vw,29px)}
  .v107-level-copy p{font-size:clamp(12px,1.25vw,14px)}
  .v107-level .v107-books{
    display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;
    scrollbar-width:thin;gap:9px;padding:1px 1px 8px
  }
  .v107-level .v107-book{flex:0 0 calc((100% - 18px)/3);scroll-snap-align:start}
  .v107-level .v107-book picture{height:clamp(118px,15vw,154px)}
  .v107-level-plane{display:none}
}

@media(max-width:767px){
  .v107-level{display:block;height:auto;min-height:0;padding:0 0 14px}
  .v107-level-banner{inset:0 0 auto;height:190px}
  .v107-level-banner-art>img{object-position:left 60%}
  .v107-level-plane{display:none}
  .v107-level-inner{display:block;width:100%;max-width:none;margin:0;padding:0}
  .v107-level-copy{
    display:flex;flex-direction:column;align-items:flex-start;justify-content:center;box-sizing:border-box;
    position:relative;z-index:1;width:100%;max-width:none;height:190px;margin:0;padding:10px 14px 10px clamp(112px,31vw,138px)
  }
  .v107-level-copy h2{margin-bottom:5px;font-size:clamp(24px,6.4vw,32px)}
  .v107-level-secondary .v107-level-copy h2{font-size:clamp(22px,5.8vw,29px)}
  .v107-level-copy p{max-width:360px;margin-bottom:9px;font-size:clamp(12px,3.3vw,14px);line-height:1.2}
  .v107-level-cta{min-height:36px;min-width:112px;font-size:12px}
  .v107-level .v107-books{
    display:flex;width:100%;max-width:100%;gap:10px;margin:0;padding:0 14px 8px;
    overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin
  }
  .v107-level .v107-book{flex:0 0 min(68vw,230px);padding:8px;scroll-snap-align:start}
  .v107-level .v107-book picture{height:clamp(136px,42vw,158px)}
  .v107-level .v107-book h3{font-size:12px}
  .v107-level .v107-collection-note{position:relative;right:auto;bottom:auto;left:auto;margin:0 14px;text-align:left}
}

/* Category/search results replace the home body while they are active. */
body.category-view-active #main > :not(#category-browser) { display: none !important; }
body.category-view-active #category-browser { min-height: calc(100vh - var(--sticky-head-height, 0px)); }
.browse-card-cover-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.browse-card-cover-link .browse-card-cover { width: 100%; }
.browse-card h3 a, .v107-book h3 a, .reco-card h3 a { color: inherit; text-decoration: none; }
.browse-card h3 a:hover, .v107-book h3 a:hover, .reco-card h3 a:hover { text-decoration: underline; text-decoration-color: #f18122; text-underline-offset: 3px; }
.book-visual-link { display: block; min-width: 0; color: inherit; text-decoration: none; line-height: 0; }
.browser-results[data-view="list"] .browse-card-cover-link { grid-row: 1 / 4; width: 112px; }
.browser-results[data-view="list"] .browse-card-cover-link .browse-card-cover { width: 112px; }
@media (max-width: 520px) {
  .browser-results[data-view="list"] .browse-card-cover-link,
  .browser-results[data-view="list"] .browse-card-cover-link .browse-card-cover { width: 82px; }
}
.v107-mini:has(.v107-mini-books:empty) { grid-template-columns: minmax(0,1fr); }
.v107-mini:has(.v107-mini-books:empty) .v107-mini-books,
.v107-mini:has(.v107-mini-books:empty) .v107-collection-note { display: none; }

/* Homepage subject showcases: match the supplied three-panel composition using
   the existing category icon and the two real, catalog-linked book covers. */
.v107-topic-grid {
  box-sizing: border-box;
  width: 100%;
  max-width: 1760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(10px, 1vw, 18px);
  margin: 18px auto 28px;
  padding: 0 clamp(14px, 1.15vw, 22px);
}
.v107-topic-grid .v107-mini {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(8px, .7vw, 13px);
  min-width: 0;
  min-height: 238px;
  padding: clamp(11px, .95vw, 16px);
  overflow: hidden;
  border: 1px solid #f0e5d7;
  border-radius: 15px;
  background: #fff8ee;
  box-shadow: 0 4px 16px #18466b0b;
  scroll-margin-top: calc(var(--sticky-head-height, 0px) + 16px);
}
.v107-topic-grid .v107-mini:nth-child(2) {
  border-color: #e0ebf7;
  background: #eef6ff;
}
.v107-topic-grid .v107-mini:nth-child(3) {
  border-color: #deeee7;
  background: #eff9f4;
}
.v107-topic-grid .v107-mini-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.v107-topic-grid .v107-mini-intro h2 {
  display: flex;
  align-items: center;
  gap: clamp(4px, .45vw, 8px);
  min-width: 0;
  margin: 0 0 8px;
  color: #e45f22;
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.v107-topic-grid .v107-mini:nth-child(2) .v107-mini-intro h2 { color: #075ca8; }
.v107-topic-grid .v107-mini:nth-child(3) .v107-mini-intro h2 { color: #16815f; }
.v107-topic-grid .v107-mini-intro h2 img {
  display: block;
  flex: 0 0 auto;
  width: clamp(34px, 3vw, 50px);
  height: clamp(34px, 3vw, 50px);
  object-fit: contain;
}
.v107-topic-grid .v107-mini-intro p {
  max-width: 27ch;
  margin: 0 0 12px;
  color: #174c76;
  font-size: clamp(11px, .82vw, 14px);
  line-height: 1.38;
}
.v107-topic-grid .v107-mini-intro a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 36px;
  width: max-content;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid #2473a5;
  border-radius: 999px;
  background: #ffffffdc;
  color: #07528f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.v107-topic-grid .v107-mini-intro a span {
  font-size: 18px;
  line-height: .8;
}
.v107-topic-grid .v107-mini-intro a:hover {
  background: #075c93;
  color: #fff;
  transform: translateY(-1px);
}
.v107-topic-grid .v107-mini-intro a:focus-visible,
.v107-topic-grid .v107-book a:focus-visible {
  outline: 3px solid #f29a32;
  outline-offset: 3px;
}
.v107-topic-grid .v107-mini-books {
  display: grid !important;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  align-items: stretch;
  gap: clamp(7px, .65vw, 11px);
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: visible;
}
.v107-topic-grid .v107-book {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: clamp(6px, .58vw, 9px);
  border: 1px solid #e2eaf0;
  border-radius: 10px;
  background: #fffffff2;
  box-shadow: 0 3px 11px #14466d10;
  transition: transform .18s ease, box-shadow .18s ease;
}
.v107-topic-grid .v107-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #14466d1a;
}
.v107-topic-grid .v107-book picture.v107-book-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.v107-topic-grid .v107-book picture.v107-book-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  transition: transform .22s ease;
}
.v107-topic-grid .v107-book:hover picture.v107-book-art img { transform: scale(1.025); }
.v107-topic-grid .v107-book h3 {
  display: -webkit-box;
  min-height: 2.45em;
  margin: 7px 2px 3px;
  overflow: hidden;
  color: #124c79;
  font-size: clamp(11px, .76vw, 13px);
  font-weight: 750;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.v107-topic-grid .v107-book h3 a { color: inherit; text-decoration: none; }
.v107-topic-grid .v107-book h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #ec7827;
  text-underline-offset: 3px;
}
.v107-topic-grid .v107-book .v107-sample {
  min-height: 27px;
  margin: auto 0 0;
  padding: 7px 2px 0;
  border-top: 1px solid #edf1f3;
  color: #687987;
  font-size: clamp(9px, .64vw, 11px);
  line-height: 1.25;
}
.v107-topic-grid .v107-collection-note { display: none !important; }

@media (max-width: 1200px) and (min-width: 601px) {
  .v107-topic-grid {
    max-width: 1320px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-block: 16px 24px;
  }
  .v107-topic-grid .v107-mini {
    grid-template-columns: minmax(185px, .72fr) minmax(0, 2fr);
    min-height: 226px;
    padding: 14px;
  }
  .v107-topic-grid .v107-mini-intro h2 { font-size: clamp(21px, 2.5vw, 28px); }
  .v107-topic-grid .v107-mini-intro h2 img { width: 48px; height: 48px; }
  .v107-topic-grid .v107-mini-intro p { font-size: 14px; }
  .v107-topic-grid .v107-book h3 { font-size: 13px; }
  .v107-topic-grid .v107-book .v107-sample { font-size: 11px; }
}
@media (max-width: 600px) {
  .v107-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin: 14px auto 22px;
    padding-inline: 12px;
  }
  .v107-topic-grid .v107-mini {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 11px;
    min-height: 0;
    padding: 13px;
    border-radius: 14px;
  }
  .v107-topic-grid .v107-mini-intro { grid-column: 1; grid-row: 1; }
  .v107-topic-grid .v107-mini-intro h2 {
    gap: 7px;
    margin-bottom: 5px;
    font-size: clamp(20px, 5.5vw, 25px);
  }
  .v107-topic-grid .v107-mini-intro h2 img { width: 42px; height: 42px; }
  .v107-topic-grid .v107-mini-intro p {
    max-width: 42ch;
    margin-bottom: 9px;
    font-size: 13px;
  }
  .v107-topic-grid .v107-mini-intro a { min-height: 35px; }
  .v107-topic-grid .v107-mini-books {
    grid-column: 1;
    grid-row: 2;
    gap: 9px;
  }
  .v107-topic-grid .v107-book { padding: 7px; }
  .v107-topic-grid .v107-book h3 {
    min-height: 2.45em;
    margin-top: 7px;
    font-size: clamp(11px, 3.15vw, 13px);
  }
  .v107-topic-grid .v107-book .v107-sample { font-size: 10px; }
}
@media (max-width: 360px) {
  .v107-topic-grid { padding-inline: 9px; }
  .v107-topic-grid .v107-mini { padding: 11px; }
  .v107-topic-grid .v107-mini-books { gap: 7px; }
  .v107-topic-grid .v107-book { padding: 6px; }
  .v107-topic-grid .v107-book h3 { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .v107-topic-grid .v107-mini-intro a,
  .v107-topic-grid .v107-book,
  .v107-topic-grid .v107-book img { transition: none !important; }
}

/* Institution search, public book prices, and offer labels. */
.school-content { display: grid; max-width: 1320px; grid-template-columns: minmax(230px, auto) minmax(0, 1fr); align-items: center; gap: 14px 24px; }
.school-heading { display: flex; align-items: center; gap: 10px; }
.school-heading .school-icon-image { width: 48px; height: 48px; background: transparent; }
.school-form { display: grid; width: 100%; max-width: none; grid-template-columns: minmax(180px, 1fr) minmax(112px, 130px) minmax(112px, 130px) 48px; align-items: center; gap: 8px; }
.school-form input, .school-filter-label select { min-width: 0; min-height: 42px; border: 1px solid #cadbe4; border-radius: 7px; background: #fff; color: #184c72; }
.school-form input { padding-inline: 13px; }
.school-filter-label { display: grid; gap: 3px; color: #45667d; font-size: 10px; font-weight: 700; }
.school-filter-label select { padding-inline: 9px; font-size: 11px; font-weight: 600; }
.school-content > .form-feedback:not([hidden]) { grid-column: 1 / -1; margin: 0; padding-top: 4px; }
.school-content > .form-feedback[hidden], .school-content > .school-results[hidden] { display: none !important; }
.school-content > .form-feedback:empty { display: none !important; }
.school-results { grid-column: 1 / -1; width: 100%; min-width: 0; padding-top: 10px; }
.school-results-title { margin: 0 0 10px; color: #124c79; font-size: 16px; }
.school-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 240px)); justify-content: start; gap: 12px; }
.school-book-card { min-width: 0; overflow: hidden; border: 1px solid #dce8ed; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px #1648780d; }
.school-book-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f8fbfc; }
.school-book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.school-offer-badge, .browse-offer-badge, .reco-offer-badge, .v107-offer-badge { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 5px 8px; border-radius: 999px; background: #ee6b2f; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 2px 7px #88371130; }
.school-book-body { display: grid; gap: 6px; padding: 10px 11px 12px; }
.school-book-grade { margin: 0; color: #16866c; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.school-book-body h3 { min-height: 2.4em; margin: 0; color: #124c79; font-size: 13px; line-height: 1.2; }
.school-book-body h3 a { color: inherit; text-decoration: none; }
.school-book-price { margin: 0; color: #153f61; font-size: 15px; font-weight: 850; }
.school-book-old-price, .browse-card-old-price { margin-left: 4px; color: #758693; font-size: 10px; font-weight: 500; }
.school-book-view { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 11px; border-radius: 6px; background: #168a69; color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; }
.school-search-loading, .school-search-empty { margin: 8px 0; color: #526b7b; font-size: 13px; }
.school-form input:focus-visible, .school-filter-label select:focus-visible, .school-book-view:focus-visible { outline: 3px solid #f6a735; outline-offset: 2px; }
.v107-topic-grid .v107-book .book-visual-link { position: relative; display: block; overflow: hidden; border-radius: 6px; }
.v107-topic-grid .v107-product-price { min-height: 22px; margin: 5px 2px 0; color: #16486c; font-size: 13px; font-weight: 850; }
.v107-topic-grid .v107-product-price s, .reco-product-price s { margin-left: 4px; color: #7a8a96; font-size: 10px; font-weight: 500; }
.v107-book .v107-offer-badge { top: 5px; right: 5px; font-size: 9px; }
.reco-cover { position: relative; }
.reco-offer-badge { top: 7px; right: 7px; }
.reco-product-price { margin: 7px 0 0; color: #16486c; font-size: 14px; font-weight: 850; }
.browse-card-cover { position: relative; }
.browse-offer-badge { font-size: 10px; }
.browse-card-price { margin: auto 0 0; padding-top: 8px; border-top: 1px solid #edf1f3; color: #16486c; font-size: 13px; font-weight: 850; }

@media (max-width: 850px) {
  .school-content { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .school-heading { justify-content: center; }
  .school-form { grid-template-columns: minmax(0, 1fr) 110px 110px 46px; }
  .school-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .school-content { padding-inline: 14px; }
  .school-heading { justify-content: flex-start; }
  .school-heading .school-icon-image { width: 42px; height: 42px; }
  .school-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .school-form input { grid-column: 1 / -1; }
  .school-form .school-filter-label[for="school-level"] { grid-column: 1; }
  .school-form .school-filter-label[for="school-grade"] { grid-column: 2; }
  .school-form button { grid-column: 3; grid-row: 2; min-height: 42px; }
  .school-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .school-book-body { padding: 8px; }
  .school-book-body h3 { font-size: 11px; }
  .school-book-price { font-size: 13px; }
  .school-book-view { min-height: 32px; font-size: 10px; }
}
/* 2026-10-23: new category art follows the approved panoramic cards. */
.v107-topic-grid .v107-mini{position:relative;overflow:hidden;min-height:218px;border:1px solid #e7ecee;background-color:#fff8ef;background-image:url('/shop/assets/storefront-v4-assets/topic-lectura-panorama-20261023.png');background-position:center bottom;background-repeat:no-repeat;background-size:100% 100%;box-shadow:0 5px 18px #1d53600d}
.v107-topic-grid .v107-mini:nth-child(2){background-color:#eaf6ff;background-image:url('/shop/assets/storefront-v4-assets/topic-matematica-panorama-20261023.png')}
.v107-topic-grid .v107-mini:nth-child(3){background-color:#effaf4;background-image:url('/shop/assets/storefront-v4-assets/topic-ciencia-panorama-20261023.png')}
.v107-topic-grid .v107-mini:before{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#fffaf06b 0%,#fffaf015 48%,#ffffff24 100%);content:""}
.v107-topic-grid .v107-mini:nth-child(2):before{background:linear-gradient(90deg,#f3faff78 0%,#f3faff12 48%,#ffffff24 100%)}
.v107-topic-grid .v107-mini:nth-child(3):before{background:linear-gradient(90deg,#f5fff87a 0%,#f5fff810 48%,#ffffff24 100%)}
.v107-mini>*{position:relative;z-index:1}
.v107-mini-intro{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:8px 0}
.v107-mini-intro h2{margin:0 0 8px;font-size:clamp(17px,1.45vw,23px);font-weight:850;letter-spacing:-.025em}
.v107-mini-intro p{max-width:185px;margin:0 0 13px;font-size:12px;line-height:1.42}
.v107-mini-intro a{min-height:34px;padding:6px 13px;border-radius:22px;background:#fff;color:#0e528a;font-size:11px;box-shadow:0 2px 8px #143c5310}
.v107-mini-intro a:hover{background:#0b5d93;color:#fff}
.v107-mini .v107-book{min-height:0;padding:8px;border-radius:10px;box-shadow:0 4px 13px #123b5217}
.v107-mini .v107-book picture{display:block;height:clamp(105px,10.2vw,142px);background:#fff}
.v107-mini .v107-book h3{min-height:31px;margin:7px 0 2px;font-size:11px;line-height:1.2}
.v107-mini .v107-product-price{min-height:20px;margin:2px 1px 0;color:#0d477a;font-size:12px;font-weight:850}
.v107-mini .v107-product-price s,.v107-level .v107-product-price s{margin-left:4px;color:#82909a;font-size:9px;font-weight:500}
.v107-level .v107-book{position:relative;min-height:0;padding:9px;border-radius:10px}
.v107-level .v107-book:before{display:none}
.v107-level .v107-book picture{display:block;height:clamp(125px,14vw,185px);background:#fff}
.v107-level .v107-book h3{min-height:33px;margin:7px 0 2px;font-size:12px}
.v107-level .v107-product-price{min-height:21px;margin:2px 1px 0;color:#0d477a;font-size:13px;font-weight:850}
@media(max-width:1200px){.v107-mini{min-height:205px}.v107-mini .v107-book picture{height:clamp(96px,12vw,135px)}.v107-level .v107-book picture{height:clamp(110px,16vw,160px)}}
@media(max-width:800px){.v107-mini{min-height:0;background-position:center bottom}.v107-mini-books .v107-book picture{height:clamp(110px,26vw,155px)}.v107-level .v107-book picture{height:clamp(118px,22vw,170px)}}
@media(max-width:480px){.v107-topic-grid{padding-inline:12px;gap:12px}.v107-mini{background-position:center bottom}.v107-mini-intro{padding-block:4px}.v107-mini-intro h2{font-size:17px}.v107-mini .v107-book{padding:6px}.v107-mini .v107-book picture{height:clamp(106px,34vw,142px)}.v107-level .v107-books{grid-template-columns:repeat(2,minmax(0,1fr))}.v107-level .v107-book picture{height:clamp(145px,44vw,190px)}}

/* Local review fixes: account visibility, institution search alignment, cart count badge. */
.account-menu .account-menu-group[hidden] { display: none !important; }
.school-form { align-items: end; }
.school-form > input,
.school-form > .school-filter-label > select,
.school-form > button { height: 42px; min-height: 42px; box-sizing: border-box; }
.school-form > button {
  display: grid;
  place-items: center;
  align-self: end;
  width: 100%;
  padding: 0;
  line-height: 0;
}
.school-form > button svg { display: block; width: 20px; height: 20px; }
.head-tools #header-cart-toggle { position: relative; }
.head-tools #header-cart-toggle .cart-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 6px);
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

/* Header catalog suggestions: private tags affect matching, never presentation. */
.head-inner { position: relative; z-index: 30; }
#top-search-form { position: relative; z-index: 31; overflow: visible; }
#top-search-form:focus-within { z-index: 60; }
.book-search-suggestions {
  position: absolute;
  z-index: 80;
  inset: calc(100% + 7px) 0 auto;
  display: grid;
  max-height: min(62vh, 430px);
  overflow: auto;
  padding: 6px;
  border: 1px solid #d8e4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px #173d5528;
}
.book-search-suggestions[hidden] { display: none !important; }
.book-search-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  color: #164a72;
  text-align: left;
}
.book-search-option:hover,
.book-search-option[aria-selected="true"] { background: #f0f7fa; }
.book-search-cover { display: block; width: 42px; height: 50px; object-fit: contain; border-radius: 4px; background: #f7fafc; }
.book-search-cover[hidden] { display: none; }
.book-search-copy { display: grid; min-width: 0; gap: 3px; }
.book-search-title { overflow: hidden; color: #124b78; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.book-search-meta { overflow: hidden; color: #657c8b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.book-search-open { color: #f07822; font-size: 22px; line-height: 1; text-align: center; }
.book-search-option:focus-visible { outline: 2px solid #f07822; outline-offset: -2px; }
#top-search-form .book-search-option {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  font-size: inherit;
  line-height: normal;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #164a72;
  box-shadow: none;
}
#top-search-form .book-search-option:hover,
#top-search-form .book-search-option[aria-selected="true"] { background: #f0f7fa; }

/* Keep carousel arrows beside the cards and centered on the full book strip. */
#recomendados > .section-title { justify-content: center; text-align: center; }
#recomendados > .section-title > div { text-align: center; }
#recomendados .recommendation-carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
}
#recomendados .recommendation-carousel > .reco-scroller {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 3px 1px 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
#recomendados .recommendation-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d5e1e9;
  border-radius: 50%;
  background: #fff;
  color: #14588a;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 8px #173d5510;
}
#recomendados #recommended-prev { grid-column: 1; grid-row: 1; }
#recomendados #recommended-next { grid-column: 3; grid-row: 1; }
#recomendados .recommendation-arrow:hover { border-color: #f07822; color: #ec701e; }
#recomendados .recommendation-arrow:disabled { opacity: .38; }
#recomendados #recommendation-grid { display: flex !important; width: 100%; gap: 10px; }
@media (min-width: 1000px) {
  #recomendados #recommendation-grid > .reco-card { flex: 0 0 calc((100% - 40px) / 5); width: calc((100% - 40px) / 5); min-width: 0; }
}
@media (min-width: 801px) and (max-width: 999px) {
  #recomendados #recommendation-grid > .reco-card { flex: 0 0 calc((100% - 20px) / 3); width: calc((100% - 20px) / 3); min-width: 0; }
}
@media (max-width: 800px) {
  #recomendados .recommendation-carousel { grid-template-columns: 32px minmax(0, 1fr) 32px; column-gap: 8px; }
  #recomendados .recommendation-arrow { width: 32px; height: 32px; font-size: 22px; }
  #recomendados #recommendation-grid > .reco-card { flex: 0 0 min(calc(100vw - 112px), 260px); width: min(calc(100vw - 112px), 260px); scroll-snap-align: start; }
  #recomendados .reco-scroller { scroll-snap-type: x mandatory; }
}
@media (max-width: 520px) {
  .book-search-suggestions { max-height: min(55vh, 360px); }
  .book-search-option { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 8px; min-height: 58px; padding: 6px 7px; }
  .book-search-cover { width: 38px; height: 46px; }
  .book-search-title { font-size: 12px; }
  .book-search-meta { font-size: 10px; }
}
