:root{
  --bg:#ffffff;
  --panel:#f6f7f9;
  --panel2:#ffffff;
  --text:#111318;
  --muted:#4b5563;
  --border:#e6e8ee;
  --accent:#c40000;
  --accent2:#0f172a;
  --link:#0b5bd3;
  --shadow:0 10px 30px rgba(17,19,24,.08);
  --radius:16px;
  --max:1150px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

.small{font-size:.95rem;color:var(--muted)}
.kicker{
  color:var(--accent);
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.82rem;
}

/* ================= HEADER ================= */

header.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:flex-start; /* key fix */
  gap:16px;
  padding:8px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  height:72px; /* logo size */
  width:auto;
  display:block;
}

.brand .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand .brand-text strong{font-size:1.05rem}
.brand .brand-text span{font-size:.9rem;color:var(--muted)}

.navlinks{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-start;
  margin-left:18px; /* menu pulled left */
}

.navlinks a{
  font-weight:650;
  color:var(--accent2);
  padding:8px 10px;
  border-radius:12px;
}

.navlinks a:hover{
  background:var(--panel);
  text-decoration:none;
}

/* Kill any leftover search UI */
.nav-search{display:none !important}

/* Mobile header */
@media (max-width:860px){
  .navbar{gap:10px}
  .navlinks{
    width:100%;
    margin-left:0;
  }
}

/* ================= HERO ================= */

.hero{
  background:linear-gradient(180deg,#ffffff 0%,#f7f8fb 55%,#ffffff 100%);
  padding:34px 0 22px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:22px;
}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .brand img{height:60px}
}

/* ================= CARDS ================= */

.card{
  background:var(--panel2);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card.pad{padding:18px}

.h1{
  font-size:2.2rem;
  line-height:1.12;
  margin:.2rem 0 .8rem;
}

@media (max-width:600px){
  .h1{font-size:1.8rem}
}

/* ================= GRIDS ================= */

.grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3,1fr);
}

@media (max-width:980px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .grid{grid-template-columns:1fr}
}

.tile{padding:16px}
.tile h3{margin:0 0 6px;font-size:1.1rem}
.tile p{margin:0;color:var(--muted)}

.tag{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-size:.9rem;
  color:var(--muted);
}

/* ================= CONTENT ================= */

.section{padding:22px 0}
.section h2{font-size:1.55rem;margin:0 0 10px}
.section .lede{color:var(--muted);margin:0 0 12px}

.content{padding:18px}
.content h1{margin:0 0 6px;font-size:2rem}
.content h2{margin:26px 0 10px;font-size:1.35rem}
.content h3{margin:18px 0 8px;font-size:1.1rem}
.content p{margin:10px 0}

.notice{
  border-left:4px solid var(--accent);
  background:var(--panel);
  padding:12px 14px;
  border-radius:14px;
  margin:14px 0;
}

/* ================= TABLES ================= */

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th,td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}

th{
  background:#fbfbfd;
  font-weight:800;
}

tr:last-child td{border-bottom:none}

/* ================= FOOTER ================= */

.footer{
  margin-top:30px;
  border-top:1px solid var(--border);
  background:#ffffff;
  padding:18px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:18px;
}

@media (max-width:860px){
  .footer-grid{grid-template-columns:1fr}
}

.footer a{color:var(--accent2)}
