.home-discovery{margin:30px 0 48px}.home-discovery *{box-sizing:border-box}.discovery-jumps{display:flex;gap:10px;margin-bottom:28px}.discovery-jumps a{border:1px solid #c6cebd;border-radius:999px;padding:10px 18px;text-decoration:none;color:#254e40;font-weight:700;min-height:44px}.home-discovery section{margin-bottom:42px;scroll-margin-top:30px}.home-discovery h2{font-size:24px;margin:0}.discovery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.discovery-controls{display:flex;gap:8px}.discovery-controls button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid #c6cebd;background:#fffcf6;border-radius:50%;color:#254e40;font-size:22px;cursor:pointer}.discovery-note{color:#5c675b;font-size:14px;line-height:1.6;margin:9px 0 18px}.discovery-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;gap:20px;padding:0 0 16px;scrollbar-color:#99aa8e transparent;scrollbar-width:thin}.discovery-card{display:block;min-width:0;text-decoration:none;color:#243f34;scroll-snap-align:start;text-align:left;border-radius:16px}.discovery-picture{position:relative;overflow:hidden;border-radius:16px;background:#ebe7dc;aspect-ratio:3/2}.discovery-picture img{display:block;width:100%;height:100%;object-fit:contain}.discovery-card small{display:block;margin-top:12px;font-size:12px;color:#67715f}.discovery-card h3{font-family:inherit;font-size:18px;line-height:1.4;margin:6px 0;word-break:keep-all;overflow-wrap:anywhere}.discovery-card p{font-size:14px;line-height:1.5;color:#61705e;margin:0;word-break:keep-all}.discovery-popular{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:26px 18px}.discovery-popular .discovery-card h3{font-size:16px}.discovery-popular .discovery-card p{display:none}.discovery-rank{position:absolute;left:8px;bottom:8px;background:#244c3e;color:#fff;border-radius:8px;min-width:30px;padding:4px 8px;text-align:center;font-weight:800}.home-discovery a:focus-visible,.home-discovery button:focus-visible,.discovery-rail:focus-visible{outline:3px solid #996346;outline-offset:4px}body:has(.home-discovery) main{max-width:1100px}body:has(.home-discovery) .brand-hero{max-width:960px;margin-inline:auto}
@media(max-width:700px){.discovery-rail{grid-auto-columns:76%;gap:14px}.discovery-popular{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.home-discovery h2{font-size:22px}.discovery-card h3{font-size:17px}.discovery-popular .discovery-card h3{font-size:16px}.discovery-jumps a{font-size:14px;padding-inline:15px}}

/* All published tests: preserve 3:2 art and the existing latest/popular sections. */
.discovery-jumps{flex-wrap:wrap}
.discovery-all-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 20px}
.discovery-search{margin:22px 0 0;padding:20px;background:#eeeee3;border:1px solid #d0d6c7;border-radius:18px}
.discovery-search-label{display:block;font-size:16px;font-weight:750;margin-bottom:10px;color:#254e40}
.discovery-search-field{display:flex;gap:10px;align-items:center}
.discovery-search-field input{min-width:0;flex:1;width:100%;padding:14px 16px;border:1px solid #a9b7a2;border-radius:12px;background:#fffdf7;color:#243f34;font:inherit;font-size:16px;min-height:48px}
.discovery-search-field input::placeholder{color:#667260;opacity:1}
.discovery-search-field input:focus-visible{outline:3px solid #996346;outline-offset:3px}
.discovery-search-clear,.discovery-search-reset{font:inherit;font-size:14px;font-weight:700;min-height:44px;border:1px solid #a9b7a2;border-radius:10px;padding:10px 14px;background:#fffdf7;color:#254e40;cursor:pointer}
.discovery-search-clear{white-space:nowrap}
.discovery-search-status{font-size:14px;color:#52624f;margin:18px 0}
.discovery-search-empty{text-align:center;padding:36px 18px;border:1px dashed #b7c2ad;border-radius:18px;background:#fffdf7}
.discovery-search-empty h3{margin:0 0 10px;font-size:20px;color:#254e40}
.discovery-search-empty p{font-size:15px;color:#52624f;line-height:1.6}
.home-discovery [hidden]{display:none!important}
@media(max-width:700px){.discovery-all-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}.discovery-all-grid .discovery-card h3{font-size:16px}.discovery-all-grid .discovery-card p{font-size:13px}.discovery-jumps{gap:8px}.discovery-jumps a{padding:10px 12px}.discovery-search{padding:16px}.discovery-search-field{flex-wrap:wrap}.discovery-search-field input{flex-basis:100%}.discovery-search-clear{margin-left:auto}}

/* Recommended home only. Quiz/result layouts and all image files are unchanged. */
body:has(.recommend-home) .site-header{max-width:1000px;margin:auto;padding-top:10px;padding-bottom:10px}
body:has(.recommend-home) .site-header .moyang-ci img{width:104px;height:auto}
body:has(.recommend-home) .edition{display:none}
body:has(.recommend-home) main{max-width:1000px;padding-top:4px}
.recommend-home{margin-top:16px}
.recommend-home .discovery-search{padding:0;background:transparent;border:0;margin:0 0 24px}
.recommend-home .discovery-search-label{font-size:15px}
.recommend-home .discovery-search-field{flex-wrap:nowrap}
.recommend-home .discovery-search-field input{flex-basis:auto}
.recommend-home .discovery-heading{margin-bottom:18px}
.recommend-home section{margin-bottom:32px}
.recommend-home .discovery-card p{display:none}
.recommend-new-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.recommend-more{border:0;background:transparent;color:#526550;font:inherit;font-size:14px;min-height:44px;padding:8px 0;white-space:nowrap;cursor:pointer}
.recommend-all-button{display:block;width:100%;min-height:50px;border:1px solid #bac7b2;border-radius:13px;background:#fffdf7;color:#254b3c;font:inherit;font-weight:750;cursor:pointer;margin:12px 0 24px}
.today-discovery{border-radius:20px;background:#e9efdf;padding:22px}
.today-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.today-heading h2{font-size:16px!important;margin:0!important}
.today-subtitle{font-size:12px;color:#52624f}
.today-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain;touch-action:pan-x pan-y;direction:ltr}
.today-track::-webkit-scrollbar{display:none}
.today-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:normal}
.today-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,40%);align-items:center;gap:22px;padding:10px 3px;text-decoration:none;color:#254b3c;min-height:190px}
.today-copy{min-width:0}
.today-copy small{display:block;color:#52624f;font-size:12px}
.today-copy h3{font-size:clamp(20px,3.6vw,30px);font-weight:800;letter-spacing:-.04em;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere;margin:9px 0 16px}
.today-action{font-size:13px;font-weight:750}
.today-story img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:14px}
.today-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.today-arrow{width:44px;height:44px;flex:0 0 44px;border:1px solid #bdc9b2;border-radius:50%;background:#fffdf7;color:#254b3c;font-size:21px;cursor:pointer}
.today-arrow:disabled{opacity:.35;cursor:default}
.today-dots{display:flex;align-items:center}
.today-dot{position:relative;width:30px;height:44px;padding:0;border:0;background:transparent;cursor:pointer}
.today-dot:after{content:'';position:absolute;left:11px;top:18px;width:8px;height:8px;border-radius:50%;background:#abbba0}
.today-dot[aria-current=true]:after{background:#254b3c}
.today-status{font-size:12px;color:#52624f;white-space:nowrap;min-width:32px;text-align:center}
.today-track:focus-visible,.today-story:focus-visible{outline:3px solid #996346;outline-offset:-3px;border-radius:8px}
.recommend-popular-list{display:grid;gap:16px}
.recommend-rank-card{display:grid;grid-template-columns:24px 128px 1fr;align-items:center;gap:16px;text-decoration:none;color:#254b3c}
.recommend-rank-number{font-size:22px;font-weight:800}
.recommend-rank-card img{display:block;width:128px;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:12px}
.recommend-rank-card h3{font-size:18px;line-height:1.4;margin:0 0 6px;word-break:keep-all}
.recommend-rank-card small{font-size:12px;color:#52624f}
.home-compact-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){.recommend-home h2{font-size:20px}.recommend-home .discovery-card h3{font-size:16px}.recommend-home .discovery-card small{font-size:11px}.today-discovery{padding:16px}.today-heading{align-items:center}.today-subtitle{display:none}.today-story{grid-template-columns:minmax(0,1fr) 40%;gap:12px;min-height:174px}.today-copy h3{font-size:21px;line-height:1.42;margin:8px 0 14px}.today-copy small{font-size:11px}.today-action{font-size:12px}.today-controls{gap:4px}.today-dot{width:27px}.today-dot:after{left:10px}.today-status{font-size:11px;min-width:26px}.recommend-new-grid{gap:14px}.recommend-more{font-size:12px}.recommend-rank-card{grid-template-columns:18px 92px 1fr;gap:10px}.recommend-rank-card img{width:92px}.recommend-rank-card h3{font-size:15px}.recommend-rank-card small{font-size:11px}.recommend-home .discovery-heading{gap:10px}}
