/* Modern, clean, responsive styles for news10 template */
:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --border: #e5e7eb;
  --chip-bg: #f3f4f6;
}

*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-600);text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{border-bottom:1px solid var(--border);background:#fff}
.site-header .top{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
}
.logo-wrap{display:flex;align-items:center;gap:12px}
.logo-wrap img{height:40px;width:auto}
.logo-wrap h1{margin:0;font-size:1rem;color:var(--muted);font-weight:500}
.ad-placeholder{flex:1;display:flex;justify-content:flex-end}

nav.primary{border-top:1px solid var(--border)}
nav.primary .nav-inner{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0}
nav.primary a{padding:6px 10px;border-radius:8px;color:var(--text)}
nav.primary a:hover,nav.primary a.active{background:var(--chip-bg)}

.toolbar{display:flex;align-items:center;gap:12px;padding:8px 0}
.search{display:flex;align-items:center;gap:8px}
.search input[type="text"]{padding:8px 10px;border:1px solid var(--border);border-radius:8px;min-width:220px}
.search button{padding:8px 12px;border:0;border-radius:8px;background:var(--primary);color:#fff;cursor:pointer}
.search button:hover{background:var(--primary-600)}

.lang-switch{margin-left:auto;display:flex;align-items:center;gap:6px}
.lang-switch button{padding:6px 8px;border:1px solid var(--border);background:#fff;border-radius:8px;cursor:pointer}
.lang-switch button.active{border-color:var(--primary);color:var(--primary)}

/* Keywords UI */
.keywords-bar{padding:10px 0;border-top:1px dashed var(--border);display:flex;flex-direction:column;gap:8px}
.keywords-controls{display:flex;gap:8px;flex-wrap:wrap}
.keywords-controls textarea{flex:1 1 360px;min-height:64px;padding:8px;border:1px solid var(--border);border-radius:8px}
.keywords-controls .stack{display:flex;flex-direction:column;gap:8px}
.keywords-controls input[type="text"]{padding:8px 10px;border:1px solid var(--border);border-radius:8px}
.keywords-controls .btn{padding:8px 12px;border:0;border-radius:8px;background:var(--chip-bg);cursor:pointer}
.keywords-controls .btn.primary{background:var(--primary);color:#fff}
.keywords-controls .btn.primary:hover{background:var(--primary-600)}
.kw-tags{display:flex;gap:8px;flex-wrap:wrap}
.kw-tag{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--chip-bg);color:var(--text);border:1px solid var(--border)}

/* Layout */
.layout{display:grid;grid-template-columns:2fr 1fr;gap:24px}
@media (max-width: 900px){.layout{grid-template-columns:1fr}}

.panel{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.panel h2,.panel h4{margin:0;padding:12px 16px;border-bottom:1px solid var(--border);font-size:1.1rem}
.panel .content{padding:12px 16px}

.list{display:flex;flex-direction:column;gap:12px}
.list dl{margin:0}
.list dt{font-weight:600}
.list dd{margin:6px 0 0 0;color:var(--muted)}

.sidebar .panel{margin-bottom:16px}

/* Carousel (no JS, scroll-snap) */
.carousel{--h:200px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.carousel .track{display:flex;gap:8px;overflow:auto;scroll-snap-type:x mandatory;padding:8px}
.carousel .track a{flex:0 0 auto;scroll-snap-align:center}
.carousel img{height:var(--h);width:auto;border-radius:8px;display:block}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff;margin-top:24px}
.site-footer .links{padding:12px 0}
.site-footer .links strong{display:block;margin-bottom:8px}
.site-footer .links ul{display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0;list-style:none}
.copyright{border-top:1px solid var(--border);padding:12px 0;color:var(--muted);font-size:0.9rem}

/* Helpers */
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

