:root{--bg:#fff;--muted:#666;--accent:#d6336c}
*{box-sizing:border-box}
body{font-family:Inter,system-ui,Segoe UI,Roboto,Arial;background:var(--bg);color:#111;margin:0}
.site-header{display:flex;align-items:center;gap:24px;padding:12px 24px;border-bottom:1px solid #eee;position:sticky;top:0;z-index:1000;background:var(--bg)}
.logo{display:flex;align-items:center;padding:0!important;flex-shrink:0}
.logo img{max-height:80px!important;min-height:80px!important;width:auto!important;height:auto!important;display:block!important}
.category-bar{display:flex;gap:12px;align-items:center;margin-left:auto}
.search-wrap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;width:480px;max-width:60%}
.search-wrap input{width:100%;padding:16px 24px;border-radius:20px;border:1px solid #ddd;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,0.03);font-size:16px}
.search-wrap input:focus{outline:none;border-color:#bbb}
.search-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-top:none;border-radius:0 0 20px 20px;max-height:400px;overflow-y:auto;display:none;box-shadow:0 4px 12px rgba(0,0,0,0.1);z-index:1001}
.search-result-item{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;text-decoration:none;color:inherit;border-bottom:1px solid #f0f0f0;transition:background 100ms;cursor:pointer}
.search-result-item:hover{background:#f9f9f9}
.search-result-item:last-child{border-bottom:none}
.search-result-title{font-size:16px;font-weight:500;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result-type{font-size:14px;color:var(--muted);background:#f0f0f0;padding:4px 8px;border-radius:3px;margin-left:8px;white-space:nowrap}
.search-no-results{padding:20px 18px;text-align:center;color:var(--muted);font-size:16px}
.category-title{font-size:24px;font-weight:700;margin-left:8px;color:#222}
.category{position:relative}
.category button{background:#f7f7f7;border:1px solid #e6e6e6;padding:16px 20px;border-radius:6px;cursor:pointer;font-size:16px;transition:all 150ms}
.category button:hover{background:#f0f0f0}
.category button.active{background:#ffd6e6;border-color:#ffb3cc;color:#4a1630}
.category a{display:block;padding:16px 20px;background:#f7f7f7;border:1px solid #e6e6e6;border-radius:6px;text-decoration:none;color:inherit;cursor:pointer;font-size:16px;transition:all 150ms}
.category a:hover{background:#f0f0f0}
.main-content{padding:18px}
.pages-section h2{margin:8px 0}
.pages-scroll{display:flex;gap:12px;overflow:auto;padding:12px 4px}
.pages-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:12px 4px}
.page-box{border-radius:12px;overflow:hidden;border:1px solid #eee;background:#fafafa;cursor:pointer;transition:box-shadow 150ms}
.page-box:hover{box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.page-thumb{width:100%;height:240px;object-fit:cover;display:block;cursor:pointer}
.page-body{padding:10px}
.page-title{font-size:16px;margin:0 0 6px}
.page-meta{font-size:13px;color:var(--muted)}
.product-price{font-size:14px;font-weight:600;color:var(--accent);margin-top:4px}
.index-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-top:12px}
.index-card{padding:12px;border:1px solid #eee;border-radius:8px;background:#fff}
.hero-blurb{margin-top:18px}
.hero-wrap{position:relative;border-radius:10px;overflow:hidden}
.hero-image{width:100%;display:block;object-fit:cover}
.hero-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:linear-gradient(180deg,rgba(0,0,0,0.25),rgba(0,0,0,0.45))}
.hero-blurb .hero-image{height:320px}
.hero-blurb .hero-overlay h2{font-family:'Times New Roman',Times,serif;color:#fff;font-size:44px;margin:0 0 12px}
.hero-blurb .hero-overlay p{font-family:Georgia,'Times New Roman',serif;color:#fff;max-width:900px;margin:0;font-size:18px;opacity:0.95}
.attachment-banner{margin-top:14px}
.attachment-banner .hero-image{height:400px}
.attachment-banner .hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,0.18),rgba(0,0,0,0.35))}
.attachment-banner h3{font-family:'Times New Roman',Times,serif;color:#fff;font-size:28px;margin:0}
.article-wrapper{display:grid;grid-template-columns:260px 1fr 320px;gap:20px;max-width:1800px;margin:0 auto;padding:20px;align-items:start;min-height:calc(100vh - 120px)}
article{grid-column:2}
.ad-space{background:#fff;border-radius:8px;padding:20px;min-height:200px;display:flex;align-items:center;justify-content:center;color:#999;font-size:14px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,0.05)}
article h2.article-section-header{font-size:22px;font-weight:bold;margin:24px 0 12px 0;color:#111}
article img{display:block !important;margin-left:auto !important;margin-right:auto !important}
.article-right{display:flex;flex-direction:column;gap:12px}
.related-list{display:flex;flex-direction:column;gap:10px}
.related-card{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #eee;border-radius:8px;background:#fff;cursor:pointer;text-decoration:none;color:inherit;transition:box-shadow 150ms;width:100%;min-width:0}
.related-card:hover{box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.related-thumb{width:144px;height:144px;object-fit:cover;border-radius:6px;flex:0 0 144px}
.related-title{font-size:16px;line-height:1.3;font-weight:500;flex:1;min-width:0}
.site-footer{margin-top:32px;background:#6b6b6b;border-top:1px solid #5f5f5f}
.footer-inner{max-width:1200px;margin:0 auto;padding:72px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.footer-links{display:flex;gap:16px;align-items:center}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.footer-muted{font-size:13px;color:#e9e9e9}
.legal-page{max-width:900px;margin:0 auto;padding:18px 0}
.legal-page h1{margin:8px 0 14px}
.legal-page h2{margin:22px 0 10px}
.legal-page p{line-height:1.65}
@media (max-width:1200px){.pages-grid{grid-template-columns:repeat(2,1fr)}.article-wrapper{grid-template-columns:1fr 280px;gap:12px}}
@media (max-width:768px){.pages-grid{grid-template-columns:1fr}.article-wrapper{grid-template-columns:1fr;gap:12px}.ad-space{display:none}.article-right{order:2;flex-direction:row;flex-wrap:wrap}.related-card{flex-direction:column;align-items:flex-start}.related-thumb{width:100%;height:100px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
