:root{
  --bg:#0F1114;
  --surface:#141821;
  --surface-2:#1A2030;
  --border:rgba(255,255,255,.08);

  --text:#E8EDF2;
  --text-muted:rgba(232,237,242,.72);
  --text-dim:rgba(232,237,242,.55);

  --link:#5AA7FF;
  --focus:#8BC0FF;
  --accent:#B11217;

  --ok:#2E8B57;
  --partial:#C08A1A;
  --pending:#8A8F98;

  --r-card:12px;
  --r-btn:10px;

  --container:1120px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:2px;
}
img{max-width:100%;height:auto}
p{margin:0 0 12px}

/* Layout */
.wrap{max-width:var(--container);margin:0 auto;padding:24px}
.site-main{min-height:60vh;padding:16px 0}
@media(max-width:600px){.wrap{padding:18px}}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(15,17,20,.88);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.brand{display:flex;flex-direction:column;gap:4px;min-width:220px}
.site-title{font-size:18px;font-weight:700;color:var(--text)}
.site-tagline{margin:0;color:var(--text-dim);font-size:13px}

.header-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}

/* Menus */
.menu{list-style:none;display:flex;gap:14px;margin:0;padding:0;flex-wrap:wrap}
.menu a{color:var(--text-muted)}
.menu a:hover{color:var(--text);text-decoration:none}
.primary-nav{display:flex}

/* Language switch */
.lang-switch ul{list-style:none;display:flex;gap:10px;margin:0;padding:0}
.lang-switch a{color:var(--text-muted);font-size:13px}
.lang-switch .is-active a{color:var(--text);text-decoration:underline;font-weight:700}

/* Typography */
.page-title{margin:0 0 14px;font-size:28px;line-height:1.25}
@media(max-width:600px){.page-title{font-size:24px}}
.lead{font-size:18px;color:var(--text-muted);margin:8px 0 0}
.note{color:var(--text-dim)}
.sr-only{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* Cards grid */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cards{grid-template-columns:1fr}}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  overflow:hidden;
  transition:transform .14s ease, background .14s ease, border-color .14s ease;
}
.card:hover{background:var(--surface-2);border-color:rgba(255,255,255,.12);transform:translateY(-1px)}
.card-link{display:block;padding:16px}
.card-title{margin:0 0 8px;font-size:18px;line-height:1.25;color:var(--text)}
.card-meta{font-size:12px;color:var(--text-dim);display:flex;gap:8px;align-items:center}
.card-excerpt{margin:10px 0 0;color:var(--text-muted)}
.card-more{display:inline-block;margin-top:12px;color:var(--link);font-weight:600}

/* Single */
.single{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  padding:22px;
}
.single-title{margin:0 0 8px;font-size:28px;line-height:1.25}
.single-meta{color:var(--text-dim);font-size:13px}
.single-content{margin-top:16px}
.single-footer{margin-top:18px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:var(--r-btn);
  background:var(--link);color:#fff;
  font-weight:700;font-size:14px;
  border:1px solid rgba(0,0,0,0);
  text-decoration:none;
  transition:filter .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover{text-decoration:none;filter:brightness(1.06)}
.btn-outline{
  background:transparent;color:var(--text);
  border:1px solid var(--border);
}
.btn-outline:hover{background:var(--surface-2);filter:none;border-color:rgba(255,255,255,.14)}
.btn-ghost{
  background:transparent;color:var(--text-muted);
  border:1px solid rgba(0,0,0,0);
}
.btn-ghost:hover{color:var(--text);background:rgba(255,255,255,.04);text-decoration:none}

/* Search form */
.search-form{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.search-form input[type="search"]{
  flex:1;min-width:220px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-btn);
  padding:10px 12px;
  color:var(--text);
}
.search-form input::placeholder{color:var(--text-dim)}
.search-form button{
  padding:10px 14px;border-radius:var(--r-btn);
  border:1px solid rgba(0,0,0,0);
  background:var(--link);color:#fff;font-weight:700;
}

/* Pagination */
.pagination{margin-top:18px}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:rgba(20,24,33,.6);
}
.site-footer .wrap{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-footer .menu a{font-size:13px}
.copyright{margin:0;color:var(--text-dim);font-size:13px}

/* Skip link */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:12px;top:12px;width:auto;height:auto;z-index:999;background:var(--surface);border:1px solid var(--border);padding:10px 12px;border-radius:var(--r-btn);color:var(--text)}
