:root{
  --red: rgb(249,22,22);
  --yellow: rgb(255,199,0);
  --green: rgb(67,172,89);
  --purple: rgb(123,19,214);
  --bg: #ffffff;
  --text: #111111;
  --muted: #555;
  --card: #f6f6f8;
  --border: rgba(0,0,0,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 18px;
  --maxw: 1100px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--font);}

(max-width: 780px){}

.theme-red{--accent: var(--red);}
.theme-yellow{--accent: var(--yellow);}
.theme-green{--accent: var(--green);}
.theme-purple{--accent: var(--purple);}
:root{--accent: var(--purple);}

a{color:inherit;text-decoration:none}
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.container{max-width:var(--maxw);margin:0 auto;padding:18px 18px;}
.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:800;font-size:18px;letter-spacing:.2px;
}
.logo{
  width:34px;height:34px;border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--purple));
  box-shadow: var(--shadow);
}
.navrow{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;background:var(--card);border:1px solid var(--border);font-size:13px;color:var(--muted)}
.dot{width:10px;height:10px;border-radius:999px;background:var(--muted)}
.dot.red{background:var(--red)} .dot.yellow{background:var(--yellow)} .dot.green{background:var(--green)} .dot.purple{background:var(--purple)}

main .container{padding-top:26px;padding-bottom:56px}

.hero{
  padding:20px 18px;border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, white), rgba(0,0,0,0));
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 6px 0;font-size:30px}
.hero p{margin:0;color:var(--muted);line-height:1.45}

.grid{
  display:grid;gap:14px;
  grid-template-columns: repeat(12, 1fr);
  margin-top:18px;
}
.card{
  grid-column: span 6;
  border-radius:var(--radius);
  border:1px solid var(--border);
  border-top:6px solid var(--accent);
  background:var(--card);
  padding:16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{transform: translateY(-2px); box-shadow: var(--shadow);}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted);font-size:14px;line-height:1.4}
.card .cta{margin-top:12px;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px; color: var(--accent);}
.arrow{display:inline-block;transform: translateY(1px)}

@media (max-width: 780px){
  .card{grid-column: span 12;}
  .hero h1{font-size:26px}
}

.toolbar{
  display:flex;gap:10px;flex-wrap:wrap;
  margin-top:18px;
}
.input, select{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:white;
  font-size:14px;
}
.input{min-width: 240px;flex:1}
.pill{
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 12px;
  background:white;
  font-size:14px;
  cursor:pointer;
  user-select:none;
  display:inline-flex;align-items:center;gap:8px;
}
.pill[aria-pressed="true"]{border-color: rgba(0,0,0,.22); box-shadow: 0 2px 10px rgba(0,0,0,.06);}

.section{
  margin-top:22px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:white;
  overflow:hidden;
}
.sectionhead{
  padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-bottom:1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 10%, white);
}
.sectionhead h2{margin:0;font-size:18px}
.count{color:var(--muted);font-size:13px}

.list{padding:10px 0}
 .item{
  margin:12px 0;
  padding:14px 16px;
  border-radius:16px;
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.item p{margin:0;line-height:1.45}

.item p{margin:0;line-height:1.45}
.meta{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;
}
.tag{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 10px;border-radius:999px;font-size:12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: white;
}
.tag strong{color:white;font-weight:800}
.tag .mini{width:8px;height:8px;border-radius:999px}
.mini.green{background:var(--green)} .mini.purple{background:var(--purple)}
footer{border-top:1px solid var(--border);color:var(--muted)}
footer .container{padding:22px 18px;font-size:13px}


header{
  position:relative;
}
header::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--green) 0 25%, var(--purple) 25% 50%, var(--red) 50% 75%, var(--yellow) 75% 100%);
}
.brandtext{display:flex;flex-direction:column;gap:2px;line-height:1.1}
.brandtitle{font-weight:900;letter-spacing:.2px}
.brandsub{font-size:12px;color:var(--muted);max-width:44ch}
@media (max-width:720px){
  .brandsub{display:none}
}


/* Bottom navigation */
body{padding-bottom:86px;}
.bottomnav{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.bottomnav .inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:8px;
  padding:10px 14px;
  overflow:auto;
}
.bn-link{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:999px;
  background: var(--accent);
  color:white;
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
  white-space:nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.bn-link:focus{outline:3px solid rgba(0,0,0,.15); outline-offset:2px;}



/* Theme pages: solid brand color, no gradients */
.theme-page .hero{
  background: var(--accent);
  border-color: rgba(255,255,255,.18);
}
.theme-page .hero h1,
.theme-page .hero p{
  color: #fff;
}
.theme-page .hero p{opacity:.92}

/* Proposal cards readability */
.item{
  border: 2px solid rgba(255,255,255,.20);
}
.itemtext{
  font-size: 18px;
  line-height: 1.55;
}
.crumb{
  font-size: 13px;
  opacity: .92;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}
.crumb a{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumb .sep{opacity:.75}
.crumb .current{font-weight:700}

/* Tags on colored background */
.tag{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}

/* Adjust proposal cards */
.proposal-card{
 background:white !important;
 color:black !important;
 border:4px solid var(--theme-color) !important;
}
/* Theme header */
.theme-header{
 background: var(--theme-color) !important;
 color:white !important;
}
