/* Homepage editorial refresh. All styles are confined to the home view. */
body:has(.an-hero){--an-paper:#f5f3ed;--an-ink:#173d35;--an-teal:#216653;--an-line:#dedfd5;background:var(--an-paper)}
body:has(.an-hero) .navbar-custom{border:0;border-bottom:1px solid var(--an-line);border-radius:0;background:#fdfcf8;box-shadow:0 8px 24px #173d3506;padding:18px 28px;top:0;margin-top:0}
body:has(.an-hero) .navbar-menu-desktop> a,body:has(.an-hero) .navbar-menu-desktop>div>a{min-height:44px;font-size:16px}
body:has(.an-hero) .navbar-menu-desktop>a[href='/']{color:#216653;font-weight:700}
body:has(.an-hero) .search-box{background:#efeee7;border:1px solid #d8dbcf;border-radius:10px;min-height:46px}
body:has(.an-hero) .search-box input{font-family:inherit;font-size:16px}
body:has(.an-hero) .app-wrapper>.app-container>.content-container{padding:24px 32px 32px}
body:has(.an-hero) .an-hero{border-radius:24px;min-height:420px;margin-bottom:24px;box-shadow:0 12px 28px #183b3510}
body:has(.an-hero) .an-hero-copy{padding:48px 44px;width:53%}
body:has(.an-hero) .an-hero-brand{letter-spacing:5px;font-size:11px;margin-bottom:18px}
body:has(.an-hero) .an-hero h1{font-size:clamp(32px,3.2vw,48px);line-height:1.5}
body:has(.an-hero) .an-hero-description{font-size:17px;line-height:1.9}
body:has(.an-hero) .an-hero-actions a{border-radius:8px;font-size:15px;padding:12px 24px}
.an-discover{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 38px;direction:inherit}
.an-discover a{display:flex;align-items:center;gap:14px;padding:18px 20px;min-height:70px;border:1px solid #dfe2d8;border-radius:14px;background:#fffefa;color:#173d35;font-size:17px;text-decoration:none;box-sizing:border-box;transition:background .18s,border-color .18s}
.an-discover a:hover{background:#eaf0e6;border-color:#91ad99}
.an-discover svg{width:26px;height:26px;color:#39745f;flex-shrink:0}
body:has(.an-hero) .title-container{border:0;padding:0;margin:14px 0 18px;min-height:46px;gap:16px}
body:has(.an-hero) .home-title{border:0;padding:0;color:#173d35;font-size:26px;line-height:1.7}
body:has(.an-hero) .title-container>a{background:transparent;border:0;border-radius:6px;color:#28654f;min-height:44px;font-size:14px;padding:0 8px;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#a8bcae}
body:has(.an-hero) .product-and-site-suggestions-slider{background:#fffefa;border:1px solid #e4e4d9;border-radius:18px;padding:20px 0 34px!important;margin-bottom:30px}
body:has(.an-hero) .product>a{border-radius:5px;background:transparent;box-shadow:none}
body:has(.an-hero) .product>a>img{border-radius:5px;box-shadow:2px 5px 10px #213d351a}
body:has(.an-hero) .slider-button{width:44px;height:44px;color:#216653;border-color:#d8e1d5;background:#fffefa}
body:has(.an-hero) .swiper-pagination-bullet{width:6px;height:6px;border-color:#52806c;background:#52806c;opacity:.25}
body:has(.an-hero) .swiper-pagination-bullet-active{width:18px;border-radius:6px;background:#28654f;opacity:1}
body:has(.an-hero) .site-suggestion{border-radius:12px}
body:has(.an-hero) .book-request-form{background:#e9eee3;border:0;border-radius:20px;padding:32px;box-sizing:border-box}
body:has(.an-hero) .book-request-form input{background:#fffefa;min-height:46px;font-family:inherit;border:1px solid #d4dccc}
body:has(.an-hero) .book-request-form button{background:#216653;border-radius:8px;min-height:46px;font-family:inherit}
body:has(.an-hero) .footer{background:#fffefa;border:1px solid #dfdfd2;border-radius:18px}
body:has(.an-hero) :is(a,button,input):focus-visible{outline:3px solid #a16b22;outline-offset:4px}
@media(max-width:950px){body:has(.an-hero) .an-hero-copy{padding:32px;width:56%}.an-discover a{font-size:15px;padding:14px;gap:10px}}
@media(max-width:600px){
body:has(.an-hero) .navbar-custom{width:100%;padding:10px 14px;margin:0;border-radius:0}
body:has(.an-hero) .app-wrapper>.app-container>.content-container{padding:18px 16px 24px}
body:has(.an-hero) .an-hero{min-height:0;border-radius:18px;padding-bottom:190px;margin-bottom:16px}
body:has(.an-hero) .an-hero-copy{width:100%;padding:24px 22px 12px}
body:has(.an-hero) .an-hero h1{font-size:32px;line-height:1.45}
body:has(.an-hero) .an-hero-description{font-size:15px}
body:has(.an-hero) .an-hero-art{height:192px}
body:has(.an-hero) .an-hero-actions a{padding:10px 16px;font-size:13px}
.an-discover{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:26px}
.an-discover a{font-size:15px;padding:14px 12px;min-height:62px;gap:10px;border-radius:12px}
.an-discover svg{width:22px;height:22px}
body:has(.an-hero) .home-title{font-size:20px;line-height:1.6}
body:has(.an-hero) .title-container{gap:8px;margin:10px 0 12px}
body:has(.an-hero) .title-container>a{font-size:12px;white-space:nowrap}
body:has(.an-hero) .product-and-site-suggestions-slider{border-radius:12px;padding-top:14px!important;margin-bottom:24px}
body:has(.an-hero) .book-request-form{padding:22px}
}
@media(prefers-reduced-motion:reduce){.an-discover a{transition:none}}
/* Compact shelf rhythm, preserving book cover dimensions and touch targets. */
body:has(.an-hero) .an-discover{margin-bottom:18px}
body:has(.an-hero) .title-container{margin:4px 0 8px;min-height:44px}
body:has(.an-hero) .product-and-site-suggestions-slider{padding:12px 0 26px!important;margin-bottom:12px}
@media(max-width:600px){
body:has(.an-hero) .an-discover{margin-bottom:14px}
body:has(.an-hero) .title-container{margin:2px 0 6px}
body:has(.an-hero) .product-and-site-suggestions-slider{padding:10px 0 24px!important;margin-bottom:10px}
}
