.ew-home { --home-ink:#214537; --home-muted:#68796e; --home-border:#dce5dd; --home-paper:#fff; color:var(--home-ink); padding:1.5rem 0 3rem; }
.ew-home a { color:inherit; text-decoration:none; }
.ew-home a:hover { color:#4b7b56; }
.ew-home a:focus-visible,.ew-home button:focus-visible { outline:3px solid #83ad8d; outline-offset:4px; }
.home-heading { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:flex-end; gap:1.5rem; margin-bottom:2rem; }
.home-heading h1 { color:var(--home-ink); font-size:clamp(1.8rem,3.3vw,3rem); font-family:Georgia,serif; letter-spacing:-.045em; font-weight:400; margin:.5rem 0; }
.home-heading p { color:var(--home-muted); max-width:650px; margin:0; font-size:.92rem; }
.home-eyebrow { font-size:.62rem; text-transform:uppercase; letter-spacing:.13em; color:var(--home-muted); font-weight:600; }
.home-designs { display:flex; flex-wrap:wrap; gap:.3rem; font-size:.7rem; align-items:center; }
.home-designs a { padding:.4rem .65rem; border-radius:2rem; border:1px solid transparent; }
.home-designs a.selected { background:#e8f0e7; border-color:#ccdbce; color:#315b3d; }
.home-designs .home-manage { border-color:var(--home-border); }
.home-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:1.5rem; }
.home-feature { min-width:0; background:var(--home-paper); border:1px solid var(--home-border); border-radius:.65rem; overflow:hidden; align-self:start; }
.home-slide-art { width:100%; aspect-ratio:2/1; background:#234d3a; display:grid; place-items:center; color:#fff; }
.home-slide-art img { width:100%; height:100%; aspect-ratio:2/1; object-fit:contain; }
.home-slide-art > h2 { padding:2rem; color:#fff; font-family:Georgia,serif; }
.home-slide-caption { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:.7rem; padding:1rem 1.25rem; }
.home-slide-caption h2 { font-size:.95rem; color:var(--home-ink); margin:0; }
.home-slide-caption p { font-size:.8rem; color:var(--home-muted); margin:.4rem 0 0; }
.home-slide-caption > a { font-size:.72rem; white-space:nowrap; }
.home-slider-controls { display:flex; align-items:center; justify-content:space-between; padding:.75rem 1.25rem; border-top:1px solid #edf1ed; }
.home-slider-dots { display:flex; gap:.45rem; }
.home-slider-dots button { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#c7d3c9; }
.home-slider-dots button[aria-pressed="true"] { background:#315b3d; }
.home-slider-arrows { display:flex; gap:.35rem; }
.home-slider-arrows button { background:transparent; border:1px solid var(--home-border); border-radius:.3rem; min-width:32px; min-height:30px; font-size:.75rem; color:var(--home-ink); }
.home-latest { padding:.5rem .25rem; min-width:0; }
.home-section-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.2rem; }
.home-section-heading h2 { font-family:Georgia,serif; color:var(--home-ink); font-size:1.55rem; font-weight:400; margin:.2rem 0 0; letter-spacing:-.025em; }
.home-section-heading > a { font-size:.72rem; white-space:nowrap; color:var(--home-muted); }
.home-article { border-top:1px solid var(--home-border); padding:1rem 0; }
.home-article h3 { font-size:1rem; font-weight:500; line-height:1.4; margin:.3rem 0 .4rem; color:var(--home-ink); }
.home-article p { font-size:.8rem; color:var(--home-muted); line-height:1.6; margin:0; }
.home-article-image { display:none; }
.home-modules { grid-column:1/-1; display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:.55rem; }
.home-modules > a { display:flex; align-items:center; justify-content:center; gap:.6rem; padding:1rem .75rem; border:1px solid var(--home-border); border-radius:.4rem; background:#f1f5ef; font-size:.8rem; }
.home-modules > a:hover { background:#e6eee4; border-color:#a9c0ac; }
.home-module-arrow { display:none; }
.home-categories { grid-column:1/-1; margin-top:1rem; }
.home-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.home-category { background:var(--home-paper); border:1px solid var(--home-border); border-radius:.65rem; overflow:hidden; }
.home-category-art { display:grid; place-items:center; aspect-ratio:1.8/1; background:#d9e3cf; color:#78936c !important; font-size:2rem; overflow:hidden; }
.home-category-art img { width:100%; height:100%; aspect-ratio:1.8/1; object-fit:cover; transition:transform .3s; }
.home-category:hover img { transform:scale(1.035); }
.home-art-1 { background:#e9dfcd; color:#a38b62 !important; }
.home-art-2 { background:#d6e3e5; color:#739399 !important; }
.home-art-3 { background:#e5dbd9; color:#a38982 !important; }
.home-category-copy { padding:1.1rem; }
.home-category-copy h3 { font-family:Georgia,serif; font-size:1.25rem; font-weight:400; color:var(--home-ink); margin:0 0 .5rem; }
.home-category-copy p { color:var(--home-muted); font-size:.78rem; line-height:1.65; margin:0; }
.home-empty { font-size:.85rem; color:var(--home-muted); padding:1.5rem 0; }
/* Editorial: a full-width feature, generous serif titles and a magazine reading grid. */
.ew-home-editorial { --home-ink:#3e4133; --home-muted:#7a7c6d; --home-border:#e1dfd2; --home-paper:#fffef9; }
.ew-home-editorial .home-layout { grid-template-columns:1fr; gap:2rem; }
.ew-home-editorial .home-heading { border-bottom:1px solid var(--home-border); padding-bottom:1.5rem; }
.ew-home-editorial .home-heading h1 { font-size:clamp(2.5rem,5vw,4.2rem); }
.ew-home-editorial .home-feature { border-radius:0; }
.ew-home-editorial .home-modules { grid-row:2; }
.ew-home-editorial .home-modules > a { background:transparent; border-width:0 0 1px; border-radius:0; }
.ew-home-editorial .home-articles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.ew-home-editorial .home-article h3 { font-family:Georgia,serif; font-size:1.3rem; }
.ew-home-editorial .home-article-image { display:block; margin-bottom:1rem; }
.ew-home-editorial .home-article-image img { width:100%; height:auto; aspect-ratio:1.7/1; object-fit:cover; }
.ew-home-editorial .home-category { border-radius:0; }
/* Library: navigation first, compact feature and generous resource tiles. */
.ew-home-library .home-layout { grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); }
.ew-home-library .home-modules { grid-row:1; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ew-home-library .home-modules > a { justify-content:flex-start; padding:1.4rem; font-size:.95rem; border-radius:.8rem; background:#fff; }
.ew-home-library .home-modules .home-module-icon { display:grid; place-items:center; width:40px; height:40px; background:#edf3e9; border-radius:.7rem; color:#50754a; }
.ew-home-library .home-module-arrow { display:inline; margin-left:auto; color:#91a68c; }
.ew-home-library .home-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ew-home-library .home-category { display:grid; grid-template-columns:90px minmax(0,1fr); align-items:stretch; min-width:0; }
.ew-home-library .home-category-art { position:relative; width:100%; min-width:0; min-height:90px; height:auto; aspect-ratio:auto; font-size:1.5rem; }
.ew-home-library .home-category-art img { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.ew-home-library .home-category-copy { min-width:0; align-self:center; overflow-wrap:anywhere; }
@media(max-width:900px) { .home-layout,.ew-home-library .home-layout { grid-template-columns:1fr; } .home-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .home-articles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; } .ew-home-library .home-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ew-home { padding-top:.5rem; } .home-heading { gap:1rem; } .home-heading h1 { font-size:2rem; } .home-modules { grid-template-columns:repeat(2,minmax(0,1fr)); } .ew-home-library .home-modules { grid-template-columns:repeat(2,minmax(0,1fr)); } .ew-home-library .home-modules > a { padding:.8rem; font-size:.8rem; } .ew-home-library .home-modules .home-module-icon { width:28px; height:28px; } .home-articles,.ew-home-editorial .home-articles { grid-template-columns:1fr; gap:0; } .home-category-grid,.ew-home-library .home-category-grid { grid-template-columns:1fr; } .home-slide-caption { padding:.8rem; } .home-section-heading h2 { font-size:1.35rem; } }
@media(prefers-reduced-motion:reduce) { .home-category-art img { transition:none; } }

.home-layout.home-layout-single { grid-template-columns:1fr; }
.home-layout-single .home-articles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
@media(max-width:600px) { .home-layout-single .home-articles { grid-template-columns:1fr; gap:0; } }

.home-module-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.home-module-icon .navigation-icon { margin:0!important; width:24px; height:24px; }
.home-category-art > .navigation-icon { width:42px; height:42px; margin:0!important; }
.ew-home-library .home-module-icon .navigation-icon { width:25px; height:25px; }
@media(max-width:600px) { .ew-home-library .home-module-icon .navigation-icon { width:22px; height:22px; } }
