:root{--brand:#d35400;--dark:#222;--bg:#faf9f7;--border:#e2ddd6;}
*{box-sizing:border-box;}
body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--dark);background:var(--bg);line-height:1.6;}
.wrap{max-width:1000px;margin:0 auto;padding:0 20px;}
a{color:var(--brand);text-decoration:none;}
a:hover{text-decoration:underline;}

.site-header{background:#efe7dc;border-bottom:1px solid #d4c8b8;padding:8px 0;position:sticky;top:0;z-index:120;box-shadow:0 2px 10px rgba(0,0,0,0.08);}
.site-header .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;}
.site-header .logo-link{display:flex;align-items:center;text-decoration:none;color:var(--dark);transition:opacity 0.3s;}
.site-header .logo-link:hover{opacity:0.9;transform:scale(1.02);}
.site-header .logo-img{height:auto;max-width:170px;display:block;width:auto;}
.site-header nav a{margin-left:14px;font-weight:600;font-size:13px;}

.hero{text-align:center;padding:20px 0 20px;}
.hero h1{font-size:28px;margin:0 0 6px;}
.hero p{margin:0 auto;max-width:760px;font-size:1.04em;}

.home-categories{display:grid;grid-template-columns:1fr;gap:16px;margin:12px 0 36px;align-items:start;}
.category-showcase{background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px;}
.category-showcase-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;}
.category-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:calc(100% - 90px);border:none;background:transparent;padding:0;cursor:pointer;text-align:left;font:inherit;color:var(--dark);}
.category-toggle-title{font-size:1.45em;font-weight:700;line-height:1.25;}
.category-toggle-indicator{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--border);border-radius:999px;font-size:1.05em;font-weight:700;color:var(--brand);flex:0 0 auto;}
.category-view-all{font-weight:700;font-size:0.93em;white-space:nowrap;}
.category-empty{margin:0;color:#666;}
.category-body{overflow:hidden;max-height:5000px;opacity:1;transition:max-height 0.35s ease,opacity 0.25s ease;}
.category-showcase.is-collapsed .category-body{max-height:0;opacity:0;}
.category-article-grid{display:grid;grid-template-columns:1fr;gap:10px;}
.category-article-card{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;display:flex;align-items:stretch;min-height:154px;}
.category-article-card:nth-of-type(even){flex-direction:row-reverse;}
.category-article-card.no-image{display:block;}
.category-article-image{display:block;overflow:hidden;background:#f0ece7;flex:0 0 210px;height:154px;}
.category-article-image img{width:100%;height:100%;display:block;object-fit:cover;}
.category-article-content{padding:10px 12px;display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;min-width:0;}
.category-article-content h3{font-size:1.08em;margin:0 0 4px;line-height:1.2;}
.category-article-content h3 a{color:var(--dark);}
.category-article-content h3 a:hover{color:var(--brand);}
.category-article-excerpt{margin:0;color:#555;font-size:0.92em;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

.category-grid{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:20px 0 40px;}
.category-card{background:#fff;border:1px solid var(--border);padding:14px 18px;border-radius:8px;font-weight:600;}

.article-list{margin:20px 0;}
.article-list h2{border-bottom:2px solid var(--brand);display:inline-block;padding-bottom:4px;}
.article-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:16px;margin-bottom:16px;}
.article-card img{max-width:100%;border-radius:6px;margin-bottom:10px;}
.cat-tag{font-size:12px;color:#888;text-transform:uppercase;}

.latest-reviews{margin-top:8px;}
.latest-reviews h2{margin:0 0 12px;}
.latest-reviews .review-card{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:176px;padding:0;overflow:hidden;align-items:stretch;margin-bottom:12px;}
.latest-reviews .review-card:nth-of-type(even){grid-template-columns:minmax(0,1fr) 240px;}
.latest-reviews .review-card:nth-of-type(even) .review-media{order:2;}
.latest-reviews .review-card:nth-of-type(even) .review-content{order:1;}
.latest-reviews .review-card.no-image{grid-template-columns:1fr;}
.latest-reviews .review-media{display:block;overflow:hidden;background:#f0ece7;width:100%;height:100%;align-self:stretch;}
.latest-reviews .review-image{width:100%;height:100%;display:block;object-fit:cover;border-radius:0;margin:0;}
.latest-reviews .review-content{padding:12px 14px;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-width:0;}
.latest-reviews .review-content h3{margin:0;line-height:1.25;font-size:1.15em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.latest-reviews .review-content h3 a{color:var(--dark);}
.latest-reviews .review-content h3 a:hover{color:var(--brand);}
.latest-reviews .cat-tag{margin:0;font-size:11px;line-height:1.2;}
.latest-reviews .review-excerpt{margin:0;color:#4e4e4e;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

.single-article{background:#fff;padding:24px;border-radius:8px;border:1px solid var(--border);margin:24px 0;}
.single-article h1{font-size:30px;margin-top:8px;}
.disclosure-inline{background:#fff8ec;border:1px solid #f0e0bf;padding:10px 14px;border-radius:6px;font-size:14px;}
.featured-img{max-width:100%;border-radius:8px;margin:16px 0;}
.article-content h2{margin-top:30px;}
.article-content a.aff-btn{display:inline-block;background:var(--brand);color:#fff;padding:10px 18px;border-radius:6px;font-weight:700;margin:10px 0;}
.article-content a.aff-btn:hover{background:#b8460e;text-decoration:none;}

.site-footer{background:#fff;border-top:1px solid var(--border);margin-top:40px;padding:24px 0;font-size:13px;color:#666;}
.site-footer .wrap{display:flex;flex-direction:column;}
.footer-content{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));gap:30px;margin-bottom:20px;}
.footer-section h3{font-size:1em;margin-top:0;margin-bottom:1em;color:var(--dark);}
.footer-section ul{list-style:none;padding:0;margin:0;}
.footer-section ul li{margin-bottom:0.5em;}
.footer-section a{color:var(--brand);text-decoration:none;font-size:13px;}
.footer-section a:hover{text-decoration:underline;}
.footer-divider{border:none;border-top:1px solid var(--border);margin:20px 0;}
.footer-bottom{text-align:center;font-size:12px;}
.footer-bottom p{margin:8px 0;}

/* ---- Admin ---- */
.admin-wrap{max-width:900px;margin:30px auto;padding:0 20px;}
.admin-nav{background:#222;padding:14px 0;}
.admin-nav .wrap{display:flex;justify-content:space-between;max-width:900px;}
.admin-nav a{color:#fff;margin-right:16px;font-weight:600;}
.admin-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:20px;}
.admin-table{width:100%;border-collapse:collapse;}
.admin-table th,.admin-table td{text-align:left;padding:10px;border-bottom:1px solid var(--border);}
.btn{display:inline-block;background:var(--brand);color:#fff;padding:8px 14px;border-radius:6px;border:none;cursor:pointer;font-weight:600;}
.btn.secondary{background:#666;}
.btn.danger{background:#c0392b;}
.form-group{margin-bottom:16px;}
.form-group label{display:block;font-weight:600;margin-bottom:6px;}
.form-group input[type=text],.form-group input[type=url],.form-group select,.form-group textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:6px;font-family:inherit;}
.editor-toolbar{margin-bottom:6px;}
.editor-toolbar button{margin-right:6px;padding:6px 10px;border:1px solid var(--border);background:#f2f2f2;border-radius:4px;cursor:pointer;}
#content-editor{width:100%;min-height:400px;font-family:monospace;font-size:14px;}
.login-box{max-width:340px;margin:80px auto;}
.alert{padding:10px 14px;border-radius:6px;margin-bottom:16px;}
.alert.error{background:#fdecea;color:#c0392b;}
.alert.success{background:#eafaf1;color:#1e7e34;}

/* ========== SEO & Accessibility Enhancements ========== */
h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:0.5em;line-height:1.3;}
h1{font-size:2.2em;color:var(--dark);}
h2{font-size:1.8em;color:var(--dark);}
h3{font-size:1.4em;color:var(--dark);}

/* Improved readability for article content */
.article-content{font-size:1.05em;line-height:1.8;color:#333;}
.article-content p{margin-bottom:1.5em;}
.article-content img{max-width:100%;height:auto;display:block;margin:2em 0;border-radius:8px;}
.article-content a{border-bottom:2px solid var(--brand);transition:all 0.2s;}
.article-content a:hover{background-color:#fef3e8;border-bottom-color:#b8460e;}

/* Breadcrumb styling for navigation clarity */
.breadcrumb{color:#666;font-size:0.95em;margin-bottom:1em;}
.breadcrumb a{color:var(--brand);text-decoration:none;}
.breadcrumb a:hover{text-decoration:underline;}

/* Focus states for accessibility */
a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:2px solid var(--brand);outline-offset:2px;}

/* Skip to main content link (accessibility) */
.skip-link{position:absolute;top:-40px;left:0;background:var(--brand);color:#fff;padding:8px;text-decoration:none;z-index:100;}
.skip-link:focus{top:0;}

/* Visible focus indicators for keyboard navigation */
button:focus-visible{outline:2px solid var(--brand);outline-offset:2px;}

/* Image alt text visibility (for SEO audits) */
img[alt=""] {border: 2px dashed #f00;}

@media (max-width: 900px) {
	.category-article-image{flex-basis:180px;}
}

@media (max-width: 760px) {
	.site-header .wrap{justify-content:center;}
	.site-header nav{display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px;}
	.site-header nav a{margin:0 10px;}
	.hero{padding:14px 0 18px;}
	.category-showcase{padding:15px;}
	.category-showcase-head{align-items:flex-start;flex-direction:column;gap:8px;}
	.category-toggle{max-width:100%;}
	.category-toggle-title{font-size:1.3em;}
	.category-article-card,
	.category-article-card:nth-of-type(even){flex-direction:column;}
	.category-article-image{flex-basis:auto;width:100%;height:190px;}
	.category-article-content{padding:12px;}
	.category-article-content h3{font-size:1.02em;}
	.latest-reviews .review-card,
	.latest-reviews .review-card:nth-of-type(even){grid-template-columns:1fr;min-height:0;}
	.latest-reviews .review-card:nth-of-type(even) .review-media,
	.latest-reviews .review-card:nth-of-type(even) .review-content{order:initial;}
	.latest-reviews .review-media{width:100%;height:188px;}
	.latest-reviews .review-content{padding:10px 12px;gap:5px;}
}

