:root{
  --brand:#151c2b; --ink:#0F172A; --muted:#6B7280; --line:#E5E7EB; --bg:#F7F8FA; --card:#FFFFFF;
  --sidebar-w:330px; --radius:14px; --shadow:0 6px 20px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial}
a{color:#151c2b;text-decoration:none} a:hover{text-decoration:underline}
img{max-width:100%;height:auto}

/* ====== Layout Shell ====== */
.shell{
    display:grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height:100%;
}
h1.pageH1 {
    text-transform: uppercase;
    font-size: 26px;
    line-height:30px;
}
.sidebar{
    background:#151c2b;
    box-shadow:var(--shadow);
    padding:18px 14px;
    position:sticky; top:0; width:330px;height:100dvh; overflow:auto;
}

.main{
    min-width:0;
    padding:20px;
}

input#searchBox {
    height: 50px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0 10px;
    margin: 10px 0;
}

.container{max-width:1200px;margin:0 auto;padding:0}
.section{margin-bottom:20px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:16px;
}
.h1{font-size:22px;font-weight:800;margin:0}
.link{font-weight:800}

/* Sidebar content */
.brand{
  display:flex;align-items:center;gap:10px;color:#111;text-decoration:none;margin-bottom:12px;
}
.brand .logo{
  width:100px;
  height:auto;
  border-radius:10px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  box-shadow:var(--shadow);
  padding-top:7px;
}
.brand .logo img{
  width:100%;
}
.brand .title{font-weight:900;font-size:22px;letter-spacing:.2px;color:#fff; margin:0}
.brand .sub{color:#ccc;font-size:14px;margin-top:-2px;display:block}

.navLabel{font-size:20px;color:#ccc;margin:50px 2px 20px;font-weight:800;letter-spacing:.02em}
.nav{display:flex;flex-direction:column;gap:6px}
.nav a{
  text-decoration:none;color:#fff;
  padding:10px 12px 10px 0;font-weight:800;display:block;
}
.nav a:hover{opacity: 0.7;}

/* Section headers */
.sectionHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}

/* Topic cards (home) */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.topicCard{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:8px;cursor:pointer;
}
a.topicCard:hover{
    box-shadow:0 10px 24px rgba(15,23,42,.12);
    text-decoration:none;
    opacity:0.6;
}
a.row {
    padding: 20px;
    display: block;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
}
.topicCard .topicHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.topicCard .topicTitle{margin:0;font-size:18px;font-weight:800;color:#111}
.topicCard .topicBody{color:#1f2937;font-size:14px}
.metaRow{
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
.topicCard .pills{display:flex;gap:8px;align-items:center;justify-content:space-between}
.pill {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c8dffc;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #15181c;
    padding: 5px 20px;
    min-width: 100px;
    height:40px;
}
.details{font-weight:800}
.status{font-size:11px;border-radius:8px;padding:4px 8px;font-weight:800;  border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #15181c;
    padding: 5px 20px;
    min-width: 100px;
    align-items: center;
    display: flex;
    height: 40px;
}
.status.none{background:#E6F8EA;color:#166534;border:1px solid #bbf7d0}
.status.mild{background:#FFF4D6;color:#92400e;border:1px solid #fde68a}
.status.caution{background:#FDE8E8;color:#991b1b;border:1px solid #fecaca}

/* Filter (color circles) */
.filterBar{display:flex;gap:8px;flex-wrap:wrap}
.filterItem{
  appearance:none;border:1px solid #E2E8F0;background:#fff;border-radius:999px;display:flex;align-items:center;gap:8px;
  padding:6px 10px;font-weight:800;color:#0f172a;cursor:pointer;
}
.filterItem .topicCircle{--dot:#9CA3AF;width:18px;height:18px;border-radius:50%;background:var(--dot)}
.filterItem.active{background:#eef2ff;border-color:#c7d2fe;color:#1d4ed8}

/* ====== Mobile Header + Drawer ====== */
.masthead{
  position:fixed; inset:0 0 auto 0; height:90px; background:var(--brand); color:#fff; z-index:40;
  display:none; align-items:center; gap:10px; padding:0 12px;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.masthead .menu-btn{
  width:55px; height:55px; border-radius:8px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08); color:#fff;
  display:grid; place-items:center; cursor:pointer;
  font-size:34px;
}
.masthead .brandMark{
  display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff;
}
.masthead .brandMark .logo{
  width:100px;height:auto;
  border-radius:8px;color:var(--brand);display:grid;
  place-items:center;font-weight:900;
  padding-top: 15px;
}
.masthead .brandMark .txt{display:flex;flex-direction:column;line-height:1}
.masthead .brandMark .title{font-weight:900;margin:0;font-size:24px}
.masthead .brandMark .sub{font-size:11px;opacity:.9;padding-top:5px;}

.backdrop{
  position:fixed; inset:0; background:rgba(15,23,42,.32); z-index:39; opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.backdrop.open{opacity:1; pointer-events:auto}

.drawer{
  position:fixed;
  top:-10px;
  left:0;
  bottom:0;
  width:82vw;
  max-width:320px;
  background: #151c2b;
  border-right:1px solid var(--line); z-index:40; transform:translateX(-100%);
  transition:transform .22s ease; padding:14px 12px 18px 12px; overflow:auto;
}
.drawer.open{transform:translateX(0)}
.drawer .close-btn{
  appearance:none;border:1px solid #e5e7eb;background:#fff;border-radius:10px;height:36px;width:36px;
  display:grid;place-items:center;cursor:pointer;margin-left:auto;
  position:fixed;
  top: 35px;
  right: 10px;
}


.listHeader {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}
.rowTitle {
    font-weight: 800;
    font-size: 16px;
    padding-bottom: 10px;
}

.rowSub {
    font-size: 14px;
    line-height: 18px;
    padding-bottom: 10px;
}

/* Prevent body scroll when drawer open */
.no-scroll{overflow:hidden;touch-action:none}

/* ====== Responsive ====== */
@media (max-width: 1023px){
  .shell{grid-template-columns: 1fr}
  .sidebar{display:none}
  .masthead{display:flex}
  .main{padding-top:110px}
  .grid{grid-template-columns:1fr}
}