:root{
  /* fresh contemporary blue */
  --bg0:#f6f9ff;
  --bg1:#eef5ff;
  --card:#ffffff;
  --ink:#0b1b33;
  --muted:#4f6387;
  --stroke:rgba(13, 42, 90, .10);

  --blue:#2563eb;   /* primary */
  --blue2:#0ea5e9;  /* accent */
  --navy:#0b1b33;

  --soft:#edf4ff;
  --soft2:#e9f2ff;
  --core:#e7f0ff;
  --coreGlow:#d9e9ff;

  --shadow: 0 14px 30px rgba(9, 30, 66, .10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(37,99,235,.16), transparent 58%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding: 26px 18px 36px;
}

.hero{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  backdrop-filter: blur(10px);
}

.heroTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  flex-wrap:wrap;
}

h1{
  margin:0;
  font-size: 26px;
  letter-spacing:-0.02em;
}

.hero p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.5;
  max-width: 90ch;
  font-size: 13.5px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.08);
  color: rgba(11,27,51,.92);
  font-weight:650;
  font-size: 12px;
  user-select:none;
  white-space:nowrap;
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* NAV */
nav{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
nav a{
  text-decoration:none;
  color: rgba(11,27,51,.92);
  font-weight: 800;
  font-size: 12.75px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(13,42,90,.10);
  background: rgba(255,255,255,.70);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 12px 22px rgba(9,30,66,.10);
}
nav a.active{
  border-color: rgba(37,99,235,.28);
  background: rgba(37,99,235,.10);
}

main{
  margin-top: 16px;
  display:grid;
  gap: 16px;
}

.card{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.grid{
  display:grid;
  grid-template-columns: 1.22fr .78fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.small{
  color: var(--muted);
  font-size: 13.25px;
  line-height: 1.5;
}

/* Table */
.tableTitle{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.tableTitle h2{
  margin:0;
  font-size: 14px;
  letter-spacing:-0.01em;
}
.tableWrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid rgba(13,42,90,.10);
  background:#fff;
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 860px;
  font-size: 13.25px;
}
thead th{
  position: sticky;
  top:0;
  background: linear-gradient(135deg, rgba(11,27,51,.96), rgba(11,27,51,.90));
  color: rgba(255,255,255,.92);
  text-align:left;
  padding: 12px 12px;
  font-weight: 650;
  border-right: 1px solid rgba(255,255,255,.10);
  user-select:none;
  cursor: default;
}
thead th:last-child{ border-right:none; }

tbody td{
  padding: 11px 12px;
  border-bottom: 1px solid rgba(13,42,90,.06);
  background:#fff;
  transition: background .14s ease, box-shadow .14s ease;
}
tbody tr:last-child td{ border-bottom:none; }

tbody td.core{
  background: var(--core);
  font-weight: 700;
  border-left: 3px solid rgba(37,99,235,.40);
}

tbody tr.rowHover td{ background: var(--soft); }
tbody tr.rowHover td.core{
  background: var(--coreGlow);
  box-shadow: inset 0 0 0 2px rgba(37,99,235,.18);
}

.cityBtn{
  color: var(--blue);
  font-weight: 700;
  cursor:pointer;
  text-decoration:none;
  border-bottom: 1px dashed rgba(37,99,235,.35);
  padding-bottom: 1px;
}
.cityBtn:hover{ opacity:.88; }

/* Output */
.output{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.18);
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(14,165,233,.06));
  padding: 13px 13px;
  min-height: 84px;
}
.output h3{
  margin:0 0 6px;
  font-size: 13.5px;
  letter-spacing:-0.01em;
}
.output p{
  margin:0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13.25px;
}

/* Buttons */
.btnRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.btn{
  border:none;
  cursor:pointer;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12.75px;
  color: rgba(11,27,51,.92);
  background: rgba(11,27,51,.06);
}
.btn.primary{
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.22);
}

/* Walkthrough */
.walk h2{
  margin:0;
  font-size: 14px;
  letter-spacing:-0.01em;
}
.walk .step{
  margin-top: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(13,42,90,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.walk .step:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.20);
  box-shadow: 0 12px 22px rgba(9,30,66,.10);
}
.walk p{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13.25px;
}
.pillRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.pill{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13,42,90,.10);
  background: rgba(255,255,255,.70);
  color: rgba(11,27,51,.90);
  cursor:pointer;
  user-select:none;
}
.pill:hover{ border-color: rgba(37,99,235,.22); }

/* Glossary */
dl{ margin: 10px 0 0; }
dt{
  font-weight: 850;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(13,42,90,.10);
  background: rgba(255,255,255,.72);
  cursor: help;
  margin-top: 10px;
}
dd{
  margin: 8px 0 0 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(37,99,235,.35);
  border-radius: 12px;
  background: rgba(37,99,235,.06);
  color: var(--muted);
  line-height: 1.5;
  display:none;
  font-size: 13.1px;
}

/* Column focus */
.colFocus{
  box-shadow: inset 0 0 0 9999px rgba(37,99,235,.06);
}

/* Tooltip */
.tip{
  position: fixed;
  z-index: 9999;
  width: min(360px, calc(100vw - 30px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(9,30,66,.18);
  padding: 12px 12px;
  display:none;
  backdrop-filter: blur(10px);
}
.tip .top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.tip .title{
  font-weight: 900;
  font-size: 13.25px;
  margin:0;
  color: rgba(11,27,51,.95);
}
.tip .close{
  border:none;
  background: rgba(37,99,235,.10);
  color: rgba(11,27,51,.92);
  border-radius: 10px;
  padding: 6px 10px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
}
.tip .body{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height:1.45;
}

footer{
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.75px;
  line-height: 1.45;
}
