:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --accent:#1d4ed8;
  --accent2:#0f766e;
  --shadow:0 10px 30px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

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

header{
  background:var(--card);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.brand-wrap{display:flex;flex-direction:column;gap:2px}
.brand{font-weight:800;letter-spacing:-.01em;color:var(--text)}
.brand-sub{font-size:.88rem;color:var(--muted)}
nav{display:flex;gap:14px;flex-wrap:wrap}
nav a{color:var(--muted);font-weight:600}
nav a:hover{color:var(--text);text-decoration:none}

main{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 70px;
}
h1{margin:0 0 .7em;letter-spacing:-.01em}
h2{margin:2.0em 0 .6em;letter-spacing:-.005em}
p,li{line-height:1.7;color:#0b1220}
.small{font-size:.92rem;color:var(--muted)}
.kicker{font-size:.95rem;color:var(--muted);margin-top:-10px}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:12px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 14px;
  box-shadow: var(--shadow);
}
.card a{font-weight:750;color:var(--text)}
.card .small{margin-top:6px}

input[type="search"]{
  width:100%;
  max-width:520px;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  font-size:1rem;
}

.callout{
  background:#ffffff;
  border:1px solid var(--border);
  border-left:4px solid var(--accent2);
  border-radius:14px;
  padding:14px 14px;
  box-shadow: var(--shadow);
}
.callout strong{color:var(--text)}
.hr{height:1px;background:var(--border);margin:22px 0}

.table{
  width:100%;
  border-collapse: collapse;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.table th{
  background:#f1f5f9;
  text-align:left;
  font-weight:750;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}
.table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table tr:last-child td{border-bottom:none}

ul.clean{padding-left:18px}

.badge{
  display:inline-block;
  padding:4px 8px;
  font-size:.85rem;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  color:#1e3a8a;
}

.footer{
  border-top:1px solid var(--border);
  background:var(--card);
}
.footer-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.ad-slot{
  border:1px dashed var(--border);
  background:#fff;
  border-radius:14px;
  padding:14px;
  text-align:center;
  color:var(--muted);
}


.meta-line{
  font-size:.92rem;
  color:var(--muted);
  margin-top:-10px;
  margin-bottom:14px;
}

.ad-slot{
  border:1px dashed var(--border);
  background:#fff;
  border-radius:14px;
  padding:14px;
  text-align:center;
  color:var(--muted);
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ad-slot.top{min-height:100px}
.ad-slot.mid{min-height:150px}
.ad-slot.bottom{min-height:110px}

@media (max-width: 520px){
  .header-inner{flex-direction:column;align-items:flex-start}
  nav{gap:10px}
}
